From 09427ae2ad91997e163cd0e4c8245367d64b92ec Mon Sep 17 00:00:00 2001 From: Nimrod Shneor Date: Sun, 15 Dec 2024 15:12:45 +0200 Subject: [PATCH] Add ARO HCP v1alpha1 root resource and changes required for derived structs --- .golangci.yml | 1 + CHANGES.md | 5 + Makefile | 5 +- .../v1/access_protection_list_type_json.go | 16 +- .../v1/access_protection_type.go | 23 + .../v1/access_protection_type_json.go | 12 +- .../v1/access_request_list_type_json.go | 16 +- ...ess_request_post_request_list_type_json.go | 16 +- .../v1/access_request_post_request_type.go | 23 + .../access_request_post_request_type_json.go | 12 +- .../v1/access_request_state_list_type_json.go | 12 +- .../access_request_status_list_type_json.go | 16 +- .../v1/access_request_status_type.go | 23 + .../v1/access_request_status_type_json.go | 12 +- accesstransparency/v1/access_request_type.go | 25 +- .../v1/access_request_type_json.go | 20 +- .../v1/access_requests_resource_json.go | 2 +- .../v1/boolean_list_type_json.go | 12 +- accesstransparency/v1/date_list_type_json.go | 12 +- .../v1/decision_decision_list_type_json.go | 12 +- .../v1/decision_list_type_json.go | 16 +- accesstransparency/v1/decision_type.go | 25 +- accesstransparency/v1/decision_type_json.go | 12 +- .../v1/decisions_resource_json.go | 2 +- accesstransparency/v1/float_list_type_json.go | 12 +- .../v1/integer_list_type_json.go | 12 +- .../v1/interface_list_type_json.go | 12 +- accesstransparency/v1/long_list_type_json.go | 12 +- .../v1/string_list_type_json.go | 12 +- .../v1/access_token_auth_list_type_json.go | 16 +- accountsmgmt/v1/access_token_auth_type.go | 23 + .../v1/access_token_auth_type_json.go | 12 +- .../v1/access_token_list_type_json.go | 16 +- accountsmgmt/v1/access_token_type.go | 23 + accountsmgmt/v1/access_token_type_json.go | 16 +- accountsmgmt/v1/account_list_type_json.go | 16 +- accountsmgmt/v1/account_type.go | 25 +- accountsmgmt/v1/account_type_json.go | 24 +- accountsmgmt/v1/accounts_resource_json.go | 2 +- accountsmgmt/v1/action_list_type_json.go | 12 +- .../v1/billing_model_item_list_type_json.go | 16 +- accountsmgmt/v1/billing_model_item_type.go | 25 +- .../v1/billing_model_item_type_json.go | 12 +- .../v1/billing_model_list_type_json.go | 12 +- .../v1/billing_models_resource_json.go | 2 +- accountsmgmt/v1/boolean_list_type_json.go | 12 +- accountsmgmt/v1/capabilities_resource_json.go | 2 +- accountsmgmt/v1/capability_list_type_json.go | 16 +- accountsmgmt/v1/capability_type.go | 23 + accountsmgmt/v1/capability_type_json.go | 12 +- .../v1/cloud_account_list_type_json.go | 16 +- accountsmgmt/v1/cloud_account_type.go | 23 + accountsmgmt/v1/cloud_account_type_json.go | 16 +- .../v1/cloud_resource_list_type_json.go | 16 +- accountsmgmt/v1/cloud_resource_type.go | 25 +- accountsmgmt/v1/cloud_resource_type_json.go | 12 +- .../v1/cloud_resources_resource_json.go | 2 +- ...er_authorization_request_list_type_json.go | 16 +- .../v1/cluster_authorization_request_type.go | 23 + ...cluster_authorization_request_type_json.go | 16 +- ...r_authorization_response_list_type_json.go | 16 +- .../v1/cluster_authorization_response_type.go | 23 + ...luster_authorization_response_type_json.go | 20 +- .../cluster_metrics_nodes_list_type_json.go | 16 +- accountsmgmt/v1/cluster_metrics_nodes_type.go | 23 + .../v1/cluster_metrics_nodes_type_json.go | 12 +- ...ter_registration_request_list_type_json.go | 16 +- .../v1/cluster_registration_request_type.go | 23 + .../cluster_registration_request_type_json.go | 12 +- ...er_registration_response_list_type_json.go | 16 +- .../v1/cluster_registration_response_type.go | 23 + ...cluster_registration_response_type_json.go | 12 +- .../v1/cluster_resource_list_type_json.go | 16 +- accountsmgmt/v1/cluster_resource_type.go | 23 + accountsmgmt/v1/cluster_resource_type_json.go | 20 +- .../v1/cluster_upgrade_list_type_json.go | 16 +- accountsmgmt/v1/cluster_upgrade_type.go | 23 + accountsmgmt/v1/cluster_upgrade_type_json.go | 12 +- .../v1/contract_dimension_list_type_json.go | 16 +- accountsmgmt/v1/contract_dimension_type.go | 23 + .../v1/contract_dimension_type_json.go | 12 +- accountsmgmt/v1/contract_list_type_json.go | 16 +- accountsmgmt/v1/contract_type.go | 23 + accountsmgmt/v1/contract_type_json.go | 16 +- .../v1/current_access_resource_json.go | 2 +- accountsmgmt/v1/date_list_type_json.go | 12 +- .../v1/default_capabilities_resource_json.go | 2 +- .../v1/default_capability_list_type_json.go | 16 +- accountsmgmt/v1/default_capability_type.go | 23 + .../v1/default_capability_type_json.go | 12 +- .../v1/deleted_subscription_list_type_json.go | 16 +- accountsmgmt/v1/deleted_subscription_type.go | 25 +- .../v1/deleted_subscription_type_json.go | 12 +- .../v1/deleted_subscriptions_resource_json.go | 2 +- .../v1/feature_toggle_list_type_json.go | 16 +- ...ure_toggle_query_request_list_type_json.go | 16 +- .../v1/feature_toggle_query_request_type.go | 23 + .../feature_toggle_query_request_type_json.go | 12 +- accountsmgmt/v1/feature_toggle_type.go | 25 +- accountsmgmt/v1/feature_toggle_type_json.go | 12 +- accountsmgmt/v1/float_list_type_json.go | 12 +- .../v1/generic_labels_resource_json.go | 2 +- ..._notify_details_response_list_type_json.go | 16 +- .../generic_notify_details_response_type.go | 25 +- ...neric_notify_details_response_type_json.go | 24 +- accountsmgmt/v1/integer_list_type_json.go | 12 +- accountsmgmt/v1/interface_list_type_json.go | 12 +- accountsmgmt/v1/label_list_type_json.go | 16 +- accountsmgmt/v1/label_type.go | 25 +- accountsmgmt/v1/label_type_json.go | 12 +- accountsmgmt/v1/labels_resource_json.go | 2 +- accountsmgmt/v1/long_list_type_json.go | 12 +- ...fication_details_request_list_type_json.go | 16 +- .../v1/notification_details_request_type.go | 23 + .../notification_details_request_type_json.go | 12 +- ...ication_details_response_list_type_json.go | 16 +- .../v1/notification_details_response_type.go | 25 +- ...notification_details_response_type_json.go | 12 +- .../v1/organization_list_type_json.go | 16 +- accountsmgmt/v1/organization_type.go | 25 +- accountsmgmt/v1/organization_type_json.go | 20 +- .../v1/organizations_resource_json.go | 2 +- accountsmgmt/v1/permission_list_type_json.go | 16 +- accountsmgmt/v1/permission_type.go | 25 +- accountsmgmt/v1/permission_type_json.go | 12 +- accountsmgmt/v1/permissions_resource_json.go | 2 +- accountsmgmt/v1/plan_id_list_type_json.go | 12 +- accountsmgmt/v1/plan_list_type_json.go | 16 +- accountsmgmt/v1/plan_type.go | 25 +- accountsmgmt/v1/plan_type_json.go | 12 +- .../v1/pull_secrets_request_list_type_json.go | 16 +- accountsmgmt/v1/pull_secrets_request_type.go | 23 + .../v1/pull_secrets_request_type_json.go | 12 +- ...ta_authorization_request_list_type_json.go | 16 +- .../v1/quota_authorization_request_type.go | 23 + .../quota_authorization_request_type_json.go | 16 +- ...a_authorization_response_list_type_json.go | 16 +- .../v1/quota_authorization_response_type.go | 23 + .../quota_authorization_response_type_json.go | 20 +- accountsmgmt/v1/quota_cost_list_type_json.go | 16 +- accountsmgmt/v1/quota_cost_resource_json.go | 2 +- accountsmgmt/v1/quota_cost_type.go | 23 + accountsmgmt/v1/quota_cost_type_json.go | 20 +- accountsmgmt/v1/quota_rules_list_type_json.go | 16 +- accountsmgmt/v1/quota_rules_resource_json.go | 2 +- accountsmgmt/v1/quota_rules_type.go | 23 + accountsmgmt/v1/quota_rules_type_json.go | 12 +- accountsmgmt/v1/registries_resource_json.go | 2 +- .../v1/registry_credential_list_type_json.go | 16 +- accountsmgmt/v1/registry_credential_type.go | 25 +- .../v1/registry_credential_type_json.go | 20 +- .../v1/registry_credentials_resource_json.go | 2 +- accountsmgmt/v1/registry_list_type_json.go | 16 +- accountsmgmt/v1/registry_type.go | 25 +- accountsmgmt/v1/registry_type_json.go | 12 +- .../v1/related_resource_list_type_json.go | 16 +- accountsmgmt/v1/related_resource_type.go | 23 + accountsmgmt/v1/related_resource_type_json.go | 12 +- .../v1/reserved_resource_list_type_json.go | 16 +- accountsmgmt/v1/reserved_resource_type.go | 23 + .../v1/reserved_resource_type_json.go | 12 +- accountsmgmt/v1/resource_list_type_json.go | 16 +- .../v1/resource_quota_list_type_json.go | 16 +- accountsmgmt/v1/resource_quota_type.go | 25 +- accountsmgmt/v1/resource_quota_type_json.go | 12 +- .../v1/resource_quotas_resource_json.go | 2 +- accountsmgmt/v1/resource_type.go | 25 +- accountsmgmt/v1/resource_type_json.go | 12 +- .../v1/role_binding_list_type_json.go | 16 +- accountsmgmt/v1/role_binding_type.go | 25 +- accountsmgmt/v1/role_binding_type_json.go | 28 +- .../v1/role_bindings_resource_json.go | 2 +- accountsmgmt/v1/role_list_type_json.go | 16 +- accountsmgmt/v1/role_type.go | 25 +- accountsmgmt/v1/role_type_json.go | 16 +- accountsmgmt/v1/roles_resource_json.go | 2 +- accountsmgmt/v1/sku_rule_list_type_json.go | 16 +- accountsmgmt/v1/sku_rule_type.go | 25 +- accountsmgmt/v1/sku_rule_type_json.go | 12 +- accountsmgmt/v1/sku_rules_resource_json.go | 2 +- accountsmgmt/v1/string_list_type_json.go | 12 +- .../v1/subscription_list_type_json.go | 16 +- .../v1/subscription_metrics_list_type_json.go | 16 +- accountsmgmt/v1/subscription_metrics_type.go | 23 + .../v1/subscription_metrics_type_json.go | 48 +- ...ubscription_registration_list_type_json.go | 16 +- .../v1/subscription_registration_type.go | 23 + .../v1/subscription_registration_type_json.go | 12 +- ...iption_reserved_resources_resource_json.go | 2 +- accountsmgmt/v1/subscription_type.go | 25 +- accountsmgmt/v1/subscription_type_json.go | 36 +- .../v1/subscriptions_resource_json.go | 2 +- .../v1/summary_dashboard_list_type_json.go | 16 +- accountsmgmt/v1/summary_dashboard_type.go | 25 +- .../v1/summary_dashboard_type_json.go | 16 +- .../v1/summary_metrics_list_type_json.go | 16 +- accountsmgmt/v1/summary_metrics_type.go | 23 + accountsmgmt/v1/summary_metrics_type_json.go | 16 +- .../v1/summary_sample_list_type_json.go | 16 +- accountsmgmt/v1/summary_sample_type.go | 23 + accountsmgmt/v1/summary_sample_type_json.go | 12 +- .../v1/support_case_request_list_type_json.go | 16 +- accountsmgmt/v1/support_case_request_type.go | 25 +- .../v1/support_case_request_type_json.go | 12 +- .../support_case_response_list_type_json.go | 16 +- accountsmgmt/v1/support_case_response_type.go | 25 +- .../v1/support_case_response_type_json.go | 12 +- .../v1/template_parameter_list_type_json.go | 16 +- accountsmgmt/v1/template_parameter_type.go | 23 + .../v1/template_parameter_type_json.go | 12 +- ...en_authorization_request_list_type_json.go | 16 +- .../v1/token_authorization_request_type.go | 23 + .../token_authorization_request_type_json.go | 12 +- ...n_authorization_response_list_type_json.go | 16 +- .../v1/token_authorization_response_type.go | 23 + .../token_authorization_response_type_json.go | 16 +- accountsmgmt/v1/value_unit_list_type_json.go | 16 +- accountsmgmt/v1/value_unit_type.go | 23 + accountsmgmt/v1/value_unit_type_json.go | 12 +- ...dditional_catalog_source_list_type_json.go | 16 +- .../v1/additional_catalog_source_type.go | 23 + .../v1/additional_catalog_source_type_json.go | 12 +- addonsmgmt/v1/addon_config_list_type_json.go | 16 +- addonsmgmt/v1/addon_config_type.go | 23 + addonsmgmt/v1/addon_config_type_json.go | 20 +- ...don_environment_variable_list_type_json.go | 16 +- .../v1/addon_environment_variable_type.go | 23 + .../addon_environment_variable_type_json.go | 12 +- .../v1/addon_inquiries_resource_json.go | 2 +- .../v1/addon_install_mode_list_type_json.go | 12 +- ...don_installation_billing_list_type_json.go | 16 +- .../v1/addon_installation_billing_type.go | 23 + .../addon_installation_billing_type_json.go | 12 +- .../v1/addon_installation_list_type_json.go | 16 +- ...n_installation_parameter_list_type_json.go | 16 +- .../v1/addon_installation_parameter_type.go | 23 + .../addon_installation_parameter_type_json.go | 12 +- ..._installation_parameters_list_type_json.go | 16 +- .../v1/addon_installation_parameters_type.go | 23 + ...addon_installation_parameters_type_json.go | 16 +- ...addon_installation_state_list_type_json.go | 12 +- addonsmgmt/v1/addon_installation_type.go | 25 +- addonsmgmt/v1/addon_installation_type_json.go | 36 +- .../v1/addon_installations_resource_json.go | 2 +- addonsmgmt/v1/addon_list_type_json.go | 16 +- .../v1/addon_namespace_list_type_json.go | 16 +- addonsmgmt/v1/addon_namespace_type.go | 23 + addonsmgmt/v1/addon_namespace_type_json.go | 12 +- .../v1/addon_parameter_list_type_json.go | 16 +- .../addon_parameter_option_list_type_json.go | 16 +- addonsmgmt/v1/addon_parameter_option_type.go | 23 + .../v1/addon_parameter_option_type_json.go | 16 +- addonsmgmt/v1/addon_parameter_type.go | 23 + addonsmgmt/v1/addon_parameter_type_json.go | 24 +- ...don_parameter_value_type_list_type_json.go | 12 +- .../v1/addon_parameters_list_type_json.go | 16 +- addonsmgmt/v1/addon_parameters_type.go | 23 + addonsmgmt/v1/addon_parameters_type_json.go | 16 +- .../v1/addon_requirement_list_type_json.go | 16 +- ...don_requirement_resource_list_type_json.go | 12 +- ...addon_requirement_status_list_type_json.go | 16 +- .../v1/addon_requirement_status_type.go | 23 + .../v1/addon_requirement_status_type_json.go | 16 +- addonsmgmt/v1/addon_requirement_type.go | 23 + addonsmgmt/v1/addon_requirement_type_json.go | 16 +- ...addon_secret_propagation_list_type_json.go | 16 +- .../v1/addon_secret_propagation_type.go | 23 + .../v1/addon_secret_propagation_type_json.go | 12 +- .../addon_status_condition_list_type_json.go | 16 +- addonsmgmt/v1/addon_status_condition_type.go | 23 + .../v1/addon_status_condition_type_json.go | 12 +- ...on_status_condition_type_list_type_json.go | 12 +- ...n_status_condition_value_list_type_json.go | 12 +- addonsmgmt/v1/addon_status_list_type_json.go | 16 +- addonsmgmt/v1/addon_status_type.go | 25 +- addonsmgmt/v1/addon_status_type_json.go | 16 +- addonsmgmt/v1/addon_statuses_resource_json.go | 2 +- .../v1/addon_sub_operator_list_type_json.go | 16 +- addonsmgmt/v1/addon_sub_operator_type.go | 23 + addonsmgmt/v1/addon_sub_operator_type_json.go | 16 +- addonsmgmt/v1/addon_type.go | 25 +- addonsmgmt/v1/addon_type_json.go | 44 +- addonsmgmt/v1/addon_version_list_type_json.go | 16 +- addonsmgmt/v1/addon_version_type.go | 25 +- addonsmgmt/v1/addon_version_type_json.go | 44 +- addonsmgmt/v1/addon_versions_resource_json.go | 2 +- addonsmgmt/v1/addons_resource_json.go | 2 +- addonsmgmt/v1/billing_model_list_type_json.go | 12 +- addonsmgmt/v1/boolean_list_type_json.go | 12 +- .../v1/credential_request_list_type_json.go | 16 +- addonsmgmt/v1/credential_request_type.go | 23 + addonsmgmt/v1/credential_request_type_json.go | 16 +- addonsmgmt/v1/date_list_type_json.go | 12 +- addonsmgmt/v1/float_list_type_json.go | 12 +- addonsmgmt/v1/integer_list_type_json.go | 12 +- addonsmgmt/v1/interface_list_type_json.go | 12 +- addonsmgmt/v1/long_list_type_json.go | 12 +- .../v1/metrics_federation_list_type_json.go | 16 +- addonsmgmt/v1/metrics_federation_type.go | 23 + addonsmgmt/v1/metrics_federation_type_json.go | 16 +- .../v1/monitoring_stack_list_type_json.go | 16 +- ...onitoring_stack_resource_list_type_json.go | 16 +- .../v1/monitoring_stack_resource_type.go | 23 + .../v1/monitoring_stack_resource_type_json.go | 12 +- ...nitoring_stack_resources_list_type_json.go | 16 +- .../v1/monitoring_stack_resources_type.go | 23 + .../monitoring_stack_resources_type_json.go | 20 +- addonsmgmt/v1/monitoring_stack_type.go | 23 + addonsmgmt/v1/monitoring_stack_type_json.go | 16 +- .../v1/object_reference_list_type_json.go | 16 +- addonsmgmt/v1/object_reference_type.go | 23 + addonsmgmt/v1/object_reference_type_json.go | 12 +- addonsmgmt/v1/string_list_type_json.go | 12 +- arohcp/client.go | 50 + arohcp/v1alpha1/audit_log_builder.go | 63 + arohcp/v1alpha1/audit_log_list_builder.go | 71 + arohcp/v1alpha1/audit_log_list_type_json.go | 75 + arohcp/v1alpha1/audit_log_type.go | 165 + arohcp/v1alpha1/audit_log_type_json.go | 86 + arohcp/v1alpha1/aws_builder.go | 386 ++ .../v1alpha1/aws_etcd_encryption_builder.go | 63 + .../aws_etcd_encryption_list_builder.go | 71 + .../aws_etcd_encryption_list_type_json.go | 75 + arohcp/v1alpha1/aws_etcd_encryption_type.go | 165 + .../v1alpha1/aws_etcd_encryption_type_json.go | 86 + arohcp/v1alpha1/aws_list_builder.go | 71 + arohcp/v1alpha1/aws_list_type_json.go | 75 + arohcp/v1alpha1/aws_shard_builder.go | 72 + arohcp/v1alpha1/aws_shard_list_builder.go | 71 + arohcp/v1alpha1/aws_shard_list_type_json.go | 75 + arohcp/v1alpha1/aws_shard_type.go | 165 + arohcp/v1alpha1/aws_shard_type_json.go | 86 + arohcp/v1alpha1/aws_type.go | 645 ++ arohcp/v1alpha1/aws_type_json.go | 376 ++ arohcp/v1alpha1/aws_volume_builder.go | 73 + arohcp/v1alpha1/aws_volume_list_builder.go | 71 + arohcp/v1alpha1/aws_volume_list_type_json.go | 75 + arohcp/v1alpha1/aws_volume_type.go | 189 + arohcp/v1alpha1/aws_volume_type_json.go | 99 + arohcp/v1alpha1/azure_builder.go | 174 + ..._control_plane_managed_identity_builder.go | 84 + ...rol_plane_managed_identity_list_builder.go | 71 + ...l_plane_managed_identity_list_type_json.go | 75 + ...ure_control_plane_managed_identity_type.go | 244 + ...ontrol_plane_managed_identity_type_json.go | 112 + ...ure_data_plane_managed_identity_builder.go | 64 + ...ata_plane_managed_identity_list_builder.go | 71 + ...a_plane_managed_identity_list_type_json.go | 75 + .../azure_data_plane_managed_identity_type.go | 192 + ...e_data_plane_managed_identity_type_json.go | 86 + arohcp/v1alpha1/azure_list_builder.go | 71 + arohcp/v1alpha1/azure_list_type_json.go | 75 + ...ure_nodes_outbound_connectivity_builder.go | 63 + ...odes_outbound_connectivity_list_builder.go | 71 + ...es_outbound_connectivity_list_type_json.go | 75 + .../azure_nodes_outbound_connectivity_type.go | 169 + ...e_nodes_outbound_connectivity_type_json.go | 86 + .../azure_operators_authentication_builder.go | 81 + ...e_operators_authentication_list_builder.go | 71 + ...operators_authentication_list_type_json.go | 75 + ...thentication_managed_identities_builder.go | 149 + ...ication_managed_identities_list_builder.go | 71 + ...ation_managed_identities_list_type_json.go | 75 + ..._authentication_managed_identities_type.go | 277 + ...entication_managed_identities_type_json.go | 182 + .../azure_operators_authentication_type.go | 170 + ...zure_operators_authentication_type_json.go | 86 + .../azure_service_managed_identity_builder.go | 84 + ...e_service_managed_identity_list_builder.go | 71 + ...service_managed_identity_list_type_json.go | 75 + .../azure_service_managed_identity_type.go | 244 + ...zure_service_managed_identity_type_json.go | 112 + arohcp/v1alpha1/azure_type.go | 485 ++ arohcp/v1alpha1/azure_type_json.go | 190 + .../v1alpha1/billing_model_list_type_json.go | 76 + arohcp/v1alpha1/billing_model_type.go | 38 + arohcp/v1alpha1/boolean_list_type_json.go | 75 + arohcp/v1alpha1/byo_oidc_builder.go | 63 + arohcp/v1alpha1/byo_oidc_list_builder.go | 71 + arohcp/v1alpha1/byo_oidc_list_type_json.go | 75 + arohcp/v1alpha1/byo_oidc_type.go | 175 + arohcp/v1alpha1/byo_oidc_type_json.go | 86 + arohcp/v1alpha1/ccs_builder.go | 97 + arohcp/v1alpha1/ccs_list_builder.go | 71 + arohcp/v1alpha1/ccs_list_type_json.go | 75 + arohcp/v1alpha1/ccs_type.go | 289 + arohcp/v1alpha1/ccs_type_json.go | 133 + arohcp/v1alpha1/cloud_provider_builder.go | 125 + .../v1alpha1/cloud_provider_list_builder.go | 71 + .../v1alpha1/cloud_provider_list_type_json.go | 75 + arohcp/v1alpha1/cloud_provider_type.go | 315 + arohcp/v1alpha1/cloud_provider_type_json.go | 146 + arohcp/v1alpha1/cloud_region_builder.go | 193 + arohcp/v1alpha1/cloud_region_list_builder.go | 71 + .../v1alpha1/cloud_region_list_type_json.go | 75 + arohcp/v1alpha1/cloud_region_type.go | 495 ++ arohcp/v1alpha1/cloud_region_type_json.go | 238 + arohcp/v1alpha1/cluster_api_builder.go | 75 + arohcp/v1alpha1/cluster_api_list_builder.go | 71 + arohcp/v1alpha1/cluster_api_list_type_json.go | 75 + arohcp/v1alpha1/cluster_api_type.go | 189 + arohcp/v1alpha1/cluster_api_type_json.go | 100 + arohcp/v1alpha1/cluster_builder.go | 1337 ++++ arohcp/v1alpha1/cluster_client.go | 602 ++ ...uster_configuration_mode_list_type_json.go | 76 + .../cluster_configuration_mode_type.go | 31 + arohcp/v1alpha1/cluster_console_builder.go | 63 + .../v1alpha1/cluster_console_list_builder.go | 71 + .../cluster_console_list_type_json.go | 75 + arohcp/v1alpha1/cluster_console_type.go | 165 + arohcp/v1alpha1/cluster_console_type_json.go | 86 + .../cluster_health_state_list_type_json.go | 76 + arohcp/v1alpha1/cluster_health_state_type.go | 32 + arohcp/v1alpha1/cluster_list_builder.go | 71 + arohcp/v1alpha1/cluster_list_type_json.go | 75 + arohcp/v1alpha1/cluster_nodes_builder.go | 289 + arohcp/v1alpha1/cluster_nodes_list_builder.go | 71 + .../v1alpha1/cluster_nodes_list_type_json.go | 75 + arohcp/v1alpha1/cluster_nodes_type.go | 433 ++ arohcp/v1alpha1/cluster_nodes_type_json.go | 258 + .../cluster_registry_config_builder.go | 173 + .../cluster_registry_config_list_builder.go | 71 + .../cluster_registry_config_list_type_json.go | 75 + .../v1alpha1/cluster_registry_config_type.go | 275 + .../cluster_registry_config_type_json.go | 154 + arohcp/v1alpha1/cluster_resource_json.go | 45 + .../v1alpha1/cluster_state_list_type_json.go | 76 + arohcp/v1alpha1/cluster_state_type.go | 48 + arohcp/v1alpha1/cluster_status_builder.go | 173 + .../v1alpha1/cluster_status_list_builder.go | 71 + .../v1alpha1/cluster_status_list_type_json.go | 75 + arohcp/v1alpha1/cluster_status_type.go | 457 ++ arohcp/v1alpha1/cluster_status_type_json.go | 226 + arohcp/v1alpha1/cluster_type.go | 1739 +++++ arohcp/v1alpha1/cluster_type_json.go | 1076 ++++ arohcp/v1alpha1/clusters_client.go | 510 ++ arohcp/v1alpha1/clusters_resource_json.go | 69 + arohcp/v1alpha1/date_list_type_json.go | 80 + arohcp/v1alpha1/delete_protection_builder.go | 63 + .../delete_protection_list_builder.go | 71 + .../delete_protection_list_type_json.go | 75 + arohcp/v1alpha1/delete_protection_type.go | 173 + .../v1alpha1/delete_protection_type_json.go | 86 + arohcp/v1alpha1/dns_builder.go | 63 + arohcp/v1alpha1/dns_list_builder.go | 71 + arohcp/v1alpha1/dns_list_type_json.go | 75 + arohcp/v1alpha1/dns_type.go | 251 + arohcp/v1alpha1/dns_type_json.go | 86 + ...c_2_metadata_http_tokens_list_type_json.go | 76 + .../ec_2_metadata_http_tokens_type.go | 30 + arohcp/v1alpha1/errors.go | 20 + .../v1alpha1/external_auth_config_builder.go | 86 + .../external_auth_config_list_builder.go | 71 + .../external_auth_config_list_type_json.go | 75 + arohcp/v1alpha1/external_auth_config_type.go | 199 + .../external_auth_config_type_json.go | 120 + .../external_configuration_builder.go | 114 + .../external_configuration_list_builder.go | 71 + .../external_configuration_list_type_json.go | 75 + .../v1alpha1/external_configuration_type.go | 217 + .../external_configuration_type_json.go | 173 + arohcp/v1alpha1/float_list_type_json.go | 75 + arohcp/v1alpha1/gcp_authentication_builder.go | 83 + .../gcp_authentication_list_builder.go | 71 + .../gcp_authentication_list_type_json.go | 75 + arohcp/v1alpha1/gcp_authentication_type.go | 213 + .../v1alpha1/gcp_authentication_type_json.go | 112 + arohcp/v1alpha1/gcp_builder.go | 228 + arohcp/v1alpha1/gcp_encryption_key_builder.go | 93 + .../gcp_encryption_key_list_builder.go | 71 + .../gcp_encryption_key_list_type_json.go | 75 + arohcp/v1alpha1/gcp_encryption_key_type.go | 237 + .../v1alpha1/gcp_encryption_key_type_json.go | 125 + arohcp/v1alpha1/gcp_list_builder.go | 71 + arohcp/v1alpha1/gcp_list_type_json.go | 75 + arohcp/v1alpha1/gcp_network_builder.go | 93 + arohcp/v1alpha1/gcp_network_list_builder.go | 71 + arohcp/v1alpha1/gcp_network_list_type_json.go | 75 + arohcp/v1alpha1/gcp_network_type.go | 237 + arohcp/v1alpha1/gcp_network_type_json.go | 125 + .../gcp_private_service_connect_builder.go | 63 + ...cp_private_service_connect_list_builder.go | 71 + ..._private_service_connect_list_type_json.go | 75 + .../gcp_private_service_connect_type.go | 165 + .../gcp_private_service_connect_type_json.go | 86 + arohcp/v1alpha1/gcp_security_builder.go | 63 + arohcp/v1alpha1/gcp_security_list_builder.go | 71 + .../v1alpha1/gcp_security_list_type_json.go | 75 + arohcp/v1alpha1/gcp_security_type.go | 165 + arohcp/v1alpha1/gcp_security_type_json.go | 86 + arohcp/v1alpha1/gcp_type.go | 453 ++ arohcp/v1alpha1/gcp_type_json.go | 242 + arohcp/v1alpha1/gcp_volume_builder.go | 63 + arohcp/v1alpha1/gcp_volume_list_builder.go | 71 + arohcp/v1alpha1/gcp_volume_list_type_json.go | 75 + arohcp/v1alpha1/gcp_volume_type.go | 165 + arohcp/v1alpha1/gcp_volume_type_json.go | 86 + .../ht_passwd_identity_provider_builder.go | 96 + ...t_passwd_identity_provider_list_builder.go | 71 + ...passwd_identity_provider_list_type_json.go | 75 + .../ht_passwd_identity_provider_type.go | 217 + .../ht_passwd_identity_provider_type_json.go | 133 + arohcp/v1alpha1/hypershift_builder.go | 63 + arohcp/v1alpha1/hypershift_list_builder.go | 71 + arohcp/v1alpha1/hypershift_list_type_json.go | 75 + arohcp/v1alpha1/hypershift_type.go | 175 + arohcp/v1alpha1/hypershift_type_json.go | 86 + arohcp/v1alpha1/instance_iam_roles_builder.go | 73 + .../instance_iam_roles_list_builder.go | 71 + .../instance_iam_roles_list_type_json.go | 75 + arohcp/v1alpha1/instance_iam_roles_type.go | 189 + .../v1alpha1/instance_iam_roles_type_json.go | 99 + arohcp/v1alpha1/integer_list_type_json.go | 75 + arohcp/v1alpha1/interface_list_type_json.go | 76 + arohcp/v1alpha1/kubelet_config_builder.go | 100 + .../v1alpha1/kubelet_config_list_builder.go | 71 + .../v1alpha1/kubelet_config_list_type_json.go | 75 + arohcp/v1alpha1/kubelet_config_type.go | 294 + arohcp/v1alpha1/kubelet_config_type_json.go | 133 + .../listening_method_list_type_json.go | 76 + arohcp/v1alpha1/listening_method_type.go | 30 + arohcp/v1alpha1/long_list_type_json.go | 75 + .../machine_pool_autoscaling_builder.go | 99 + .../machine_pool_autoscaling_list_builder.go | 71 + ...machine_pool_autoscaling_list_type_json.go | 75 + .../v1alpha1/machine_pool_autoscaling_type.go | 289 + .../machine_pool_autoscaling_type_json.go | 133 + ...hine_pool_security_group_filter_builder.go | 73 + ...pool_security_group_filter_list_builder.go | 71 + ...ol_security_group_filter_list_type_json.go | 75 + ...machine_pool_security_group_filter_type.go | 181 + ...ne_pool_security_group_filter_type_json.go | 99 + arohcp/v1alpha1/machine_type_builder.go | 253 + .../machine_type_category_list_type_json.go | 76 + arohcp/v1alpha1/machine_type_category_type.go | 34 + arohcp/v1alpha1/machine_type_list_builder.go | 71 + .../v1alpha1/machine_type_list_type_json.go | 75 + .../machine_type_size_list_type_json.go | 76 + arohcp/v1alpha1/machine_type_size_type.go | 32 + arohcp/v1alpha1/machine_type_type.go | 465 ++ arohcp/v1alpha1/machine_type_type_json.go | 228 + arohcp/v1alpha1/managed_service_builder.go | 63 + .../v1alpha1/managed_service_list_builder.go | 71 + .../managed_service_list_type_json.go | 75 + arohcp/v1alpha1/managed_service_type.go | 169 + arohcp/v1alpha1/managed_service_type_json.go | 86 + arohcp/v1alpha1/metadata_client.go | 141 + arohcp/v1alpha1/metadata_reader.go | 76 + arohcp/v1alpha1/metadata_type.go | 44 + arohcp/v1alpha1/network_builder.go | 103 + arohcp/v1alpha1/network_list_builder.go | 71 + arohcp/v1alpha1/network_list_type_json.go | 75 + arohcp/v1alpha1/network_type.go | 261 + arohcp/v1alpha1/network_type_json.go | 138 + arohcp/v1alpha1/oidc_config_builder.go | 167 + arohcp/v1alpha1/oidc_config_list_builder.go | 71 + arohcp/v1alpha1/oidc_config_list_type_json.go | 75 + arohcp/v1alpha1/oidc_config_type.go | 409 ++ arohcp/v1alpha1/oidc_config_type_json.go | 229 + arohcp/v1alpha1/openapi.go | 5621 +++++++++++++++++ arohcp/v1alpha1/operator_iam_role_builder.go | 103 + .../operator_iam_role_list_builder.go | 71 + .../operator_iam_role_list_type_json.go | 75 + arohcp/v1alpha1/operator_iam_role_type.go | 261 + .../v1alpha1/operator_iam_role_type_json.go | 138 + ...vate_link_cluster_configuration_builder.go | 79 + ...link_cluster_configuration_list_builder.go | 71 + ...nk_cluster_configuration_list_type_json.go | 75 + ...private_link_cluster_configuration_type.go | 165 + ...te_link_cluster_configuration_type_json.go | 86 + .../private_link_principal_builder.go | 87 + .../private_link_principal_list_builder.go | 71 + .../private_link_principal_list_type_json.go | 75 + .../v1alpha1/private_link_principal_type.go | 263 + .../private_link_principal_type_json.go | 120 + .../v1alpha1/processor_type_list_type_json.go | 76 + arohcp/v1alpha1/processor_type_type.go | 30 + arohcp/v1alpha1/provision_shard_builder.go | 295 + .../v1alpha1/provision_shard_list_builder.go | 71 + .../provision_shard_list_type_json.go | 75 + ...provision_shard_topology_list_type_json.go | 76 + .../v1alpha1/provision_shard_topology_type.go | 28 + arohcp/v1alpha1/provision_shard_type.go | 541 ++ arohcp/v1alpha1/provision_shard_type_json.go | 273 + arohcp/v1alpha1/proxy_builder.go | 83 + arohcp/v1alpha1/proxy_list_builder.go | 71 + arohcp/v1alpha1/proxy_list_type_json.go | 75 + arohcp/v1alpha1/proxy_type.go | 215 + arohcp/v1alpha1/proxy_type_json.go | 112 + arohcp/v1alpha1/registry_allowlist_builder.go | 137 + .../registry_allowlist_list_builder.go | 71 + .../registry_allowlist_list_type_json.go | 75 + arohcp/v1alpha1/registry_allowlist_type.go | 317 + .../v1alpha1/registry_allowlist_type_json.go | 151 + arohcp/v1alpha1/registry_location_builder.go | 74 + .../registry_location_list_builder.go | 71 + .../registry_location_list_type_json.go | 75 + arohcp/v1alpha1/registry_location_type.go | 196 + .../v1alpha1/registry_location_type_json.go | 99 + arohcp/v1alpha1/registry_sources_builder.go | 112 + .../v1alpha1/registry_sources_list_builder.go | 71 + .../registry_sources_list_type_json.go | 75 + arohcp/v1alpha1/registry_sources_type.go | 237 + arohcp/v1alpha1/registry_sources_type_json.go | 112 + arohcp/v1alpha1/root_client.go | 59 + arohcp/v1alpha1/root_resource_json.go | 20 + arohcp/v1alpha1/root_volume_builder.go | 103 + arohcp/v1alpha1/root_volume_list_builder.go | 71 + arohcp/v1alpha1/root_volume_list_type_json.go | 75 + arohcp/v1alpha1/root_volume_type.go | 189 + arohcp/v1alpha1/root_volume_type_json.go | 99 + arohcp/v1alpha1/server_config_builder.go | 134 + arohcp/v1alpha1/server_config_list_builder.go | 71 + .../v1alpha1/server_config_list_type_json.go | 75 + arohcp/v1alpha1/server_config_type.go | 337 + arohcp/v1alpha1/server_config_type_json.go | 160 + arohcp/v1alpha1/string_list_type_json.go | 75 + arohcp/v1alpha1/sts_builder.go | 219 + arohcp/v1alpha1/sts_list_builder.go | 71 + arohcp/v1alpha1/sts_list_type_json.go | 75 + arohcp/v1alpha1/sts_type.go | 429 ++ arohcp/v1alpha1/sts_type_json.go | 229 + arohcp/v1alpha1/value_builder.go | 90 + arohcp/v1alpha1/value_list_builder.go | 71 + arohcp/v1alpha1/value_list_type_json.go | 75 + arohcp/v1alpha1/value_type.go | 206 + arohcp/v1alpha1/value_type_json.go | 99 + .../access_review_request_list_type_json.go | 16 +- .../v1/access_review_request_type.go | 23 + .../v1/access_review_request_type_json.go | 12 +- .../access_review_response_list_type_json.go | 16 +- .../v1/access_review_response_type.go | 23 + .../v1/access_review_response_type_json.go | 12 +- authorizations/v1/boolean_list_type_json.go | 12 +- ...apability_review_request_list_type_json.go | 16 +- .../v1/capability_review_request_type.go | 23 + .../v1/capability_review_request_type_json.go | 12 +- ...pability_review_response_list_type_json.go | 16 +- .../v1/capability_review_response_type.go | 23 + .../capability_review_response_type_json.go | 12 +- authorizations/v1/date_list_type_json.go | 12 +- ...t_control_review_request_list_type_json.go | 16 +- .../v1/export_control_review_request_type.go | 23 + ...export_control_review_request_type_json.go | 12 +- ..._control_review_response_list_type_json.go | 16 +- .../v1/export_control_review_response_type.go | 23 + ...xport_control_review_response_type_json.go | 12 +- .../feature_review_request_list_type_json.go | 16 +- .../v1/feature_review_request_type.go | 23 + .../v1/feature_review_request_type_json.go | 12 +- .../feature_review_response_list_type_json.go | 16 +- .../v1/feature_review_response_type.go | 23 + .../v1/feature_review_response_type_json.go | 12 +- authorizations/v1/float_list_type_json.go | 12 +- authorizations/v1/integer_list_type_json.go | 12 +- authorizations/v1/interface_list_type_json.go | 12 +- authorizations/v1/long_list_type_json.go | 12 +- .../v1/resource_review_list_type_json.go | 16 +- .../resource_review_request_list_type_json.go | 16 +- .../v1/resource_review_request_type.go | 23 + .../v1/resource_review_request_type_json.go | 16 +- authorizations/v1/resource_review_type.go | 23 + .../v1/resource_review_type_json.go | 28 +- ...lf_access_review_request_list_type_json.go | 16 +- .../v1/self_access_review_request_type.go | 23 + .../self_access_review_request_type_json.go | 12 +- ...f_access_review_response_list_type_json.go | 16 +- .../v1/self_access_review_response_type.go | 23 + .../self_access_review_response_type_json.go | 12 +- ...apability_review_request_list_type_json.go | 16 +- .../v1/self_capability_review_request_type.go | 23 + ...elf_capability_review_request_type_json.go | 12 +- ...pability_review_response_list_type_json.go | 16 +- .../self_capability_review_response_type.go | 23 + ...lf_capability_review_response_type_json.go | 12 +- ...f_feature_review_request_list_type_json.go | 16 +- .../v1/self_feature_review_request_type.go | 23 + .../self_feature_review_request_type_json.go | 12 +- ..._feature_review_response_list_type_json.go | 16 +- .../v1/self_feature_review_response_type.go | 23 + .../self_feature_review_response_type_json.go | 12 +- ...elf_terms_review_request_list_type_json.go | 16 +- .../v1/self_terms_review_request_type.go | 23 + .../v1/self_terms_review_request_type_json.go | 12 +- authorizations/v1/string_list_type_json.go | 12 +- .../v1/subscription_status_list_type_json.go | 12 +- .../v1/terms_review_request_list_type_json.go | 16 +- .../v1/terms_review_request_type.go | 23 + .../v1/terms_review_request_type_json.go | 12 +- .../terms_review_response_list_type_json.go | 16 +- .../v1/terms_review_response_type.go | 23 + .../v1/terms_review_response_type_json.go | 12 +- .../v1/add_on_config_list_type_json.go | 16 +- clustersmgmt/v1/add_on_config_type.go | 25 +- clustersmgmt/v1/add_on_config_type_json.go | 20 +- ..._on_environment_variable_list_type_json.go | 16 +- .../v1/add_on_environment_variable_type.go | 25 +- .../add_on_environment_variable_type_json.go | 12 +- .../v1/add_on_install_mode_list_type_json.go | 12 +- ..._on_installation_billing_list_type_json.go | 16 +- .../v1/add_on_installation_billing_type.go | 25 +- .../add_on_installation_billing_type_json.go | 12 +- .../v1/add_on_installation_list_type_json.go | 16 +- ...n_installation_parameter_list_type_json.go | 16 +- .../v1/add_on_installation_parameter_type.go | 25 +- ...add_on_installation_parameter_type_json.go | 12 +- ...dd_on_installation_state_list_type_json.go | 12 +- clustersmgmt/v1/add_on_installation_type.go | 25 +- .../v1/add_on_installation_type_json.go | 32 +- .../v1/add_on_installations_resource_json.go | 2 +- clustersmgmt/v1/add_on_list_type_json.go | 16 +- .../v1/add_on_namespace_list_type_json.go | 16 +- clustersmgmt/v1/add_on_namespace_type.go | 25 +- clustersmgmt/v1/add_on_namespace_type_json.go | 12 +- .../v1/add_on_parameter_list_type_json.go | 16 +- .../add_on_parameter_option_list_type_json.go | 16 +- .../v1/add_on_parameter_option_type.go | 23 + .../v1/add_on_parameter_option_type_json.go | 16 +- clustersmgmt/v1/add_on_parameter_type.go | 25 +- clustersmgmt/v1/add_on_parameter_type_json.go | 24 +- .../v1/add_on_requirement_list_type_json.go | 16 +- ...dd_on_requirement_status_list_type_json.go | 16 +- .../v1/add_on_requirement_status_type.go | 23 + .../v1/add_on_requirement_status_type_json.go | 16 +- clustersmgmt/v1/add_on_requirement_type.go | 23 + .../v1/add_on_requirement_type_json.go | 16 +- ...dd_on_secret_propagation_list_type_json.go | 16 +- .../v1/add_on_secret_propagation_type.go | 23 + .../v1/add_on_secret_propagation_type_json.go | 12 +- .../v1/add_on_sub_operator_list_type_json.go | 16 +- clustersmgmt/v1/add_on_sub_operator_type.go | 23 + .../v1/add_on_sub_operator_type_json.go | 12 +- clustersmgmt/v1/add_on_type.go | 25 +- clustersmgmt/v1/add_on_type_json.go | 44 +- .../v1/add_on_version_list_type_json.go | 16 +- clustersmgmt/v1/add_on_version_type.go | 25 +- clustersmgmt/v1/add_on_version_type_json.go | 40 +- .../v1/add_on_versions_resource_json.go | 2 +- clustersmgmt/v1/add_ons_resource_json.go | 2 +- ...dditional_catalog_source_list_type_json.go | 16 +- .../v1/additional_catalog_source_type.go | 23 + .../v1/additional_catalog_source_type_json.go | 12 +- .../v1/addon_inquiries_resource_json.go | 2 +- .../addon_upgrade_policies_resource_json.go | 2 +- .../v1/addon_upgrade_policy_list_type_json.go | 16 +- ...don_upgrade_policy_state_list_type_json.go | 16 +- .../v1/addon_upgrade_policy_state_type.go | 25 +- .../addon_upgrade_policy_state_type_json.go | 12 +- clustersmgmt/v1/addon_upgrade_policy_type.go | 25 +- .../v1/addon_upgrade_policy_type_json.go | 12 +- .../v1/admin_credentials_list_type_json.go | 16 +- clustersmgmt/v1/admin_credentials_type.go | 23 + .../v1/admin_credentials_type_json.go | 12 +- clustersmgmt/v1/alert_info_list_type_json.go | 16 +- clustersmgmt/v1/alert_info_type.go | 23 + clustersmgmt/v1/alert_info_type_json.go | 12 +- .../v1/alert_severity_list_type_json.go | 12 +- clustersmgmt/v1/alerts_info_list_type_json.go | 16 +- clustersmgmt/v1/alerts_info_type.go | 23 + clustersmgmt/v1/alerts_info_type_json.go | 16 +- .../v1/ami_override_list_type_json.go | 16 +- clustersmgmt/v1/ami_override_type.go | 25 +- clustersmgmt/v1/ami_override_type_json.go | 20 +- clustersmgmt/v1/audit_log_list_type_json.go | 16 +- clustersmgmt/v1/audit_log_type.go | 23 + clustersmgmt/v1/audit_log_type_json.go | 12 +- ...esource_limits_gpu_limit_list_type_json.go | 16 +- ...toscaler_resource_limits_gpu_limit_type.go | 23 + ...ler_resource_limits_gpu_limit_type_json.go | 16 +- ...toscaler_resource_limits_list_type_json.go | 16 +- .../v1/autoscaler_resource_limits_type.go | 23 + .../autoscaler_resource_limits_type_json.go | 24 +- ...scaler_scale_down_config_list_type_json.go | 16 +- .../v1/autoscaler_scale_down_config_type.go | 23 + .../autoscaler_scale_down_config_type_json.go | 12 +- ...available_regions_inquiry_resource_json.go | 2 +- .../v1/available_regions_resource_json.go | 2 +- .../v1/aws_etcd_encryption_list_type_json.go | 16 +- clustersmgmt/v1/aws_etcd_encryption_type.go | 23 + .../v1/aws_etcd_encryption_type_json.go | 12 +- clustersmgmt/v1/aws_flavour_list_type_json.go | 16 +- clustersmgmt/v1/aws_flavour_type.go | 23 + clustersmgmt/v1/aws_flavour_type_json.go | 24 +- ...ucture_access_role_grant_list_type_json.go | 16 +- ..._access_role_grant_state_list_type_json.go | 12 +- ...s_infrastructure_access_role_grant_type.go | 25 +- ...rastructure_access_role_grant_type_json.go | 16 +- ...ucture_access_role_grants_resource_json.go | 2 +- ...frastructure_access_role_list_type_json.go | 16 +- ...ucture_access_role_state_list_type_json.go | 12 +- .../v1/aws_infrastructure_access_role_type.go | 25 +- ...ws_infrastructure_access_role_type_json.go | 12 +- ...frastructure_access_roles_resource_json.go | 2 +- clustersmgmt/v1/aws_list_type_json.go | 16 +- .../v1/aws_machine_pool_list_type_json.go | 16 +- clustersmgmt/v1/aws_machine_pool_type.go | 25 +- clustersmgmt/v1/aws_machine_pool_type_json.go | 20 +- .../v1/aws_node_pool_list_type_json.go | 16 +- clustersmgmt/v1/aws_node_pool_type.go | 25 +- clustersmgmt/v1/aws_node_pool_type_json.go | 20 +- ...ion_machine_types_inquiry_resource_json.go | 2 +- clustersmgmt/v1/aws_shard_list_type_json.go | 16 +- clustersmgmt/v1/aws_shard_type.go | 23 + clustersmgmt/v1/aws_shard_type_json.go | 16 +- .../aws_spot_market_options_list_type_json.go | 16 +- .../v1/aws_spot_market_options_type.go | 25 +- .../v1/aws_spot_market_options_type_json.go | 12 +- clustersmgmt/v1/aws_type.go | 23 + clustersmgmt/v1/aws_type_json.go | 48 +- clustersmgmt/v1/aws_volume_list_type_json.go | 16 +- clustersmgmt/v1/aws_volume_type.go | 23 + clustersmgmt/v1/aws_volume_type_json.go | 12 +- .../v1/awssts_account_role_list_type_json.go | 16 +- clustersmgmt/v1/awssts_account_role_type.go | 23 + .../v1/awssts_account_role_type_json.go | 16 +- ...sts_account_roles_inquiry_resource_json.go | 2 +- .../awssts_policies_inquiry_resource_json.go | 2 +- .../v1/awssts_policy_list_type_json.go | 16 +- clustersmgmt/v1/awssts_policy_type.go | 23 + clustersmgmt/v1/awssts_policy_type_json.go | 12 +- clustersmgmt/v1/awssts_role_list_type_json.go | 16 +- clustersmgmt/v1/awssts_role_type.go | 23 + clustersmgmt/v1/awssts_role_type_json.go | 12 +- ...l_plane_managed_identity_list_type_json.go | 16 +- ...ure_control_plane_managed_identity_type.go | 23 + ...ontrol_plane_managed_identity_type_json.go | 12 +- ...a_plane_managed_identity_list_type_json.go | 16 +- .../azure_data_plane_managed_identity_type.go | 23 + ...e_data_plane_managed_identity_type_json.go | 12 +- clustersmgmt/v1/azure_list_type_json.go | 16 +- .../v1/azure_node_pool_list_type_json.go | 16 +- clustersmgmt/v1/azure_node_pool_type.go | 23 + clustersmgmt/v1/azure_node_pool_type_json.go | 12 +- ...es_outbound_connectivity_list_type_json.go | 16 +- .../azure_nodes_outbound_connectivity_type.go | 23 + ...e_nodes_outbound_connectivity_type_json.go | 12 +- ...operators_authentication_list_type_json.go | 16 +- ...ation_managed_identities_list_type_json.go | 16 +- ..._authentication_managed_identities_type.go | 23 + ...entication_managed_identities_type_json.go | 24 +- .../v1/azure_operators_authentication_type.go | 23 + ...zure_operators_authentication_type_json.go | 16 +- ...service_managed_identity_list_type_json.go | 16 +- .../v1/azure_service_managed_identity_type.go | 23 + ...zure_service_managed_identity_type_json.go | 12 +- clustersmgmt/v1/azure_type.go | 23 + clustersmgmt/v1/azure_type_json.go | 20 +- .../v1/billing_model_item_list_type_json.go | 16 +- clustersmgmt/v1/billing_model_item_type.go | 25 +- .../v1/billing_model_item_type_json.go | 12 +- .../v1/billing_model_list_type_json.go | 12 +- clustersmgmt/v1/boolean_list_type_json.go | 12 +- .../break_glass_credential_list_type_json.go | 16 +- ..._glass_credential_status_list_type_json.go | 12 +- .../v1/break_glass_credential_type.go | 25 +- .../v1/break_glass_credential_type_json.go | 12 +- .../break_glass_credentials_resource_json.go | 2 +- clustersmgmt/v1/byo_oidc_list_type_json.go | 16 +- clustersmgmt/v1/byo_oidc_type.go | 23 + clustersmgmt/v1/byo_oidc_type_json.go | 12 +- clustersmgmt/v1/ccs_list_type_json.go | 16 +- clustersmgmt/v1/ccs_type.go | 25 +- clustersmgmt/v1/ccs_type_json.go | 12 +- .../v1/client_component_list_type_json.go | 16 +- clustersmgmt/v1/client_component_type.go | 23 + clustersmgmt/v1/client_component_type_json.go | 12 +- .../v1/cloud_provider_data_list_type_json.go | 16 +- clustersmgmt/v1/cloud_provider_data_type.go | 23 + .../v1/cloud_provider_data_type_json.go | 40 +- .../v1/cloud_provider_list_type_json.go | 16 +- clustersmgmt/v1/cloud_provider_type.go | 25 +- clustersmgmt/v1/cloud_provider_type_json.go | 16 +- .../v1/cloud_providers_resource_json.go | 2 +- .../v1/cloud_region_list_type_json.go | 16 +- clustersmgmt/v1/cloud_region_type.go | 25 +- clustersmgmt/v1/cloud_region_type_json.go | 16 +- .../v1/cloud_regions_resource_json.go | 2 +- clustersmgmt/v1/cloud_vpc_list_type_json.go | 16 +- clustersmgmt/v1/cloud_vpc_type.go | 23 + clustersmgmt/v1/cloud_vpc_type_json.go | 24 +- clustersmgmt/v1/cluster_api_list_type_json.go | 16 +- clustersmgmt/v1/cluster_api_type.go | 23 + clustersmgmt/v1/cluster_api_type_json.go | 12 +- .../v1/cluster_architecture_list_type_json.go | 12 +- .../v1/cluster_autoscaler_list_type_json.go | 16 +- clustersmgmt/v1/cluster_autoscaler_type.go | 25 +- .../v1/cluster_autoscaler_type_json.go | 24 +- ...uster_configuration_mode_list_type_json.go | 12 +- .../v1/cluster_console_list_type_json.go | 16 +- clustersmgmt/v1/cluster_console_type.go | 23 + clustersmgmt/v1/cluster_console_type_json.go | 12 +- .../v1/cluster_credentials_list_type_json.go | 16 +- clustersmgmt/v1/cluster_credentials_type.go | 25 +- .../v1/cluster_credentials_type_json.go | 12 +- .../v1/cluster_deployment_list_type_json.go | 16 +- clustersmgmt/v1/cluster_deployment_type.go | 25 +- .../v1/cluster_deployment_type_json.go | 12 +- .../v1/cluster_health_state_list_type_json.go | 12 +- .../v1/cluster_link_list_type_json.go | 16 +- clustersmgmt/v1/cluster_link_type.go | 23 + clustersmgmt/v1/cluster_link_type_json.go | 12 +- clustersmgmt/v1/cluster_list_type_json.go | 16 +- .../v1/cluster_nodes_list_type_json.go | 16 +- clustersmgmt/v1/cluster_nodes_type.go | 23 + clustersmgmt/v1/cluster_nodes_type_json.go | 40 +- .../cluster_operator_info_list_type_json.go | 16 +- clustersmgmt/v1/cluster_operator_info_type.go | 23 + .../v1/cluster_operator_info_type_json.go | 12 +- .../cluster_operator_state_list_type_json.go | 12 +- .../cluster_operators_info_list_type_json.go | 16 +- .../v1/cluster_operators_info_type.go | 23 + .../v1/cluster_operators_info_type_json.go | 16 +- .../v1/cluster_registration_list_type_json.go | 16 +- clustersmgmt/v1/cluster_registration_type.go | 23 + .../v1/cluster_registration_type_json.go | 12 +- .../cluster_registry_config_list_type_json.go | 16 +- .../v1/cluster_registry_config_type.go | 23 + .../v1/cluster_registry_config_type_json.go | 24 +- .../v1/cluster_resources_list_type_json.go | 16 +- clustersmgmt/v1/cluster_resources_type.go | 25 +- .../v1/cluster_resources_type_json.go | 12 +- .../v1/cluster_state_list_type_json.go | 12 +- .../v1/cluster_status_list_type_json.go | 16 +- clustersmgmt/v1/cluster_status_type.go | 25 +- clustersmgmt/v1/cluster_status_type_json.go | 12 +- clustersmgmt/v1/cluster_type.go | 25 +- clustersmgmt/v1/cluster_type_json.go | 204 +- clustersmgmt/v1/clusters_resource_json.go | 2 +- .../v1/component_route_list_type_json.go | 16 +- clustersmgmt/v1/component_route_type.go | 25 +- clustersmgmt/v1/component_route_type_json.go | 12 +- .../v1/component_route_type_list_type_json.go | 12 +- ...ol_plane_upgrade_policies_resource_json.go | 2 +- ...rol_plane_upgrade_policy_list_type_json.go | 16 +- .../v1/control_plane_upgrade_policy_type.go | 25 +- .../control_plane_upgrade_policy_type_json.go | 16 +- ...node_role_os_metric_node_list_type_json.go | 16 +- ...cpu_total_node_role_os_metric_node_type.go | 23 + ...otal_node_role_os_metric_node_type_json.go | 16 +- ...node_role_os_metric_node_list_type_json.go | 16 +- ...pu_totals_node_role_os_metric_node_type.go | 23 + ...tals_node_role_os_metric_node_type_json.go | 16 +- .../v1/credential_request_list_type_json.go | 16 +- clustersmgmt/v1/credential_request_type.go | 23 + .../v1/credential_request_type_json.go | 16 +- clustersmgmt/v1/date_list_type_json.go | 12 +- .../v1/delete_protection_list_type_json.go | 16 +- clustersmgmt/v1/delete_protection_type.go | 23 + .../v1/delete_protection_type_json.go | 12 +- .../v1/detection_type_list_type_json.go | 12 +- clustersmgmt/v1/dns_domain_list_type_json.go | 16 +- clustersmgmt/v1/dns_domain_type.go | 25 +- clustersmgmt/v1/dns_domain_type_json.go | 20 +- clustersmgmt/v1/dns_domains_resource_json.go | 2 +- clustersmgmt/v1/dns_list_type_json.go | 16 +- clustersmgmt/v1/dns_type.go | 23 + clustersmgmt/v1/dns_type_json.go | 12 +- ...c_2_metadata_http_tokens_list_type_json.go | 12 +- .../v1/encryption_key_list_type_json.go | 16 +- clustersmgmt/v1/encryption_key_type.go | 25 +- clustersmgmt/v1/encryption_key_type_json.go | 12 +- .../encryption_keys_inquiry_resource_json.go | 2 +- clustersmgmt/v1/environment_list_type_json.go | 16 +- clustersmgmt/v1/environment_type.go | 23 + clustersmgmt/v1/environment_type_json.go | 12 +- clustersmgmt/v1/event_list_type_json.go | 16 +- clustersmgmt/v1/event_type.go | 23 + clustersmgmt/v1/event_type_json.go | 12 +- .../v1/external_auth_claim_list_type_json.go | 16 +- clustersmgmt/v1/external_auth_claim_type.go | 23 + .../v1/external_auth_claim_type_json.go | 20 +- ...ernal_auth_client_config_list_type_json.go | 16 +- .../v1/external_auth_client_config_type.go | 23 + .../external_auth_client_config_type_json.go | 20 +- .../v1/external_auth_config_list_type_json.go | 16 +- clustersmgmt/v1/external_auth_config_type.go | 23 + .../v1/external_auth_config_type_json.go | 20 +- .../v1/external_auth_list_type_json.go | 16 +- clustersmgmt/v1/external_auth_type.go | 25 +- clustersmgmt/v1/external_auth_type_json.go | 24 +- .../v1/external_auths_resource_json.go | 2 +- .../external_configuration_list_type_json.go | 16 +- .../v1/external_configuration_type.go | 23 + .../v1/external_configuration_type_json.go | 36 +- clustersmgmt/v1/flavour_list_type_json.go | 16 +- .../v1/flavour_nodes_list_type_json.go | 16 +- clustersmgmt/v1/flavour_nodes_type.go | 23 + clustersmgmt/v1/flavour_nodes_type_json.go | 12 +- clustersmgmt/v1/flavour_type.go | 25 +- clustersmgmt/v1/flavour_type_json.go | 28 +- clustersmgmt/v1/flavours_resource_json.go | 2 +- clustersmgmt/v1/float_list_type_json.go | 12 +- .../v1/gcp_authentication_list_type_json.go | 16 +- clustersmgmt/v1/gcp_authentication_type.go | 23 + .../v1/gcp_authentication_type_json.go | 12 +- .../v1/gcp_encryption_key_list_type_json.go | 16 +- clustersmgmt/v1/gcp_encryption_key_type.go | 23 + .../v1/gcp_encryption_key_type_json.go | 12 +- clustersmgmt/v1/gcp_flavour_list_type_json.go | 16 +- clustersmgmt/v1/gcp_flavour_type.go | 23 + clustersmgmt/v1/gcp_flavour_type_json.go | 24 +- .../v1/gcp_image_override_list_type_json.go | 16 +- clustersmgmt/v1/gcp_image_override_type.go | 25 +- .../v1/gcp_image_override_type_json.go | 20 +- clustersmgmt/v1/gcp_list_type_json.go | 16 +- clustersmgmt/v1/gcp_network_list_type_json.go | 16 +- clustersmgmt/v1/gcp_network_type.go | 23 + clustersmgmt/v1/gcp_network_type_json.go | 12 +- ..._private_service_connect_list_type_json.go | 16 +- .../v1/gcp_private_service_connect_type.go | 23 + .../gcp_private_service_connect_type_json.go | 12 +- ...ion_machine_types_inquiry_resource_json.go | 2 +- .../v1/gcp_security_list_type_json.go | 16 +- clustersmgmt/v1/gcp_security_type.go | 23 + clustersmgmt/v1/gcp_security_type_json.go | 12 +- clustersmgmt/v1/gcp_type.go | 23 + clustersmgmt/v1/gcp_type_json.go | 24 +- clustersmgmt/v1/gcp_volume_list_type_json.go | 16 +- clustersmgmt/v1/gcp_volume_type.go | 23 + clustersmgmt/v1/gcp_volume_type_json.go | 12 +- ...github_identity_provider_list_type_json.go | 16 +- .../v1/github_identity_provider_type.go | 23 + .../v1/github_identity_provider_type_json.go | 20 +- ...gitlab_identity_provider_list_type_json.go | 16 +- .../v1/gitlab_identity_provider_type.go | 23 + .../v1/gitlab_identity_provider_type_json.go | 12 +- ...google_identity_provider_list_type_json.go | 16 +- .../v1/google_identity_provider_type.go | 23 + .../v1/google_identity_provider_type_json.go | 12 +- clustersmgmt/v1/group_list_type_json.go | 16 +- clustersmgmt/v1/group_type.go | 25 +- clustersmgmt/v1/group_type_json.go | 20 +- .../v1/groups_claim_list_type_json.go | 16 +- clustersmgmt/v1/groups_claim_type.go | 23 + clustersmgmt/v1/groups_claim_type_json.go | 12 +- clustersmgmt/v1/groups_resource_json.go | 2 +- ...passwd_identity_provider_list_type_json.go | 16 +- .../v1/ht_passwd_identity_provider_type.go | 23 + .../ht_passwd_identity_provider_type_json.go | 20 +- .../v1/ht_passwd_user_list_type_json.go | 16 +- clustersmgmt/v1/ht_passwd_user_type.go | 23 + clustersmgmt/v1/ht_passwd_user_type_json.go | 12 +- .../v1/ht_passwd_users_resource_json.go | 6 +- .../v1/hypershift_config_list_type_json.go | 16 +- clustersmgmt/v1/hypershift_config_type.go | 23 + .../v1/hypershift_config_type_json.go | 12 +- clustersmgmt/v1/hypershift_list_type_json.go | 16 +- clustersmgmt/v1/hypershift_type.go | 23 + clustersmgmt/v1/hypershift_type_json.go | 12 +- .../v1/identity_provider_list_type_json.go | 16 +- ..._provider_mapping_method_list_type_json.go | 12 +- clustersmgmt/v1/identity_provider_type.go | 25 +- .../v1/identity_provider_type_json.go | 36 +- .../identity_provider_type_list_type_json.go | 12 +- .../v1/identity_providers_resource_json.go | 2 +- .../v1/image_overrides_list_type_json.go | 16 +- clustersmgmt/v1/image_overrides_type.go | 25 +- clustersmgmt/v1/image_overrides_type_json.go | 20 +- .../v1/inflight_check_list_type_json.go | 16 +- .../v1/inflight_check_state_list_type_json.go | 12 +- clustersmgmt/v1/inflight_check_type.go | 25 +- clustersmgmt/v1/inflight_check_type_json.go | 12 +- .../v1/inflight_checks_resource_json.go | 2 +- clustersmgmt/v1/ingress_list_type_json.go | 16 +- clustersmgmt/v1/ingress_type.go | 25 +- clustersmgmt/v1/ingress_type_json.go | 20 +- clustersmgmt/v1/ingresses_resource_json.go | 2 +- .../v1/instance_iam_roles_list_type_json.go | 16 +- clustersmgmt/v1/instance_iam_roles_type.go | 23 + .../v1/instance_iam_roles_type_json.go | 12 +- clustersmgmt/v1/integer_list_type_json.go | 12 +- clustersmgmt/v1/interface_list_type_json.go | 12 +- clustersmgmt/v1/key_ring_list_type_json.go | 16 +- clustersmgmt/v1/key_ring_type.go | 25 +- clustersmgmt/v1/key_ring_type_json.go | 12 +- .../v1/key_rings_inquiry_resource_json.go | 2 +- .../v1/kubelet_config_list_type_json.go | 16 +- clustersmgmt/v1/kubelet_config_type.go | 25 +- clustersmgmt/v1/kubelet_config_type_json.go | 12 +- .../v1/kubelet_configs_resource_json.go | 2 +- clustersmgmt/v1/label_list_type_json.go | 16 +- clustersmgmt/v1/label_type.go | 25 +- clustersmgmt/v1/label_type_json.go | 12 +- clustersmgmt/v1/labels_resource_json.go | 2 +- .../v1/ldap_attributes_list_type_json.go | 16 +- clustersmgmt/v1/ldap_attributes_type.go | 23 + clustersmgmt/v1/ldap_attributes_type_json.go | 28 +- .../ldap_identity_provider_list_type_json.go | 16 +- .../v1/ldap_identity_provider_type.go | 23 + .../v1/ldap_identity_provider_type_json.go | 16 +- .../limited_support_reason_list_type_json.go | 16 +- ..._support_reason_override_list_type_json.go | 16 +- .../limited_support_reason_override_type.go | 25 +- ...mited_support_reason_override_type_json.go | 12 +- ..._support_reason_template_list_type_json.go | 16 +- .../limited_support_reason_template_type.go | 25 +- ...mited_support_reason_template_type_json.go | 12 +- ..._support_reason_templates_resource_json.go | 2 +- .../v1/limited_support_reason_type.go | 25 +- .../v1/limited_support_reason_type_json.go | 20 +- .../limited_support_reasons_resource_json.go | 2 +- .../v1/listening_method_list_type_json.go | 12 +- .../v1/load_balancer_flavor_list_type_json.go | 12 +- ...oad_balancer_quota_values_resource_json.go | 2 +- clustersmgmt/v1/log_list_type_json.go | 16 +- clustersmgmt/v1/log_type.go | 25 +- clustersmgmt/v1/log_type_json.go | 12 +- clustersmgmt/v1/logs_resource_json.go | 2 +- clustersmgmt/v1/long_list_type_json.go | 12 +- ...machine_pool_autoscaling_list_type_json.go | 16 +- .../v1/machine_pool_autoscaling_type.go | 25 +- .../v1/machine_pool_autoscaling_type_json.go | 12 +- .../v1/machine_pool_list_type_json.go | 16 +- ...ol_security_group_filter_list_type_json.go | 16 +- ...machine_pool_security_group_filter_type.go | 23 + ...ne_pool_security_group_filter_type_json.go | 12 +- clustersmgmt/v1/machine_pool_type.go | 25 +- clustersmgmt/v1/machine_pool_type_json.go | 40 +- .../v1/machine_pools_resource_json.go | 2 +- .../machine_type_category_list_type_json.go | 12 +- .../v1/machine_type_list_type_json.go | 16 +- .../v1/machine_type_size_list_type_json.go | 12 +- clustersmgmt/v1/machine_type_type.go | 25 +- clustersmgmt/v1/machine_type_type_json.go | 24 +- .../v1/machine_types_resource_json.go | 2 +- .../v1/managed_service_list_type_json.go | 16 +- clustersmgmt/v1/managed_service_type.go | 23 + clustersmgmt/v1/managed_service_type_json.go | 12 +- clustersmgmt/v1/manifest_list_type_json.go | 16 +- clustersmgmt/v1/manifest_type.go | 25 +- clustersmgmt/v1/manifest_type_json.go | 16 +- clustersmgmt/v1/manifests_resource_json.go | 2 +- ...mespace_ownership_policy_list_type_json.go | 12 +- clustersmgmt/v1/network_list_type_json.go | 16 +- clustersmgmt/v1/network_type.go | 23 + clustersmgmt/v1/network_type_json.go | 12 +- .../v1/network_verification_list_type_json.go | 16 +- clustersmgmt/v1/network_verification_type.go | 23 + .../v1/network_verification_type_json.go | 20 +- clustersmgmt/v1/node_info_list_type_json.go | 16 +- clustersmgmt/v1/node_info_type.go | 23 + clustersmgmt/v1/node_info_type_json.go | 12 +- .../node_pool_autoscaling_list_type_json.go | 16 +- clustersmgmt/v1/node_pool_autoscaling_type.go | 25 +- .../v1/node_pool_autoscaling_type_json.go | 12 +- clustersmgmt/v1/node_pool_list_type_json.go | 16 +- ..._pool_management_upgrade_list_type_json.go | 16 +- .../v1/node_pool_management_upgrade_type.go | 25 +- .../node_pool_management_upgrade_type_json.go | 12 +- .../v1/node_pool_status_list_type_json.go | 16 +- clustersmgmt/v1/node_pool_status_type.go | 25 +- clustersmgmt/v1/node_pool_status_type_json.go | 12 +- clustersmgmt/v1/node_pool_type.go | 25 +- clustersmgmt/v1/node_pool_type_json.go | 52 +- ...ode_pool_upgrade_policies_resource_json.go | 2 +- ...node_pool_upgrade_policy_list_type_json.go | 16 +- .../v1/node_pool_upgrade_policy_type.go | 25 +- .../v1/node_pool_upgrade_policy_type_json.go | 16 +- clustersmgmt/v1/node_pools_resource_json.go | 2 +- clustersmgmt/v1/node_type_list_type_json.go | 12 +- clustersmgmt/v1/nodes_info_list_type_json.go | 16 +- clustersmgmt/v1/nodes_info_type.go | 23 + clustersmgmt/v1/nodes_info_type_json.go | 16 +- clustersmgmt/v1/oidc_config_list_type_json.go | 16 +- clustersmgmt/v1/oidc_config_type.go | 23 + clustersmgmt/v1/oidc_config_type_json.go | 12 +- clustersmgmt/v1/oidc_configs_resource_json.go | 2 +- .../oidc_thumbprint_input_list_type_json.go | 16 +- clustersmgmt/v1/oidc_thumbprint_input_type.go | 23 + .../v1/oidc_thumbprint_input_type_json.go | 12 +- .../v1/oidc_thumbprint_list_type_json.go | 16 +- clustersmgmt/v1/oidc_thumbprint_type.go | 23 + clustersmgmt/v1/oidc_thumbprint_type_json.go | 12 +- .../v1/open_id_claims_list_type_json.go | 16 +- clustersmgmt/v1/open_id_claims_type.go | 23 + clustersmgmt/v1/open_id_claims_type_json.go | 28 +- ...pen_id_identity_provider_list_type_json.go | 16 +- .../v1/open_id_identity_provider_type.go | 23 + .../v1/open_id_identity_provider_type_json.go | 20 +- .../v1/operator_iam_role_list_type_json.go | 16 +- clustersmgmt/v1/operator_iam_role_type.go | 23 + .../v1/operator_iam_role_type_json.go | 12 +- .../v1/operator_iam_roles_resource_json.go | 2 +- .../v1/organization_link_list_type_json.go | 16 +- clustersmgmt/v1/organization_link_type.go | 23 + .../v1/organization_link_type_json.go | 12 +- .../pending_delete_cluster_list_type_json.go | 16 +- .../v1/pending_delete_cluster_type.go | 25 +- .../v1/pending_delete_cluster_type_json.go | 16 +- .../pending_delete_clusters_resource_json.go | 2 +- clustersmgmt/v1/platform_list_type_json.go | 12 +- ...nk_cluster_configuration_list_type_json.go | 16 +- ...private_link_cluster_configuration_type.go | 23 + ...te_link_cluster_configuration_type_json.go | 16 +- ...ivate_link_configuration_list_type_json.go | 16 +- .../v1/private_link_configuration_type.go | 23 + .../private_link_configuration_type_json.go | 16 +- .../private_link_principal_list_type_json.go | 16 +- .../v1/private_link_principal_type.go | 25 +- .../v1/private_link_principal_type_json.go | 12 +- .../private_link_principals_list_type_json.go | 16 +- .../private_link_principals_resource_json.go | 2 +- .../v1/private_link_principals_type.go | 25 +- .../v1/private_link_principals_type_json.go | 16 +- .../v1/processor_type_list_type_json.go | 12 +- clustersmgmt/v1/product_list_type_json.go | 16 +- .../product_minimal_version_list_type_json.go | 16 +- .../v1/product_minimal_version_type.go | 25 +- .../v1/product_minimal_version_type_json.go | 12 +- .../product_minimal_versions_resource_json.go | 2 +- ...oduct_technology_preview_list_type_json.go | 16 +- .../v1/product_technology_preview_type.go | 25 +- .../product_technology_preview_type_json.go | 12 +- ...oduct_technology_previews_resource_json.go | 2 +- clustersmgmt/v1/product_type.go | 25 +- clustersmgmt/v1/product_type_json.go | 12 +- clustersmgmt/v1/products_resource_json.go | 2 +- .../v1/provision_shard_list_type_json.go | 16 +- ...provision_shard_topology_list_type_json.go | 12 +- clustersmgmt/v1/provision_shard_type.go | 25 +- clustersmgmt/v1/provision_shard_type_json.go | 36 +- .../v1/provision_shards_resource_json.go | 2 +- clustersmgmt/v1/proxy_list_type_json.go | 16 +- clustersmgmt/v1/proxy_type.go | 23 + clustersmgmt/v1/proxy_type_json.go | 12 +- .../v1/registry_allowlist_list_type_json.go | 16 +- clustersmgmt/v1/registry_allowlist_type.go | 25 +- .../v1/registry_allowlist_type_json.go | 20 +- .../v1/registry_allowlists_resource_json.go | 2 +- .../v1/registry_location_list_type_json.go | 16 +- clustersmgmt/v1/registry_location_type.go | 23 + .../v1/registry_location_type_json.go | 12 +- .../v1/registry_sources_list_type_json.go | 16 +- clustersmgmt/v1/registry_sources_type.go | 23 + clustersmgmt/v1/registry_sources_type_json.go | 24 +- .../release_image_details_list_type_json.go | 16 +- clustersmgmt/v1/release_image_details_type.go | 23 + .../v1/release_image_details_type_json.go | 16 +- .../v1/release_images_list_type_json.go | 16 +- clustersmgmt/v1/release_images_type.go | 23 + clustersmgmt/v1/release_images_type_json.go | 20 +- .../v1/resource_range_list_type_json.go | 16 +- clustersmgmt/v1/resource_range_type.go | 23 + clustersmgmt/v1/resource_range_type_json.go | 12 +- .../v1/role_policy_binding_list_type_json.go | 16 +- ...le_policy_binding_status_list_type_json.go | 16 +- .../v1/role_policy_binding_status_type.go | 23 + .../role_policy_binding_status_type_json.go | 12 +- clustersmgmt/v1/role_policy_binding_type.go | 23 + .../v1/role_policy_binding_type_json.go | 20 +- .../v1/role_policy_bindings_resource_json.go | 2 +- clustersmgmt/v1/role_policy_list_type_json.go | 16 +- clustersmgmt/v1/role_policy_type.go | 23 + clustersmgmt/v1/role_policy_type_json.go | 12 +- clustersmgmt/v1/root_volume_list_type_json.go | 16 +- clustersmgmt/v1/root_volume_type.go | 23 + clustersmgmt/v1/root_volume_type_json.go | 20 +- .../v1/schedule_type_list_type_json.go | 12 +- .../v1/security_group_list_type_json.go | 16 +- clustersmgmt/v1/security_group_type.go | 23 + clustersmgmt/v1/security_group_type_json.go | 12 +- .../v1/server_config_list_type_json.go | 16 +- clustersmgmt/v1/server_config_type.go | 25 +- clustersmgmt/v1/server_config_type_json.go | 16 +- ...node_role_os_metric_node_list_type_json.go | 16 +- ...ket_total_node_role_os_metric_node_type.go | 23 + ...otal_node_role_os_metric_node_type_json.go | 16 +- ...node_role_os_metric_node_list_type_json.go | 16 +- ...et_totals_node_role_os_metric_node_type.go | 23 + ...tals_node_role_os_metric_node_type_json.go | 16 +- .../v1/storage_quota_list_type_json.go | 16 +- clustersmgmt/v1/storage_quota_type.go | 23 + clustersmgmt/v1/storage_quota_type_json.go | 12 +- .../v1/storage_quota_values_resource_json.go | 2 +- clustersmgmt/v1/string_list_type_json.go | 12 +- .../sts_credential_request_list_type_json.go | 16 +- .../v1/sts_credential_request_type.go | 23 + .../v1/sts_credential_request_type_json.go | 16 +- ...edential_requests_inquiry_resource_json.go | 2 +- clustersmgmt/v1/sts_list_type_json.go | 16 +- .../v1/sts_operator_list_type_json.go | 16 +- clustersmgmt/v1/sts_operator_type.go | 23 + clustersmgmt/v1/sts_operator_type_json.go | 16 +- .../sts_support_jump_role_list_type_json.go | 16 +- clustersmgmt/v1/sts_support_jump_role_type.go | 23 + .../v1/sts_support_jump_role_type_json.go | 12 +- clustersmgmt/v1/sts_type.go | 23 + clustersmgmt/v1/sts_type_json.go | 24 +- ...net_network_verification_list_type_json.go | 16 +- .../v1/subnet_network_verification_type.go | 25 +- .../subnet_network_verification_type_json.go | 16 +- clustersmgmt/v1/subnetwork_list_type_json.go | 16 +- clustersmgmt/v1/subnetwork_type.go | 23 + clustersmgmt/v1/subnetwork_type_json.go | 12 +- .../v1/subscription_list_type_json.go | 16 +- clustersmgmt/v1/subscription_type.go | 25 +- clustersmgmt/v1/subscription_type_json.go | 12 +- clustersmgmt/v1/syncset_list_type_json.go | 16 +- clustersmgmt/v1/syncset_type.go | 25 +- clustersmgmt/v1/syncset_type_json.go | 16 +- clustersmgmt/v1/syncsets_resource_json.go | 2 +- clustersmgmt/v1/taint_list_type_json.go | 16 +- clustersmgmt/v1/taint_type.go | 23 + clustersmgmt/v1/taint_type_json.go | 12 +- .../v1/token_claim_mappings_list_type_json.go | 16 +- clustersmgmt/v1/token_claim_mappings_type.go | 23 + .../v1/token_claim_mappings_type_json.go | 20 +- ...en_claim_validation_rule_list_type_json.go | 16 +- .../v1/token_claim_validation_rule_type.go | 23 + .../token_claim_validation_rule_type_json.go | 12 +- .../v1/token_issuer_list_type_json.go | 16 +- clustersmgmt/v1/token_issuer_type.go | 23 + clustersmgmt/v1/token_issuer_type_json.go | 16 +- clustersmgmt/v1/trusted_ip_list_type_json.go | 16 +- clustersmgmt/v1/trusted_ip_type.go | 25 +- clustersmgmt/v1/trusted_ip_type_json.go | 12 +- clustersmgmt/v1/trusted_ips_resource_json.go | 2 +- .../v1/tuning_config_list_type_json.go | 16 +- clustersmgmt/v1/tuning_config_type.go | 25 +- clustersmgmt/v1/tuning_config_type_json.go | 12 +- .../v1/tuning_configs_resource_json.go | 2 +- .../v1/upgrade_policies_resource_json.go | 2 +- .../v1/upgrade_policy_list_type_json.go | 16 +- .../v1/upgrade_policy_state_list_type_json.go | 16 +- clustersmgmt/v1/upgrade_policy_state_type.go | 25 +- .../v1/upgrade_policy_state_type_json.go | 12 +- ...grade_policy_state_value_list_type_json.go | 12 +- clustersmgmt/v1/upgrade_policy_type.go | 25 +- clustersmgmt/v1/upgrade_policy_type_json.go | 12 +- .../v1/upgrade_type_list_type_json.go | 12 +- clustersmgmt/v1/user_list_type_json.go | 16 +- clustersmgmt/v1/user_type.go | 25 +- clustersmgmt/v1/user_type_json.go | 12 +- .../v1/username_claim_list_type_json.go | 16 +- clustersmgmt/v1/username_claim_type.go | 23 + clustersmgmt/v1/username_claim_type_json.go | 12 +- clustersmgmt/v1/users_resource_json.go | 2 +- clustersmgmt/v1/value_list_type_json.go | 16 +- clustersmgmt/v1/value_type.go | 23 + clustersmgmt/v1/value_type_json.go | 12 +- .../version_gate_agreement_list_type_json.go | 16 +- .../v1/version_gate_agreement_type.go | 25 +- .../v1/version_gate_agreement_type_json.go | 16 +- .../version_gate_agreements_resource_json.go | 2 +- .../v1/version_gate_list_type_json.go | 16 +- clustersmgmt/v1/version_gate_type.go | 25 +- clustersmgmt/v1/version_gate_type_json.go | 12 +- .../v1/version_gates_resource_json.go | 2 +- clustersmgmt/v1/version_list_type_json.go | 16 +- clustersmgmt/v1/version_type.go | 25 +- clustersmgmt/v1/version_type_json.go | 24 +- clustersmgmt/v1/versions_resource_json.go | 2 +- clustersmgmt/v1/vpcs_inquiry_resource_json.go | 2 +- .../v1/wif_access_method_list_type_json.go | 12 +- clustersmgmt/v1/wif_config_list_type_json.go | 16 +- .../v1/wif_config_status_list_type_json.go | 16 +- clustersmgmt/v1/wif_config_status_type.go | 23 + .../v1/wif_config_status_type_json.go | 12 +- clustersmgmt/v1/wif_config_type.go | 25 +- clustersmgmt/v1/wif_config_type_json.go | 24 +- clustersmgmt/v1/wif_configs_resource_json.go | 2 +- .../wif_credential_request_list_type_json.go | 16 +- .../v1/wif_credential_request_type.go | 23 + .../v1/wif_credential_request_type_json.go | 20 +- clustersmgmt/v1/wif_gcp_list_type_json.go | 16 +- clustersmgmt/v1/wif_gcp_type.go | 23 + clustersmgmt/v1/wif_gcp_type_json.go | 24 +- .../wif_identity_provider_list_type_json.go | 16 +- clustersmgmt/v1/wif_identity_provider_type.go | 23 + .../v1/wif_identity_provider_type_json.go | 16 +- clustersmgmt/v1/wif_pool_list_type_json.go | 16 +- clustersmgmt/v1/wif_pool_type.go | 23 + clustersmgmt/v1/wif_pool_type_json.go | 16 +- clustersmgmt/v1/wif_role_list_type_json.go | 16 +- clustersmgmt/v1/wif_role_type.go | 23 + clustersmgmt/v1/wif_role_type_json.go | 16 +- .../v1/wif_secret_ref_list_type_json.go | 16 +- clustersmgmt/v1/wif_secret_ref_type.go | 23 + clustersmgmt/v1/wif_secret_ref_type_json.go | 12 +- .../v1/wif_service_account_list_type_json.go | 16 +- clustersmgmt/v1/wif_service_account_type.go | 23 + .../v1/wif_service_account_type_json.go | 20 +- clustersmgmt/v1/wif_support_list_type_json.go | 16 +- clustersmgmt/v1/wif_support_type.go | 23 + clustersmgmt/v1/wif_support_type_json.go | 16 +- .../v1/wildcard_policy_list_type_json.go | 12 +- connection.go | 6 + jobqueue/v1/boolean_list_type_json.go | 12 +- jobqueue/v1/date_list_type_json.go | 12 +- jobqueue/v1/float_list_type_json.go | 12 +- jobqueue/v1/integer_list_type_json.go | 12 +- jobqueue/v1/interface_list_type_json.go | 12 +- jobqueue/v1/job_list_type_json.go | 16 +- jobqueue/v1/job_type.go | 25 +- jobqueue/v1/job_type_json.go | 12 +- jobqueue/v1/long_list_type_json.go | 12 +- jobqueue/v1/queue_list_type_json.go | 16 +- jobqueue/v1/queue_type.go | 25 +- jobqueue/v1/queue_type_json.go | 12 +- jobqueue/v1/queues_resource_json.go | 2 +- jobqueue/v1/string_list_type_json.go | 12 +- metrics/path_tree_data.go | 7 + openapi/aro_hcp/v1alpha1/openapi.json | 2087 ++++++ osdfleetmgmt/v1/boolean_list_type_json.go | 12 +- ...ter_management_reference_list_type_json.go | 16 +- .../v1/cluster_management_reference_type.go | 23 + .../cluster_management_reference_type_json.go | 12 +- osdfleetmgmt/v1/date_list_type_json.go | 12 +- osdfleetmgmt/v1/dns_list_type_json.go | 16 +- osdfleetmgmt/v1/dns_type.go | 23 + osdfleetmgmt/v1/dns_type_json.go | 12 +- osdfleetmgmt/v1/float_list_type_json.go | 12 +- osdfleetmgmt/v1/integer_list_type_json.go | 12 +- osdfleetmgmt/v1/interface_list_type_json.go | 12 +- osdfleetmgmt/v1/label_list_type_json.go | 16 +- .../v1/label_reference_list_type_json.go | 16 +- osdfleetmgmt/v1/label_reference_type.go | 23 + osdfleetmgmt/v1/label_reference_type_json.go | 12 +- .../label_request_payload_list_type_json.go | 16 +- osdfleetmgmt/v1/label_request_payload_type.go | 23 + .../v1/label_request_payload_type_json.go | 12 +- osdfleetmgmt/v1/label_type.go | 25 +- osdfleetmgmt/v1/label_type_json.go | 12 +- osdfleetmgmt/v1/labels_resource_json.go | 2 +- osdfleetmgmt/v1/long_list_type_json.go | 12 +- .../v1/management_cluster_list_type_json.go | 16 +- ...anagement_cluster_parent_list_type_json.go | 16 +- .../v1/management_cluster_parent_type.go | 23 + .../v1/management_cluster_parent_type_json.go | 12 +- ..._cluster_request_payload_list_type_json.go | 16 +- ...management_cluster_request_payload_type.go | 23 + ...ement_cluster_request_payload_type_json.go | 12 +- osdfleetmgmt/v1/management_cluster_type.go | 25 +- .../v1/management_cluster_type_json.go | 28 +- .../v1/management_clusters_resource_json.go | 2 +- ...rovision_shard_reference_list_type_json.go | 16 +- .../v1/provision_shard_reference_type.go | 23 + .../v1/provision_shard_reference_type_json.go | 12 +- .../v1/service_cluster_list_type_json.go | 16 +- ..._cluster_request_payload_list_type_json.go | 16 +- .../service_cluster_request_payload_type.go | 23 + ...rvice_cluster_request_payload_type_json.go | 16 +- osdfleetmgmt/v1/service_cluster_type.go | 25 +- osdfleetmgmt/v1/service_cluster_type_json.go | 28 +- .../v1/service_clusters_resource_json.go | 2 +- osdfleetmgmt/v1/string_list_type_json.go | 12 +- servicelogs/v1/boolean_list_type_json.go | 12 +- servicelogs/v1/cluster_logs_resource_json.go | 2 +- .../v1/cluster_logs_uuid_resource_json.go | 2 +- .../v1/clusters_cluster_logs_resource_json.go | 2 +- servicelogs/v1/date_list_type_json.go | 12 +- servicelogs/v1/float_list_type_json.go | 12 +- servicelogs/v1/integer_list_type_json.go | 12 +- servicelogs/v1/interface_list_type_json.go | 12 +- servicelogs/v1/log_entry_list_type_json.go | 16 +- servicelogs/v1/log_entry_type.go | 25 +- servicelogs/v1/log_entry_type_json.go | 16 +- servicelogs/v1/log_type_list_type_json.go | 12 +- servicelogs/v1/long_list_type_json.go | 12 +- servicelogs/v1/severity_list_type_json.go | 12 +- servicelogs/v1/string_list_type_json.go | 12 +- servicemgmt/v1/aws_list_type_json.go | 16 +- servicemgmt/v1/aws_type.go | 23 + servicemgmt/v1/aws_type_json.go | 20 +- servicemgmt/v1/boolean_list_type_json.go | 12 +- servicemgmt/v1/cloud_region_list_type_json.go | 16 +- servicemgmt/v1/cloud_region_type.go | 23 + servicemgmt/v1/cloud_region_type_json.go | 12 +- servicemgmt/v1/cluster_api_list_type_json.go | 16 +- servicemgmt/v1/cluster_api_type.go | 23 + servicemgmt/v1/cluster_api_type_json.go | 12 +- servicemgmt/v1/cluster_list_type_json.go | 16 +- .../v1/cluster_nodes_list_type_json.go | 16 +- servicemgmt/v1/cluster_nodes_type.go | 23 + servicemgmt/v1/cluster_nodes_type_json.go | 16 +- servicemgmt/v1/cluster_type.go | 23 + servicemgmt/v1/cluster_type_json.go | 32 +- servicemgmt/v1/date_list_type_json.go | 12 +- servicemgmt/v1/float_list_type_json.go | 12 +- .../v1/instance_iam_roles_list_type_json.go | 16 +- servicemgmt/v1/instance_iam_roles_type.go | 23 + .../v1/instance_iam_roles_type_json.go | 12 +- servicemgmt/v1/integer_list_type_json.go | 12 +- servicemgmt/v1/interface_list_type_json.go | 12 +- .../v1/listening_method_list_type_json.go | 12 +- servicemgmt/v1/long_list_type_json.go | 12 +- .../v1/managed_service_list_type_json.go | 16 +- servicemgmt/v1/managed_service_type.go | 25 +- servicemgmt/v1/managed_service_type_json.go | 28 +- servicemgmt/v1/network_list_type_json.go | 16 +- servicemgmt/v1/network_type.go | 23 + servicemgmt/v1/network_type_json.go | 12 +- .../v1/operator_iam_role_list_type_json.go | 16 +- servicemgmt/v1/operator_iam_role_type.go | 23 + servicemgmt/v1/operator_iam_role_type_json.go | 12 +- .../v1/service_parameter_list_type_json.go | 16 +- servicemgmt/v1/service_parameter_type.go | 23 + servicemgmt/v1/service_parameter_type_json.go | 12 +- servicemgmt/v1/services_resource_json.go | 2 +- .../v1/stateful_object_list_type_json.go | 16 +- servicemgmt/v1/stateful_object_type.go | 23 + servicemgmt/v1/stateful_object_type_json.go | 12 +- servicemgmt/v1/string_list_type_json.go | 12 +- servicemgmt/v1/sts_list_type_json.go | 16 +- servicemgmt/v1/sts_type.go | 23 + servicemgmt/v1/sts_type_json.go | 20 +- .../version_inquiry_request_list_type_json.go | 16 +- .../v1/version_inquiry_request_type.go | 23 + .../v1/version_inquiry_request_type_json.go | 12 +- ...version_inquiry_response_list_type_json.go | 16 +- .../v1/version_inquiry_response_type.go | 23 + .../v1/version_inquiry_response_type_json.go | 12 +- .../application_dependencies_resource_json.go | 2 +- .../application_dependency_list_type_json.go | 16 +- statusboard/v1/application_dependency_type.go | 25 +- .../v1/application_dependency_type_json.go | 24 +- statusboard/v1/application_list_type_json.go | 16 +- statusboard/v1/application_type.go | 25 +- statusboard/v1/application_type_json.go | 20 +- statusboard/v1/applications_resource_json.go | 2 +- statusboard/v1/boolean_list_type_json.go | 12 +- statusboard/v1/date_list_type_json.go | 12 +- statusboard/v1/error_list_type_json.go | 16 +- statusboard/v1/error_type.go | 25 +- statusboard/v1/error_type_json.go | 12 +- statusboard/v1/errors_resource_json.go | 2 +- statusboard/v1/float_list_type_json.go | 12 +- statusboard/v1/integer_list_type_json.go | 12 +- statusboard/v1/interface_list_type_json.go | 12 +- statusboard/v1/long_list_type_json.go | 12 +- statusboard/v1/owner_list_type_json.go | 16 +- statusboard/v1/owner_type.go | 25 +- statusboard/v1/owner_type_json.go | 12 +- .../v1/peer_dependencies_resource_json.go | 2 +- .../v1/peer_dependency_list_type_json.go | 16 +- statusboard/v1/peer_dependency_type.go | 25 +- statusboard/v1/peer_dependency_type_json.go | 20 +- statusboard/v1/product_list_type_json.go | 16 +- statusboard/v1/product_type.go | 25 +- statusboard/v1/product_type_json.go | 16 +- statusboard/v1/products_resource_json.go | 2 +- .../v1/service_dependencies_resource_json.go | 2 +- .../v1/service_dependency_list_type_json.go | 16 +- statusboard/v1/service_dependency_type.go | 25 +- .../v1/service_dependency_type_json.go | 24 +- statusboard/v1/service_info_list_type_json.go | 16 +- statusboard/v1/service_info_type.go | 23 + statusboard/v1/service_info_type_json.go | 12 +- statusboard/v1/service_list_type_json.go | 16 +- statusboard/v1/service_type.go | 25 +- statusboard/v1/service_type_json.go | 20 +- statusboard/v1/services_resource_json.go | 2 +- statusboard/v1/status_list_type_json.go | 16 +- statusboard/v1/status_type.go | 25 +- statusboard/v1/status_type_json.go | 20 +- .../v1/status_update_list_type_json.go | 16 +- statusboard/v1/status_update_type.go | 25 +- statusboard/v1/status_update_type_json.go | 20 +- .../v1/status_updates_resource_json.go | 2 +- statusboard/v1/statuses_resource_json.go | 2 +- statusboard/v1/string_list_type_json.go | 12 +- version.go | 2 +- webrca/v1/attachment_list_type_json.go | 16 +- webrca/v1/attachment_type.go | 25 +- webrca/v1/attachment_type_json.go | 20 +- webrca/v1/attachments_resource_json.go | 2 +- webrca/v1/boolean_list_type_json.go | 12 +- webrca/v1/date_list_type_json.go | 12 +- webrca/v1/error_list_type_json.go | 16 +- webrca/v1/error_type.go | 25 +- webrca/v1/error_type_json.go | 12 +- webrca/v1/errors_resource_json.go | 2 +- webrca/v1/escalation_list_type_json.go | 16 +- webrca/v1/escalation_type.go | 25 +- webrca/v1/escalation_type_json.go | 16 +- webrca/v1/event_list_type_json.go | 16 +- webrca/v1/event_type.go | 25 +- webrca/v1/event_type_json.go | 40 +- webrca/v1/events_resource_json.go | 2 +- webrca/v1/float_list_type_json.go | 12 +- webrca/v1/follow_up_change_list_type_json.go | 16 +- webrca/v1/follow_up_change_type.go | 25 +- webrca/v1/follow_up_change_type_json.go | 16 +- webrca/v1/follow_up_list_type_json.go | 16 +- webrca/v1/follow_up_type.go | 25 +- webrca/v1/follow_up_type_json.go | 16 +- webrca/v1/follow_ups_resource_json.go | 2 +- webrca/v1/handoff_list_type_json.go | 16 +- webrca/v1/handoff_type.go | 25 +- webrca/v1/handoff_type_json.go | 20 +- webrca/v1/incident_list_type_json.go | 16 +- webrca/v1/incident_type.go | 25 +- webrca/v1/incident_type_json.go | 16 +- webrca/v1/incidents_resource_json.go | 2 +- webrca/v1/integer_list_type_json.go | 12 +- webrca/v1/interface_list_type_json.go | 12 +- webrca/v1/long_list_type_json.go | 12 +- webrca/v1/notification_list_type_json.go | 16 +- webrca/v1/notification_type.go | 25 +- webrca/v1/notification_type_json.go | 16 +- webrca/v1/notifications_resource_json.go | 2 +- webrca/v1/product_list_type_json.go | 16 +- webrca/v1/product_type.go | 25 +- webrca/v1/product_type_json.go | 12 +- webrca/v1/status_change_list_type_json.go | 16 +- webrca/v1/status_change_type.go | 25 +- webrca/v1/status_change_type_json.go | 12 +- webrca/v1/string_list_type_json.go | 12 +- webrca/v1/user_list_type_json.go | 16 +- webrca/v1/user_type.go | 25 +- webrca/v1/user_type_json.go | 12 +- webrca/v1/users_resource_json.go | 2 +- 1612 files changed, 65996 insertions(+), 6762 deletions(-) create mode 100644 arohcp/client.go create mode 100644 arohcp/v1alpha1/audit_log_builder.go create mode 100644 arohcp/v1alpha1/audit_log_list_builder.go create mode 100644 arohcp/v1alpha1/audit_log_list_type_json.go create mode 100644 arohcp/v1alpha1/audit_log_type.go create mode 100644 arohcp/v1alpha1/audit_log_type_json.go create mode 100644 arohcp/v1alpha1/aws_builder.go create mode 100644 arohcp/v1alpha1/aws_etcd_encryption_builder.go create mode 100644 arohcp/v1alpha1/aws_etcd_encryption_list_builder.go create mode 100644 arohcp/v1alpha1/aws_etcd_encryption_list_type_json.go create mode 100644 arohcp/v1alpha1/aws_etcd_encryption_type.go create mode 100644 arohcp/v1alpha1/aws_etcd_encryption_type_json.go create mode 100644 arohcp/v1alpha1/aws_list_builder.go create mode 100644 arohcp/v1alpha1/aws_list_type_json.go create mode 100644 arohcp/v1alpha1/aws_shard_builder.go create mode 100644 arohcp/v1alpha1/aws_shard_list_builder.go create mode 100644 arohcp/v1alpha1/aws_shard_list_type_json.go create mode 100644 arohcp/v1alpha1/aws_shard_type.go create mode 100644 arohcp/v1alpha1/aws_shard_type_json.go create mode 100644 arohcp/v1alpha1/aws_type.go create mode 100644 arohcp/v1alpha1/aws_type_json.go create mode 100644 arohcp/v1alpha1/aws_volume_builder.go create mode 100644 arohcp/v1alpha1/aws_volume_list_builder.go create mode 100644 arohcp/v1alpha1/aws_volume_list_type_json.go create mode 100644 arohcp/v1alpha1/aws_volume_type.go create mode 100644 arohcp/v1alpha1/aws_volume_type_json.go create mode 100644 arohcp/v1alpha1/azure_builder.go create mode 100644 arohcp/v1alpha1/azure_control_plane_managed_identity_builder.go create mode 100644 arohcp/v1alpha1/azure_control_plane_managed_identity_list_builder.go create mode 100644 arohcp/v1alpha1/azure_control_plane_managed_identity_list_type_json.go create mode 100644 arohcp/v1alpha1/azure_control_plane_managed_identity_type.go create mode 100644 arohcp/v1alpha1/azure_control_plane_managed_identity_type_json.go create mode 100644 arohcp/v1alpha1/azure_data_plane_managed_identity_builder.go create mode 100644 arohcp/v1alpha1/azure_data_plane_managed_identity_list_builder.go create mode 100644 arohcp/v1alpha1/azure_data_plane_managed_identity_list_type_json.go create mode 100644 arohcp/v1alpha1/azure_data_plane_managed_identity_type.go create mode 100644 arohcp/v1alpha1/azure_data_plane_managed_identity_type_json.go create mode 100644 arohcp/v1alpha1/azure_list_builder.go create mode 100644 arohcp/v1alpha1/azure_list_type_json.go create mode 100644 arohcp/v1alpha1/azure_nodes_outbound_connectivity_builder.go create mode 100644 arohcp/v1alpha1/azure_nodes_outbound_connectivity_list_builder.go create mode 100644 arohcp/v1alpha1/azure_nodes_outbound_connectivity_list_type_json.go create mode 100644 arohcp/v1alpha1/azure_nodes_outbound_connectivity_type.go create mode 100644 arohcp/v1alpha1/azure_nodes_outbound_connectivity_type_json.go create mode 100644 arohcp/v1alpha1/azure_operators_authentication_builder.go create mode 100644 arohcp/v1alpha1/azure_operators_authentication_list_builder.go create mode 100644 arohcp/v1alpha1/azure_operators_authentication_list_type_json.go create mode 100644 arohcp/v1alpha1/azure_operators_authentication_managed_identities_builder.go create mode 100644 arohcp/v1alpha1/azure_operators_authentication_managed_identities_list_builder.go create mode 100644 arohcp/v1alpha1/azure_operators_authentication_managed_identities_list_type_json.go create mode 100644 arohcp/v1alpha1/azure_operators_authentication_managed_identities_type.go create mode 100644 arohcp/v1alpha1/azure_operators_authentication_managed_identities_type_json.go create mode 100644 arohcp/v1alpha1/azure_operators_authentication_type.go create mode 100644 arohcp/v1alpha1/azure_operators_authentication_type_json.go create mode 100644 arohcp/v1alpha1/azure_service_managed_identity_builder.go create mode 100644 arohcp/v1alpha1/azure_service_managed_identity_list_builder.go create mode 100644 arohcp/v1alpha1/azure_service_managed_identity_list_type_json.go create mode 100644 arohcp/v1alpha1/azure_service_managed_identity_type.go create mode 100644 arohcp/v1alpha1/azure_service_managed_identity_type_json.go create mode 100644 arohcp/v1alpha1/azure_type.go create mode 100644 arohcp/v1alpha1/azure_type_json.go create mode 100644 arohcp/v1alpha1/billing_model_list_type_json.go create mode 100644 arohcp/v1alpha1/billing_model_type.go create mode 100644 arohcp/v1alpha1/boolean_list_type_json.go create mode 100644 arohcp/v1alpha1/byo_oidc_builder.go create mode 100644 arohcp/v1alpha1/byo_oidc_list_builder.go create mode 100644 arohcp/v1alpha1/byo_oidc_list_type_json.go create mode 100644 arohcp/v1alpha1/byo_oidc_type.go create mode 100644 arohcp/v1alpha1/byo_oidc_type_json.go create mode 100644 arohcp/v1alpha1/ccs_builder.go create mode 100644 arohcp/v1alpha1/ccs_list_builder.go create mode 100644 arohcp/v1alpha1/ccs_list_type_json.go create mode 100644 arohcp/v1alpha1/ccs_type.go create mode 100644 arohcp/v1alpha1/ccs_type_json.go create mode 100644 arohcp/v1alpha1/cloud_provider_builder.go create mode 100644 arohcp/v1alpha1/cloud_provider_list_builder.go create mode 100644 arohcp/v1alpha1/cloud_provider_list_type_json.go create mode 100644 arohcp/v1alpha1/cloud_provider_type.go create mode 100644 arohcp/v1alpha1/cloud_provider_type_json.go create mode 100644 arohcp/v1alpha1/cloud_region_builder.go create mode 100644 arohcp/v1alpha1/cloud_region_list_builder.go create mode 100644 arohcp/v1alpha1/cloud_region_list_type_json.go create mode 100644 arohcp/v1alpha1/cloud_region_type.go create mode 100644 arohcp/v1alpha1/cloud_region_type_json.go create mode 100644 arohcp/v1alpha1/cluster_api_builder.go create mode 100644 arohcp/v1alpha1/cluster_api_list_builder.go create mode 100644 arohcp/v1alpha1/cluster_api_list_type_json.go create mode 100644 arohcp/v1alpha1/cluster_api_type.go create mode 100644 arohcp/v1alpha1/cluster_api_type_json.go create mode 100644 arohcp/v1alpha1/cluster_builder.go create mode 100644 arohcp/v1alpha1/cluster_client.go create mode 100644 arohcp/v1alpha1/cluster_configuration_mode_list_type_json.go create mode 100644 arohcp/v1alpha1/cluster_configuration_mode_type.go create mode 100644 arohcp/v1alpha1/cluster_console_builder.go create mode 100644 arohcp/v1alpha1/cluster_console_list_builder.go create mode 100644 arohcp/v1alpha1/cluster_console_list_type_json.go create mode 100644 arohcp/v1alpha1/cluster_console_type.go create mode 100644 arohcp/v1alpha1/cluster_console_type_json.go create mode 100644 arohcp/v1alpha1/cluster_health_state_list_type_json.go create mode 100644 arohcp/v1alpha1/cluster_health_state_type.go create mode 100644 arohcp/v1alpha1/cluster_list_builder.go create mode 100644 arohcp/v1alpha1/cluster_list_type_json.go create mode 100644 arohcp/v1alpha1/cluster_nodes_builder.go create mode 100644 arohcp/v1alpha1/cluster_nodes_list_builder.go create mode 100644 arohcp/v1alpha1/cluster_nodes_list_type_json.go create mode 100644 arohcp/v1alpha1/cluster_nodes_type.go create mode 100644 arohcp/v1alpha1/cluster_nodes_type_json.go create mode 100644 arohcp/v1alpha1/cluster_registry_config_builder.go create mode 100644 arohcp/v1alpha1/cluster_registry_config_list_builder.go create mode 100644 arohcp/v1alpha1/cluster_registry_config_list_type_json.go create mode 100644 arohcp/v1alpha1/cluster_registry_config_type.go create mode 100644 arohcp/v1alpha1/cluster_registry_config_type_json.go create mode 100644 arohcp/v1alpha1/cluster_resource_json.go create mode 100644 arohcp/v1alpha1/cluster_state_list_type_json.go create mode 100644 arohcp/v1alpha1/cluster_state_type.go create mode 100644 arohcp/v1alpha1/cluster_status_builder.go create mode 100644 arohcp/v1alpha1/cluster_status_list_builder.go create mode 100644 arohcp/v1alpha1/cluster_status_list_type_json.go create mode 100644 arohcp/v1alpha1/cluster_status_type.go create mode 100644 arohcp/v1alpha1/cluster_status_type_json.go create mode 100644 arohcp/v1alpha1/cluster_type.go create mode 100644 arohcp/v1alpha1/cluster_type_json.go create mode 100644 arohcp/v1alpha1/clusters_client.go create mode 100644 arohcp/v1alpha1/clusters_resource_json.go create mode 100644 arohcp/v1alpha1/date_list_type_json.go create mode 100644 arohcp/v1alpha1/delete_protection_builder.go create mode 100644 arohcp/v1alpha1/delete_protection_list_builder.go create mode 100644 arohcp/v1alpha1/delete_protection_list_type_json.go create mode 100644 arohcp/v1alpha1/delete_protection_type.go create mode 100644 arohcp/v1alpha1/delete_protection_type_json.go create mode 100644 arohcp/v1alpha1/dns_builder.go create mode 100644 arohcp/v1alpha1/dns_list_builder.go create mode 100644 arohcp/v1alpha1/dns_list_type_json.go create mode 100644 arohcp/v1alpha1/dns_type.go create mode 100644 arohcp/v1alpha1/dns_type_json.go create mode 100644 arohcp/v1alpha1/ec_2_metadata_http_tokens_list_type_json.go create mode 100644 arohcp/v1alpha1/ec_2_metadata_http_tokens_type.go create mode 100644 arohcp/v1alpha1/errors.go create mode 100644 arohcp/v1alpha1/external_auth_config_builder.go create mode 100644 arohcp/v1alpha1/external_auth_config_list_builder.go create mode 100644 arohcp/v1alpha1/external_auth_config_list_type_json.go create mode 100644 arohcp/v1alpha1/external_auth_config_type.go create mode 100644 arohcp/v1alpha1/external_auth_config_type_json.go create mode 100644 arohcp/v1alpha1/external_configuration_builder.go create mode 100644 arohcp/v1alpha1/external_configuration_list_builder.go create mode 100644 arohcp/v1alpha1/external_configuration_list_type_json.go create mode 100644 arohcp/v1alpha1/external_configuration_type.go create mode 100644 arohcp/v1alpha1/external_configuration_type_json.go create mode 100644 arohcp/v1alpha1/float_list_type_json.go create mode 100644 arohcp/v1alpha1/gcp_authentication_builder.go create mode 100644 arohcp/v1alpha1/gcp_authentication_list_builder.go create mode 100644 arohcp/v1alpha1/gcp_authentication_list_type_json.go create mode 100644 arohcp/v1alpha1/gcp_authentication_type.go create mode 100644 arohcp/v1alpha1/gcp_authentication_type_json.go create mode 100644 arohcp/v1alpha1/gcp_builder.go create mode 100644 arohcp/v1alpha1/gcp_encryption_key_builder.go create mode 100644 arohcp/v1alpha1/gcp_encryption_key_list_builder.go create mode 100644 arohcp/v1alpha1/gcp_encryption_key_list_type_json.go create mode 100644 arohcp/v1alpha1/gcp_encryption_key_type.go create mode 100644 arohcp/v1alpha1/gcp_encryption_key_type_json.go create mode 100644 arohcp/v1alpha1/gcp_list_builder.go create mode 100644 arohcp/v1alpha1/gcp_list_type_json.go create mode 100644 arohcp/v1alpha1/gcp_network_builder.go create mode 100644 arohcp/v1alpha1/gcp_network_list_builder.go create mode 100644 arohcp/v1alpha1/gcp_network_list_type_json.go create mode 100644 arohcp/v1alpha1/gcp_network_type.go create mode 100644 arohcp/v1alpha1/gcp_network_type_json.go create mode 100644 arohcp/v1alpha1/gcp_private_service_connect_builder.go create mode 100644 arohcp/v1alpha1/gcp_private_service_connect_list_builder.go create mode 100644 arohcp/v1alpha1/gcp_private_service_connect_list_type_json.go create mode 100644 arohcp/v1alpha1/gcp_private_service_connect_type.go create mode 100644 arohcp/v1alpha1/gcp_private_service_connect_type_json.go create mode 100644 arohcp/v1alpha1/gcp_security_builder.go create mode 100644 arohcp/v1alpha1/gcp_security_list_builder.go create mode 100644 arohcp/v1alpha1/gcp_security_list_type_json.go create mode 100644 arohcp/v1alpha1/gcp_security_type.go create mode 100644 arohcp/v1alpha1/gcp_security_type_json.go create mode 100644 arohcp/v1alpha1/gcp_type.go create mode 100644 arohcp/v1alpha1/gcp_type_json.go create mode 100644 arohcp/v1alpha1/gcp_volume_builder.go create mode 100644 arohcp/v1alpha1/gcp_volume_list_builder.go create mode 100644 arohcp/v1alpha1/gcp_volume_list_type_json.go create mode 100644 arohcp/v1alpha1/gcp_volume_type.go create mode 100644 arohcp/v1alpha1/gcp_volume_type_json.go create mode 100644 arohcp/v1alpha1/ht_passwd_identity_provider_builder.go create mode 100644 arohcp/v1alpha1/ht_passwd_identity_provider_list_builder.go create mode 100644 arohcp/v1alpha1/ht_passwd_identity_provider_list_type_json.go create mode 100644 arohcp/v1alpha1/ht_passwd_identity_provider_type.go create mode 100644 arohcp/v1alpha1/ht_passwd_identity_provider_type_json.go create mode 100644 arohcp/v1alpha1/hypershift_builder.go create mode 100644 arohcp/v1alpha1/hypershift_list_builder.go create mode 100644 arohcp/v1alpha1/hypershift_list_type_json.go create mode 100644 arohcp/v1alpha1/hypershift_type.go create mode 100644 arohcp/v1alpha1/hypershift_type_json.go create mode 100644 arohcp/v1alpha1/instance_iam_roles_builder.go create mode 100644 arohcp/v1alpha1/instance_iam_roles_list_builder.go create mode 100644 arohcp/v1alpha1/instance_iam_roles_list_type_json.go create mode 100644 arohcp/v1alpha1/instance_iam_roles_type.go create mode 100644 arohcp/v1alpha1/instance_iam_roles_type_json.go create mode 100644 arohcp/v1alpha1/integer_list_type_json.go create mode 100644 arohcp/v1alpha1/interface_list_type_json.go create mode 100644 arohcp/v1alpha1/kubelet_config_builder.go create mode 100644 arohcp/v1alpha1/kubelet_config_list_builder.go create mode 100644 arohcp/v1alpha1/kubelet_config_list_type_json.go create mode 100644 arohcp/v1alpha1/kubelet_config_type.go create mode 100644 arohcp/v1alpha1/kubelet_config_type_json.go create mode 100644 arohcp/v1alpha1/listening_method_list_type_json.go create mode 100644 arohcp/v1alpha1/listening_method_type.go create mode 100644 arohcp/v1alpha1/long_list_type_json.go create mode 100644 arohcp/v1alpha1/machine_pool_autoscaling_builder.go create mode 100644 arohcp/v1alpha1/machine_pool_autoscaling_list_builder.go create mode 100644 arohcp/v1alpha1/machine_pool_autoscaling_list_type_json.go create mode 100644 arohcp/v1alpha1/machine_pool_autoscaling_type.go create mode 100644 arohcp/v1alpha1/machine_pool_autoscaling_type_json.go create mode 100644 arohcp/v1alpha1/machine_pool_security_group_filter_builder.go create mode 100644 arohcp/v1alpha1/machine_pool_security_group_filter_list_builder.go create mode 100644 arohcp/v1alpha1/machine_pool_security_group_filter_list_type_json.go create mode 100644 arohcp/v1alpha1/machine_pool_security_group_filter_type.go create mode 100644 arohcp/v1alpha1/machine_pool_security_group_filter_type_json.go create mode 100644 arohcp/v1alpha1/machine_type_builder.go create mode 100644 arohcp/v1alpha1/machine_type_category_list_type_json.go create mode 100644 arohcp/v1alpha1/machine_type_category_type.go create mode 100644 arohcp/v1alpha1/machine_type_list_builder.go create mode 100644 arohcp/v1alpha1/machine_type_list_type_json.go create mode 100644 arohcp/v1alpha1/machine_type_size_list_type_json.go create mode 100644 arohcp/v1alpha1/machine_type_size_type.go create mode 100644 arohcp/v1alpha1/machine_type_type.go create mode 100644 arohcp/v1alpha1/machine_type_type_json.go create mode 100644 arohcp/v1alpha1/managed_service_builder.go create mode 100644 arohcp/v1alpha1/managed_service_list_builder.go create mode 100644 arohcp/v1alpha1/managed_service_list_type_json.go create mode 100644 arohcp/v1alpha1/managed_service_type.go create mode 100644 arohcp/v1alpha1/managed_service_type_json.go create mode 100644 arohcp/v1alpha1/metadata_client.go create mode 100644 arohcp/v1alpha1/metadata_reader.go create mode 100644 arohcp/v1alpha1/metadata_type.go create mode 100644 arohcp/v1alpha1/network_builder.go create mode 100644 arohcp/v1alpha1/network_list_builder.go create mode 100644 arohcp/v1alpha1/network_list_type_json.go create mode 100644 arohcp/v1alpha1/network_type.go create mode 100644 arohcp/v1alpha1/network_type_json.go create mode 100644 arohcp/v1alpha1/oidc_config_builder.go create mode 100644 arohcp/v1alpha1/oidc_config_list_builder.go create mode 100644 arohcp/v1alpha1/oidc_config_list_type_json.go create mode 100644 arohcp/v1alpha1/oidc_config_type.go create mode 100644 arohcp/v1alpha1/oidc_config_type_json.go create mode 100644 arohcp/v1alpha1/openapi.go create mode 100644 arohcp/v1alpha1/operator_iam_role_builder.go create mode 100644 arohcp/v1alpha1/operator_iam_role_list_builder.go create mode 100644 arohcp/v1alpha1/operator_iam_role_list_type_json.go create mode 100644 arohcp/v1alpha1/operator_iam_role_type.go create mode 100644 arohcp/v1alpha1/operator_iam_role_type_json.go create mode 100644 arohcp/v1alpha1/private_link_cluster_configuration_builder.go create mode 100644 arohcp/v1alpha1/private_link_cluster_configuration_list_builder.go create mode 100644 arohcp/v1alpha1/private_link_cluster_configuration_list_type_json.go create mode 100644 arohcp/v1alpha1/private_link_cluster_configuration_type.go create mode 100644 arohcp/v1alpha1/private_link_cluster_configuration_type_json.go create mode 100644 arohcp/v1alpha1/private_link_principal_builder.go create mode 100644 arohcp/v1alpha1/private_link_principal_list_builder.go create mode 100644 arohcp/v1alpha1/private_link_principal_list_type_json.go create mode 100644 arohcp/v1alpha1/private_link_principal_type.go create mode 100644 arohcp/v1alpha1/private_link_principal_type_json.go create mode 100644 arohcp/v1alpha1/processor_type_list_type_json.go create mode 100644 arohcp/v1alpha1/processor_type_type.go create mode 100644 arohcp/v1alpha1/provision_shard_builder.go create mode 100644 arohcp/v1alpha1/provision_shard_list_builder.go create mode 100644 arohcp/v1alpha1/provision_shard_list_type_json.go create mode 100644 arohcp/v1alpha1/provision_shard_topology_list_type_json.go create mode 100644 arohcp/v1alpha1/provision_shard_topology_type.go create mode 100644 arohcp/v1alpha1/provision_shard_type.go create mode 100644 arohcp/v1alpha1/provision_shard_type_json.go create mode 100644 arohcp/v1alpha1/proxy_builder.go create mode 100644 arohcp/v1alpha1/proxy_list_builder.go create mode 100644 arohcp/v1alpha1/proxy_list_type_json.go create mode 100644 arohcp/v1alpha1/proxy_type.go create mode 100644 arohcp/v1alpha1/proxy_type_json.go create mode 100644 arohcp/v1alpha1/registry_allowlist_builder.go create mode 100644 arohcp/v1alpha1/registry_allowlist_list_builder.go create mode 100644 arohcp/v1alpha1/registry_allowlist_list_type_json.go create mode 100644 arohcp/v1alpha1/registry_allowlist_type.go create mode 100644 arohcp/v1alpha1/registry_allowlist_type_json.go create mode 100644 arohcp/v1alpha1/registry_location_builder.go create mode 100644 arohcp/v1alpha1/registry_location_list_builder.go create mode 100644 arohcp/v1alpha1/registry_location_list_type_json.go create mode 100644 arohcp/v1alpha1/registry_location_type.go create mode 100644 arohcp/v1alpha1/registry_location_type_json.go create mode 100644 arohcp/v1alpha1/registry_sources_builder.go create mode 100644 arohcp/v1alpha1/registry_sources_list_builder.go create mode 100644 arohcp/v1alpha1/registry_sources_list_type_json.go create mode 100644 arohcp/v1alpha1/registry_sources_type.go create mode 100644 arohcp/v1alpha1/registry_sources_type_json.go create mode 100644 arohcp/v1alpha1/root_client.go create mode 100644 arohcp/v1alpha1/root_resource_json.go create mode 100644 arohcp/v1alpha1/root_volume_builder.go create mode 100644 arohcp/v1alpha1/root_volume_list_builder.go create mode 100644 arohcp/v1alpha1/root_volume_list_type_json.go create mode 100644 arohcp/v1alpha1/root_volume_type.go create mode 100644 arohcp/v1alpha1/root_volume_type_json.go create mode 100644 arohcp/v1alpha1/server_config_builder.go create mode 100644 arohcp/v1alpha1/server_config_list_builder.go create mode 100644 arohcp/v1alpha1/server_config_list_type_json.go create mode 100644 arohcp/v1alpha1/server_config_type.go create mode 100644 arohcp/v1alpha1/server_config_type_json.go create mode 100644 arohcp/v1alpha1/string_list_type_json.go create mode 100644 arohcp/v1alpha1/sts_builder.go create mode 100644 arohcp/v1alpha1/sts_list_builder.go create mode 100644 arohcp/v1alpha1/sts_list_type_json.go create mode 100644 arohcp/v1alpha1/sts_type.go create mode 100644 arohcp/v1alpha1/sts_type_json.go create mode 100644 arohcp/v1alpha1/value_builder.go create mode 100644 arohcp/v1alpha1/value_list_builder.go create mode 100644 arohcp/v1alpha1/value_list_type_json.go create mode 100644 arohcp/v1alpha1/value_type.go create mode 100644 arohcp/v1alpha1/value_type_json.go create mode 100644 openapi/aro_hcp/v1alpha1/openapi.json diff --git a/.golangci.yml b/.golangci.yml index 3a98c8b03..ff67d0518 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -21,6 +21,7 @@ run: - addonsmgmt - authorizations - clustersmgmt + - arohcp - errors - helpers - jobqueue diff --git a/CHANGES.md b/CHANGES.md index 299b913f1..9ee335516 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -3,6 +3,11 @@ This document describes the relevant changes between releases of the OCM API SDK. +## 0.1.452 +- Update model version v0.0.405 +- Update metamodel version v0.0.64 + - Add ARO HCP v1alpha1 root resource + ## 0.1.451 - Update model version v0.0.404 - Add WifConfig patch endpoint diff --git a/Makefile b/Makefile index 843050ae0..127996541 100644 --- a/Makefile +++ b/Makefile @@ -27,11 +27,11 @@ export PATH := $(LOCAL_BIN_PATH):$(PATH) export CGO_ENABLED=0 # Details of the model to use: -model_version:=v0.0.404 +model_version:=v0.0.405 model_url:=https://github.com/openshift-online/ocm-api-model.git # Details of the metamodel to use: -metamodel_version:=v0.0.61 +metamodel_version:=v0.0.64 goimports_version:=v0.4.0 @@ -74,6 +74,7 @@ generate: model metamodel-install goimports-install addonsmgmt \ authorizations \ clustersmgmt \ + arohcp \ errors \ helpers \ jobqueue \ diff --git a/accesstransparency/v1/access_protection_list_type_json.go b/accesstransparency/v1/access_protection_list_type_json.go index 001d50798..e808938de 100644 --- a/accesstransparency/v1/access_protection_list_type_json.go +++ b/accesstransparency/v1/access_protection_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAccessProtectionList(list []*AccessProtection, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAccessProtectionList(list, stream) + WriteAccessProtectionList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAccessProtectionList(list []*AccessProtection, writer io.Writer) err return stream.Error } -// writeAccessProtectionList writes a list of value of the 'access_protection' type to +// WriteAccessProtectionList writes a list of value of the 'access_protection' type to // the given stream. -func writeAccessProtectionList(list []*AccessProtection, stream *jsoniter.Stream) { +func WriteAccessProtectionList(list []*AccessProtection, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAccessProtection(value, stream) + WriteAccessProtection(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAccessProtectionList(source interface{}) (items []*AccessProtectio if err != nil { return } - items = readAccessProtectionList(iterator) + items = ReadAccessProtectionList(iterator) err = iterator.Error return } -// readAccessProtectionList reads list of values of the ”access_protection' type from +// ReadAccessProtectionList reads list of values of the ”access_protection' type from // the given iterator. -func readAccessProtectionList(iterator *jsoniter.Iterator) []*AccessProtection { +func ReadAccessProtectionList(iterator *jsoniter.Iterator) []*AccessProtection { list := []*AccessProtection{} for iterator.ReadArray() { - item := readAccessProtection(iterator) + item := ReadAccessProtection(iterator) list = append(list, item) } return list diff --git a/accesstransparency/v1/access_protection_type.go b/accesstransparency/v1/access_protection_type.go index 2aa7bd670..258d48674 100644 --- a/accesstransparency/v1/access_protection_type.go +++ b/accesstransparency/v1/access_protection_type.go @@ -78,6 +78,29 @@ func (l *AccessProtectionList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AccessProtectionList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AccessProtectionList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AccessProtectionList) SetItems(items []*AccessProtection) { + l.items = items +} + +// Items returns the items of the list. +func (l *AccessProtectionList) Items() []*AccessProtection { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AccessProtectionList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accesstransparency/v1/access_protection_type_json.go b/accesstransparency/v1/access_protection_type_json.go index a3051520f..f152e7d4a 100644 --- a/accesstransparency/v1/access_protection_type_json.go +++ b/accesstransparency/v1/access_protection_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAccessProtection writes a value of the 'access_protection' type to the given writer. func MarshalAccessProtection(object *AccessProtection, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAccessProtection(object, stream) + WriteAccessProtection(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAccessProtection(object *AccessProtection, writer io.Writer) error { return stream.Error } -// writeAccessProtection writes a value of the 'access_protection' type to the given stream. -func writeAccessProtection(object *AccessProtection, stream *jsoniter.Stream) { +// WriteAccessProtection writes a value of the 'access_protection' type to the given stream. +func WriteAccessProtection(object *AccessProtection, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalAccessProtection(source interface{}) (object *AccessProtection, er if err != nil { return } - object = readAccessProtection(iterator) + object = ReadAccessProtection(iterator) err = iterator.Error return } -// readAccessProtection reads a value of the 'access_protection' type from the given iterator. -func readAccessProtection(iterator *jsoniter.Iterator) *AccessProtection { +// ReadAccessProtection reads a value of the 'access_protection' type from the given iterator. +func ReadAccessProtection(iterator *jsoniter.Iterator) *AccessProtection { object := &AccessProtection{} for { field := iterator.ReadObject() diff --git a/accesstransparency/v1/access_request_list_type_json.go b/accesstransparency/v1/access_request_list_type_json.go index d7721d3d2..d5edf1d1f 100644 --- a/accesstransparency/v1/access_request_list_type_json.go +++ b/accesstransparency/v1/access_request_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAccessRequestList(list []*AccessRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAccessRequestList(list, stream) + WriteAccessRequestList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAccessRequestList(list []*AccessRequest, writer io.Writer) error { return stream.Error } -// writeAccessRequestList writes a list of value of the 'access_request' type to +// WriteAccessRequestList writes a list of value of the 'access_request' type to // the given stream. -func writeAccessRequestList(list []*AccessRequest, stream *jsoniter.Stream) { +func WriteAccessRequestList(list []*AccessRequest, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAccessRequest(value, stream) + WriteAccessRequest(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAccessRequestList(source interface{}) (items []*AccessRequest, err if err != nil { return } - items = readAccessRequestList(iterator) + items = ReadAccessRequestList(iterator) err = iterator.Error return } -// readAccessRequestList reads list of values of the ”access_request' type from +// ReadAccessRequestList reads list of values of the ”access_request' type from // the given iterator. -func readAccessRequestList(iterator *jsoniter.Iterator) []*AccessRequest { +func ReadAccessRequestList(iterator *jsoniter.Iterator) []*AccessRequest { list := []*AccessRequest{} for iterator.ReadArray() { - item := readAccessRequest(iterator) + item := ReadAccessRequest(iterator) list = append(list, item) } return list diff --git a/accesstransparency/v1/access_request_post_request_list_type_json.go b/accesstransparency/v1/access_request_post_request_list_type_json.go index 83726771f..db0a8c16b 100644 --- a/accesstransparency/v1/access_request_post_request_list_type_json.go +++ b/accesstransparency/v1/access_request_post_request_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAccessRequestPostRequestList(list []*AccessRequestPostRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAccessRequestPostRequestList(list, stream) + WriteAccessRequestPostRequestList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAccessRequestPostRequestList(list []*AccessRequestPostRequest, write return stream.Error } -// writeAccessRequestPostRequestList writes a list of value of the 'access_request_post_request' type to +// WriteAccessRequestPostRequestList writes a list of value of the 'access_request_post_request' type to // the given stream. -func writeAccessRequestPostRequestList(list []*AccessRequestPostRequest, stream *jsoniter.Stream) { +func WriteAccessRequestPostRequestList(list []*AccessRequestPostRequest, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAccessRequestPostRequest(value, stream) + WriteAccessRequestPostRequest(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAccessRequestPostRequestList(source interface{}) (items []*AccessR if err != nil { return } - items = readAccessRequestPostRequestList(iterator) + items = ReadAccessRequestPostRequestList(iterator) err = iterator.Error return } -// readAccessRequestPostRequestList reads list of values of the ”access_request_post_request' type from +// ReadAccessRequestPostRequestList reads list of values of the ”access_request_post_request' type from // the given iterator. -func readAccessRequestPostRequestList(iterator *jsoniter.Iterator) []*AccessRequestPostRequest { +func ReadAccessRequestPostRequestList(iterator *jsoniter.Iterator) []*AccessRequestPostRequest { list := []*AccessRequestPostRequest{} for iterator.ReadArray() { - item := readAccessRequestPostRequest(iterator) + item := ReadAccessRequestPostRequest(iterator) list = append(list, item) } return list diff --git a/accesstransparency/v1/access_request_post_request_type.go b/accesstransparency/v1/access_request_post_request_type.go index 270b81f3f..aa1481ea4 100644 --- a/accesstransparency/v1/access_request_post_request_type.go +++ b/accesstransparency/v1/access_request_post_request_type.go @@ -226,6 +226,29 @@ func (l *AccessRequestPostRequestList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AccessRequestPostRequestList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AccessRequestPostRequestList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AccessRequestPostRequestList) SetItems(items []*AccessRequestPostRequest) { + l.items = items +} + +// Items returns the items of the list. +func (l *AccessRequestPostRequestList) Items() []*AccessRequestPostRequest { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AccessRequestPostRequestList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accesstransparency/v1/access_request_post_request_type_json.go b/accesstransparency/v1/access_request_post_request_type_json.go index 94ef7c45e..d72cca549 100644 --- a/accesstransparency/v1/access_request_post_request_type_json.go +++ b/accesstransparency/v1/access_request_post_request_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAccessRequestPostRequest writes a value of the 'access_request_post_request' type to the given writer. func MarshalAccessRequestPostRequest(object *AccessRequestPostRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAccessRequestPostRequest(object, stream) + WriteAccessRequestPostRequest(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAccessRequestPostRequest(object *AccessRequestPostRequest, writer io return stream.Error } -// writeAccessRequestPostRequest writes a value of the 'access_request_post_request' type to the given stream. -func writeAccessRequestPostRequest(object *AccessRequestPostRequest, stream *jsoniter.Stream) { +// WriteAccessRequestPostRequest writes a value of the 'access_request_post_request' type to the given stream. +func WriteAccessRequestPostRequest(object *AccessRequestPostRequest, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -114,13 +114,13 @@ func UnmarshalAccessRequestPostRequest(source interface{}) (object *AccessReques if err != nil { return } - object = readAccessRequestPostRequest(iterator) + object = ReadAccessRequestPostRequest(iterator) err = iterator.Error return } -// readAccessRequestPostRequest reads a value of the 'access_request_post_request' type from the given iterator. -func readAccessRequestPostRequest(iterator *jsoniter.Iterator) *AccessRequestPostRequest { +// ReadAccessRequestPostRequest reads a value of the 'access_request_post_request' type from the given iterator. +func ReadAccessRequestPostRequest(iterator *jsoniter.Iterator) *AccessRequestPostRequest { object := &AccessRequestPostRequest{} for { field := iterator.ReadObject() diff --git a/accesstransparency/v1/access_request_state_list_type_json.go b/accesstransparency/v1/access_request_state_list_type_json.go index 73ddc7a76..cb99605d7 100644 --- a/accesstransparency/v1/access_request_state_list_type_json.go +++ b/accesstransparency/v1/access_request_state_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAccessRequestStateList(list []AccessRequestState, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAccessRequestStateList(list, stream) + WriteAccessRequestStateList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalAccessRequestStateList(list []AccessRequestState, writer io.Writer) return stream.Error } -// writeAccessRequestStateList writes a list of value of the 'access_request_state' type to +// WriteAccessRequestStateList writes a list of value of the 'access_request_state' type to // the given stream. -func writeAccessRequestStateList(list []AccessRequestState, stream *jsoniter.Stream) { +func WriteAccessRequestStateList(list []AccessRequestState, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalAccessRequestStateList(source interface{}) (items []AccessRequestS if err != nil { return } - items = readAccessRequestStateList(iterator) + items = ReadAccessRequestStateList(iterator) err = iterator.Error return } -// readAccessRequestStateList reads list of values of the ”access_request_state' type from +// ReadAccessRequestStateList reads list of values of the ”access_request_state' type from // the given iterator. -func readAccessRequestStateList(iterator *jsoniter.Iterator) []AccessRequestState { +func ReadAccessRequestStateList(iterator *jsoniter.Iterator) []AccessRequestState { list := []AccessRequestState{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/accesstransparency/v1/access_request_status_list_type_json.go b/accesstransparency/v1/access_request_status_list_type_json.go index f8c664dd5..2faea402b 100644 --- a/accesstransparency/v1/access_request_status_list_type_json.go +++ b/accesstransparency/v1/access_request_status_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAccessRequestStatusList(list []*AccessRequestStatus, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAccessRequestStatusList(list, stream) + WriteAccessRequestStatusList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAccessRequestStatusList(list []*AccessRequestStatus, writer io.Write return stream.Error } -// writeAccessRequestStatusList writes a list of value of the 'access_request_status' type to +// WriteAccessRequestStatusList writes a list of value of the 'access_request_status' type to // the given stream. -func writeAccessRequestStatusList(list []*AccessRequestStatus, stream *jsoniter.Stream) { +func WriteAccessRequestStatusList(list []*AccessRequestStatus, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAccessRequestStatus(value, stream) + WriteAccessRequestStatus(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAccessRequestStatusList(source interface{}) (items []*AccessReques if err != nil { return } - items = readAccessRequestStatusList(iterator) + items = ReadAccessRequestStatusList(iterator) err = iterator.Error return } -// readAccessRequestStatusList reads list of values of the ”access_request_status' type from +// ReadAccessRequestStatusList reads list of values of the ”access_request_status' type from // the given iterator. -func readAccessRequestStatusList(iterator *jsoniter.Iterator) []*AccessRequestStatus { +func ReadAccessRequestStatusList(iterator *jsoniter.Iterator) []*AccessRequestStatus { list := []*AccessRequestStatus{} for iterator.ReadArray() { - item := readAccessRequestStatus(iterator) + item := ReadAccessRequestStatus(iterator) list = append(list, item) } return list diff --git a/accesstransparency/v1/access_request_status_type.go b/accesstransparency/v1/access_request_status_type.go index b498f38c9..181131999 100644 --- a/accesstransparency/v1/access_request_status_type.go +++ b/accesstransparency/v1/access_request_status_type.go @@ -112,6 +112,29 @@ func (l *AccessRequestStatusList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AccessRequestStatusList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AccessRequestStatusList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AccessRequestStatusList) SetItems(items []*AccessRequestStatus) { + l.items = items +} + +// Items returns the items of the list. +func (l *AccessRequestStatusList) Items() []*AccessRequestStatus { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AccessRequestStatusList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accesstransparency/v1/access_request_status_type_json.go b/accesstransparency/v1/access_request_status_type_json.go index ed8f04411..a29b996a2 100644 --- a/accesstransparency/v1/access_request_status_type_json.go +++ b/accesstransparency/v1/access_request_status_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalAccessRequestStatus writes a value of the 'access_request_status' type to the given writer. func MarshalAccessRequestStatus(object *AccessRequestStatus, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAccessRequestStatus(object, stream) + WriteAccessRequestStatus(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalAccessRequestStatus(object *AccessRequestStatus, writer io.Writer) e return stream.Error } -// writeAccessRequestStatus writes a value of the 'access_request_status' type to the given stream. -func writeAccessRequestStatus(object *AccessRequestStatus, stream *jsoniter.Stream) { +// WriteAccessRequestStatus writes a value of the 'access_request_status' type to the given stream. +func WriteAccessRequestStatus(object *AccessRequestStatus, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -70,13 +70,13 @@ func UnmarshalAccessRequestStatus(source interface{}) (object *AccessRequestStat if err != nil { return } - object = readAccessRequestStatus(iterator) + object = ReadAccessRequestStatus(iterator) err = iterator.Error return } -// readAccessRequestStatus reads a value of the 'access_request_status' type from the given iterator. -func readAccessRequestStatus(iterator *jsoniter.Iterator) *AccessRequestStatus { +// ReadAccessRequestStatus reads a value of the 'access_request_status' type from the given iterator. +func ReadAccessRequestStatus(iterator *jsoniter.Iterator) *AccessRequestStatus { object := &AccessRequestStatus{} for { field := iterator.ReadObject() diff --git a/accesstransparency/v1/access_request_type.go b/accesstransparency/v1/access_request_type.go index 2d9da73f9..cacb4af87 100644 --- a/accesstransparency/v1/access_request_type.go +++ b/accesstransparency/v1/access_request_type.go @@ -69,7 +69,7 @@ func (o *AccessRequest) Kind() string { return AccessRequestKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *AccessRequest) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -504,6 +504,29 @@ func (l *AccessRequestList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AccessRequestList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AccessRequestList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AccessRequestList) SetItems(items []*AccessRequest) { + l.items = items +} + +// Items returns the items of the list. +func (l *AccessRequestList) Items() []*AccessRequest { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AccessRequestList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accesstransparency/v1/access_request_type_json.go b/accesstransparency/v1/access_request_type_json.go index 0211b32a8..53e4b1dd1 100644 --- a/accesstransparency/v1/access_request_type_json.go +++ b/accesstransparency/v1/access_request_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalAccessRequest writes a value of the 'access_request' type to the given writer. func MarshalAccessRequest(object *AccessRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAccessRequest(object, stream) + WriteAccessRequest(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalAccessRequest(object *AccessRequest, writer io.Writer) error { return stream.Error } -// writeAccessRequest writes a value of the 'access_request' type to the given stream. -func writeAccessRequest(object *AccessRequest, stream *jsoniter.Stream) { +// WriteAccessRequest writes a value of the 'access_request' type to the given stream. +func WriteAccessRequest(object *AccessRequest, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -108,7 +108,7 @@ func writeAccessRequest(object *AccessRequest, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("decisions") - writeDecisionList(object.decisions, stream) + WriteDecisionList(object.decisions, stream) count++ } present_ = object.bitmap_&256 != 0 @@ -162,7 +162,7 @@ func writeAccessRequest(object *AccessRequest, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("status") - writeAccessRequestStatus(object.status, stream) + WriteAccessRequestStatus(object.status, stream) count++ } present_ = object.bitmap_&16384 != 0 @@ -201,13 +201,13 @@ func UnmarshalAccessRequest(source interface{}) (object *AccessRequest, err erro if err != nil { return } - object = readAccessRequest(iterator) + object = ReadAccessRequest(iterator) err = iterator.Error return } -// readAccessRequest reads a value of the 'access_request' type from the given iterator. -func readAccessRequest(iterator *jsoniter.Iterator) *AccessRequest { +// ReadAccessRequest reads a value of the 'access_request' type from the given iterator. +func ReadAccessRequest(iterator *jsoniter.Iterator) *AccessRequest { object := &AccessRequest{} for { field := iterator.ReadObject() @@ -251,7 +251,7 @@ func readAccessRequest(iterator *jsoniter.Iterator) *AccessRequest { object.deadlineAt = value object.bitmap_ |= 64 case "decisions": - value := readDecisionList(iterator) + value := ReadDecisionList(iterator) object.decisions = value object.bitmap_ |= 128 case "duration": @@ -275,7 +275,7 @@ func readAccessRequest(iterator *jsoniter.Iterator) *AccessRequest { object.requestedBy = value object.bitmap_ |= 4096 case "status": - value := readAccessRequestStatus(iterator) + value := ReadAccessRequestStatus(iterator) object.status = value object.bitmap_ |= 8192 case "subscription_id": diff --git a/accesstransparency/v1/access_requests_resource_json.go b/accesstransparency/v1/access_requests_resource_json.go index 272c3b062..b3d5f3efb 100644 --- a/accesstransparency/v1/access_requests_resource_json.go +++ b/accesstransparency/v1/access_requests_resource_json.go @@ -49,7 +49,7 @@ func readAccessRequestsListResponse(response *AccessRequestsListResponse, reader value := iterator.ReadInt() response.total = &value case "items": - items := readAccessRequestList(iterator) + items := ReadAccessRequestList(iterator) response.items = &AccessRequestList{ items: items, } diff --git a/accesstransparency/v1/boolean_list_type_json.go b/accesstransparency/v1/boolean_list_type_json.go index af15b0f52..b0819cc25 100644 --- a/accesstransparency/v1/boolean_list_type_json.go +++ b/accesstransparency/v1/boolean_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalBooleanList(list []bool, writer io.Writer) error { stream := helpers.NewStream(writer) - writeBooleanList(list, stream) + WriteBooleanList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalBooleanList(list []bool, writer io.Writer) error { return stream.Error } -// writeBooleanList writes a list of value of the 'boolean' type to +// WriteBooleanList writes a list of value of the 'boolean' type to // the given stream. -func writeBooleanList(list []bool, stream *jsoniter.Stream) { +func WriteBooleanList(list []bool, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalBooleanList(source interface{}) (items []bool, err error) { if err != nil { return } - items = readBooleanList(iterator) + items = ReadBooleanList(iterator) err = iterator.Error return } -// readBooleanList reads list of values of the ”boolean' type from +// ReadBooleanList reads list of values of the ”boolean' type from // the given iterator. -func readBooleanList(iterator *jsoniter.Iterator) []bool { +func ReadBooleanList(iterator *jsoniter.Iterator) []bool { list := []bool{} for iterator.ReadArray() { item := iterator.ReadBool() diff --git a/accesstransparency/v1/date_list_type_json.go b/accesstransparency/v1/date_list_type_json.go index 395ed7192..d3d909653 100644 --- a/accesstransparency/v1/date_list_type_json.go +++ b/accesstransparency/v1/date_list_type_json.go @@ -31,7 +31,7 @@ import ( // the given writer. func MarshalDateList(list []time.Time, writer io.Writer) error { stream := helpers.NewStream(writer) - writeDateList(list, stream) + WriteDateList(list, stream) err := stream.Flush() if err != nil { return err @@ -39,9 +39,9 @@ func MarshalDateList(list []time.Time, writer io.Writer) error { return stream.Error } -// writeDateList writes a list of value of the 'date' type to +// WriteDateList writes a list of value of the 'date' type to // the given stream. -func writeDateList(list []time.Time, stream *jsoniter.Stream) { +func WriteDateList(list []time.Time, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -59,14 +59,14 @@ func UnmarshalDateList(source interface{}) (items []time.Time, err error) { if err != nil { return } - items = readDateList(iterator) + items = ReadDateList(iterator) err = iterator.Error return } -// readDateList reads list of values of the ”date' type from +// ReadDateList reads list of values of the ”date' type from // the given iterator. -func readDateList(iterator *jsoniter.Iterator) []time.Time { +func ReadDateList(iterator *jsoniter.Iterator) []time.Time { list := []time.Time{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/accesstransparency/v1/decision_decision_list_type_json.go b/accesstransparency/v1/decision_decision_list_type_json.go index 66ff80316..2a78b3ce9 100644 --- a/accesstransparency/v1/decision_decision_list_type_json.go +++ b/accesstransparency/v1/decision_decision_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalDecisionDecisionList(list []DecisionDecision, writer io.Writer) error { stream := helpers.NewStream(writer) - writeDecisionDecisionList(list, stream) + WriteDecisionDecisionList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalDecisionDecisionList(list []DecisionDecision, writer io.Writer) erro return stream.Error } -// writeDecisionDecisionList writes a list of value of the 'decision_decision' type to +// WriteDecisionDecisionList writes a list of value of the 'decision_decision' type to // the given stream. -func writeDecisionDecisionList(list []DecisionDecision, stream *jsoniter.Stream) { +func WriteDecisionDecisionList(list []DecisionDecision, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalDecisionDecisionList(source interface{}) (items []DecisionDecision if err != nil { return } - items = readDecisionDecisionList(iterator) + items = ReadDecisionDecisionList(iterator) err = iterator.Error return } -// readDecisionDecisionList reads list of values of the ”decision_decision' type from +// ReadDecisionDecisionList reads list of values of the ”decision_decision' type from // the given iterator. -func readDecisionDecisionList(iterator *jsoniter.Iterator) []DecisionDecision { +func ReadDecisionDecisionList(iterator *jsoniter.Iterator) []DecisionDecision { list := []DecisionDecision{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/accesstransparency/v1/decision_list_type_json.go b/accesstransparency/v1/decision_list_type_json.go index 2f814fa61..d80f94770 100644 --- a/accesstransparency/v1/decision_list_type_json.go +++ b/accesstransparency/v1/decision_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalDecisionList(list []*Decision, writer io.Writer) error { stream := helpers.NewStream(writer) - writeDecisionList(list, stream) + WriteDecisionList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalDecisionList(list []*Decision, writer io.Writer) error { return stream.Error } -// writeDecisionList writes a list of value of the 'decision' type to +// WriteDecisionList writes a list of value of the 'decision' type to // the given stream. -func writeDecisionList(list []*Decision, stream *jsoniter.Stream) { +func WriteDecisionList(list []*Decision, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeDecision(value, stream) + WriteDecision(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalDecisionList(source interface{}) (items []*Decision, err error) { if err != nil { return } - items = readDecisionList(iterator) + items = ReadDecisionList(iterator) err = iterator.Error return } -// readDecisionList reads list of values of the ”decision' type from +// ReadDecisionList reads list of values of the ”decision' type from // the given iterator. -func readDecisionList(iterator *jsoniter.Iterator) []*Decision { +func ReadDecisionList(iterator *jsoniter.Iterator) []*Decision { list := []*Decision{} for iterator.ReadArray() { - item := readDecision(iterator) + item := ReadDecision(iterator) list = append(list, item) } return list diff --git a/accesstransparency/v1/decision_type.go b/accesstransparency/v1/decision_type.go index 57a856f3b..0cb6ccc01 100644 --- a/accesstransparency/v1/decision_type.go +++ b/accesstransparency/v1/decision_type.go @@ -60,7 +60,7 @@ func (o *Decision) Kind() string { return DecisionKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Decision) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -286,6 +286,29 @@ func (l *DecisionList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *DecisionList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *DecisionList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *DecisionList) SetItems(items []*Decision) { + l.items = items +} + +// Items returns the items of the list. +func (l *DecisionList) Items() []*Decision { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *DecisionList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accesstransparency/v1/decision_type_json.go b/accesstransparency/v1/decision_type_json.go index c8d5f705b..a0520a1a8 100644 --- a/accesstransparency/v1/decision_type_json.go +++ b/accesstransparency/v1/decision_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalDecision writes a value of the 'decision' type to the given writer. func MarshalDecision(object *Decision, writer io.Writer) error { stream := helpers.NewStream(writer) - writeDecision(object, stream) + WriteDecision(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalDecision(object *Decision, writer io.Writer) error { return stream.Error } -// writeDecision writes a value of the 'decision' type to the given stream. -func writeDecision(object *Decision, stream *jsoniter.Stream) { +// WriteDecision writes a value of the 'decision' type to the given stream. +func WriteDecision(object *Decision, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -120,13 +120,13 @@ func UnmarshalDecision(source interface{}) (object *Decision, err error) { if err != nil { return } - object = readDecision(iterator) + object = ReadDecision(iterator) err = iterator.Error return } -// readDecision reads a value of the 'decision' type from the given iterator. -func readDecision(iterator *jsoniter.Iterator) *Decision { +// ReadDecision reads a value of the 'decision' type from the given iterator. +func ReadDecision(iterator *jsoniter.Iterator) *Decision { object := &Decision{} for { field := iterator.ReadObject() diff --git a/accesstransparency/v1/decisions_resource_json.go b/accesstransparency/v1/decisions_resource_json.go index cb9a96d77..0803bceb3 100644 --- a/accesstransparency/v1/decisions_resource_json.go +++ b/accesstransparency/v1/decisions_resource_json.go @@ -57,7 +57,7 @@ func readDecisionsListResponse(response *DecisionsListResponse, reader io.Reader value := iterator.ReadInt() response.total = &value case "items": - items := readDecisionList(iterator) + items := ReadDecisionList(iterator) response.items = &DecisionList{ items: items, } diff --git a/accesstransparency/v1/float_list_type_json.go b/accesstransparency/v1/float_list_type_json.go index d425f5f2e..64595ef18 100644 --- a/accesstransparency/v1/float_list_type_json.go +++ b/accesstransparency/v1/float_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalFloatList(list []float64, writer io.Writer) error { stream := helpers.NewStream(writer) - writeFloatList(list, stream) + WriteFloatList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalFloatList(list []float64, writer io.Writer) error { return stream.Error } -// writeFloatList writes a list of value of the 'float' type to +// WriteFloatList writes a list of value of the 'float' type to // the given stream. -func writeFloatList(list []float64, stream *jsoniter.Stream) { +func WriteFloatList(list []float64, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalFloatList(source interface{}) (items []float64, err error) { if err != nil { return } - items = readFloatList(iterator) + items = ReadFloatList(iterator) err = iterator.Error return } -// readFloatList reads list of values of the ”float' type from +// ReadFloatList reads list of values of the ”float' type from // the given iterator. -func readFloatList(iterator *jsoniter.Iterator) []float64 { +func ReadFloatList(iterator *jsoniter.Iterator) []float64 { list := []float64{} for iterator.ReadArray() { item := iterator.ReadFloat64() diff --git a/accesstransparency/v1/integer_list_type_json.go b/accesstransparency/v1/integer_list_type_json.go index 09b542f96..3f3b5fe49 100644 --- a/accesstransparency/v1/integer_list_type_json.go +++ b/accesstransparency/v1/integer_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalIntegerList(list []int, writer io.Writer) error { stream := helpers.NewStream(writer) - writeIntegerList(list, stream) + WriteIntegerList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalIntegerList(list []int, writer io.Writer) error { return stream.Error } -// writeIntegerList writes a list of value of the 'integer' type to +// WriteIntegerList writes a list of value of the 'integer' type to // the given stream. -func writeIntegerList(list []int, stream *jsoniter.Stream) { +func WriteIntegerList(list []int, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalIntegerList(source interface{}) (items []int, err error) { if err != nil { return } - items = readIntegerList(iterator) + items = ReadIntegerList(iterator) err = iterator.Error return } -// readIntegerList reads list of values of the ”integer' type from +// ReadIntegerList reads list of values of the ”integer' type from // the given iterator. -func readIntegerList(iterator *jsoniter.Iterator) []int { +func ReadIntegerList(iterator *jsoniter.Iterator) []int { list := []int{} for iterator.ReadArray() { item := iterator.ReadInt() diff --git a/accesstransparency/v1/interface_list_type_json.go b/accesstransparency/v1/interface_list_type_json.go index 4d4a3bcfb..a0ed98cbe 100644 --- a/accesstransparency/v1/interface_list_type_json.go +++ b/accesstransparency/v1/interface_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalInterfaceList(list []interface{}, writer io.Writer) error { stream := helpers.NewStream(writer) - writeInterfaceList(list, stream) + WriteInterfaceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalInterfaceList(list []interface{}, writer io.Writer) error { return stream.Error } -// writeInterfaceList writes a list of value of the 'interface' type to +// WriteInterfaceList writes a list of value of the 'interface' type to // the given stream. -func writeInterfaceList(list []interface{}, stream *jsoniter.Stream) { +func WriteInterfaceList(list []interface{}, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalInterfaceList(source interface{}) (items []interface{}, err error) if err != nil { return } - items = readInterfaceList(iterator) + items = ReadInterfaceList(iterator) err = iterator.Error return } -// readInterfaceList reads list of values of the ”interface' type from +// ReadInterfaceList reads list of values of the ”interface' type from // the given iterator. -func readInterfaceList(iterator *jsoniter.Iterator) []interface{} { +func ReadInterfaceList(iterator *jsoniter.Iterator) []interface{} { list := []interface{}{} for iterator.ReadArray() { var item interface{} diff --git a/accesstransparency/v1/long_list_type_json.go b/accesstransparency/v1/long_list_type_json.go index a75703c3a..11931b0a3 100644 --- a/accesstransparency/v1/long_list_type_json.go +++ b/accesstransparency/v1/long_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalLongList(list []int64, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLongList(list, stream) + WriteLongList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalLongList(list []int64, writer io.Writer) error { return stream.Error } -// writeLongList writes a list of value of the 'long' type to +// WriteLongList writes a list of value of the 'long' type to // the given stream. -func writeLongList(list []int64, stream *jsoniter.Stream) { +func WriteLongList(list []int64, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalLongList(source interface{}) (items []int64, err error) { if err != nil { return } - items = readLongList(iterator) + items = ReadLongList(iterator) err = iterator.Error return } -// readLongList reads list of values of the ”long' type from +// ReadLongList reads list of values of the ”long' type from // the given iterator. -func readLongList(iterator *jsoniter.Iterator) []int64 { +func ReadLongList(iterator *jsoniter.Iterator) []int64 { list := []int64{} for iterator.ReadArray() { item := iterator.ReadInt64() diff --git a/accesstransparency/v1/string_list_type_json.go b/accesstransparency/v1/string_list_type_json.go index 1cbd18241..7c1b5a2c7 100644 --- a/accesstransparency/v1/string_list_type_json.go +++ b/accesstransparency/v1/string_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalStringList(list []string, writer io.Writer) error { stream := helpers.NewStream(writer) - writeStringList(list, stream) + WriteStringList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalStringList(list []string, writer io.Writer) error { return stream.Error } -// writeStringList writes a list of value of the 'string' type to +// WriteStringList writes a list of value of the 'string' type to // the given stream. -func writeStringList(list []string, stream *jsoniter.Stream) { +func WriteStringList(list []string, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalStringList(source interface{}) (items []string, err error) { if err != nil { return } - items = readStringList(iterator) + items = ReadStringList(iterator) err = iterator.Error return } -// readStringList reads list of values of the ”string' type from +// ReadStringList reads list of values of the ”string' type from // the given iterator. -func readStringList(iterator *jsoniter.Iterator) []string { +func ReadStringList(iterator *jsoniter.Iterator) []string { list := []string{} for iterator.ReadArray() { item := iterator.ReadString() diff --git a/accountsmgmt/v1/access_token_auth_list_type_json.go b/accountsmgmt/v1/access_token_auth_list_type_json.go index 4a9c2940d..ed5b4d6c2 100644 --- a/accountsmgmt/v1/access_token_auth_list_type_json.go +++ b/accountsmgmt/v1/access_token_auth_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAccessTokenAuthList(list []*AccessTokenAuth, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAccessTokenAuthList(list, stream) + WriteAccessTokenAuthList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAccessTokenAuthList(list []*AccessTokenAuth, writer io.Writer) error return stream.Error } -// writeAccessTokenAuthList writes a list of value of the 'access_token_auth' type to +// WriteAccessTokenAuthList writes a list of value of the 'access_token_auth' type to // the given stream. -func writeAccessTokenAuthList(list []*AccessTokenAuth, stream *jsoniter.Stream) { +func WriteAccessTokenAuthList(list []*AccessTokenAuth, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAccessTokenAuth(value, stream) + WriteAccessTokenAuth(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAccessTokenAuthList(source interface{}) (items []*AccessTokenAuth, if err != nil { return } - items = readAccessTokenAuthList(iterator) + items = ReadAccessTokenAuthList(iterator) err = iterator.Error return } -// readAccessTokenAuthList reads list of values of the ”access_token_auth' type from +// ReadAccessTokenAuthList reads list of values of the ”access_token_auth' type from // the given iterator. -func readAccessTokenAuthList(iterator *jsoniter.Iterator) []*AccessTokenAuth { +func ReadAccessTokenAuthList(iterator *jsoniter.Iterator) []*AccessTokenAuth { list := []*AccessTokenAuth{} for iterator.ReadArray() { - item := readAccessTokenAuth(iterator) + item := ReadAccessTokenAuth(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/access_token_auth_type.go b/accountsmgmt/v1/access_token_auth_type.go index c29a557c5..39fccffd5 100644 --- a/accountsmgmt/v1/access_token_auth_type.go +++ b/accountsmgmt/v1/access_token_auth_type.go @@ -96,6 +96,29 @@ func (l *AccessTokenAuthList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AccessTokenAuthList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AccessTokenAuthList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AccessTokenAuthList) SetItems(items []*AccessTokenAuth) { + l.items = items +} + +// Items returns the items of the list. +func (l *AccessTokenAuthList) Items() []*AccessTokenAuth { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AccessTokenAuthList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/access_token_auth_type_json.go b/accountsmgmt/v1/access_token_auth_type_json.go index db0481748..bb8fe8239 100644 --- a/accountsmgmt/v1/access_token_auth_type_json.go +++ b/accountsmgmt/v1/access_token_auth_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAccessTokenAuth writes a value of the 'access_token_auth' type to the given writer. func MarshalAccessTokenAuth(object *AccessTokenAuth, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAccessTokenAuth(object, stream) + WriteAccessTokenAuth(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAccessTokenAuth(object *AccessTokenAuth, writer io.Writer) error { return stream.Error } -// writeAccessTokenAuth writes a value of the 'access_token_auth' type to the given stream. -func writeAccessTokenAuth(object *AccessTokenAuth, stream *jsoniter.Stream) { +// WriteAccessTokenAuth writes a value of the 'access_token_auth' type to the given stream. +func WriteAccessTokenAuth(object *AccessTokenAuth, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalAccessTokenAuth(source interface{}) (object *AccessTokenAuth, err if err != nil { return } - object = readAccessTokenAuth(iterator) + object = ReadAccessTokenAuth(iterator) err = iterator.Error return } -// readAccessTokenAuth reads a value of the 'access_token_auth' type from the given iterator. -func readAccessTokenAuth(iterator *jsoniter.Iterator) *AccessTokenAuth { +// ReadAccessTokenAuth reads a value of the 'access_token_auth' type from the given iterator. +func ReadAccessTokenAuth(iterator *jsoniter.Iterator) *AccessTokenAuth { object := &AccessTokenAuth{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/access_token_list_type_json.go b/accountsmgmt/v1/access_token_list_type_json.go index 680148d3a..8a6143678 100644 --- a/accountsmgmt/v1/access_token_list_type_json.go +++ b/accountsmgmt/v1/access_token_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAccessTokenList(list []*AccessToken, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAccessTokenList(list, stream) + WriteAccessTokenList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAccessTokenList(list []*AccessToken, writer io.Writer) error { return stream.Error } -// writeAccessTokenList writes a list of value of the 'access_token' type to +// WriteAccessTokenList writes a list of value of the 'access_token' type to // the given stream. -func writeAccessTokenList(list []*AccessToken, stream *jsoniter.Stream) { +func WriteAccessTokenList(list []*AccessToken, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAccessToken(value, stream) + WriteAccessToken(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAccessTokenList(source interface{}) (items []*AccessToken, err err if err != nil { return } - items = readAccessTokenList(iterator) + items = ReadAccessTokenList(iterator) err = iterator.Error return } -// readAccessTokenList reads list of values of the ”access_token' type from +// ReadAccessTokenList reads list of values of the ”access_token' type from // the given iterator. -func readAccessTokenList(iterator *jsoniter.Iterator) []*AccessToken { +func ReadAccessTokenList(iterator *jsoniter.Iterator) []*AccessToken { list := []*AccessToken{} for iterator.ReadArray() { - item := readAccessToken(iterator) + item := ReadAccessToken(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/access_token_type.go b/accountsmgmt/v1/access_token_type.go index 9268aa742..e361b10c5 100644 --- a/accountsmgmt/v1/access_token_type.go +++ b/accountsmgmt/v1/access_token_type.go @@ -76,6 +76,29 @@ func (l *AccessTokenList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AccessTokenList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AccessTokenList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AccessTokenList) SetItems(items []*AccessToken) { + l.items = items +} + +// Items returns the items of the list. +func (l *AccessTokenList) Items() []*AccessToken { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AccessTokenList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/access_token_type_json.go b/accountsmgmt/v1/access_token_type_json.go index 39ce3cc56..55b197dbb 100644 --- a/accountsmgmt/v1/access_token_type_json.go +++ b/accountsmgmt/v1/access_token_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalAccessToken writes a value of the 'access_token' type to the given writer. func MarshalAccessToken(object *AccessToken, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAccessToken(object, stream) + WriteAccessToken(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalAccessToken(object *AccessToken, writer io.Writer) error { return stream.Error } -// writeAccessToken writes a value of the 'access_token' type to the given stream. -func writeAccessToken(object *AccessToken, stream *jsoniter.Stream) { +// WriteAccessToken writes a value of the 'access_token' type to the given stream. +func WriteAccessToken(object *AccessToken, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -64,7 +64,7 @@ func writeAccessToken(object *AccessToken, stream *jsoniter.Stream) { } item := object.auths[key] stream.WriteObjectField(key) - writeAccessTokenAuth(item, stream) + WriteAccessTokenAuth(item, stream) } stream.WriteObjectEnd() } else { @@ -81,13 +81,13 @@ func UnmarshalAccessToken(source interface{}) (object *AccessToken, err error) { if err != nil { return } - object = readAccessToken(iterator) + object = ReadAccessToken(iterator) err = iterator.Error return } -// readAccessToken reads a value of the 'access_token' type from the given iterator. -func readAccessToken(iterator *jsoniter.Iterator) *AccessToken { +// ReadAccessToken reads a value of the 'access_token' type from the given iterator. +func ReadAccessToken(iterator *jsoniter.Iterator) *AccessToken { object := &AccessToken{} for { field := iterator.ReadObject() @@ -102,7 +102,7 @@ func readAccessToken(iterator *jsoniter.Iterator) *AccessToken { if key == "" { break } - item := readAccessTokenAuth(iterator) + item := ReadAccessTokenAuth(iterator) value[key] = item } object.auths = value diff --git a/accountsmgmt/v1/account_list_type_json.go b/accountsmgmt/v1/account_list_type_json.go index cdeaaf6ce..d511ef01f 100644 --- a/accountsmgmt/v1/account_list_type_json.go +++ b/accountsmgmt/v1/account_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAccountList(list []*Account, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAccountList(list, stream) + WriteAccountList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAccountList(list []*Account, writer io.Writer) error { return stream.Error } -// writeAccountList writes a list of value of the 'account' type to +// WriteAccountList writes a list of value of the 'account' type to // the given stream. -func writeAccountList(list []*Account, stream *jsoniter.Stream) { +func WriteAccountList(list []*Account, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAccount(value, stream) + WriteAccount(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAccountList(source interface{}) (items []*Account, err error) { if err != nil { return } - items = readAccountList(iterator) + items = ReadAccountList(iterator) err = iterator.Error return } -// readAccountList reads list of values of the ”account' type from +// ReadAccountList reads list of values of the ”account' type from // the given iterator. -func readAccountList(iterator *jsoniter.Iterator) []*Account { +func ReadAccountList(iterator *jsoniter.Iterator) []*Account { list := []*Account{} for iterator.ReadArray() { - item := readAccount(iterator) + item := ReadAccount(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/account_type.go b/accountsmgmt/v1/account_type.go index 09196ee8b..d5fbe2c54 100644 --- a/accountsmgmt/v1/account_type.go +++ b/accountsmgmt/v1/account_type.go @@ -68,7 +68,7 @@ func (o *Account) Kind() string { return AccountKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Account) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -464,6 +464,29 @@ func (l *AccountList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AccountList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AccountList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AccountList) SetItems(items []*Account) { + l.items = items +} + +// Items returns the items of the list. +func (l *AccountList) Items() []*Account { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AccountList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/account_type_json.go b/accountsmgmt/v1/account_type_json.go index 8f84a5bae..51642b033 100644 --- a/accountsmgmt/v1/account_type_json.go +++ b/accountsmgmt/v1/account_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalAccount writes a value of the 'account' type to the given writer. func MarshalAccount(object *Account, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAccount(object, stream) + WriteAccount(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalAccount(object *Account, writer io.Writer) error { return stream.Error } -// writeAccount writes a value of the 'account' type to the given stream. -func writeAccount(object *Account, stream *jsoniter.Stream) { +// WriteAccount writes a value of the 'account' type to the given stream. +func WriteAccount(object *Account, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -99,7 +99,7 @@ func writeAccount(object *Account, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("capabilities") - writeCapabilityList(object.capabilities, stream) + WriteCapabilityList(object.capabilities, stream) count++ } present_ = object.bitmap_&128 != 0 @@ -135,7 +135,7 @@ func writeAccount(object *Account, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("labels") - writeLabelList(object.labels, stream) + WriteLabelList(object.labels, stream) count++ } present_ = object.bitmap_&2048 != 0 @@ -153,7 +153,7 @@ func writeAccount(object *Account, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("organization") - writeOrganization(object.organization, stream) + WriteOrganization(object.organization, stream) count++ } present_ = object.bitmap_&8192 != 0 @@ -210,13 +210,13 @@ func UnmarshalAccount(source interface{}) (object *Account, err error) { if err != nil { return } - object = readAccount(iterator) + object = ReadAccount(iterator) err = iterator.Error return } -// readAccount reads a value of the 'account' type from the given iterator. -func readAccount(iterator *jsoniter.Iterator) *Account { +// ReadAccount reads a value of the 'account' type from the given iterator. +func ReadAccount(iterator *jsoniter.Iterator) *Account { object := &Account{} for { field := iterator.ReadObject() @@ -248,7 +248,7 @@ func readAccount(iterator *jsoniter.Iterator) *Account { object.banned = value object.bitmap_ |= 32 case "capabilities": - value := readCapabilityList(iterator) + value := ReadCapabilityList(iterator) object.capabilities = value object.bitmap_ |= 64 case "created_at": @@ -268,7 +268,7 @@ func readAccount(iterator *jsoniter.Iterator) *Account { object.firstName = value object.bitmap_ |= 512 case "labels": - value := readLabelList(iterator) + value := ReadLabelList(iterator) object.labels = value object.bitmap_ |= 1024 case "last_name": @@ -276,7 +276,7 @@ func readAccount(iterator *jsoniter.Iterator) *Account { object.lastName = value object.bitmap_ |= 2048 case "organization": - value := readOrganization(iterator) + value := ReadOrganization(iterator) object.organization = value object.bitmap_ |= 4096 case "rhit_account_id": diff --git a/accountsmgmt/v1/accounts_resource_json.go b/accountsmgmt/v1/accounts_resource_json.go index 558f72a30..252cc3c19 100644 --- a/accountsmgmt/v1/accounts_resource_json.go +++ b/accountsmgmt/v1/accounts_resource_json.go @@ -57,7 +57,7 @@ func readAccountsListResponse(response *AccountsListResponse, reader io.Reader) value := iterator.ReadInt() response.total = &value case "items": - items := readAccountList(iterator) + items := ReadAccountList(iterator) response.items = &AccountList{ items: items, } diff --git a/accountsmgmt/v1/action_list_type_json.go b/accountsmgmt/v1/action_list_type_json.go index 6151a01c8..bd01c0b09 100644 --- a/accountsmgmt/v1/action_list_type_json.go +++ b/accountsmgmt/v1/action_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalActionList(list []Action, writer io.Writer) error { stream := helpers.NewStream(writer) - writeActionList(list, stream) + WriteActionList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalActionList(list []Action, writer io.Writer) error { return stream.Error } -// writeActionList writes a list of value of the 'action' type to +// WriteActionList writes a list of value of the 'action' type to // the given stream. -func writeActionList(list []Action, stream *jsoniter.Stream) { +func WriteActionList(list []Action, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalActionList(source interface{}) (items []Action, err error) { if err != nil { return } - items = readActionList(iterator) + items = ReadActionList(iterator) err = iterator.Error return } -// readActionList reads list of values of the ”action' type from +// ReadActionList reads list of values of the ”action' type from // the given iterator. -func readActionList(iterator *jsoniter.Iterator) []Action { +func ReadActionList(iterator *jsoniter.Iterator) []Action { list := []Action{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/accountsmgmt/v1/billing_model_item_list_type_json.go b/accountsmgmt/v1/billing_model_item_list_type_json.go index 7f9648c13..b39d43d35 100644 --- a/accountsmgmt/v1/billing_model_item_list_type_json.go +++ b/accountsmgmt/v1/billing_model_item_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalBillingModelItemList(list []*BillingModelItem, writer io.Writer) error { stream := helpers.NewStream(writer) - writeBillingModelItemList(list, stream) + WriteBillingModelItemList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalBillingModelItemList(list []*BillingModelItem, writer io.Writer) err return stream.Error } -// writeBillingModelItemList writes a list of value of the 'billing_model_item' type to +// WriteBillingModelItemList writes a list of value of the 'billing_model_item' type to // the given stream. -func writeBillingModelItemList(list []*BillingModelItem, stream *jsoniter.Stream) { +func WriteBillingModelItemList(list []*BillingModelItem, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeBillingModelItem(value, stream) + WriteBillingModelItem(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalBillingModelItemList(source interface{}) (items []*BillingModelIte if err != nil { return } - items = readBillingModelItemList(iterator) + items = ReadBillingModelItemList(iterator) err = iterator.Error return } -// readBillingModelItemList reads list of values of the ”billing_model_item' type from +// ReadBillingModelItemList reads list of values of the ”billing_model_item' type from // the given iterator. -func readBillingModelItemList(iterator *jsoniter.Iterator) []*BillingModelItem { +func ReadBillingModelItemList(iterator *jsoniter.Iterator) []*BillingModelItem { list := []*BillingModelItem{} for iterator.ReadArray() { - item := readBillingModelItem(iterator) + item := ReadBillingModelItem(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/billing_model_item_type.go b/accountsmgmt/v1/billing_model_item_type.go index 15d811149..68158a704 100644 --- a/accountsmgmt/v1/billing_model_item_type.go +++ b/accountsmgmt/v1/billing_model_item_type.go @@ -55,7 +55,7 @@ func (o *BillingModelItem) Kind() string { return BillingModelItemKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *BillingModelItem) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -254,6 +254,29 @@ func (l *BillingModelItemList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *BillingModelItemList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *BillingModelItemList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *BillingModelItemList) SetItems(items []*BillingModelItem) { + l.items = items +} + +// Items returns the items of the list. +func (l *BillingModelItemList) Items() []*BillingModelItem { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *BillingModelItemList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/billing_model_item_type_json.go b/accountsmgmt/v1/billing_model_item_type_json.go index b3ca31f0c..ec1a5c23a 100644 --- a/accountsmgmt/v1/billing_model_item_type_json.go +++ b/accountsmgmt/v1/billing_model_item_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalBillingModelItem writes a value of the 'billing_model_item' type to the given writer. func MarshalBillingModelItem(object *BillingModelItem, writer io.Writer) error { stream := helpers.NewStream(writer) - writeBillingModelItem(object, stream) + WriteBillingModelItem(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalBillingModelItem(object *BillingModelItem, writer io.Writer) error { return stream.Error } -// writeBillingModelItem writes a value of the 'billing_model_item' type to the given stream. -func writeBillingModelItem(object *BillingModelItem, stream *jsoniter.Stream) { +// WriteBillingModelItem writes a value of the 'billing_model_item' type to the given stream. +func WriteBillingModelItem(object *BillingModelItem, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -110,13 +110,13 @@ func UnmarshalBillingModelItem(source interface{}) (object *BillingModelItem, er if err != nil { return } - object = readBillingModelItem(iterator) + object = ReadBillingModelItem(iterator) err = iterator.Error return } -// readBillingModelItem reads a value of the 'billing_model_item' type from the given iterator. -func readBillingModelItem(iterator *jsoniter.Iterator) *BillingModelItem { +// ReadBillingModelItem reads a value of the 'billing_model_item' type from the given iterator. +func ReadBillingModelItem(iterator *jsoniter.Iterator) *BillingModelItem { object := &BillingModelItem{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/billing_model_list_type_json.go b/accountsmgmt/v1/billing_model_list_type_json.go index 05b2f5197..1af86aca2 100644 --- a/accountsmgmt/v1/billing_model_list_type_json.go +++ b/accountsmgmt/v1/billing_model_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalBillingModelList(list []BillingModel, writer io.Writer) error { stream := helpers.NewStream(writer) - writeBillingModelList(list, stream) + WriteBillingModelList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalBillingModelList(list []BillingModel, writer io.Writer) error { return stream.Error } -// writeBillingModelList writes a list of value of the 'billing_model' type to +// WriteBillingModelList writes a list of value of the 'billing_model' type to // the given stream. -func writeBillingModelList(list []BillingModel, stream *jsoniter.Stream) { +func WriteBillingModelList(list []BillingModel, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalBillingModelList(source interface{}) (items []BillingModel, err er if err != nil { return } - items = readBillingModelList(iterator) + items = ReadBillingModelList(iterator) err = iterator.Error return } -// readBillingModelList reads list of values of the ”billing_model' type from +// ReadBillingModelList reads list of values of the ”billing_model' type from // the given iterator. -func readBillingModelList(iterator *jsoniter.Iterator) []BillingModel { +func ReadBillingModelList(iterator *jsoniter.Iterator) []BillingModel { list := []BillingModel{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/accountsmgmt/v1/billing_models_resource_json.go b/accountsmgmt/v1/billing_models_resource_json.go index 87bb9b57d..2fe0c6456 100644 --- a/accountsmgmt/v1/billing_models_resource_json.go +++ b/accountsmgmt/v1/billing_models_resource_json.go @@ -49,7 +49,7 @@ func readBillingModelsListResponse(response *BillingModelsListResponse, reader i value := iterator.ReadInt() response.total = &value case "items": - items := readBillingModelItemList(iterator) + items := ReadBillingModelItemList(iterator) response.items = &BillingModelItemList{ items: items, } diff --git a/accountsmgmt/v1/boolean_list_type_json.go b/accountsmgmt/v1/boolean_list_type_json.go index f4c04fda5..794315494 100644 --- a/accountsmgmt/v1/boolean_list_type_json.go +++ b/accountsmgmt/v1/boolean_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalBooleanList(list []bool, writer io.Writer) error { stream := helpers.NewStream(writer) - writeBooleanList(list, stream) + WriteBooleanList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalBooleanList(list []bool, writer io.Writer) error { return stream.Error } -// writeBooleanList writes a list of value of the 'boolean' type to +// WriteBooleanList writes a list of value of the 'boolean' type to // the given stream. -func writeBooleanList(list []bool, stream *jsoniter.Stream) { +func WriteBooleanList(list []bool, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalBooleanList(source interface{}) (items []bool, err error) { if err != nil { return } - items = readBooleanList(iterator) + items = ReadBooleanList(iterator) err = iterator.Error return } -// readBooleanList reads list of values of the ”boolean' type from +// ReadBooleanList reads list of values of the ”boolean' type from // the given iterator. -func readBooleanList(iterator *jsoniter.Iterator) []bool { +func ReadBooleanList(iterator *jsoniter.Iterator) []bool { list := []bool{} for iterator.ReadArray() { item := iterator.ReadBool() diff --git a/accountsmgmt/v1/capabilities_resource_json.go b/accountsmgmt/v1/capabilities_resource_json.go index e59605a00..3641f2402 100644 --- a/accountsmgmt/v1/capabilities_resource_json.go +++ b/accountsmgmt/v1/capabilities_resource_json.go @@ -49,7 +49,7 @@ func readCapabilitiesListResponse(response *CapabilitiesListResponse, reader io. value := iterator.ReadInt() response.total = &value case "items": - items := readCapabilityList(iterator) + items := ReadCapabilityList(iterator) response.items = &CapabilityList{ items: items, } diff --git a/accountsmgmt/v1/capability_list_type_json.go b/accountsmgmt/v1/capability_list_type_json.go index 0a35533b9..f02ed27d1 100644 --- a/accountsmgmt/v1/capability_list_type_json.go +++ b/accountsmgmt/v1/capability_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalCapabilityList(list []*Capability, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCapabilityList(list, stream) + WriteCapabilityList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalCapabilityList(list []*Capability, writer io.Writer) error { return stream.Error } -// writeCapabilityList writes a list of value of the 'capability' type to +// WriteCapabilityList writes a list of value of the 'capability' type to // the given stream. -func writeCapabilityList(list []*Capability, stream *jsoniter.Stream) { +func WriteCapabilityList(list []*Capability, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeCapability(value, stream) + WriteCapability(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalCapabilityList(source interface{}) (items []*Capability, err error if err != nil { return } - items = readCapabilityList(iterator) + items = ReadCapabilityList(iterator) err = iterator.Error return } -// readCapabilityList reads list of values of the ”capability' type from +// ReadCapabilityList reads list of values of the ”capability' type from // the given iterator. -func readCapabilityList(iterator *jsoniter.Iterator) []*Capability { +func ReadCapabilityList(iterator *jsoniter.Iterator) []*Capability { list := []*Capability{} for iterator.ReadArray() { - item := readCapability(iterator) + item := ReadCapability(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/capability_type.go b/accountsmgmt/v1/capability_type.go index 242271e33..bb24ea146 100644 --- a/accountsmgmt/v1/capability_type.go +++ b/accountsmgmt/v1/capability_type.go @@ -130,6 +130,29 @@ func (l *CapabilityList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *CapabilityList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *CapabilityList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *CapabilityList) SetItems(items []*Capability) { + l.items = items +} + +// Items returns the items of the list. +func (l *CapabilityList) Items() []*Capability { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *CapabilityList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/capability_type_json.go b/accountsmgmt/v1/capability_type_json.go index 4c537aa6b..857ecaa16 100644 --- a/accountsmgmt/v1/capability_type_json.go +++ b/accountsmgmt/v1/capability_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalCapability writes a value of the 'capability' type to the given writer. func MarshalCapability(object *Capability, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCapability(object, stream) + WriteCapability(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalCapability(object *Capability, writer io.Writer) error { return stream.Error } -// writeCapability writes a value of the 'capability' type to the given stream. -func writeCapability(object *Capability, stream *jsoniter.Stream) { +// WriteCapability writes a value of the 'capability' type to the given stream. +func WriteCapability(object *Capability, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -78,13 +78,13 @@ func UnmarshalCapability(source interface{}) (object *Capability, err error) { if err != nil { return } - object = readCapability(iterator) + object = ReadCapability(iterator) err = iterator.Error return } -// readCapability reads a value of the 'capability' type from the given iterator. -func readCapability(iterator *jsoniter.Iterator) *Capability { +// ReadCapability reads a value of the 'capability' type from the given iterator. +func ReadCapability(iterator *jsoniter.Iterator) *Capability { object := &Capability{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/cloud_account_list_type_json.go b/accountsmgmt/v1/cloud_account_list_type_json.go index a3f4c00ff..837ceaf1d 100644 --- a/accountsmgmt/v1/cloud_account_list_type_json.go +++ b/accountsmgmt/v1/cloud_account_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalCloudAccountList(list []*CloudAccount, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCloudAccountList(list, stream) + WriteCloudAccountList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalCloudAccountList(list []*CloudAccount, writer io.Writer) error { return stream.Error } -// writeCloudAccountList writes a list of value of the 'cloud_account' type to +// WriteCloudAccountList writes a list of value of the 'cloud_account' type to // the given stream. -func writeCloudAccountList(list []*CloudAccount, stream *jsoniter.Stream) { +func WriteCloudAccountList(list []*CloudAccount, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeCloudAccount(value, stream) + WriteCloudAccount(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalCloudAccountList(source interface{}) (items []*CloudAccount, err e if err != nil { return } - items = readCloudAccountList(iterator) + items = ReadCloudAccountList(iterator) err = iterator.Error return } -// readCloudAccountList reads list of values of the ”cloud_account' type from +// ReadCloudAccountList reads list of values of the ”cloud_account' type from // the given iterator. -func readCloudAccountList(iterator *jsoniter.Iterator) []*CloudAccount { +func ReadCloudAccountList(iterator *jsoniter.Iterator) []*CloudAccount { list := []*CloudAccount{} for iterator.ReadArray() { - item := readCloudAccount(iterator) + item := ReadCloudAccount(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/cloud_account_type.go b/accountsmgmt/v1/cloud_account_type.go index 7ad3b9145..01e491f3f 100644 --- a/accountsmgmt/v1/cloud_account_type.go +++ b/accountsmgmt/v1/cloud_account_type.go @@ -116,6 +116,29 @@ func (l *CloudAccountList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *CloudAccountList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *CloudAccountList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *CloudAccountList) SetItems(items []*CloudAccount) { + l.items = items +} + +// Items returns the items of the list. +func (l *CloudAccountList) Items() []*CloudAccount { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *CloudAccountList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/cloud_account_type_json.go b/accountsmgmt/v1/cloud_account_type_json.go index b4733b045..6451d1da7 100644 --- a/accountsmgmt/v1/cloud_account_type_json.go +++ b/accountsmgmt/v1/cloud_account_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalCloudAccount writes a value of the 'cloud_account' type to the given writer. func MarshalCloudAccount(object *CloudAccount, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCloudAccount(object, stream) + WriteCloudAccount(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalCloudAccount(object *CloudAccount, writer io.Writer) error { return stream.Error } -// writeCloudAccount writes a value of the 'cloud_account' type to the given stream. -func writeCloudAccount(object *CloudAccount, stream *jsoniter.Stream) { +// WriteCloudAccount writes a value of the 'cloud_account' type to the given stream. +func WriteCloudAccount(object *CloudAccount, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -66,7 +66,7 @@ func writeCloudAccount(object *CloudAccount, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("contracts") - writeContractList(object.contracts, stream) + WriteContractList(object.contracts, stream) } stream.WriteObjectEnd() } @@ -78,13 +78,13 @@ func UnmarshalCloudAccount(source interface{}) (object *CloudAccount, err error) if err != nil { return } - object = readCloudAccount(iterator) + object = ReadCloudAccount(iterator) err = iterator.Error return } -// readCloudAccount reads a value of the 'cloud_account' type from the given iterator. -func readCloudAccount(iterator *jsoniter.Iterator) *CloudAccount { +// ReadCloudAccount reads a value of the 'cloud_account' type from the given iterator. +func ReadCloudAccount(iterator *jsoniter.Iterator) *CloudAccount { object := &CloudAccount{} for { field := iterator.ReadObject() @@ -101,7 +101,7 @@ func readCloudAccount(iterator *jsoniter.Iterator) *CloudAccount { object.cloudProviderID = value object.bitmap_ |= 2 case "contracts": - value := readContractList(iterator) + value := ReadContractList(iterator) object.contracts = value object.bitmap_ |= 4 default: diff --git a/accountsmgmt/v1/cloud_resource_list_type_json.go b/accountsmgmt/v1/cloud_resource_list_type_json.go index 41130efab..edd818dec 100644 --- a/accountsmgmt/v1/cloud_resource_list_type_json.go +++ b/accountsmgmt/v1/cloud_resource_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalCloudResourceList(list []*CloudResource, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCloudResourceList(list, stream) + WriteCloudResourceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalCloudResourceList(list []*CloudResource, writer io.Writer) error { return stream.Error } -// writeCloudResourceList writes a list of value of the 'cloud_resource' type to +// WriteCloudResourceList writes a list of value of the 'cloud_resource' type to // the given stream. -func writeCloudResourceList(list []*CloudResource, stream *jsoniter.Stream) { +func WriteCloudResourceList(list []*CloudResource, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeCloudResource(value, stream) + WriteCloudResource(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalCloudResourceList(source interface{}) (items []*CloudResource, err if err != nil { return } - items = readCloudResourceList(iterator) + items = ReadCloudResourceList(iterator) err = iterator.Error return } -// readCloudResourceList reads list of values of the ”cloud_resource' type from +// ReadCloudResourceList reads list of values of the ”cloud_resource' type from // the given iterator. -func readCloudResourceList(iterator *jsoniter.Iterator) []*CloudResource { +func ReadCloudResourceList(iterator *jsoniter.Iterator) []*CloudResource { list := []*CloudResource{} for iterator.ReadArray() { - item := readCloudResource(iterator) + item := ReadCloudResource(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/cloud_resource_type.go b/accountsmgmt/v1/cloud_resource_type.go index 30517e55b..b54d400a5 100644 --- a/accountsmgmt/v1/cloud_resource_type.go +++ b/accountsmgmt/v1/cloud_resource_type.go @@ -66,7 +66,7 @@ func (o *CloudResource) Kind() string { return CloudResourceKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *CloudResource) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -420,6 +420,29 @@ func (l *CloudResourceList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *CloudResourceList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *CloudResourceList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *CloudResourceList) SetItems(items []*CloudResource) { + l.items = items +} + +// Items returns the items of the list. +func (l *CloudResourceList) Items() []*CloudResource { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *CloudResourceList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/cloud_resource_type_json.go b/accountsmgmt/v1/cloud_resource_type_json.go index 4e6ed4130..104d0630f 100644 --- a/accountsmgmt/v1/cloud_resource_type_json.go +++ b/accountsmgmt/v1/cloud_resource_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalCloudResource writes a value of the 'cloud_resource' type to the given writer. func MarshalCloudResource(object *CloudResource, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCloudResource(object, stream) + WriteCloudResource(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalCloudResource(object *CloudResource, writer io.Writer) error { return stream.Error } -// writeCloudResource writes a value of the 'cloud_resource' type to the given stream. -func writeCloudResource(object *CloudResource, stream *jsoniter.Stream) { +// WriteCloudResource writes a value of the 'cloud_resource' type to the given stream. +func WriteCloudResource(object *CloudResource, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -192,13 +192,13 @@ func UnmarshalCloudResource(source interface{}) (object *CloudResource, err erro if err != nil { return } - object = readCloudResource(iterator) + object = ReadCloudResource(iterator) err = iterator.Error return } -// readCloudResource reads a value of the 'cloud_resource' type from the given iterator. -func readCloudResource(iterator *jsoniter.Iterator) *CloudResource { +// ReadCloudResource reads a value of the 'cloud_resource' type from the given iterator. +func ReadCloudResource(iterator *jsoniter.Iterator) *CloudResource { object := &CloudResource{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/cloud_resources_resource_json.go b/accountsmgmt/v1/cloud_resources_resource_json.go index a5f57e96d..22a542dbc 100644 --- a/accountsmgmt/v1/cloud_resources_resource_json.go +++ b/accountsmgmt/v1/cloud_resources_resource_json.go @@ -57,7 +57,7 @@ func readCloudResourcesListResponse(response *CloudResourcesListResponse, reader value := iterator.ReadInt() response.total = &value case "items": - items := readCloudResourceList(iterator) + items := ReadCloudResourceList(iterator) response.items = &CloudResourceList{ items: items, } diff --git a/accountsmgmt/v1/cluster_authorization_request_list_type_json.go b/accountsmgmt/v1/cluster_authorization_request_list_type_json.go index 357f74a61..7f8668744 100644 --- a/accountsmgmt/v1/cluster_authorization_request_list_type_json.go +++ b/accountsmgmt/v1/cluster_authorization_request_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterAuthorizationRequestList(list []*ClusterAuthorizationRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterAuthorizationRequestList(list, stream) + WriteClusterAuthorizationRequestList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalClusterAuthorizationRequestList(list []*ClusterAuthorizationRequest, return stream.Error } -// writeClusterAuthorizationRequestList writes a list of value of the 'cluster_authorization_request' type to +// WriteClusterAuthorizationRequestList writes a list of value of the 'cluster_authorization_request' type to // the given stream. -func writeClusterAuthorizationRequestList(list []*ClusterAuthorizationRequest, stream *jsoniter.Stream) { +func WriteClusterAuthorizationRequestList(list []*ClusterAuthorizationRequest, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeClusterAuthorizationRequest(value, stream) + WriteClusterAuthorizationRequest(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalClusterAuthorizationRequestList(source interface{}) (items []*Clus if err != nil { return } - items = readClusterAuthorizationRequestList(iterator) + items = ReadClusterAuthorizationRequestList(iterator) err = iterator.Error return } -// readClusterAuthorizationRequestList reads list of values of the ”cluster_authorization_request' type from +// ReadClusterAuthorizationRequestList reads list of values of the ”cluster_authorization_request' type from // the given iterator. -func readClusterAuthorizationRequestList(iterator *jsoniter.Iterator) []*ClusterAuthorizationRequest { +func ReadClusterAuthorizationRequestList(iterator *jsoniter.Iterator) []*ClusterAuthorizationRequest { list := []*ClusterAuthorizationRequest{} for iterator.ReadArray() { - item := readClusterAuthorizationRequest(iterator) + item := ReadClusterAuthorizationRequest(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/cluster_authorization_request_type.go b/accountsmgmt/v1/cluster_authorization_request_type.go index d969fffeb..236638192 100644 --- a/accountsmgmt/v1/cluster_authorization_request_type.go +++ b/accountsmgmt/v1/cluster_authorization_request_type.go @@ -376,6 +376,29 @@ func (l *ClusterAuthorizationRequestList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ClusterAuthorizationRequestList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterAuthorizationRequestList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterAuthorizationRequestList) SetItems(items []*ClusterAuthorizationRequest) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterAuthorizationRequestList) Items() []*ClusterAuthorizationRequest { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ClusterAuthorizationRequestList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/cluster_authorization_request_type_json.go b/accountsmgmt/v1/cluster_authorization_request_type_json.go index bb6cd3dfc..00625d66e 100644 --- a/accountsmgmt/v1/cluster_authorization_request_type_json.go +++ b/accountsmgmt/v1/cluster_authorization_request_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalClusterAuthorizationRequest writes a value of the 'cluster_authorization_request' type to the given writer. func MarshalClusterAuthorizationRequest(object *ClusterAuthorizationRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterAuthorizationRequest(object, stream) + WriteClusterAuthorizationRequest(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalClusterAuthorizationRequest(object *ClusterAuthorizationRequest, wri return stream.Error } -// writeClusterAuthorizationRequest writes a value of the 'cluster_authorization_request' type to the given stream. -func writeClusterAuthorizationRequest(object *ClusterAuthorizationRequest, stream *jsoniter.Stream) { +// WriteClusterAuthorizationRequest writes a value of the 'cluster_authorization_request' type to the given stream. +func WriteClusterAuthorizationRequest(object *ClusterAuthorizationRequest, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -174,7 +174,7 @@ func writeClusterAuthorizationRequest(object *ClusterAuthorizationRequest, strea stream.WriteMore() } stream.WriteObjectField("resources") - writeReservedResourceList(object.resources, stream) + WriteReservedResourceList(object.resources, stream) count++ } present_ = object.bitmap_&32768 != 0 @@ -195,13 +195,13 @@ func UnmarshalClusterAuthorizationRequest(source interface{}) (object *ClusterAu if err != nil { return } - object = readClusterAuthorizationRequest(iterator) + object = ReadClusterAuthorizationRequest(iterator) err = iterator.Error return } -// readClusterAuthorizationRequest reads a value of the 'cluster_authorization_request' type from the given iterator. -func readClusterAuthorizationRequest(iterator *jsoniter.Iterator) *ClusterAuthorizationRequest { +// ReadClusterAuthorizationRequest reads a value of the 'cluster_authorization_request' type from the given iterator. +func ReadClusterAuthorizationRequest(iterator *jsoniter.Iterator) *ClusterAuthorizationRequest { object := &ClusterAuthorizationRequest{} for { field := iterator.ReadObject() @@ -266,7 +266,7 @@ func readClusterAuthorizationRequest(iterator *jsoniter.Iterator) *ClusterAuthor object.reserve = value object.bitmap_ |= 8192 case "resources": - value := readReservedResourceList(iterator) + value := ReadReservedResourceList(iterator) object.resources = value object.bitmap_ |= 16384 case "scope": diff --git a/accountsmgmt/v1/cluster_authorization_response_list_type_json.go b/accountsmgmt/v1/cluster_authorization_response_list_type_json.go index 6ba266552..4d1a13cf5 100644 --- a/accountsmgmt/v1/cluster_authorization_response_list_type_json.go +++ b/accountsmgmt/v1/cluster_authorization_response_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterAuthorizationResponseList(list []*ClusterAuthorizationResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterAuthorizationResponseList(list, stream) + WriteClusterAuthorizationResponseList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalClusterAuthorizationResponseList(list []*ClusterAuthorizationRespons return stream.Error } -// writeClusterAuthorizationResponseList writes a list of value of the 'cluster_authorization_response' type to +// WriteClusterAuthorizationResponseList writes a list of value of the 'cluster_authorization_response' type to // the given stream. -func writeClusterAuthorizationResponseList(list []*ClusterAuthorizationResponse, stream *jsoniter.Stream) { +func WriteClusterAuthorizationResponseList(list []*ClusterAuthorizationResponse, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeClusterAuthorizationResponse(value, stream) + WriteClusterAuthorizationResponse(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalClusterAuthorizationResponseList(source interface{}) (items []*Clu if err != nil { return } - items = readClusterAuthorizationResponseList(iterator) + items = ReadClusterAuthorizationResponseList(iterator) err = iterator.Error return } -// readClusterAuthorizationResponseList reads list of values of the ”cluster_authorization_response' type from +// ReadClusterAuthorizationResponseList reads list of values of the ”cluster_authorization_response' type from // the given iterator. -func readClusterAuthorizationResponseList(iterator *jsoniter.Iterator) []*ClusterAuthorizationResponse { +func ReadClusterAuthorizationResponseList(iterator *jsoniter.Iterator) []*ClusterAuthorizationResponse { list := []*ClusterAuthorizationResponse{} for iterator.ReadArray() { - item := readClusterAuthorizationResponse(iterator) + item := ReadClusterAuthorizationResponse(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/cluster_authorization_response_type.go b/accountsmgmt/v1/cluster_authorization_response_type.go index 1901cb62e..86b7e04a2 100644 --- a/accountsmgmt/v1/cluster_authorization_response_type.go +++ b/accountsmgmt/v1/cluster_authorization_response_type.go @@ -116,6 +116,29 @@ func (l *ClusterAuthorizationResponseList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ClusterAuthorizationResponseList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterAuthorizationResponseList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterAuthorizationResponseList) SetItems(items []*ClusterAuthorizationResponse) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterAuthorizationResponseList) Items() []*ClusterAuthorizationResponse { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ClusterAuthorizationResponseList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/cluster_authorization_response_type_json.go b/accountsmgmt/v1/cluster_authorization_response_type_json.go index 08062aee5..00fb16cfa 100644 --- a/accountsmgmt/v1/cluster_authorization_response_type_json.go +++ b/accountsmgmt/v1/cluster_authorization_response_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalClusterAuthorizationResponse writes a value of the 'cluster_authorization_response' type to the given writer. func MarshalClusterAuthorizationResponse(object *ClusterAuthorizationResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterAuthorizationResponse(object, stream) + WriteClusterAuthorizationResponse(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalClusterAuthorizationResponse(object *ClusterAuthorizationResponse, w return stream.Error } -// writeClusterAuthorizationResponse writes a value of the 'cluster_authorization_response' type to the given stream. -func writeClusterAuthorizationResponse(object *ClusterAuthorizationResponse, stream *jsoniter.Stream) { +// WriteClusterAuthorizationResponse writes a value of the 'cluster_authorization_response' type to the given stream. +func WriteClusterAuthorizationResponse(object *ClusterAuthorizationResponse, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -57,7 +57,7 @@ func writeClusterAuthorizationResponse(object *ClusterAuthorizationResponse, str stream.WriteMore() } stream.WriteObjectField("excess_resources") - writeReservedResourceList(object.excessResources, stream) + WriteReservedResourceList(object.excessResources, stream) count++ } present_ = object.bitmap_&4 != 0 && object.subscription != nil @@ -66,7 +66,7 @@ func writeClusterAuthorizationResponse(object *ClusterAuthorizationResponse, str stream.WriteMore() } stream.WriteObjectField("subscription") - writeSubscription(object.subscription, stream) + WriteSubscription(object.subscription, stream) } stream.WriteObjectEnd() } @@ -78,13 +78,13 @@ func UnmarshalClusterAuthorizationResponse(source interface{}) (object *ClusterA if err != nil { return } - object = readClusterAuthorizationResponse(iterator) + object = ReadClusterAuthorizationResponse(iterator) err = iterator.Error return } -// readClusterAuthorizationResponse reads a value of the 'cluster_authorization_response' type from the given iterator. -func readClusterAuthorizationResponse(iterator *jsoniter.Iterator) *ClusterAuthorizationResponse { +// ReadClusterAuthorizationResponse reads a value of the 'cluster_authorization_response' type from the given iterator. +func ReadClusterAuthorizationResponse(iterator *jsoniter.Iterator) *ClusterAuthorizationResponse { object := &ClusterAuthorizationResponse{} for { field := iterator.ReadObject() @@ -97,11 +97,11 @@ func readClusterAuthorizationResponse(iterator *jsoniter.Iterator) *ClusterAutho object.allowed = value object.bitmap_ |= 1 case "excess_resources": - value := readReservedResourceList(iterator) + value := ReadReservedResourceList(iterator) object.excessResources = value object.bitmap_ |= 2 case "subscription": - value := readSubscription(iterator) + value := ReadSubscription(iterator) object.subscription = value object.bitmap_ |= 4 default: diff --git a/accountsmgmt/v1/cluster_metrics_nodes_list_type_json.go b/accountsmgmt/v1/cluster_metrics_nodes_list_type_json.go index f46db7256..f5bd855ca 100644 --- a/accountsmgmt/v1/cluster_metrics_nodes_list_type_json.go +++ b/accountsmgmt/v1/cluster_metrics_nodes_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterMetricsNodesList(list []*ClusterMetricsNodes, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterMetricsNodesList(list, stream) + WriteClusterMetricsNodesList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalClusterMetricsNodesList(list []*ClusterMetricsNodes, writer io.Write return stream.Error } -// writeClusterMetricsNodesList writes a list of value of the 'cluster_metrics_nodes' type to +// WriteClusterMetricsNodesList writes a list of value of the 'cluster_metrics_nodes' type to // the given stream. -func writeClusterMetricsNodesList(list []*ClusterMetricsNodes, stream *jsoniter.Stream) { +func WriteClusterMetricsNodesList(list []*ClusterMetricsNodes, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeClusterMetricsNodes(value, stream) + WriteClusterMetricsNodes(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalClusterMetricsNodesList(source interface{}) (items []*ClusterMetri if err != nil { return } - items = readClusterMetricsNodesList(iterator) + items = ReadClusterMetricsNodesList(iterator) err = iterator.Error return } -// readClusterMetricsNodesList reads list of values of the ”cluster_metrics_nodes' type from +// ReadClusterMetricsNodesList reads list of values of the ”cluster_metrics_nodes' type from // the given iterator. -func readClusterMetricsNodesList(iterator *jsoniter.Iterator) []*ClusterMetricsNodes { +func ReadClusterMetricsNodesList(iterator *jsoniter.Iterator) []*ClusterMetricsNodes { list := []*ClusterMetricsNodes{} for iterator.ReadArray() { - item := readClusterMetricsNodes(iterator) + item := ReadClusterMetricsNodes(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/cluster_metrics_nodes_type.go b/accountsmgmt/v1/cluster_metrics_nodes_type.go index 1a52ac808..076f500d8 100644 --- a/accountsmgmt/v1/cluster_metrics_nodes_type.go +++ b/accountsmgmt/v1/cluster_metrics_nodes_type.go @@ -136,6 +136,29 @@ func (l *ClusterMetricsNodesList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ClusterMetricsNodesList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterMetricsNodesList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterMetricsNodesList) SetItems(items []*ClusterMetricsNodes) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterMetricsNodesList) Items() []*ClusterMetricsNodes { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ClusterMetricsNodesList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/cluster_metrics_nodes_type_json.go b/accountsmgmt/v1/cluster_metrics_nodes_type_json.go index d3b5199c3..f75738acd 100644 --- a/accountsmgmt/v1/cluster_metrics_nodes_type_json.go +++ b/accountsmgmt/v1/cluster_metrics_nodes_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalClusterMetricsNodes writes a value of the 'cluster_metrics_nodes' type to the given writer. func MarshalClusterMetricsNodes(object *ClusterMetricsNodes, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterMetricsNodes(object, stream) + WriteClusterMetricsNodes(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalClusterMetricsNodes(object *ClusterMetricsNodes, writer io.Writer) e return stream.Error } -// writeClusterMetricsNodes writes a value of the 'cluster_metrics_nodes' type to the given stream. -func writeClusterMetricsNodes(object *ClusterMetricsNodes, stream *jsoniter.Stream) { +// WriteClusterMetricsNodes writes a value of the 'cluster_metrics_nodes' type to the given stream. +func WriteClusterMetricsNodes(object *ClusterMetricsNodes, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -87,13 +87,13 @@ func UnmarshalClusterMetricsNodes(source interface{}) (object *ClusterMetricsNod if err != nil { return } - object = readClusterMetricsNodes(iterator) + object = ReadClusterMetricsNodes(iterator) err = iterator.Error return } -// readClusterMetricsNodes reads a value of the 'cluster_metrics_nodes' type from the given iterator. -func readClusterMetricsNodes(iterator *jsoniter.Iterator) *ClusterMetricsNodes { +// ReadClusterMetricsNodes reads a value of the 'cluster_metrics_nodes' type from the given iterator. +func ReadClusterMetricsNodes(iterator *jsoniter.Iterator) *ClusterMetricsNodes { object := &ClusterMetricsNodes{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/cluster_registration_request_list_type_json.go b/accountsmgmt/v1/cluster_registration_request_list_type_json.go index a5bb7a035..2e63950c1 100644 --- a/accountsmgmt/v1/cluster_registration_request_list_type_json.go +++ b/accountsmgmt/v1/cluster_registration_request_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterRegistrationRequestList(list []*ClusterRegistrationRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterRegistrationRequestList(list, stream) + WriteClusterRegistrationRequestList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalClusterRegistrationRequestList(list []*ClusterRegistrationRequest, w return stream.Error } -// writeClusterRegistrationRequestList writes a list of value of the 'cluster_registration_request' type to +// WriteClusterRegistrationRequestList writes a list of value of the 'cluster_registration_request' type to // the given stream. -func writeClusterRegistrationRequestList(list []*ClusterRegistrationRequest, stream *jsoniter.Stream) { +func WriteClusterRegistrationRequestList(list []*ClusterRegistrationRequest, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeClusterRegistrationRequest(value, stream) + WriteClusterRegistrationRequest(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalClusterRegistrationRequestList(source interface{}) (items []*Clust if err != nil { return } - items = readClusterRegistrationRequestList(iterator) + items = ReadClusterRegistrationRequestList(iterator) err = iterator.Error return } -// readClusterRegistrationRequestList reads list of values of the ”cluster_registration_request' type from +// ReadClusterRegistrationRequestList reads list of values of the ”cluster_registration_request' type from // the given iterator. -func readClusterRegistrationRequestList(iterator *jsoniter.Iterator) []*ClusterRegistrationRequest { +func ReadClusterRegistrationRequestList(iterator *jsoniter.Iterator) []*ClusterRegistrationRequest { list := []*ClusterRegistrationRequest{} for iterator.ReadArray() { - item := readClusterRegistrationRequest(iterator) + item := ReadClusterRegistrationRequest(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/cluster_registration_request_type.go b/accountsmgmt/v1/cluster_registration_request_type.go index eee3b9f64..33d7b7610 100644 --- a/accountsmgmt/v1/cluster_registration_request_type.go +++ b/accountsmgmt/v1/cluster_registration_request_type.go @@ -96,6 +96,29 @@ func (l *ClusterRegistrationRequestList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ClusterRegistrationRequestList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterRegistrationRequestList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterRegistrationRequestList) SetItems(items []*ClusterRegistrationRequest) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterRegistrationRequestList) Items() []*ClusterRegistrationRequest { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ClusterRegistrationRequestList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/cluster_registration_request_type_json.go b/accountsmgmt/v1/cluster_registration_request_type_json.go index 91c6d43f7..52462bd42 100644 --- a/accountsmgmt/v1/cluster_registration_request_type_json.go +++ b/accountsmgmt/v1/cluster_registration_request_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalClusterRegistrationRequest writes a value of the 'cluster_registration_request' type to the given writer. func MarshalClusterRegistrationRequest(object *ClusterRegistrationRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterRegistrationRequest(object, stream) + WriteClusterRegistrationRequest(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalClusterRegistrationRequest(object *ClusterRegistrationRequest, write return stream.Error } -// writeClusterRegistrationRequest writes a value of the 'cluster_registration_request' type to the given stream. -func writeClusterRegistrationRequest(object *ClusterRegistrationRequest, stream *jsoniter.Stream) { +// WriteClusterRegistrationRequest writes a value of the 'cluster_registration_request' type to the given stream. +func WriteClusterRegistrationRequest(object *ClusterRegistrationRequest, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalClusterRegistrationRequest(source interface{}) (object *ClusterReg if err != nil { return } - object = readClusterRegistrationRequest(iterator) + object = ReadClusterRegistrationRequest(iterator) err = iterator.Error return } -// readClusterRegistrationRequest reads a value of the 'cluster_registration_request' type from the given iterator. -func readClusterRegistrationRequest(iterator *jsoniter.Iterator) *ClusterRegistrationRequest { +// ReadClusterRegistrationRequest reads a value of the 'cluster_registration_request' type from the given iterator. +func ReadClusterRegistrationRequest(iterator *jsoniter.Iterator) *ClusterRegistrationRequest { object := &ClusterRegistrationRequest{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/cluster_registration_response_list_type_json.go b/accountsmgmt/v1/cluster_registration_response_list_type_json.go index c6c072a4b..3d1b6fe17 100644 --- a/accountsmgmt/v1/cluster_registration_response_list_type_json.go +++ b/accountsmgmt/v1/cluster_registration_response_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterRegistrationResponseList(list []*ClusterRegistrationResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterRegistrationResponseList(list, stream) + WriteClusterRegistrationResponseList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalClusterRegistrationResponseList(list []*ClusterRegistrationResponse, return stream.Error } -// writeClusterRegistrationResponseList writes a list of value of the 'cluster_registration_response' type to +// WriteClusterRegistrationResponseList writes a list of value of the 'cluster_registration_response' type to // the given stream. -func writeClusterRegistrationResponseList(list []*ClusterRegistrationResponse, stream *jsoniter.Stream) { +func WriteClusterRegistrationResponseList(list []*ClusterRegistrationResponse, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeClusterRegistrationResponse(value, stream) + WriteClusterRegistrationResponse(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalClusterRegistrationResponseList(source interface{}) (items []*Clus if err != nil { return } - items = readClusterRegistrationResponseList(iterator) + items = ReadClusterRegistrationResponseList(iterator) err = iterator.Error return } -// readClusterRegistrationResponseList reads list of values of the ”cluster_registration_response' type from +// ReadClusterRegistrationResponseList reads list of values of the ”cluster_registration_response' type from // the given iterator. -func readClusterRegistrationResponseList(iterator *jsoniter.Iterator) []*ClusterRegistrationResponse { +func ReadClusterRegistrationResponseList(iterator *jsoniter.Iterator) []*ClusterRegistrationResponse { list := []*ClusterRegistrationResponse{} for iterator.ReadArray() { - item := readClusterRegistrationResponse(iterator) + item := ReadClusterRegistrationResponse(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/cluster_registration_response_type.go b/accountsmgmt/v1/cluster_registration_response_type.go index 3e6ec2386..c8b0fa392 100644 --- a/accountsmgmt/v1/cluster_registration_response_type.go +++ b/accountsmgmt/v1/cluster_registration_response_type.go @@ -140,6 +140,29 @@ func (l *ClusterRegistrationResponseList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ClusterRegistrationResponseList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterRegistrationResponseList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterRegistrationResponseList) SetItems(items []*ClusterRegistrationResponse) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterRegistrationResponseList) Items() []*ClusterRegistrationResponse { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ClusterRegistrationResponseList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/cluster_registration_response_type_json.go b/accountsmgmt/v1/cluster_registration_response_type_json.go index eecc693ec..f3872dad6 100644 --- a/accountsmgmt/v1/cluster_registration_response_type_json.go +++ b/accountsmgmt/v1/cluster_registration_response_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalClusterRegistrationResponse writes a value of the 'cluster_registration_response' type to the given writer. func MarshalClusterRegistrationResponse(object *ClusterRegistrationResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterRegistrationResponse(object, stream) + WriteClusterRegistrationResponse(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalClusterRegistrationResponse(object *ClusterRegistrationResponse, wri return stream.Error } -// writeClusterRegistrationResponse writes a value of the 'cluster_registration_response' type to the given stream. -func writeClusterRegistrationResponse(object *ClusterRegistrationResponse, stream *jsoniter.Stream) { +// WriteClusterRegistrationResponse writes a value of the 'cluster_registration_response' type to the given stream. +func WriteClusterRegistrationResponse(object *ClusterRegistrationResponse, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -87,13 +87,13 @@ func UnmarshalClusterRegistrationResponse(source interface{}) (object *ClusterRe if err != nil { return } - object = readClusterRegistrationResponse(iterator) + object = ReadClusterRegistrationResponse(iterator) err = iterator.Error return } -// readClusterRegistrationResponse reads a value of the 'cluster_registration_response' type from the given iterator. -func readClusterRegistrationResponse(iterator *jsoniter.Iterator) *ClusterRegistrationResponse { +// ReadClusterRegistrationResponse reads a value of the 'cluster_registration_response' type from the given iterator. +func ReadClusterRegistrationResponse(iterator *jsoniter.Iterator) *ClusterRegistrationResponse { object := &ClusterRegistrationResponse{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/cluster_resource_list_type_json.go b/accountsmgmt/v1/cluster_resource_list_type_json.go index d4e2c8525..328a86bc7 100644 --- a/accountsmgmt/v1/cluster_resource_list_type_json.go +++ b/accountsmgmt/v1/cluster_resource_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterResourceList(list []*ClusterResource, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterResourceList(list, stream) + WriteClusterResourceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalClusterResourceList(list []*ClusterResource, writer io.Writer) error return stream.Error } -// writeClusterResourceList writes a list of value of the 'cluster_resource' type to +// WriteClusterResourceList writes a list of value of the 'cluster_resource' type to // the given stream. -func writeClusterResourceList(list []*ClusterResource, stream *jsoniter.Stream) { +func WriteClusterResourceList(list []*ClusterResource, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeClusterResource(value, stream) + WriteClusterResource(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalClusterResourceList(source interface{}) (items []*ClusterResource, if err != nil { return } - items = readClusterResourceList(iterator) + items = ReadClusterResourceList(iterator) err = iterator.Error return } -// readClusterResourceList reads list of values of the ”cluster_resource' type from +// ReadClusterResourceList reads list of values of the ”cluster_resource' type from // the given iterator. -func readClusterResourceList(iterator *jsoniter.Iterator) []*ClusterResource { +func ReadClusterResourceList(iterator *jsoniter.Iterator) []*ClusterResource { list := []*ClusterResource{} for iterator.ReadArray() { - item := readClusterResource(iterator) + item := ReadClusterResource(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/cluster_resource_type.go b/accountsmgmt/v1/cluster_resource_type.go index e554681bb..5b07b8892 100644 --- a/accountsmgmt/v1/cluster_resource_type.go +++ b/accountsmgmt/v1/cluster_resource_type.go @@ -120,6 +120,29 @@ func (l *ClusterResourceList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ClusterResourceList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterResourceList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterResourceList) SetItems(items []*ClusterResource) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterResourceList) Items() []*ClusterResource { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ClusterResourceList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/cluster_resource_type_json.go b/accountsmgmt/v1/cluster_resource_type_json.go index 24088ad1a..4cd17463e 100644 --- a/accountsmgmt/v1/cluster_resource_type_json.go +++ b/accountsmgmt/v1/cluster_resource_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalClusterResource writes a value of the 'cluster_resource' type to the given writer. func MarshalClusterResource(object *ClusterResource, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterResource(object, stream) + WriteClusterResource(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalClusterResource(object *ClusterResource, writer io.Writer) error { return stream.Error } -// writeClusterResource writes a value of the 'cluster_resource' type to the given stream. -func writeClusterResource(object *ClusterResource, stream *jsoniter.Stream) { +// WriteClusterResource writes a value of the 'cluster_resource' type to the given stream. +func WriteClusterResource(object *ClusterResource, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -49,7 +49,7 @@ func writeClusterResource(object *ClusterResource, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("total") - writeValueUnit(object.total, stream) + WriteValueUnit(object.total, stream) count++ } present_ = object.bitmap_&2 != 0 @@ -67,7 +67,7 @@ func writeClusterResource(object *ClusterResource, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("used") - writeValueUnit(object.used, stream) + WriteValueUnit(object.used, stream) } stream.WriteObjectEnd() } @@ -79,13 +79,13 @@ func UnmarshalClusterResource(source interface{}) (object *ClusterResource, err if err != nil { return } - object = readClusterResource(iterator) + object = ReadClusterResource(iterator) err = iterator.Error return } -// readClusterResource reads a value of the 'cluster_resource' type from the given iterator. -func readClusterResource(iterator *jsoniter.Iterator) *ClusterResource { +// ReadClusterResource reads a value of the 'cluster_resource' type from the given iterator. +func ReadClusterResource(iterator *jsoniter.Iterator) *ClusterResource { object := &ClusterResource{} for { field := iterator.ReadObject() @@ -94,7 +94,7 @@ func readClusterResource(iterator *jsoniter.Iterator) *ClusterResource { } switch field { case "total": - value := readValueUnit(iterator) + value := ReadValueUnit(iterator) object.total = value object.bitmap_ |= 1 case "updated_timestamp": @@ -106,7 +106,7 @@ func readClusterResource(iterator *jsoniter.Iterator) *ClusterResource { object.updatedTimestamp = value object.bitmap_ |= 2 case "used": - value := readValueUnit(iterator) + value := ReadValueUnit(iterator) object.used = value object.bitmap_ |= 4 default: diff --git a/accountsmgmt/v1/cluster_upgrade_list_type_json.go b/accountsmgmt/v1/cluster_upgrade_list_type_json.go index 7766f2129..895806abe 100644 --- a/accountsmgmt/v1/cluster_upgrade_list_type_json.go +++ b/accountsmgmt/v1/cluster_upgrade_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterUpgradeList(list []*ClusterUpgrade, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterUpgradeList(list, stream) + WriteClusterUpgradeList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalClusterUpgradeList(list []*ClusterUpgrade, writer io.Writer) error { return stream.Error } -// writeClusterUpgradeList writes a list of value of the 'cluster_upgrade' type to +// WriteClusterUpgradeList writes a list of value of the 'cluster_upgrade' type to // the given stream. -func writeClusterUpgradeList(list []*ClusterUpgrade, stream *jsoniter.Stream) { +func WriteClusterUpgradeList(list []*ClusterUpgrade, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeClusterUpgrade(value, stream) + WriteClusterUpgrade(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalClusterUpgradeList(source interface{}) (items []*ClusterUpgrade, e if err != nil { return } - items = readClusterUpgradeList(iterator) + items = ReadClusterUpgradeList(iterator) err = iterator.Error return } -// readClusterUpgradeList reads list of values of the ”cluster_upgrade' type from +// ReadClusterUpgradeList reads list of values of the ”cluster_upgrade' type from // the given iterator. -func readClusterUpgradeList(iterator *jsoniter.Iterator) []*ClusterUpgrade { +func ReadClusterUpgradeList(iterator *jsoniter.Iterator) []*ClusterUpgrade { list := []*ClusterUpgrade{} for iterator.ReadArray() { - item := readClusterUpgrade(iterator) + item := ReadClusterUpgrade(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/cluster_upgrade_type.go b/accountsmgmt/v1/cluster_upgrade_type.go index b25efb925..1ed45c717 100644 --- a/accountsmgmt/v1/cluster_upgrade_type.go +++ b/accountsmgmt/v1/cluster_upgrade_type.go @@ -140,6 +140,29 @@ func (l *ClusterUpgradeList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ClusterUpgradeList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterUpgradeList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterUpgradeList) SetItems(items []*ClusterUpgrade) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterUpgradeList) Items() []*ClusterUpgrade { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ClusterUpgradeList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/cluster_upgrade_type_json.go b/accountsmgmt/v1/cluster_upgrade_type_json.go index 514455212..0900d0abf 100644 --- a/accountsmgmt/v1/cluster_upgrade_type_json.go +++ b/accountsmgmt/v1/cluster_upgrade_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalClusterUpgrade writes a value of the 'cluster_upgrade' type to the given writer. func MarshalClusterUpgrade(object *ClusterUpgrade, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterUpgrade(object, stream) + WriteClusterUpgrade(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalClusterUpgrade(object *ClusterUpgrade, writer io.Writer) error { return stream.Error } -// writeClusterUpgrade writes a value of the 'cluster_upgrade' type to the given stream. -func writeClusterUpgrade(object *ClusterUpgrade, stream *jsoniter.Stream) { +// WriteClusterUpgrade writes a value of the 'cluster_upgrade' type to the given stream. +func WriteClusterUpgrade(object *ClusterUpgrade, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -88,13 +88,13 @@ func UnmarshalClusterUpgrade(source interface{}) (object *ClusterUpgrade, err er if err != nil { return } - object = readClusterUpgrade(iterator) + object = ReadClusterUpgrade(iterator) err = iterator.Error return } -// readClusterUpgrade reads a value of the 'cluster_upgrade' type from the given iterator. -func readClusterUpgrade(iterator *jsoniter.Iterator) *ClusterUpgrade { +// ReadClusterUpgrade reads a value of the 'cluster_upgrade' type from the given iterator. +func ReadClusterUpgrade(iterator *jsoniter.Iterator) *ClusterUpgrade { object := &ClusterUpgrade{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/contract_dimension_list_type_json.go b/accountsmgmt/v1/contract_dimension_list_type_json.go index 331403325..712fb2940 100644 --- a/accountsmgmt/v1/contract_dimension_list_type_json.go +++ b/accountsmgmt/v1/contract_dimension_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalContractDimensionList(list []*ContractDimension, writer io.Writer) error { stream := helpers.NewStream(writer) - writeContractDimensionList(list, stream) + WriteContractDimensionList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalContractDimensionList(list []*ContractDimension, writer io.Writer) e return stream.Error } -// writeContractDimensionList writes a list of value of the 'contract_dimension' type to +// WriteContractDimensionList writes a list of value of the 'contract_dimension' type to // the given stream. -func writeContractDimensionList(list []*ContractDimension, stream *jsoniter.Stream) { +func WriteContractDimensionList(list []*ContractDimension, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeContractDimension(value, stream) + WriteContractDimension(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalContractDimensionList(source interface{}) (items []*ContractDimens if err != nil { return } - items = readContractDimensionList(iterator) + items = ReadContractDimensionList(iterator) err = iterator.Error return } -// readContractDimensionList reads list of values of the ”contract_dimension' type from +// ReadContractDimensionList reads list of values of the ”contract_dimension' type from // the given iterator. -func readContractDimensionList(iterator *jsoniter.Iterator) []*ContractDimension { +func ReadContractDimensionList(iterator *jsoniter.Iterator) []*ContractDimension { list := []*ContractDimension{} for iterator.ReadArray() { - item := readContractDimension(iterator) + item := ReadContractDimension(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/contract_dimension_type.go b/accountsmgmt/v1/contract_dimension_type.go index 8a06b9016..f557d72d5 100644 --- a/accountsmgmt/v1/contract_dimension_type.go +++ b/accountsmgmt/v1/contract_dimension_type.go @@ -96,6 +96,29 @@ func (l *ContractDimensionList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ContractDimensionList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ContractDimensionList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ContractDimensionList) SetItems(items []*ContractDimension) { + l.items = items +} + +// Items returns the items of the list. +func (l *ContractDimensionList) Items() []*ContractDimension { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ContractDimensionList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/contract_dimension_type_json.go b/accountsmgmt/v1/contract_dimension_type_json.go index 8b387a165..ab0de8cc3 100644 --- a/accountsmgmt/v1/contract_dimension_type_json.go +++ b/accountsmgmt/v1/contract_dimension_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalContractDimension writes a value of the 'contract_dimension' type to the given writer. func MarshalContractDimension(object *ContractDimension, writer io.Writer) error { stream := helpers.NewStream(writer) - writeContractDimension(object, stream) + WriteContractDimension(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalContractDimension(object *ContractDimension, writer io.Writer) error return stream.Error } -// writeContractDimension writes a value of the 'contract_dimension' type to the given stream. -func writeContractDimension(object *ContractDimension, stream *jsoniter.Stream) { +// WriteContractDimension writes a value of the 'contract_dimension' type to the given stream. +func WriteContractDimension(object *ContractDimension, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalContractDimension(source interface{}) (object *ContractDimension, if err != nil { return } - object = readContractDimension(iterator) + object = ReadContractDimension(iterator) err = iterator.Error return } -// readContractDimension reads a value of the 'contract_dimension' type from the given iterator. -func readContractDimension(iterator *jsoniter.Iterator) *ContractDimension { +// ReadContractDimension reads a value of the 'contract_dimension' type from the given iterator. +func ReadContractDimension(iterator *jsoniter.Iterator) *ContractDimension { object := &ContractDimension{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/contract_list_type_json.go b/accountsmgmt/v1/contract_list_type_json.go index 427bf1245..d83505e7c 100644 --- a/accountsmgmt/v1/contract_list_type_json.go +++ b/accountsmgmt/v1/contract_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalContractList(list []*Contract, writer io.Writer) error { stream := helpers.NewStream(writer) - writeContractList(list, stream) + WriteContractList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalContractList(list []*Contract, writer io.Writer) error { return stream.Error } -// writeContractList writes a list of value of the 'contract' type to +// WriteContractList writes a list of value of the 'contract' type to // the given stream. -func writeContractList(list []*Contract, stream *jsoniter.Stream) { +func WriteContractList(list []*Contract, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeContract(value, stream) + WriteContract(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalContractList(source interface{}) (items []*Contract, err error) { if err != nil { return } - items = readContractList(iterator) + items = ReadContractList(iterator) err = iterator.Error return } -// readContractList reads list of values of the ”contract' type from +// ReadContractList reads list of values of the ”contract' type from // the given iterator. -func readContractList(iterator *jsoniter.Iterator) []*Contract { +func ReadContractList(iterator *jsoniter.Iterator) []*Contract { list := []*Contract{} for iterator.ReadArray() { - item := readContract(iterator) + item := ReadContract(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/contract_type.go b/accountsmgmt/v1/contract_type.go index 8849cab5d..83a227a0f 100644 --- a/accountsmgmt/v1/contract_type.go +++ b/accountsmgmt/v1/contract_type.go @@ -120,6 +120,29 @@ func (l *ContractList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ContractList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ContractList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ContractList) SetItems(items []*Contract) { + l.items = items +} + +// Items returns the items of the list. +func (l *ContractList) Items() []*Contract { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ContractList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/contract_type_json.go b/accountsmgmt/v1/contract_type_json.go index e913434c7..02c8f702f 100644 --- a/accountsmgmt/v1/contract_type_json.go +++ b/accountsmgmt/v1/contract_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalContract writes a value of the 'contract' type to the given writer. func MarshalContract(object *Contract, writer io.Writer) error { stream := helpers.NewStream(writer) - writeContract(object, stream) + WriteContract(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalContract(object *Contract, writer io.Writer) error { return stream.Error } -// writeContract writes a value of the 'contract' type to the given stream. -func writeContract(object *Contract, stream *jsoniter.Stream) { +// WriteContract writes a value of the 'contract' type to the given stream. +func WriteContract(object *Contract, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -49,7 +49,7 @@ func writeContract(object *Contract, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("dimensions") - writeContractDimensionList(object.dimensions, stream) + WriteContractDimensionList(object.dimensions, stream) count++ } present_ = object.bitmap_&2 != 0 @@ -79,13 +79,13 @@ func UnmarshalContract(source interface{}) (object *Contract, err error) { if err != nil { return } - object = readContract(iterator) + object = ReadContract(iterator) err = iterator.Error return } -// readContract reads a value of the 'contract' type from the given iterator. -func readContract(iterator *jsoniter.Iterator) *Contract { +// ReadContract reads a value of the 'contract' type from the given iterator. +func ReadContract(iterator *jsoniter.Iterator) *Contract { object := &Contract{} for { field := iterator.ReadObject() @@ -94,7 +94,7 @@ func readContract(iterator *jsoniter.Iterator) *Contract { } switch field { case "dimensions": - value := readContractDimensionList(iterator) + value := ReadContractDimensionList(iterator) object.dimensions = value object.bitmap_ |= 1 case "end_date": diff --git a/accountsmgmt/v1/current_access_resource_json.go b/accountsmgmt/v1/current_access_resource_json.go index f590a01a5..fef9d800a 100644 --- a/accountsmgmt/v1/current_access_resource_json.go +++ b/accountsmgmt/v1/current_access_resource_json.go @@ -49,7 +49,7 @@ func readCurrentAccessListResponse(response *CurrentAccessListResponse, reader i value := iterator.ReadInt() response.total = &value case "items": - items := readRoleList(iterator) + items := ReadRoleList(iterator) response.items = &RoleList{ items: items, } diff --git a/accountsmgmt/v1/date_list_type_json.go b/accountsmgmt/v1/date_list_type_json.go index dd5793f23..1fcf79df5 100644 --- a/accountsmgmt/v1/date_list_type_json.go +++ b/accountsmgmt/v1/date_list_type_json.go @@ -31,7 +31,7 @@ import ( // the given writer. func MarshalDateList(list []time.Time, writer io.Writer) error { stream := helpers.NewStream(writer) - writeDateList(list, stream) + WriteDateList(list, stream) err := stream.Flush() if err != nil { return err @@ -39,9 +39,9 @@ func MarshalDateList(list []time.Time, writer io.Writer) error { return stream.Error } -// writeDateList writes a list of value of the 'date' type to +// WriteDateList writes a list of value of the 'date' type to // the given stream. -func writeDateList(list []time.Time, stream *jsoniter.Stream) { +func WriteDateList(list []time.Time, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -59,14 +59,14 @@ func UnmarshalDateList(source interface{}) (items []time.Time, err error) { if err != nil { return } - items = readDateList(iterator) + items = ReadDateList(iterator) err = iterator.Error return } -// readDateList reads list of values of the ”date' type from +// ReadDateList reads list of values of the ”date' type from // the given iterator. -func readDateList(iterator *jsoniter.Iterator) []time.Time { +func ReadDateList(iterator *jsoniter.Iterator) []time.Time { list := []time.Time{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/accountsmgmt/v1/default_capabilities_resource_json.go b/accountsmgmt/v1/default_capabilities_resource_json.go index ca99be2a4..f10aab70a 100644 --- a/accountsmgmt/v1/default_capabilities_resource_json.go +++ b/accountsmgmt/v1/default_capabilities_resource_json.go @@ -57,7 +57,7 @@ func readDefaultCapabilitiesListResponse(response *DefaultCapabilitiesListRespon value := iterator.ReadInt() response.total = &value case "items": - items := readDefaultCapabilityList(iterator) + items := ReadDefaultCapabilityList(iterator) response.items = &DefaultCapabilityList{ items: items, } diff --git a/accountsmgmt/v1/default_capability_list_type_json.go b/accountsmgmt/v1/default_capability_list_type_json.go index 4566bee8d..126153154 100644 --- a/accountsmgmt/v1/default_capability_list_type_json.go +++ b/accountsmgmt/v1/default_capability_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalDefaultCapabilityList(list []*DefaultCapability, writer io.Writer) error { stream := helpers.NewStream(writer) - writeDefaultCapabilityList(list, stream) + WriteDefaultCapabilityList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalDefaultCapabilityList(list []*DefaultCapability, writer io.Writer) e return stream.Error } -// writeDefaultCapabilityList writes a list of value of the 'default_capability' type to +// WriteDefaultCapabilityList writes a list of value of the 'default_capability' type to // the given stream. -func writeDefaultCapabilityList(list []*DefaultCapability, stream *jsoniter.Stream) { +func WriteDefaultCapabilityList(list []*DefaultCapability, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeDefaultCapability(value, stream) + WriteDefaultCapability(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalDefaultCapabilityList(source interface{}) (items []*DefaultCapabil if err != nil { return } - items = readDefaultCapabilityList(iterator) + items = ReadDefaultCapabilityList(iterator) err = iterator.Error return } -// readDefaultCapabilityList reads list of values of the ”default_capability' type from +// ReadDefaultCapabilityList reads list of values of the ”default_capability' type from // the given iterator. -func readDefaultCapabilityList(iterator *jsoniter.Iterator) []*DefaultCapability { +func ReadDefaultCapabilityList(iterator *jsoniter.Iterator) []*DefaultCapability { list := []*DefaultCapability{} for iterator.ReadArray() { - item := readDefaultCapability(iterator) + item := ReadDefaultCapability(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/default_capability_type.go b/accountsmgmt/v1/default_capability_type.go index e9edc4d85..04835a146 100644 --- a/accountsmgmt/v1/default_capability_type.go +++ b/accountsmgmt/v1/default_capability_type.go @@ -104,6 +104,29 @@ func (l *DefaultCapabilityList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *DefaultCapabilityList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *DefaultCapabilityList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *DefaultCapabilityList) SetItems(items []*DefaultCapability) { + l.items = items +} + +// Items returns the items of the list. +func (l *DefaultCapabilityList) Items() []*DefaultCapability { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *DefaultCapabilityList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/default_capability_type_json.go b/accountsmgmt/v1/default_capability_type_json.go index 7d59c312b..23cfeab14 100644 --- a/accountsmgmt/v1/default_capability_type_json.go +++ b/accountsmgmt/v1/default_capability_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalDefaultCapability writes a value of the 'default_capability' type to the given writer. func MarshalDefaultCapability(object *DefaultCapability, writer io.Writer) error { stream := helpers.NewStream(writer) - writeDefaultCapability(object, stream) + WriteDefaultCapability(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalDefaultCapability(object *DefaultCapability, writer io.Writer) error return stream.Error } -// writeDefaultCapability writes a value of the 'default_capability' type to the given stream. -func writeDefaultCapability(object *DefaultCapability, stream *jsoniter.Stream) { +// WriteDefaultCapability writes a value of the 'default_capability' type to the given stream. +func WriteDefaultCapability(object *DefaultCapability, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalDefaultCapability(source interface{}) (object *DefaultCapability, if err != nil { return } - object = readDefaultCapability(iterator) + object = ReadDefaultCapability(iterator) err = iterator.Error return } -// readDefaultCapability reads a value of the 'default_capability' type from the given iterator. -func readDefaultCapability(iterator *jsoniter.Iterator) *DefaultCapability { +// ReadDefaultCapability reads a value of the 'default_capability' type from the given iterator. +func ReadDefaultCapability(iterator *jsoniter.Iterator) *DefaultCapability { object := &DefaultCapability{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/deleted_subscription_list_type_json.go b/accountsmgmt/v1/deleted_subscription_list_type_json.go index ede335498..92260607e 100644 --- a/accountsmgmt/v1/deleted_subscription_list_type_json.go +++ b/accountsmgmt/v1/deleted_subscription_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalDeletedSubscriptionList(list []*DeletedSubscription, writer io.Writer) error { stream := helpers.NewStream(writer) - writeDeletedSubscriptionList(list, stream) + WriteDeletedSubscriptionList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalDeletedSubscriptionList(list []*DeletedSubscription, writer io.Write return stream.Error } -// writeDeletedSubscriptionList writes a list of value of the 'deleted_subscription' type to +// WriteDeletedSubscriptionList writes a list of value of the 'deleted_subscription' type to // the given stream. -func writeDeletedSubscriptionList(list []*DeletedSubscription, stream *jsoniter.Stream) { +func WriteDeletedSubscriptionList(list []*DeletedSubscription, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeDeletedSubscription(value, stream) + WriteDeletedSubscription(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalDeletedSubscriptionList(source interface{}) (items []*DeletedSubsc if err != nil { return } - items = readDeletedSubscriptionList(iterator) + items = ReadDeletedSubscriptionList(iterator) err = iterator.Error return } -// readDeletedSubscriptionList reads list of values of the ”deleted_subscription' type from +// ReadDeletedSubscriptionList reads list of values of the ”deleted_subscription' type from // the given iterator. -func readDeletedSubscriptionList(iterator *jsoniter.Iterator) []*DeletedSubscription { +func ReadDeletedSubscriptionList(iterator *jsoniter.Iterator) []*DeletedSubscription { list := []*DeletedSubscription{} for iterator.ReadArray() { - item := readDeletedSubscription(iterator) + item := ReadDeletedSubscription(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/deleted_subscription_type.go b/accountsmgmt/v1/deleted_subscription_type.go index 6c7e3acb0..dfc440781 100644 --- a/accountsmgmt/v1/deleted_subscription_type.go +++ b/accountsmgmt/v1/deleted_subscription_type.go @@ -85,7 +85,7 @@ func (o *DeletedSubscription) Kind() string { return DeletedSubscriptionKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *DeletedSubscription) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -800,6 +800,29 @@ func (l *DeletedSubscriptionList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *DeletedSubscriptionList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *DeletedSubscriptionList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *DeletedSubscriptionList) SetItems(items []*DeletedSubscription) { + l.items = items +} + +// Items returns the items of the list. +func (l *DeletedSubscriptionList) Items() []*DeletedSubscription { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *DeletedSubscriptionList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/deleted_subscription_type_json.go b/accountsmgmt/v1/deleted_subscription_type_json.go index 3f17017a2..26bb681c0 100644 --- a/accountsmgmt/v1/deleted_subscription_type_json.go +++ b/accountsmgmt/v1/deleted_subscription_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalDeletedSubscription writes a value of the 'deleted_subscription' type to the given writer. func MarshalDeletedSubscription(object *DeletedSubscription, writer io.Writer) error { stream := helpers.NewStream(writer) - writeDeletedSubscription(object, stream) + WriteDeletedSubscription(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalDeletedSubscription(object *DeletedSubscription, writer io.Writer) e return stream.Error } -// writeDeletedSubscription writes a value of the 'deleted_subscription' type to the given stream. -func writeDeletedSubscription(object *DeletedSubscription, stream *jsoniter.Stream) { +// WriteDeletedSubscription writes a value of the 'deleted_subscription' type to the given stream. +func WriteDeletedSubscription(object *DeletedSubscription, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -363,13 +363,13 @@ func UnmarshalDeletedSubscription(source interface{}) (object *DeletedSubscripti if err != nil { return } - object = readDeletedSubscription(iterator) + object = ReadDeletedSubscription(iterator) err = iterator.Error return } -// readDeletedSubscription reads a value of the 'deleted_subscription' type from the given iterator. -func readDeletedSubscription(iterator *jsoniter.Iterator) *DeletedSubscription { +// ReadDeletedSubscription reads a value of the 'deleted_subscription' type from the given iterator. +func ReadDeletedSubscription(iterator *jsoniter.Iterator) *DeletedSubscription { object := &DeletedSubscription{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/deleted_subscriptions_resource_json.go b/accountsmgmt/v1/deleted_subscriptions_resource_json.go index 2067e64c6..6fef16904 100644 --- a/accountsmgmt/v1/deleted_subscriptions_resource_json.go +++ b/accountsmgmt/v1/deleted_subscriptions_resource_json.go @@ -49,7 +49,7 @@ func readDeletedSubscriptionsListResponse(response *DeletedSubscriptionsListResp value := iterator.ReadInt() response.total = &value case "items": - items := readDeletedSubscriptionList(iterator) + items := ReadDeletedSubscriptionList(iterator) response.items = &DeletedSubscriptionList{ items: items, } diff --git a/accountsmgmt/v1/feature_toggle_list_type_json.go b/accountsmgmt/v1/feature_toggle_list_type_json.go index b1d04de68..f1e845059 100644 --- a/accountsmgmt/v1/feature_toggle_list_type_json.go +++ b/accountsmgmt/v1/feature_toggle_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalFeatureToggleList(list []*FeatureToggle, writer io.Writer) error { stream := helpers.NewStream(writer) - writeFeatureToggleList(list, stream) + WriteFeatureToggleList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalFeatureToggleList(list []*FeatureToggle, writer io.Writer) error { return stream.Error } -// writeFeatureToggleList writes a list of value of the 'feature_toggle' type to +// WriteFeatureToggleList writes a list of value of the 'feature_toggle' type to // the given stream. -func writeFeatureToggleList(list []*FeatureToggle, stream *jsoniter.Stream) { +func WriteFeatureToggleList(list []*FeatureToggle, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeFeatureToggle(value, stream) + WriteFeatureToggle(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalFeatureToggleList(source interface{}) (items []*FeatureToggle, err if err != nil { return } - items = readFeatureToggleList(iterator) + items = ReadFeatureToggleList(iterator) err = iterator.Error return } -// readFeatureToggleList reads list of values of the ”feature_toggle' type from +// ReadFeatureToggleList reads list of values of the ”feature_toggle' type from // the given iterator. -func readFeatureToggleList(iterator *jsoniter.Iterator) []*FeatureToggle { +func ReadFeatureToggleList(iterator *jsoniter.Iterator) []*FeatureToggle { list := []*FeatureToggle{} for iterator.ReadArray() { - item := readFeatureToggle(iterator) + item := ReadFeatureToggle(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/feature_toggle_query_request_list_type_json.go b/accountsmgmt/v1/feature_toggle_query_request_list_type_json.go index 850fc9354..2d7a401dd 100644 --- a/accountsmgmt/v1/feature_toggle_query_request_list_type_json.go +++ b/accountsmgmt/v1/feature_toggle_query_request_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalFeatureToggleQueryRequestList(list []*FeatureToggleQueryRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeFeatureToggleQueryRequestList(list, stream) + WriteFeatureToggleQueryRequestList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalFeatureToggleQueryRequestList(list []*FeatureToggleQueryRequest, wri return stream.Error } -// writeFeatureToggleQueryRequestList writes a list of value of the 'feature_toggle_query_request' type to +// WriteFeatureToggleQueryRequestList writes a list of value of the 'feature_toggle_query_request' type to // the given stream. -func writeFeatureToggleQueryRequestList(list []*FeatureToggleQueryRequest, stream *jsoniter.Stream) { +func WriteFeatureToggleQueryRequestList(list []*FeatureToggleQueryRequest, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeFeatureToggleQueryRequest(value, stream) + WriteFeatureToggleQueryRequest(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalFeatureToggleQueryRequestList(source interface{}) (items []*Featur if err != nil { return } - items = readFeatureToggleQueryRequestList(iterator) + items = ReadFeatureToggleQueryRequestList(iterator) err = iterator.Error return } -// readFeatureToggleQueryRequestList reads list of values of the ”feature_toggle_query_request' type from +// ReadFeatureToggleQueryRequestList reads list of values of the ”feature_toggle_query_request' type from // the given iterator. -func readFeatureToggleQueryRequestList(iterator *jsoniter.Iterator) []*FeatureToggleQueryRequest { +func ReadFeatureToggleQueryRequestList(iterator *jsoniter.Iterator) []*FeatureToggleQueryRequest { list := []*FeatureToggleQueryRequest{} for iterator.ReadArray() { - item := readFeatureToggleQueryRequest(iterator) + item := ReadFeatureToggleQueryRequest(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/feature_toggle_query_request_type.go b/accountsmgmt/v1/feature_toggle_query_request_type.go index 82403cfb5..723678a9a 100644 --- a/accountsmgmt/v1/feature_toggle_query_request_type.go +++ b/accountsmgmt/v1/feature_toggle_query_request_type.go @@ -76,6 +76,29 @@ func (l *FeatureToggleQueryRequestList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *FeatureToggleQueryRequestList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *FeatureToggleQueryRequestList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *FeatureToggleQueryRequestList) SetItems(items []*FeatureToggleQueryRequest) { + l.items = items +} + +// Items returns the items of the list. +func (l *FeatureToggleQueryRequestList) Items() []*FeatureToggleQueryRequest { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *FeatureToggleQueryRequestList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/feature_toggle_query_request_type_json.go b/accountsmgmt/v1/feature_toggle_query_request_type_json.go index d12d77e1d..b04a900f9 100644 --- a/accountsmgmt/v1/feature_toggle_query_request_type_json.go +++ b/accountsmgmt/v1/feature_toggle_query_request_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalFeatureToggleQueryRequest writes a value of the 'feature_toggle_query_request' type to the given writer. func MarshalFeatureToggleQueryRequest(object *FeatureToggleQueryRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeFeatureToggleQueryRequest(object, stream) + WriteFeatureToggleQueryRequest(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalFeatureToggleQueryRequest(object *FeatureToggleQueryRequest, writer return stream.Error } -// writeFeatureToggleQueryRequest writes a value of the 'feature_toggle_query_request' type to the given stream. -func writeFeatureToggleQueryRequest(object *FeatureToggleQueryRequest, stream *jsoniter.Stream) { +// WriteFeatureToggleQueryRequest writes a value of the 'feature_toggle_query_request' type to the given stream. +func WriteFeatureToggleQueryRequest(object *FeatureToggleQueryRequest, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalFeatureToggleQueryRequest(source interface{}) (object *FeatureTogg if err != nil { return } - object = readFeatureToggleQueryRequest(iterator) + object = ReadFeatureToggleQueryRequest(iterator) err = iterator.Error return } -// readFeatureToggleQueryRequest reads a value of the 'feature_toggle_query_request' type from the given iterator. -func readFeatureToggleQueryRequest(iterator *jsoniter.Iterator) *FeatureToggleQueryRequest { +// ReadFeatureToggleQueryRequest reads a value of the 'feature_toggle_query_request' type from the given iterator. +func ReadFeatureToggleQueryRequest(iterator *jsoniter.Iterator) *FeatureToggleQueryRequest { object := &FeatureToggleQueryRequest{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/feature_toggle_type.go b/accountsmgmt/v1/feature_toggle_type.go index 48934f3dd..225a070ed 100644 --- a/accountsmgmt/v1/feature_toggle_type.go +++ b/accountsmgmt/v1/feature_toggle_type.go @@ -50,7 +50,7 @@ func (o *FeatureToggle) Kind() string { return FeatureToggleKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *FeatureToggle) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -176,6 +176,29 @@ func (l *FeatureToggleList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *FeatureToggleList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *FeatureToggleList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *FeatureToggleList) SetItems(items []*FeatureToggle) { + l.items = items +} + +// Items returns the items of the list. +func (l *FeatureToggleList) Items() []*FeatureToggle { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *FeatureToggleList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/feature_toggle_type_json.go b/accountsmgmt/v1/feature_toggle_type_json.go index 1fa3db2bb..a1cd30656 100644 --- a/accountsmgmt/v1/feature_toggle_type_json.go +++ b/accountsmgmt/v1/feature_toggle_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalFeatureToggle writes a value of the 'feature_toggle' type to the given writer. func MarshalFeatureToggle(object *FeatureToggle, writer io.Writer) error { stream := helpers.NewStream(writer) - writeFeatureToggle(object, stream) + WriteFeatureToggle(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalFeatureToggle(object *FeatureToggle, writer io.Writer) error { return stream.Error } -// writeFeatureToggle writes a value of the 'feature_toggle' type to the given stream. -func writeFeatureToggle(object *FeatureToggle, stream *jsoniter.Stream) { +// WriteFeatureToggle writes a value of the 'feature_toggle' type to the given stream. +func WriteFeatureToggle(object *FeatureToggle, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -83,13 +83,13 @@ func UnmarshalFeatureToggle(source interface{}) (object *FeatureToggle, err erro if err != nil { return } - object = readFeatureToggle(iterator) + object = ReadFeatureToggle(iterator) err = iterator.Error return } -// readFeatureToggle reads a value of the 'feature_toggle' type from the given iterator. -func readFeatureToggle(iterator *jsoniter.Iterator) *FeatureToggle { +// ReadFeatureToggle reads a value of the 'feature_toggle' type from the given iterator. +func ReadFeatureToggle(iterator *jsoniter.Iterator) *FeatureToggle { object := &FeatureToggle{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/float_list_type_json.go b/accountsmgmt/v1/float_list_type_json.go index 9ec17587e..781fce3a1 100644 --- a/accountsmgmt/v1/float_list_type_json.go +++ b/accountsmgmt/v1/float_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalFloatList(list []float64, writer io.Writer) error { stream := helpers.NewStream(writer) - writeFloatList(list, stream) + WriteFloatList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalFloatList(list []float64, writer io.Writer) error { return stream.Error } -// writeFloatList writes a list of value of the 'float' type to +// WriteFloatList writes a list of value of the 'float' type to // the given stream. -func writeFloatList(list []float64, stream *jsoniter.Stream) { +func WriteFloatList(list []float64, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalFloatList(source interface{}) (items []float64, err error) { if err != nil { return } - items = readFloatList(iterator) + items = ReadFloatList(iterator) err = iterator.Error return } -// readFloatList reads list of values of the ”float' type from +// ReadFloatList reads list of values of the ”float' type from // the given iterator. -func readFloatList(iterator *jsoniter.Iterator) []float64 { +func ReadFloatList(iterator *jsoniter.Iterator) []float64 { list := []float64{} for iterator.ReadArray() { item := iterator.ReadFloat64() diff --git a/accountsmgmt/v1/generic_labels_resource_json.go b/accountsmgmt/v1/generic_labels_resource_json.go index ee7bcfcd3..de631ad1e 100644 --- a/accountsmgmt/v1/generic_labels_resource_json.go +++ b/accountsmgmt/v1/generic_labels_resource_json.go @@ -57,7 +57,7 @@ func readGenericLabelsListResponse(response *GenericLabelsListResponse, reader i value := iterator.ReadInt() response.total = &value case "items": - items := readLabelList(iterator) + items := ReadLabelList(iterator) response.items = &LabelList{ items: items, } diff --git a/accountsmgmt/v1/generic_notify_details_response_list_type_json.go b/accountsmgmt/v1/generic_notify_details_response_list_type_json.go index 31889c643..8a405da51 100644 --- a/accountsmgmt/v1/generic_notify_details_response_list_type_json.go +++ b/accountsmgmt/v1/generic_notify_details_response_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalGenericNotifyDetailsResponseList(list []*GenericNotifyDetailsResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGenericNotifyDetailsResponseList(list, stream) + WriteGenericNotifyDetailsResponseList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalGenericNotifyDetailsResponseList(list []*GenericNotifyDetailsRespons return stream.Error } -// writeGenericNotifyDetailsResponseList writes a list of value of the 'generic_notify_details_response' type to +// WriteGenericNotifyDetailsResponseList writes a list of value of the 'generic_notify_details_response' type to // the given stream. -func writeGenericNotifyDetailsResponseList(list []*GenericNotifyDetailsResponse, stream *jsoniter.Stream) { +func WriteGenericNotifyDetailsResponseList(list []*GenericNotifyDetailsResponse, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeGenericNotifyDetailsResponse(value, stream) + WriteGenericNotifyDetailsResponse(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalGenericNotifyDetailsResponseList(source interface{}) (items []*Gen if err != nil { return } - items = readGenericNotifyDetailsResponseList(iterator) + items = ReadGenericNotifyDetailsResponseList(iterator) err = iterator.Error return } -// readGenericNotifyDetailsResponseList reads list of values of the ”generic_notify_details_response' type from +// ReadGenericNotifyDetailsResponseList reads list of values of the ”generic_notify_details_response' type from // the given iterator. -func readGenericNotifyDetailsResponseList(iterator *jsoniter.Iterator) []*GenericNotifyDetailsResponse { +func ReadGenericNotifyDetailsResponseList(iterator *jsoniter.Iterator) []*GenericNotifyDetailsResponse { list := []*GenericNotifyDetailsResponse{} for iterator.ReadArray() { - item := readGenericNotifyDetailsResponse(iterator) + item := ReadGenericNotifyDetailsResponse(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/generic_notify_details_response_type.go b/accountsmgmt/v1/generic_notify_details_response_type.go index ab4c3e443..440fcb8d9 100644 --- a/accountsmgmt/v1/generic_notify_details_response_type.go +++ b/accountsmgmt/v1/generic_notify_details_response_type.go @@ -54,7 +54,7 @@ func (o *GenericNotifyDetailsResponse) Kind() string { return GenericNotifyDetailsResponseKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *GenericNotifyDetailsResponse) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -230,6 +230,29 @@ func (l *GenericNotifyDetailsResponseList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *GenericNotifyDetailsResponseList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *GenericNotifyDetailsResponseList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *GenericNotifyDetailsResponseList) SetItems(items []*GenericNotifyDetailsResponse) { + l.items = items +} + +// Items returns the items of the list. +func (l *GenericNotifyDetailsResponseList) Items() []*GenericNotifyDetailsResponse { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *GenericNotifyDetailsResponseList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/generic_notify_details_response_type_json.go b/accountsmgmt/v1/generic_notify_details_response_type_json.go index 8963b3034..bfdd1c55f 100644 --- a/accountsmgmt/v1/generic_notify_details_response_type_json.go +++ b/accountsmgmt/v1/generic_notify_details_response_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalGenericNotifyDetailsResponse writes a value of the 'generic_notify_details_response' type to the given writer. func MarshalGenericNotifyDetailsResponse(object *GenericNotifyDetailsResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGenericNotifyDetailsResponse(object, stream) + WriteGenericNotifyDetailsResponse(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalGenericNotifyDetailsResponse(object *GenericNotifyDetailsResponse, w return stream.Error } -// writeGenericNotifyDetailsResponse writes a value of the 'generic_notify_details_response' type to the given stream. -func writeGenericNotifyDetailsResponse(object *GenericNotifyDetailsResponse, stream *jsoniter.Stream) { +// WriteGenericNotifyDetailsResponse writes a value of the 'generic_notify_details_response' type to the given stream. +func WriteGenericNotifyDetailsResponse(object *GenericNotifyDetailsResponse, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -71,7 +71,7 @@ func writeGenericNotifyDetailsResponse(object *GenericNotifyDetailsResponse, str stream.WriteMore() } stream.WriteObjectField("associates") - writeStringList(object.associates, stream) + WriteStringList(object.associates, stream) count++ } present_ = object.bitmap_&16 != 0 && object.items != nil @@ -80,7 +80,7 @@ func writeGenericNotifyDetailsResponse(object *GenericNotifyDetailsResponse, str stream.WriteMore() } stream.WriteObjectField("items") - writeNotificationDetailsResponseList(object.items, stream) + WriteNotificationDetailsResponseList(object.items, stream) count++ } present_ = object.bitmap_&32 != 0 && object.recipients != nil @@ -89,7 +89,7 @@ func writeGenericNotifyDetailsResponse(object *GenericNotifyDetailsResponse, str stream.WriteMore() } stream.WriteObjectField("recipients") - writeStringList(object.recipients, stream) + WriteStringList(object.recipients, stream) } stream.WriteObjectEnd() } @@ -101,13 +101,13 @@ func UnmarshalGenericNotifyDetailsResponse(source interface{}) (object *GenericN if err != nil { return } - object = readGenericNotifyDetailsResponse(iterator) + object = ReadGenericNotifyDetailsResponse(iterator) err = iterator.Error return } -// readGenericNotifyDetailsResponse reads a value of the 'generic_notify_details_response' type from the given iterator. -func readGenericNotifyDetailsResponse(iterator *jsoniter.Iterator) *GenericNotifyDetailsResponse { +// ReadGenericNotifyDetailsResponse reads a value of the 'generic_notify_details_response' type from the given iterator. +func ReadGenericNotifyDetailsResponse(iterator *jsoniter.Iterator) *GenericNotifyDetailsResponse { object := &GenericNotifyDetailsResponse{} for { field := iterator.ReadObject() @@ -127,15 +127,15 @@ func readGenericNotifyDetailsResponse(iterator *jsoniter.Iterator) *GenericNotif object.href = iterator.ReadString() object.bitmap_ |= 4 case "associates": - value := readStringList(iterator) + value := ReadStringList(iterator) object.associates = value object.bitmap_ |= 8 case "items": - value := readNotificationDetailsResponseList(iterator) + value := ReadNotificationDetailsResponseList(iterator) object.items = value object.bitmap_ |= 16 case "recipients": - value := readStringList(iterator) + value := ReadStringList(iterator) object.recipients = value object.bitmap_ |= 32 default: diff --git a/accountsmgmt/v1/integer_list_type_json.go b/accountsmgmt/v1/integer_list_type_json.go index 139cec4cd..2d113fc87 100644 --- a/accountsmgmt/v1/integer_list_type_json.go +++ b/accountsmgmt/v1/integer_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalIntegerList(list []int, writer io.Writer) error { stream := helpers.NewStream(writer) - writeIntegerList(list, stream) + WriteIntegerList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalIntegerList(list []int, writer io.Writer) error { return stream.Error } -// writeIntegerList writes a list of value of the 'integer' type to +// WriteIntegerList writes a list of value of the 'integer' type to // the given stream. -func writeIntegerList(list []int, stream *jsoniter.Stream) { +func WriteIntegerList(list []int, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalIntegerList(source interface{}) (items []int, err error) { if err != nil { return } - items = readIntegerList(iterator) + items = ReadIntegerList(iterator) err = iterator.Error return } -// readIntegerList reads list of values of the ”integer' type from +// ReadIntegerList reads list of values of the ”integer' type from // the given iterator. -func readIntegerList(iterator *jsoniter.Iterator) []int { +func ReadIntegerList(iterator *jsoniter.Iterator) []int { list := []int{} for iterator.ReadArray() { item := iterator.ReadInt() diff --git a/accountsmgmt/v1/interface_list_type_json.go b/accountsmgmt/v1/interface_list_type_json.go index 3587b74a4..1d3060118 100644 --- a/accountsmgmt/v1/interface_list_type_json.go +++ b/accountsmgmt/v1/interface_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalInterfaceList(list []interface{}, writer io.Writer) error { stream := helpers.NewStream(writer) - writeInterfaceList(list, stream) + WriteInterfaceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalInterfaceList(list []interface{}, writer io.Writer) error { return stream.Error } -// writeInterfaceList writes a list of value of the 'interface' type to +// WriteInterfaceList writes a list of value of the 'interface' type to // the given stream. -func writeInterfaceList(list []interface{}, stream *jsoniter.Stream) { +func WriteInterfaceList(list []interface{}, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalInterfaceList(source interface{}) (items []interface{}, err error) if err != nil { return } - items = readInterfaceList(iterator) + items = ReadInterfaceList(iterator) err = iterator.Error return } -// readInterfaceList reads list of values of the ”interface' type from +// ReadInterfaceList reads list of values of the ”interface' type from // the given iterator. -func readInterfaceList(iterator *jsoniter.Iterator) []interface{} { +func ReadInterfaceList(iterator *jsoniter.Iterator) []interface{} { list := []interface{}{} for iterator.ReadArray() { var item interface{} diff --git a/accountsmgmt/v1/label_list_type_json.go b/accountsmgmt/v1/label_list_type_json.go index ca3de713e..0b985f850 100644 --- a/accountsmgmt/v1/label_list_type_json.go +++ b/accountsmgmt/v1/label_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalLabelList(list []*Label, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLabelList(list, stream) + WriteLabelList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalLabelList(list []*Label, writer io.Writer) error { return stream.Error } -// writeLabelList writes a list of value of the 'label' type to +// WriteLabelList writes a list of value of the 'label' type to // the given stream. -func writeLabelList(list []*Label, stream *jsoniter.Stream) { +func WriteLabelList(list []*Label, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeLabel(value, stream) + WriteLabel(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalLabelList(source interface{}) (items []*Label, err error) { if err != nil { return } - items = readLabelList(iterator) + items = ReadLabelList(iterator) err = iterator.Error return } -// readLabelList reads list of values of the ”label' type from +// ReadLabelList reads list of values of the ”label' type from // the given iterator. -func readLabelList(iterator *jsoniter.Iterator) []*Label { +func ReadLabelList(iterator *jsoniter.Iterator) []*Label { list := []*Label{} for iterator.ReadArray() { - item := readLabel(iterator) + item := ReadLabel(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/label_type.go b/accountsmgmt/v1/label_type.go index 06fa2aa81..f2dc99698 100644 --- a/accountsmgmt/v1/label_type.go +++ b/accountsmgmt/v1/label_type.go @@ -63,7 +63,7 @@ func (o *Label) Kind() string { return LabelKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Label) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -360,6 +360,29 @@ func (l *LabelList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *LabelList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *LabelList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *LabelList) SetItems(items []*Label) { + l.items = items +} + +// Items returns the items of the list. +func (l *LabelList) Items() []*Label { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *LabelList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/label_type_json.go b/accountsmgmt/v1/label_type_json.go index 131f8f44d..7fc891900 100644 --- a/accountsmgmt/v1/label_type_json.go +++ b/accountsmgmt/v1/label_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalLabel writes a value of the 'label' type to the given writer. func MarshalLabel(object *Label, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLabel(object, stream) + WriteLabel(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalLabel(object *Label, writer io.Writer) error { return stream.Error } -// writeLabel writes a value of the 'label' type to the given stream. -func writeLabel(object *Label, stream *jsoniter.Stream) { +// WriteLabel writes a value of the 'label' type to the given stream. +func WriteLabel(object *Label, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -165,13 +165,13 @@ func UnmarshalLabel(source interface{}) (object *Label, err error) { if err != nil { return } - object = readLabel(iterator) + object = ReadLabel(iterator) err = iterator.Error return } -// readLabel reads a value of the 'label' type from the given iterator. -func readLabel(iterator *jsoniter.Iterator) *Label { +// ReadLabel reads a value of the 'label' type from the given iterator. +func ReadLabel(iterator *jsoniter.Iterator) *Label { object := &Label{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/labels_resource_json.go b/accountsmgmt/v1/labels_resource_json.go index e59c95d3b..9d1cde91f 100644 --- a/accountsmgmt/v1/labels_resource_json.go +++ b/accountsmgmt/v1/labels_resource_json.go @@ -49,7 +49,7 @@ func readLabelsListResponse(response *LabelsListResponse, reader io.Reader) erro value := iterator.ReadInt() response.total = &value case "items": - items := readLabelList(iterator) + items := ReadLabelList(iterator) response.items = &LabelList{ items: items, } diff --git a/accountsmgmt/v1/long_list_type_json.go b/accountsmgmt/v1/long_list_type_json.go index e406d8d07..1e6c53eec 100644 --- a/accountsmgmt/v1/long_list_type_json.go +++ b/accountsmgmt/v1/long_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalLongList(list []int64, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLongList(list, stream) + WriteLongList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalLongList(list []int64, writer io.Writer) error { return stream.Error } -// writeLongList writes a list of value of the 'long' type to +// WriteLongList writes a list of value of the 'long' type to // the given stream. -func writeLongList(list []int64, stream *jsoniter.Stream) { +func WriteLongList(list []int64, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalLongList(source interface{}) (items []int64, err error) { if err != nil { return } - items = readLongList(iterator) + items = ReadLongList(iterator) err = iterator.Error return } -// readLongList reads list of values of the ”long' type from +// ReadLongList reads list of values of the ”long' type from // the given iterator. -func readLongList(iterator *jsoniter.Iterator) []int64 { +func ReadLongList(iterator *jsoniter.Iterator) []int64 { list := []int64{} for iterator.ReadArray() { item := iterator.ReadInt64() diff --git a/accountsmgmt/v1/notification_details_request_list_type_json.go b/accountsmgmt/v1/notification_details_request_list_type_json.go index 06cbb6fa7..551c80681 100644 --- a/accountsmgmt/v1/notification_details_request_list_type_json.go +++ b/accountsmgmt/v1/notification_details_request_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalNotificationDetailsRequestList(list []*NotificationDetailsRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeNotificationDetailsRequestList(list, stream) + WriteNotificationDetailsRequestList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalNotificationDetailsRequestList(list []*NotificationDetailsRequest, w return stream.Error } -// writeNotificationDetailsRequestList writes a list of value of the 'notification_details_request' type to +// WriteNotificationDetailsRequestList writes a list of value of the 'notification_details_request' type to // the given stream. -func writeNotificationDetailsRequestList(list []*NotificationDetailsRequest, stream *jsoniter.Stream) { +func WriteNotificationDetailsRequestList(list []*NotificationDetailsRequest, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeNotificationDetailsRequest(value, stream) + WriteNotificationDetailsRequest(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalNotificationDetailsRequestList(source interface{}) (items []*Notif if err != nil { return } - items = readNotificationDetailsRequestList(iterator) + items = ReadNotificationDetailsRequestList(iterator) err = iterator.Error return } -// readNotificationDetailsRequestList reads list of values of the ”notification_details_request' type from +// ReadNotificationDetailsRequestList reads list of values of the ”notification_details_request' type from // the given iterator. -func readNotificationDetailsRequestList(iterator *jsoniter.Iterator) []*NotificationDetailsRequest { +func ReadNotificationDetailsRequestList(iterator *jsoniter.Iterator) []*NotificationDetailsRequest { list := []*NotificationDetailsRequest{} for iterator.ReadArray() { - item := readNotificationDetailsRequest(iterator) + item := ReadNotificationDetailsRequest(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/notification_details_request_type.go b/accountsmgmt/v1/notification_details_request_type.go index 851456c33..1b5563ac5 100644 --- a/accountsmgmt/v1/notification_details_request_type.go +++ b/accountsmgmt/v1/notification_details_request_type.go @@ -227,6 +227,29 @@ func (l *NotificationDetailsRequestList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *NotificationDetailsRequestList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *NotificationDetailsRequestList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *NotificationDetailsRequestList) SetItems(items []*NotificationDetailsRequest) { + l.items = items +} + +// Items returns the items of the list. +func (l *NotificationDetailsRequestList) Items() []*NotificationDetailsRequest { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *NotificationDetailsRequestList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/notification_details_request_type_json.go b/accountsmgmt/v1/notification_details_request_type_json.go index 6b5129a48..cfcddf714 100644 --- a/accountsmgmt/v1/notification_details_request_type_json.go +++ b/accountsmgmt/v1/notification_details_request_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalNotificationDetailsRequest writes a value of the 'notification_details_request' type to the given writer. func MarshalNotificationDetailsRequest(object *NotificationDetailsRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeNotificationDetailsRequest(object, stream) + WriteNotificationDetailsRequest(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalNotificationDetailsRequest(object *NotificationDetailsRequest, write return stream.Error } -// writeNotificationDetailsRequest writes a value of the 'notification_details_request' type to the given stream. -func writeNotificationDetailsRequest(object *NotificationDetailsRequest, stream *jsoniter.Stream) { +// WriteNotificationDetailsRequest writes a value of the 'notification_details_request' type to the given stream. +func WriteNotificationDetailsRequest(object *NotificationDetailsRequest, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -114,13 +114,13 @@ func UnmarshalNotificationDetailsRequest(source interface{}) (object *Notificati if err != nil { return } - object = readNotificationDetailsRequest(iterator) + object = ReadNotificationDetailsRequest(iterator) err = iterator.Error return } -// readNotificationDetailsRequest reads a value of the 'notification_details_request' type from the given iterator. -func readNotificationDetailsRequest(iterator *jsoniter.Iterator) *NotificationDetailsRequest { +// ReadNotificationDetailsRequest reads a value of the 'notification_details_request' type from the given iterator. +func ReadNotificationDetailsRequest(iterator *jsoniter.Iterator) *NotificationDetailsRequest { object := &NotificationDetailsRequest{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/notification_details_response_list_type_json.go b/accountsmgmt/v1/notification_details_response_list_type_json.go index e26d687a0..bb82a8009 100644 --- a/accountsmgmt/v1/notification_details_response_list_type_json.go +++ b/accountsmgmt/v1/notification_details_response_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalNotificationDetailsResponseList(list []*NotificationDetailsResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeNotificationDetailsResponseList(list, stream) + WriteNotificationDetailsResponseList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalNotificationDetailsResponseList(list []*NotificationDetailsResponse, return stream.Error } -// writeNotificationDetailsResponseList writes a list of value of the 'notification_details_response' type to +// WriteNotificationDetailsResponseList writes a list of value of the 'notification_details_response' type to // the given stream. -func writeNotificationDetailsResponseList(list []*NotificationDetailsResponse, stream *jsoniter.Stream) { +func WriteNotificationDetailsResponseList(list []*NotificationDetailsResponse, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeNotificationDetailsResponse(value, stream) + WriteNotificationDetailsResponse(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalNotificationDetailsResponseList(source interface{}) (items []*Noti if err != nil { return } - items = readNotificationDetailsResponseList(iterator) + items = ReadNotificationDetailsResponseList(iterator) err = iterator.Error return } -// readNotificationDetailsResponseList reads list of values of the ”notification_details_response' type from +// ReadNotificationDetailsResponseList reads list of values of the ”notification_details_response' type from // the given iterator. -func readNotificationDetailsResponseList(iterator *jsoniter.Iterator) []*NotificationDetailsResponse { +func ReadNotificationDetailsResponseList(iterator *jsoniter.Iterator) []*NotificationDetailsResponse { list := []*NotificationDetailsResponse{} for iterator.ReadArray() { - item := readNotificationDetailsResponse(iterator) + item := ReadNotificationDetailsResponse(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/notification_details_response_type.go b/accountsmgmt/v1/notification_details_response_type.go index 50997a553..3e9986ca0 100644 --- a/accountsmgmt/v1/notification_details_response_type.go +++ b/accountsmgmt/v1/notification_details_response_type.go @@ -53,7 +53,7 @@ func (o *NotificationDetailsResponse) Kind() string { return NotificationDetailsResponseKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *NotificationDetailsResponse) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -206,6 +206,29 @@ func (l *NotificationDetailsResponseList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *NotificationDetailsResponseList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *NotificationDetailsResponseList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *NotificationDetailsResponseList) SetItems(items []*NotificationDetailsResponse) { + l.items = items +} + +// Items returns the items of the list. +func (l *NotificationDetailsResponseList) Items() []*NotificationDetailsResponse { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *NotificationDetailsResponseList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/notification_details_response_type_json.go b/accountsmgmt/v1/notification_details_response_type_json.go index 701b4e658..f0c00533d 100644 --- a/accountsmgmt/v1/notification_details_response_type_json.go +++ b/accountsmgmt/v1/notification_details_response_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalNotificationDetailsResponse writes a value of the 'notification_details_response' type to the given writer. func MarshalNotificationDetailsResponse(object *NotificationDetailsResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeNotificationDetailsResponse(object, stream) + WriteNotificationDetailsResponse(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalNotificationDetailsResponse(object *NotificationDetailsResponse, wri return stream.Error } -// writeNotificationDetailsResponse writes a value of the 'notification_details_response' type to the given stream. -func writeNotificationDetailsResponse(object *NotificationDetailsResponse, stream *jsoniter.Stream) { +// WriteNotificationDetailsResponse writes a value of the 'notification_details_response' type to the given stream. +func WriteNotificationDetailsResponse(object *NotificationDetailsResponse, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -92,13 +92,13 @@ func UnmarshalNotificationDetailsResponse(source interface{}) (object *Notificat if err != nil { return } - object = readNotificationDetailsResponse(iterator) + object = ReadNotificationDetailsResponse(iterator) err = iterator.Error return } -// readNotificationDetailsResponse reads a value of the 'notification_details_response' type from the given iterator. -func readNotificationDetailsResponse(iterator *jsoniter.Iterator) *NotificationDetailsResponse { +// ReadNotificationDetailsResponse reads a value of the 'notification_details_response' type from the given iterator. +func ReadNotificationDetailsResponse(iterator *jsoniter.Iterator) *NotificationDetailsResponse { object := &NotificationDetailsResponse{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/organization_list_type_json.go b/accountsmgmt/v1/organization_list_type_json.go index 2c675b6cf..22482a2ab 100644 --- a/accountsmgmt/v1/organization_list_type_json.go +++ b/accountsmgmt/v1/organization_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalOrganizationList(list []*Organization, writer io.Writer) error { stream := helpers.NewStream(writer) - writeOrganizationList(list, stream) + WriteOrganizationList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalOrganizationList(list []*Organization, writer io.Writer) error { return stream.Error } -// writeOrganizationList writes a list of value of the 'organization' type to +// WriteOrganizationList writes a list of value of the 'organization' type to // the given stream. -func writeOrganizationList(list []*Organization, stream *jsoniter.Stream) { +func WriteOrganizationList(list []*Organization, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeOrganization(value, stream) + WriteOrganization(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalOrganizationList(source interface{}) (items []*Organization, err e if err != nil { return } - items = readOrganizationList(iterator) + items = ReadOrganizationList(iterator) err = iterator.Error return } -// readOrganizationList reads list of values of the ”organization' type from +// ReadOrganizationList reads list of values of the ”organization' type from // the given iterator. -func readOrganizationList(iterator *jsoniter.Iterator) []*Organization { +func ReadOrganizationList(iterator *jsoniter.Iterator) []*Organization { list := []*Organization{} for iterator.ReadArray() { - item := readOrganization(iterator) + item := ReadOrganization(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/organization_type.go b/accountsmgmt/v1/organization_type.go index 12c8818db..cf41ced34 100644 --- a/accountsmgmt/v1/organization_type.go +++ b/accountsmgmt/v1/organization_type.go @@ -60,7 +60,7 @@ func (o *Organization) Kind() string { return OrganizationKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Organization) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -300,6 +300,29 @@ func (l *OrganizationList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *OrganizationList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *OrganizationList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *OrganizationList) SetItems(items []*Organization) { + l.items = items +} + +// Items returns the items of the list. +func (l *OrganizationList) Items() []*Organization { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *OrganizationList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/organization_type_json.go b/accountsmgmt/v1/organization_type_json.go index 44d2c24ee..f9e95e2bc 100644 --- a/accountsmgmt/v1/organization_type_json.go +++ b/accountsmgmt/v1/organization_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalOrganization writes a value of the 'organization' type to the given writer. func MarshalOrganization(object *Organization, writer io.Writer) error { stream := helpers.NewStream(writer) - writeOrganization(object, stream) + WriteOrganization(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalOrganization(object *Organization, writer io.Writer) error { return stream.Error } -// writeOrganization writes a value of the 'organization' type to the given stream. -func writeOrganization(object *Organization, stream *jsoniter.Stream) { +// WriteOrganization writes a value of the 'organization' type to the given stream. +func WriteOrganization(object *Organization, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -72,7 +72,7 @@ func writeOrganization(object *Organization, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("capabilities") - writeCapabilityList(object.capabilities, stream) + WriteCapabilityList(object.capabilities, stream) count++ } present_ = object.bitmap_&16 != 0 @@ -108,7 +108,7 @@ func writeOrganization(object *Organization, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("labels") - writeLabelList(object.labels, stream) + WriteLabelList(object.labels, stream) count++ } present_ = object.bitmap_&256 != 0 @@ -138,13 +138,13 @@ func UnmarshalOrganization(source interface{}) (object *Organization, err error) if err != nil { return } - object = readOrganization(iterator) + object = ReadOrganization(iterator) err = iterator.Error return } -// readOrganization reads a value of the 'organization' type from the given iterator. -func readOrganization(iterator *jsoniter.Iterator) *Organization { +// ReadOrganization reads a value of the 'organization' type from the given iterator. +func ReadOrganization(iterator *jsoniter.Iterator) *Organization { object := &Organization{} for { field := iterator.ReadObject() @@ -164,7 +164,7 @@ func readOrganization(iterator *jsoniter.Iterator) *Organization { object.href = iterator.ReadString() object.bitmap_ |= 4 case "capabilities": - value := readCapabilityList(iterator) + value := ReadCapabilityList(iterator) object.capabilities = value object.bitmap_ |= 8 case "created_at": @@ -184,7 +184,7 @@ func readOrganization(iterator *jsoniter.Iterator) *Organization { object.externalID = value object.bitmap_ |= 64 case "labels": - value := readLabelList(iterator) + value := ReadLabelList(iterator) object.labels = value object.bitmap_ |= 128 case "name": diff --git a/accountsmgmt/v1/organizations_resource_json.go b/accountsmgmt/v1/organizations_resource_json.go index 324bf5813..8d20c65de 100644 --- a/accountsmgmt/v1/organizations_resource_json.go +++ b/accountsmgmt/v1/organizations_resource_json.go @@ -57,7 +57,7 @@ func readOrganizationsListResponse(response *OrganizationsListResponse, reader i value := iterator.ReadInt() response.total = &value case "items": - items := readOrganizationList(iterator) + items := ReadOrganizationList(iterator) response.items = &OrganizationList{ items: items, } diff --git a/accountsmgmt/v1/permission_list_type_json.go b/accountsmgmt/v1/permission_list_type_json.go index b4d58d411..1d3952d8f 100644 --- a/accountsmgmt/v1/permission_list_type_json.go +++ b/accountsmgmt/v1/permission_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalPermissionList(list []*Permission, writer io.Writer) error { stream := helpers.NewStream(writer) - writePermissionList(list, stream) + WritePermissionList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalPermissionList(list []*Permission, writer io.Writer) error { return stream.Error } -// writePermissionList writes a list of value of the 'permission' type to +// WritePermissionList writes a list of value of the 'permission' type to // the given stream. -func writePermissionList(list []*Permission, stream *jsoniter.Stream) { +func WritePermissionList(list []*Permission, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writePermission(value, stream) + WritePermission(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalPermissionList(source interface{}) (items []*Permission, err error if err != nil { return } - items = readPermissionList(iterator) + items = ReadPermissionList(iterator) err = iterator.Error return } -// readPermissionList reads list of values of the ”permission' type from +// ReadPermissionList reads list of values of the ”permission' type from // the given iterator. -func readPermissionList(iterator *jsoniter.Iterator) []*Permission { +func ReadPermissionList(iterator *jsoniter.Iterator) []*Permission { list := []*Permission{} for iterator.ReadArray() { - item := readPermission(iterator) + item := ReadPermission(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/permission_type.go b/accountsmgmt/v1/permission_type.go index 19a6d2a90..d856a8f5f 100644 --- a/accountsmgmt/v1/permission_type.go +++ b/accountsmgmt/v1/permission_type.go @@ -51,7 +51,7 @@ func (o *Permission) Kind() string { return PermissionKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Permission) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -196,6 +196,29 @@ func (l *PermissionList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *PermissionList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *PermissionList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *PermissionList) SetItems(items []*Permission) { + l.items = items +} + +// Items returns the items of the list. +func (l *PermissionList) Items() []*Permission { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *PermissionList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/permission_type_json.go b/accountsmgmt/v1/permission_type_json.go index ca6c59e70..0e85538bb 100644 --- a/accountsmgmt/v1/permission_type_json.go +++ b/accountsmgmt/v1/permission_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalPermission writes a value of the 'permission' type to the given writer. func MarshalPermission(object *Permission, writer io.Writer) error { stream := helpers.NewStream(writer) - writePermission(object, stream) + WritePermission(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalPermission(object *Permission, writer io.Writer) error { return stream.Error } -// writePermission writes a value of the 'permission' type to the given stream. -func writePermission(object *Permission, stream *jsoniter.Stream) { +// WritePermission writes a value of the 'permission' type to the given stream. +func WritePermission(object *Permission, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -92,13 +92,13 @@ func UnmarshalPermission(source interface{}) (object *Permission, err error) { if err != nil { return } - object = readPermission(iterator) + object = ReadPermission(iterator) err = iterator.Error return } -// readPermission reads a value of the 'permission' type from the given iterator. -func readPermission(iterator *jsoniter.Iterator) *Permission { +// ReadPermission reads a value of the 'permission' type from the given iterator. +func ReadPermission(iterator *jsoniter.Iterator) *Permission { object := &Permission{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/permissions_resource_json.go b/accountsmgmt/v1/permissions_resource_json.go index 296c191c5..75405ce06 100644 --- a/accountsmgmt/v1/permissions_resource_json.go +++ b/accountsmgmt/v1/permissions_resource_json.go @@ -57,7 +57,7 @@ func readPermissionsListResponse(response *PermissionsListResponse, reader io.Re value := iterator.ReadInt() response.total = &value case "items": - items := readPermissionList(iterator) + items := ReadPermissionList(iterator) response.items = &PermissionList{ items: items, } diff --git a/accountsmgmt/v1/plan_id_list_type_json.go b/accountsmgmt/v1/plan_id_list_type_json.go index 206a5bc8b..a5a5a6c66 100644 --- a/accountsmgmt/v1/plan_id_list_type_json.go +++ b/accountsmgmt/v1/plan_id_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalPlanIDList(list []PlanID, writer io.Writer) error { stream := helpers.NewStream(writer) - writePlanIDList(list, stream) + WritePlanIDList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalPlanIDList(list []PlanID, writer io.Writer) error { return stream.Error } -// writePlanIDList writes a list of value of the 'plan_ID' type to +// WritePlanIDList writes a list of value of the 'plan_ID' type to // the given stream. -func writePlanIDList(list []PlanID, stream *jsoniter.Stream) { +func WritePlanIDList(list []PlanID, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalPlanIDList(source interface{}) (items []PlanID, err error) { if err != nil { return } - items = readPlanIDList(iterator) + items = ReadPlanIDList(iterator) err = iterator.Error return } -// readPlanIDList reads list of values of the ”plan_ID' type from +// ReadPlanIDList reads list of values of the ”plan_ID' type from // the given iterator. -func readPlanIDList(iterator *jsoniter.Iterator) []PlanID { +func ReadPlanIDList(iterator *jsoniter.Iterator) []PlanID { list := []PlanID{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/accountsmgmt/v1/plan_list_type_json.go b/accountsmgmt/v1/plan_list_type_json.go index 316db4a39..eb6b3df0a 100644 --- a/accountsmgmt/v1/plan_list_type_json.go +++ b/accountsmgmt/v1/plan_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalPlanList(list []*Plan, writer io.Writer) error { stream := helpers.NewStream(writer) - writePlanList(list, stream) + WritePlanList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalPlanList(list []*Plan, writer io.Writer) error { return stream.Error } -// writePlanList writes a list of value of the 'plan' type to +// WritePlanList writes a list of value of the 'plan' type to // the given stream. -func writePlanList(list []*Plan, stream *jsoniter.Stream) { +func WritePlanList(list []*Plan, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writePlan(value, stream) + WritePlan(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalPlanList(source interface{}) (items []*Plan, err error) { if err != nil { return } - items = readPlanList(iterator) + items = ReadPlanList(iterator) err = iterator.Error return } -// readPlanList reads list of values of the ”plan' type from +// ReadPlanList reads list of values of the ”plan' type from // the given iterator. -func readPlanList(iterator *jsoniter.Iterator) []*Plan { +func ReadPlanList(iterator *jsoniter.Iterator) []*Plan { list := []*Plan{} for iterator.ReadArray() { - item := readPlan(iterator) + item := ReadPlan(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/plan_type.go b/accountsmgmt/v1/plan_type.go index ab1e1ee04..5ff156f2a 100644 --- a/accountsmgmt/v1/plan_type.go +++ b/accountsmgmt/v1/plan_type.go @@ -52,7 +52,7 @@ func (o *Plan) Kind() string { return PlanKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Plan) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -216,6 +216,29 @@ func (l *PlanList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *PlanList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *PlanList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *PlanList) SetItems(items []*Plan) { + l.items = items +} + +// Items returns the items of the list. +func (l *PlanList) Items() []*Plan { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *PlanList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/plan_type_json.go b/accountsmgmt/v1/plan_type_json.go index 2e4920ec3..94f25f8b0 100644 --- a/accountsmgmt/v1/plan_type_json.go +++ b/accountsmgmt/v1/plan_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalPlan writes a value of the 'plan' type to the given writer. func MarshalPlan(object *Plan, writer io.Writer) error { stream := helpers.NewStream(writer) - writePlan(object, stream) + WritePlan(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalPlan(object *Plan, writer io.Writer) error { return stream.Error } -// writePlan writes a value of the 'plan' type to the given stream. -func writePlan(object *Plan, stream *jsoniter.Stream) { +// WritePlan writes a value of the 'plan' type to the given stream. +func WritePlan(object *Plan, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -101,13 +101,13 @@ func UnmarshalPlan(source interface{}) (object *Plan, err error) { if err != nil { return } - object = readPlan(iterator) + object = ReadPlan(iterator) err = iterator.Error return } -// readPlan reads a value of the 'plan' type from the given iterator. -func readPlan(iterator *jsoniter.Iterator) *Plan { +// ReadPlan reads a value of the 'plan' type from the given iterator. +func ReadPlan(iterator *jsoniter.Iterator) *Plan { object := &Plan{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/pull_secrets_request_list_type_json.go b/accountsmgmt/v1/pull_secrets_request_list_type_json.go index bf08e8ffb..bd3d44343 100644 --- a/accountsmgmt/v1/pull_secrets_request_list_type_json.go +++ b/accountsmgmt/v1/pull_secrets_request_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalPullSecretsRequestList(list []*PullSecretsRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writePullSecretsRequestList(list, stream) + WritePullSecretsRequestList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalPullSecretsRequestList(list []*PullSecretsRequest, writer io.Writer) return stream.Error } -// writePullSecretsRequestList writes a list of value of the 'pull_secrets_request' type to +// WritePullSecretsRequestList writes a list of value of the 'pull_secrets_request' type to // the given stream. -func writePullSecretsRequestList(list []*PullSecretsRequest, stream *jsoniter.Stream) { +func WritePullSecretsRequestList(list []*PullSecretsRequest, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writePullSecretsRequest(value, stream) + WritePullSecretsRequest(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalPullSecretsRequestList(source interface{}) (items []*PullSecretsRe if err != nil { return } - items = readPullSecretsRequestList(iterator) + items = ReadPullSecretsRequestList(iterator) err = iterator.Error return } -// readPullSecretsRequestList reads list of values of the ”pull_secrets_request' type from +// ReadPullSecretsRequestList reads list of values of the ”pull_secrets_request' type from // the given iterator. -func readPullSecretsRequestList(iterator *jsoniter.Iterator) []*PullSecretsRequest { +func ReadPullSecretsRequestList(iterator *jsoniter.Iterator) []*PullSecretsRequest { list := []*PullSecretsRequest{} for iterator.ReadArray() { - item := readPullSecretsRequest(iterator) + item := ReadPullSecretsRequest(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/pull_secrets_request_type.go b/accountsmgmt/v1/pull_secrets_request_type.go index 40972ee68..e57588559 100644 --- a/accountsmgmt/v1/pull_secrets_request_type.go +++ b/accountsmgmt/v1/pull_secrets_request_type.go @@ -76,6 +76,29 @@ func (l *PullSecretsRequestList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *PullSecretsRequestList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *PullSecretsRequestList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *PullSecretsRequestList) SetItems(items []*PullSecretsRequest) { + l.items = items +} + +// Items returns the items of the list. +func (l *PullSecretsRequestList) Items() []*PullSecretsRequest { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *PullSecretsRequestList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/pull_secrets_request_type_json.go b/accountsmgmt/v1/pull_secrets_request_type_json.go index aec858407..187d1731a 100644 --- a/accountsmgmt/v1/pull_secrets_request_type_json.go +++ b/accountsmgmt/v1/pull_secrets_request_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalPullSecretsRequest writes a value of the 'pull_secrets_request' type to the given writer. func MarshalPullSecretsRequest(object *PullSecretsRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writePullSecretsRequest(object, stream) + WritePullSecretsRequest(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalPullSecretsRequest(object *PullSecretsRequest, writer io.Writer) err return stream.Error } -// writePullSecretsRequest writes a value of the 'pull_secrets_request' type to the given stream. -func writePullSecretsRequest(object *PullSecretsRequest, stream *jsoniter.Stream) { +// WritePullSecretsRequest writes a value of the 'pull_secrets_request' type to the given stream. +func WritePullSecretsRequest(object *PullSecretsRequest, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalPullSecretsRequest(source interface{}) (object *PullSecretsRequest if err != nil { return } - object = readPullSecretsRequest(iterator) + object = ReadPullSecretsRequest(iterator) err = iterator.Error return } -// readPullSecretsRequest reads a value of the 'pull_secrets_request' type from the given iterator. -func readPullSecretsRequest(iterator *jsoniter.Iterator) *PullSecretsRequest { +// ReadPullSecretsRequest reads a value of the 'pull_secrets_request' type from the given iterator. +func ReadPullSecretsRequest(iterator *jsoniter.Iterator) *PullSecretsRequest { object := &PullSecretsRequest{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/quota_authorization_request_list_type_json.go b/accountsmgmt/v1/quota_authorization_request_list_type_json.go index 658c32ddd..828afb6e5 100644 --- a/accountsmgmt/v1/quota_authorization_request_list_type_json.go +++ b/accountsmgmt/v1/quota_authorization_request_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalQuotaAuthorizationRequestList(list []*QuotaAuthorizationRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeQuotaAuthorizationRequestList(list, stream) + WriteQuotaAuthorizationRequestList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalQuotaAuthorizationRequestList(list []*QuotaAuthorizationRequest, wri return stream.Error } -// writeQuotaAuthorizationRequestList writes a list of value of the 'quota_authorization_request' type to +// WriteQuotaAuthorizationRequestList writes a list of value of the 'quota_authorization_request' type to // the given stream. -func writeQuotaAuthorizationRequestList(list []*QuotaAuthorizationRequest, stream *jsoniter.Stream) { +func WriteQuotaAuthorizationRequestList(list []*QuotaAuthorizationRequest, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeQuotaAuthorizationRequest(value, stream) + WriteQuotaAuthorizationRequest(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalQuotaAuthorizationRequestList(source interface{}) (items []*QuotaA if err != nil { return } - items = readQuotaAuthorizationRequestList(iterator) + items = ReadQuotaAuthorizationRequestList(iterator) err = iterator.Error return } -// readQuotaAuthorizationRequestList reads list of values of the ”quota_authorization_request' type from +// ReadQuotaAuthorizationRequestList reads list of values of the ”quota_authorization_request' type from // the given iterator. -func readQuotaAuthorizationRequestList(iterator *jsoniter.Iterator) []*QuotaAuthorizationRequest { +func ReadQuotaAuthorizationRequestList(iterator *jsoniter.Iterator) []*QuotaAuthorizationRequest { list := []*QuotaAuthorizationRequest{} for iterator.ReadArray() { - item := readQuotaAuthorizationRequest(iterator) + item := ReadQuotaAuthorizationRequest(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/quota_authorization_request_type.go b/accountsmgmt/v1/quota_authorization_request_type.go index 7ebd3836a..dd650dbd1 100644 --- a/accountsmgmt/v1/quota_authorization_request_type.go +++ b/accountsmgmt/v1/quota_authorization_request_type.go @@ -216,6 +216,29 @@ func (l *QuotaAuthorizationRequestList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *QuotaAuthorizationRequestList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *QuotaAuthorizationRequestList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *QuotaAuthorizationRequestList) SetItems(items []*QuotaAuthorizationRequest) { + l.items = items +} + +// Items returns the items of the list. +func (l *QuotaAuthorizationRequestList) Items() []*QuotaAuthorizationRequest { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *QuotaAuthorizationRequestList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/quota_authorization_request_type_json.go b/accountsmgmt/v1/quota_authorization_request_type_json.go index 81083b911..69eeac960 100644 --- a/accountsmgmt/v1/quota_authorization_request_type_json.go +++ b/accountsmgmt/v1/quota_authorization_request_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalQuotaAuthorizationRequest writes a value of the 'quota_authorization_request' type to the given writer. func MarshalQuotaAuthorizationRequest(object *QuotaAuthorizationRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeQuotaAuthorizationRequest(object, stream) + WriteQuotaAuthorizationRequest(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalQuotaAuthorizationRequest(object *QuotaAuthorizationRequest, writer return stream.Error } -// writeQuotaAuthorizationRequest writes a value of the 'quota_authorization_request' type to the given stream. -func writeQuotaAuthorizationRequest(object *QuotaAuthorizationRequest, stream *jsoniter.Stream) { +// WriteQuotaAuthorizationRequest writes a value of the 'quota_authorization_request' type to the given stream. +func WriteQuotaAuthorizationRequest(object *QuotaAuthorizationRequest, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -111,7 +111,7 @@ func writeQuotaAuthorizationRequest(object *QuotaAuthorizationRequest, stream *j stream.WriteMore() } stream.WriteObjectField("resources") - writeReservedResourceList(object.resources, stream) + WriteReservedResourceList(object.resources, stream) } stream.WriteObjectEnd() } @@ -123,13 +123,13 @@ func UnmarshalQuotaAuthorizationRequest(source interface{}) (object *QuotaAuthor if err != nil { return } - object = readQuotaAuthorizationRequest(iterator) + object = ReadQuotaAuthorizationRequest(iterator) err = iterator.Error return } -// readQuotaAuthorizationRequest reads a value of the 'quota_authorization_request' type from the given iterator. -func readQuotaAuthorizationRequest(iterator *jsoniter.Iterator) *QuotaAuthorizationRequest { +// ReadQuotaAuthorizationRequest reads a value of the 'quota_authorization_request' type from the given iterator. +func ReadQuotaAuthorizationRequest(iterator *jsoniter.Iterator) *QuotaAuthorizationRequest { object := &QuotaAuthorizationRequest{} for { field := iterator.ReadObject() @@ -166,7 +166,7 @@ func readQuotaAuthorizationRequest(iterator *jsoniter.Iterator) *QuotaAuthorizat object.reserve = value object.bitmap_ |= 64 case "resources": - value := readReservedResourceList(iterator) + value := ReadReservedResourceList(iterator) object.resources = value object.bitmap_ |= 128 default: diff --git a/accountsmgmt/v1/quota_authorization_response_list_type_json.go b/accountsmgmt/v1/quota_authorization_response_list_type_json.go index 7876698ee..784974410 100644 --- a/accountsmgmt/v1/quota_authorization_response_list_type_json.go +++ b/accountsmgmt/v1/quota_authorization_response_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalQuotaAuthorizationResponseList(list []*QuotaAuthorizationResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeQuotaAuthorizationResponseList(list, stream) + WriteQuotaAuthorizationResponseList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalQuotaAuthorizationResponseList(list []*QuotaAuthorizationResponse, w return stream.Error } -// writeQuotaAuthorizationResponseList writes a list of value of the 'quota_authorization_response' type to +// WriteQuotaAuthorizationResponseList writes a list of value of the 'quota_authorization_response' type to // the given stream. -func writeQuotaAuthorizationResponseList(list []*QuotaAuthorizationResponse, stream *jsoniter.Stream) { +func WriteQuotaAuthorizationResponseList(list []*QuotaAuthorizationResponse, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeQuotaAuthorizationResponse(value, stream) + WriteQuotaAuthorizationResponse(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalQuotaAuthorizationResponseList(source interface{}) (items []*Quota if err != nil { return } - items = readQuotaAuthorizationResponseList(iterator) + items = ReadQuotaAuthorizationResponseList(iterator) err = iterator.Error return } -// readQuotaAuthorizationResponseList reads list of values of the ”quota_authorization_response' type from +// ReadQuotaAuthorizationResponseList reads list of values of the ”quota_authorization_response' type from // the given iterator. -func readQuotaAuthorizationResponseList(iterator *jsoniter.Iterator) []*QuotaAuthorizationResponse { +func ReadQuotaAuthorizationResponseList(iterator *jsoniter.Iterator) []*QuotaAuthorizationResponse { list := []*QuotaAuthorizationResponse{} for iterator.ReadArray() { - item := readQuotaAuthorizationResponse(iterator) + item := ReadQuotaAuthorizationResponse(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/quota_authorization_response_type.go b/accountsmgmt/v1/quota_authorization_response_type.go index 3e328c1f1..19faf0006 100644 --- a/accountsmgmt/v1/quota_authorization_response_type.go +++ b/accountsmgmt/v1/quota_authorization_response_type.go @@ -116,6 +116,29 @@ func (l *QuotaAuthorizationResponseList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *QuotaAuthorizationResponseList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *QuotaAuthorizationResponseList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *QuotaAuthorizationResponseList) SetItems(items []*QuotaAuthorizationResponse) { + l.items = items +} + +// Items returns the items of the list. +func (l *QuotaAuthorizationResponseList) Items() []*QuotaAuthorizationResponse { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *QuotaAuthorizationResponseList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/quota_authorization_response_type_json.go b/accountsmgmt/v1/quota_authorization_response_type_json.go index 0cd41a6ae..b3713a9dd 100644 --- a/accountsmgmt/v1/quota_authorization_response_type_json.go +++ b/accountsmgmt/v1/quota_authorization_response_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalQuotaAuthorizationResponse writes a value of the 'quota_authorization_response' type to the given writer. func MarshalQuotaAuthorizationResponse(object *QuotaAuthorizationResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeQuotaAuthorizationResponse(object, stream) + WriteQuotaAuthorizationResponse(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalQuotaAuthorizationResponse(object *QuotaAuthorizationResponse, write return stream.Error } -// writeQuotaAuthorizationResponse writes a value of the 'quota_authorization_response' type to the given stream. -func writeQuotaAuthorizationResponse(object *QuotaAuthorizationResponse, stream *jsoniter.Stream) { +// WriteQuotaAuthorizationResponse writes a value of the 'quota_authorization_response' type to the given stream. +func WriteQuotaAuthorizationResponse(object *QuotaAuthorizationResponse, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -57,7 +57,7 @@ func writeQuotaAuthorizationResponse(object *QuotaAuthorizationResponse, stream stream.WriteMore() } stream.WriteObjectField("excess_resources") - writeReservedResourceList(object.excessResources, stream) + WriteReservedResourceList(object.excessResources, stream) count++ } present_ = object.bitmap_&4 != 0 && object.subscription != nil @@ -66,7 +66,7 @@ func writeQuotaAuthorizationResponse(object *QuotaAuthorizationResponse, stream stream.WriteMore() } stream.WriteObjectField("subscription") - writeSubscription(object.subscription, stream) + WriteSubscription(object.subscription, stream) } stream.WriteObjectEnd() } @@ -78,13 +78,13 @@ func UnmarshalQuotaAuthorizationResponse(source interface{}) (object *QuotaAutho if err != nil { return } - object = readQuotaAuthorizationResponse(iterator) + object = ReadQuotaAuthorizationResponse(iterator) err = iterator.Error return } -// readQuotaAuthorizationResponse reads a value of the 'quota_authorization_response' type from the given iterator. -func readQuotaAuthorizationResponse(iterator *jsoniter.Iterator) *QuotaAuthorizationResponse { +// ReadQuotaAuthorizationResponse reads a value of the 'quota_authorization_response' type from the given iterator. +func ReadQuotaAuthorizationResponse(iterator *jsoniter.Iterator) *QuotaAuthorizationResponse { object := &QuotaAuthorizationResponse{} for { field := iterator.ReadObject() @@ -97,11 +97,11 @@ func readQuotaAuthorizationResponse(iterator *jsoniter.Iterator) *QuotaAuthoriza object.allowed = value object.bitmap_ |= 1 case "excess_resources": - value := readReservedResourceList(iterator) + value := ReadReservedResourceList(iterator) object.excessResources = value object.bitmap_ |= 2 case "subscription": - value := readSubscription(iterator) + value := ReadSubscription(iterator) object.subscription = value object.bitmap_ |= 4 default: diff --git a/accountsmgmt/v1/quota_cost_list_type_json.go b/accountsmgmt/v1/quota_cost_list_type_json.go index 807ad11db..ca66757a2 100644 --- a/accountsmgmt/v1/quota_cost_list_type_json.go +++ b/accountsmgmt/v1/quota_cost_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalQuotaCostList(list []*QuotaCost, writer io.Writer) error { stream := helpers.NewStream(writer) - writeQuotaCostList(list, stream) + WriteQuotaCostList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalQuotaCostList(list []*QuotaCost, writer io.Writer) error { return stream.Error } -// writeQuotaCostList writes a list of value of the 'quota_cost' type to +// WriteQuotaCostList writes a list of value of the 'quota_cost' type to // the given stream. -func writeQuotaCostList(list []*QuotaCost, stream *jsoniter.Stream) { +func WriteQuotaCostList(list []*QuotaCost, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeQuotaCost(value, stream) + WriteQuotaCost(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalQuotaCostList(source interface{}) (items []*QuotaCost, err error) if err != nil { return } - items = readQuotaCostList(iterator) + items = ReadQuotaCostList(iterator) err = iterator.Error return } -// readQuotaCostList reads list of values of the ”quota_cost' type from +// ReadQuotaCostList reads list of values of the ”quota_cost' type from // the given iterator. -func readQuotaCostList(iterator *jsoniter.Iterator) []*QuotaCost { +func ReadQuotaCostList(iterator *jsoniter.Iterator) []*QuotaCost { list := []*QuotaCost{} for iterator.ReadArray() { - item := readQuotaCost(iterator) + item := ReadQuotaCost(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/quota_cost_resource_json.go b/accountsmgmt/v1/quota_cost_resource_json.go index 7fb8ad7c6..6a9075b87 100644 --- a/accountsmgmt/v1/quota_cost_resource_json.go +++ b/accountsmgmt/v1/quota_cost_resource_json.go @@ -49,7 +49,7 @@ func readQuotaCostListResponse(response *QuotaCostListResponse, reader io.Reader value := iterator.ReadInt() response.total = &value case "items": - items := readQuotaCostList(iterator) + items := ReadQuotaCostList(iterator) response.items = &QuotaCostList{ items: items, } diff --git a/accountsmgmt/v1/quota_cost_type.go b/accountsmgmt/v1/quota_cost_type.go index 29da48a2c..803b9c1ee 100644 --- a/accountsmgmt/v1/quota_cost_type.go +++ b/accountsmgmt/v1/quota_cost_type.go @@ -196,6 +196,29 @@ func (l *QuotaCostList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *QuotaCostList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *QuotaCostList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *QuotaCostList) SetItems(items []*QuotaCost) { + l.items = items +} + +// Items returns the items of the list. +func (l *QuotaCostList) Items() []*QuotaCost { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *QuotaCostList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/quota_cost_type_json.go b/accountsmgmt/v1/quota_cost_type_json.go index 71964c276..b99af6446 100644 --- a/accountsmgmt/v1/quota_cost_type_json.go +++ b/accountsmgmt/v1/quota_cost_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalQuotaCost writes a value of the 'quota_cost' type to the given writer. func MarshalQuotaCost(object *QuotaCost, writer io.Writer) error { stream := helpers.NewStream(writer) - writeQuotaCost(object, stream) + WriteQuotaCost(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalQuotaCost(object *QuotaCost, writer io.Writer) error { return stream.Error } -// writeQuotaCost writes a value of the 'quota_cost' type to the given stream. -func writeQuotaCost(object *QuotaCost, stream *jsoniter.Stream) { +// WriteQuotaCost writes a value of the 'quota_cost' type to the given stream. +func WriteQuotaCost(object *QuotaCost, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -57,7 +57,7 @@ func writeQuotaCost(object *QuotaCost, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("cloud_accounts") - writeCloudAccountList(object.cloudAccounts, stream) + WriteCloudAccountList(object.cloudAccounts, stream) count++ } present_ = object.bitmap_&4 != 0 @@ -93,7 +93,7 @@ func writeQuotaCost(object *QuotaCost, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("related_resources") - writeRelatedResourceList(object.relatedResources, stream) + WriteRelatedResourceList(object.relatedResources, stream) count++ } present_ = object.bitmap_&64 != 0 @@ -114,13 +114,13 @@ func UnmarshalQuotaCost(source interface{}) (object *QuotaCost, err error) { if err != nil { return } - object = readQuotaCost(iterator) + object = ReadQuotaCost(iterator) err = iterator.Error return } -// readQuotaCost reads a value of the 'quota_cost' type from the given iterator. -func readQuotaCost(iterator *jsoniter.Iterator) *QuotaCost { +// ReadQuotaCost reads a value of the 'quota_cost' type from the given iterator. +func ReadQuotaCost(iterator *jsoniter.Iterator) *QuotaCost { object := &QuotaCost{} for { field := iterator.ReadObject() @@ -133,7 +133,7 @@ func readQuotaCost(iterator *jsoniter.Iterator) *QuotaCost { object.allowed = value object.bitmap_ |= 1 case "cloud_accounts": - value := readCloudAccountList(iterator) + value := ReadCloudAccountList(iterator) object.cloudAccounts = value object.bitmap_ |= 2 case "consumed": @@ -149,7 +149,7 @@ func readQuotaCost(iterator *jsoniter.Iterator) *QuotaCost { object.quotaID = value object.bitmap_ |= 16 case "related_resources": - value := readRelatedResourceList(iterator) + value := ReadRelatedResourceList(iterator) object.relatedResources = value object.bitmap_ |= 32 case "version": diff --git a/accountsmgmt/v1/quota_rules_list_type_json.go b/accountsmgmt/v1/quota_rules_list_type_json.go index 36dda923a..7c76bd3f8 100644 --- a/accountsmgmt/v1/quota_rules_list_type_json.go +++ b/accountsmgmt/v1/quota_rules_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalQuotaRulesList(list []*QuotaRules, writer io.Writer) error { stream := helpers.NewStream(writer) - writeQuotaRulesList(list, stream) + WriteQuotaRulesList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalQuotaRulesList(list []*QuotaRules, writer io.Writer) error { return stream.Error } -// writeQuotaRulesList writes a list of value of the 'quota_rules' type to +// WriteQuotaRulesList writes a list of value of the 'quota_rules' type to // the given stream. -func writeQuotaRulesList(list []*QuotaRules, stream *jsoniter.Stream) { +func WriteQuotaRulesList(list []*QuotaRules, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeQuotaRules(value, stream) + WriteQuotaRules(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalQuotaRulesList(source interface{}) (items []*QuotaRules, err error if err != nil { return } - items = readQuotaRulesList(iterator) + items = ReadQuotaRulesList(iterator) err = iterator.Error return } -// readQuotaRulesList reads list of values of the ”quota_rules' type from +// ReadQuotaRulesList reads list of values of the ”quota_rules' type from // the given iterator. -func readQuotaRulesList(iterator *jsoniter.Iterator) []*QuotaRules { +func ReadQuotaRulesList(iterator *jsoniter.Iterator) []*QuotaRules { list := []*QuotaRules{} for iterator.ReadArray() { - item := readQuotaRules(iterator) + item := ReadQuotaRules(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/quota_rules_resource_json.go b/accountsmgmt/v1/quota_rules_resource_json.go index b3500b546..38f64a6fe 100644 --- a/accountsmgmt/v1/quota_rules_resource_json.go +++ b/accountsmgmt/v1/quota_rules_resource_json.go @@ -49,7 +49,7 @@ func readQuotaRulesListResponse(response *QuotaRulesListResponse, reader io.Read value := iterator.ReadInt() response.total = &value case "items": - items := readQuotaRulesList(iterator) + items := ReadQuotaRulesList(iterator) response.items = &QuotaRulesList{ items: items, } diff --git a/accountsmgmt/v1/quota_rules_type.go b/accountsmgmt/v1/quota_rules_type.go index 70566aa3c..700f3cfa8 100644 --- a/accountsmgmt/v1/quota_rules_type.go +++ b/accountsmgmt/v1/quota_rules_type.go @@ -216,6 +216,29 @@ func (l *QuotaRulesList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *QuotaRulesList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *QuotaRulesList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *QuotaRulesList) SetItems(items []*QuotaRules) { + l.items = items +} + +// Items returns the items of the list. +func (l *QuotaRulesList) Items() []*QuotaRules { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *QuotaRulesList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/quota_rules_type_json.go b/accountsmgmt/v1/quota_rules_type_json.go index 1de319183..805249c5c 100644 --- a/accountsmgmt/v1/quota_rules_type_json.go +++ b/accountsmgmt/v1/quota_rules_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalQuotaRules writes a value of the 'quota_rules' type to the given writer. func MarshalQuotaRules(object *QuotaRules, writer io.Writer) error { stream := helpers.NewStream(writer) - writeQuotaRules(object, stream) + WriteQuotaRules(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalQuotaRules(object *QuotaRules, writer io.Writer) error { return stream.Error } -// writeQuotaRules writes a value of the 'quota_rules' type to the given stream. -func writeQuotaRules(object *QuotaRules, stream *jsoniter.Stream) { +// WriteQuotaRules writes a value of the 'quota_rules' type to the given stream. +func WriteQuotaRules(object *QuotaRules, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -123,13 +123,13 @@ func UnmarshalQuotaRules(source interface{}) (object *QuotaRules, err error) { if err != nil { return } - object = readQuotaRules(iterator) + object = ReadQuotaRules(iterator) err = iterator.Error return } -// readQuotaRules reads a value of the 'quota_rules' type from the given iterator. -func readQuotaRules(iterator *jsoniter.Iterator) *QuotaRules { +// ReadQuotaRules reads a value of the 'quota_rules' type from the given iterator. +func ReadQuotaRules(iterator *jsoniter.Iterator) *QuotaRules { object := &QuotaRules{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/registries_resource_json.go b/accountsmgmt/v1/registries_resource_json.go index f93b48baa..68ea411a5 100644 --- a/accountsmgmt/v1/registries_resource_json.go +++ b/accountsmgmt/v1/registries_resource_json.go @@ -49,7 +49,7 @@ func readRegistriesListResponse(response *RegistriesListResponse, reader io.Read value := iterator.ReadInt() response.total = &value case "items": - items := readRegistryList(iterator) + items := ReadRegistryList(iterator) response.items = &RegistryList{ items: items, } diff --git a/accountsmgmt/v1/registry_credential_list_type_json.go b/accountsmgmt/v1/registry_credential_list_type_json.go index 9e5545e21..3ee0e818f 100644 --- a/accountsmgmt/v1/registry_credential_list_type_json.go +++ b/accountsmgmt/v1/registry_credential_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalRegistryCredentialList(list []*RegistryCredential, writer io.Writer) error { stream := helpers.NewStream(writer) - writeRegistryCredentialList(list, stream) + WriteRegistryCredentialList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalRegistryCredentialList(list []*RegistryCredential, writer io.Writer) return stream.Error } -// writeRegistryCredentialList writes a list of value of the 'registry_credential' type to +// WriteRegistryCredentialList writes a list of value of the 'registry_credential' type to // the given stream. -func writeRegistryCredentialList(list []*RegistryCredential, stream *jsoniter.Stream) { +func WriteRegistryCredentialList(list []*RegistryCredential, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeRegistryCredential(value, stream) + WriteRegistryCredential(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalRegistryCredentialList(source interface{}) (items []*RegistryCrede if err != nil { return } - items = readRegistryCredentialList(iterator) + items = ReadRegistryCredentialList(iterator) err = iterator.Error return } -// readRegistryCredentialList reads list of values of the ”registry_credential' type from +// ReadRegistryCredentialList reads list of values of the ”registry_credential' type from // the given iterator. -func readRegistryCredentialList(iterator *jsoniter.Iterator) []*RegistryCredential { +func ReadRegistryCredentialList(iterator *jsoniter.Iterator) []*RegistryCredential { list := []*RegistryCredential{} for iterator.ReadArray() { - item := readRegistryCredential(iterator) + item := ReadRegistryCredential(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/registry_credential_type.go b/accountsmgmt/v1/registry_credential_type.go index 81ef5f9e0..e42a310d3 100644 --- a/accountsmgmt/v1/registry_credential_type.go +++ b/accountsmgmt/v1/registry_credential_type.go @@ -60,7 +60,7 @@ func (o *RegistryCredential) Kind() string { return RegistryCredentialKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *RegistryCredential) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -300,6 +300,29 @@ func (l *RegistryCredentialList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *RegistryCredentialList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *RegistryCredentialList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *RegistryCredentialList) SetItems(items []*RegistryCredential) { + l.items = items +} + +// Items returns the items of the list. +func (l *RegistryCredentialList) Items() []*RegistryCredential { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *RegistryCredentialList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/registry_credential_type_json.go b/accountsmgmt/v1/registry_credential_type_json.go index 6c48d8c01..e631e717f 100644 --- a/accountsmgmt/v1/registry_credential_type_json.go +++ b/accountsmgmt/v1/registry_credential_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalRegistryCredential writes a value of the 'registry_credential' type to the given writer. func MarshalRegistryCredential(object *RegistryCredential, writer io.Writer) error { stream := helpers.NewStream(writer) - writeRegistryCredential(object, stream) + WriteRegistryCredential(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalRegistryCredential(object *RegistryCredential, writer io.Writer) err return stream.Error } -// writeRegistryCredential writes a value of the 'registry_credential' type to the given stream. -func writeRegistryCredential(object *RegistryCredential, stream *jsoniter.Stream) { +// WriteRegistryCredential writes a value of the 'registry_credential' type to the given stream. +func WriteRegistryCredential(object *RegistryCredential, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -72,7 +72,7 @@ func writeRegistryCredential(object *RegistryCredential, stream *jsoniter.Stream stream.WriteMore() } stream.WriteObjectField("account") - writeAccount(object.account, stream) + WriteAccount(object.account, stream) count++ } present_ = object.bitmap_&16 != 0 @@ -99,7 +99,7 @@ func writeRegistryCredential(object *RegistryCredential, stream *jsoniter.Stream stream.WriteMore() } stream.WriteObjectField("registry") - writeRegistry(object.registry, stream) + WriteRegistry(object.registry, stream) count++ } present_ = object.bitmap_&128 != 0 @@ -138,13 +138,13 @@ func UnmarshalRegistryCredential(source interface{}) (object *RegistryCredential if err != nil { return } - object = readRegistryCredential(iterator) + object = ReadRegistryCredential(iterator) err = iterator.Error return } -// readRegistryCredential reads a value of the 'registry_credential' type from the given iterator. -func readRegistryCredential(iterator *jsoniter.Iterator) *RegistryCredential { +// ReadRegistryCredential reads a value of the 'registry_credential' type from the given iterator. +func ReadRegistryCredential(iterator *jsoniter.Iterator) *RegistryCredential { object := &RegistryCredential{} for { field := iterator.ReadObject() @@ -164,7 +164,7 @@ func readRegistryCredential(iterator *jsoniter.Iterator) *RegistryCredential { object.href = iterator.ReadString() object.bitmap_ |= 4 case "account": - value := readAccount(iterator) + value := ReadAccount(iterator) object.account = value object.bitmap_ |= 8 case "created_at": @@ -180,7 +180,7 @@ func readRegistryCredential(iterator *jsoniter.Iterator) *RegistryCredential { object.externalResourceID = value object.bitmap_ |= 32 case "registry": - value := readRegistry(iterator) + value := ReadRegistry(iterator) object.registry = value object.bitmap_ |= 64 case "token": diff --git a/accountsmgmt/v1/registry_credentials_resource_json.go b/accountsmgmt/v1/registry_credentials_resource_json.go index 04587f2bb..670fc7db8 100644 --- a/accountsmgmt/v1/registry_credentials_resource_json.go +++ b/accountsmgmt/v1/registry_credentials_resource_json.go @@ -57,7 +57,7 @@ func readRegistryCredentialsListResponse(response *RegistryCredentialsListRespon value := iterator.ReadInt() response.total = &value case "items": - items := readRegistryCredentialList(iterator) + items := ReadRegistryCredentialList(iterator) response.items = &RegistryCredentialList{ items: items, } diff --git a/accountsmgmt/v1/registry_list_type_json.go b/accountsmgmt/v1/registry_list_type_json.go index f0be20c02..fc8ea70f4 100644 --- a/accountsmgmt/v1/registry_list_type_json.go +++ b/accountsmgmt/v1/registry_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalRegistryList(list []*Registry, writer io.Writer) error { stream := helpers.NewStream(writer) - writeRegistryList(list, stream) + WriteRegistryList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalRegistryList(list []*Registry, writer io.Writer) error { return stream.Error } -// writeRegistryList writes a list of value of the 'registry' type to +// WriteRegistryList writes a list of value of the 'registry' type to // the given stream. -func writeRegistryList(list []*Registry, stream *jsoniter.Stream) { +func WriteRegistryList(list []*Registry, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeRegistry(value, stream) + WriteRegistry(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalRegistryList(source interface{}) (items []*Registry, err error) { if err != nil { return } - items = readRegistryList(iterator) + items = ReadRegistryList(iterator) err = iterator.Error return } -// readRegistryList reads list of values of the ”registry' type from +// ReadRegistryList reads list of values of the ”registry' type from // the given iterator. -func readRegistryList(iterator *jsoniter.Iterator) []*Registry { +func ReadRegistryList(iterator *jsoniter.Iterator) []*Registry { list := []*Registry{} for iterator.ReadArray() { - item := readRegistry(iterator) + item := ReadRegistry(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/registry_type.go b/accountsmgmt/v1/registry_type.go index 80119a248..b5c5b7eaf 100644 --- a/accountsmgmt/v1/registry_type.go +++ b/accountsmgmt/v1/registry_type.go @@ -61,7 +61,7 @@ func (o *Registry) Kind() string { return RegistryKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Registry) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -320,6 +320,29 @@ func (l *RegistryList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *RegistryList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *RegistryList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *RegistryList) SetItems(items []*Registry) { + l.items = items +} + +// Items returns the items of the list. +func (l *RegistryList) Items() []*Registry { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *RegistryList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/registry_type_json.go b/accountsmgmt/v1/registry_type_json.go index 593d5c4ac..4dc10b010 100644 --- a/accountsmgmt/v1/registry_type_json.go +++ b/accountsmgmt/v1/registry_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalRegistry writes a value of the 'registry' type to the given writer. func MarshalRegistry(object *Registry, writer io.Writer) error { stream := helpers.NewStream(writer) - writeRegistry(object, stream) + WriteRegistry(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalRegistry(object *Registry, writer io.Writer) error { return stream.Error } -// writeRegistry writes a value of the 'registry' type to the given stream. -func writeRegistry(object *Registry, stream *jsoniter.Stream) { +// WriteRegistry writes a value of the 'registry' type to the given stream. +func WriteRegistry(object *Registry, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -147,13 +147,13 @@ func UnmarshalRegistry(source interface{}) (object *Registry, err error) { if err != nil { return } - object = readRegistry(iterator) + object = ReadRegistry(iterator) err = iterator.Error return } -// readRegistry reads a value of the 'registry' type from the given iterator. -func readRegistry(iterator *jsoniter.Iterator) *Registry { +// ReadRegistry reads a value of the 'registry' type from the given iterator. +func ReadRegistry(iterator *jsoniter.Iterator) *Registry { object := &Registry{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/related_resource_list_type_json.go b/accountsmgmt/v1/related_resource_list_type_json.go index c9a72e300..c4f555196 100644 --- a/accountsmgmt/v1/related_resource_list_type_json.go +++ b/accountsmgmt/v1/related_resource_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalRelatedResourceList(list []*RelatedResource, writer io.Writer) error { stream := helpers.NewStream(writer) - writeRelatedResourceList(list, stream) + WriteRelatedResourceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalRelatedResourceList(list []*RelatedResource, writer io.Writer) error return stream.Error } -// writeRelatedResourceList writes a list of value of the 'related_resource' type to +// WriteRelatedResourceList writes a list of value of the 'related_resource' type to // the given stream. -func writeRelatedResourceList(list []*RelatedResource, stream *jsoniter.Stream) { +func WriteRelatedResourceList(list []*RelatedResource, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeRelatedResource(value, stream) + WriteRelatedResource(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalRelatedResourceList(source interface{}) (items []*RelatedResource, if err != nil { return } - items = readRelatedResourceList(iterator) + items = ReadRelatedResourceList(iterator) err = iterator.Error return } -// readRelatedResourceList reads list of values of the ”related_resource' type from +// ReadRelatedResourceList reads list of values of the ”related_resource' type from // the given iterator. -func readRelatedResourceList(iterator *jsoniter.Iterator) []*RelatedResource { +func ReadRelatedResourceList(iterator *jsoniter.Iterator) []*RelatedResource { list := []*RelatedResource{} for iterator.ReadArray() { - item := readRelatedResource(iterator) + item := ReadRelatedResource(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/related_resource_type.go b/accountsmgmt/v1/related_resource_type.go index fce2192b3..10d82f70c 100644 --- a/accountsmgmt/v1/related_resource_type.go +++ b/accountsmgmt/v1/related_resource_type.go @@ -218,6 +218,29 @@ func (l *RelatedResourceList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *RelatedResourceList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *RelatedResourceList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *RelatedResourceList) SetItems(items []*RelatedResource) { + l.items = items +} + +// Items returns the items of the list. +func (l *RelatedResourceList) Items() []*RelatedResource { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *RelatedResourceList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/related_resource_type_json.go b/accountsmgmt/v1/related_resource_type_json.go index f9dfd97ec..e7789f63b 100644 --- a/accountsmgmt/v1/related_resource_type_json.go +++ b/accountsmgmt/v1/related_resource_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalRelatedResource writes a value of the 'related_resource' type to the given writer. func MarshalRelatedResource(object *RelatedResource, writer io.Writer) error { stream := helpers.NewStream(writer) - writeRelatedResource(object, stream) + WriteRelatedResource(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalRelatedResource(object *RelatedResource, writer io.Writer) error { return stream.Error } -// writeRelatedResource writes a value of the 'related_resource' type to the given stream. -func writeRelatedResource(object *RelatedResource, stream *jsoniter.Stream) { +// WriteRelatedResource writes a value of the 'related_resource' type to the given stream. +func WriteRelatedResource(object *RelatedResource, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -123,13 +123,13 @@ func UnmarshalRelatedResource(source interface{}) (object *RelatedResource, err if err != nil { return } - object = readRelatedResource(iterator) + object = ReadRelatedResource(iterator) err = iterator.Error return } -// readRelatedResource reads a value of the 'related_resource' type from the given iterator. -func readRelatedResource(iterator *jsoniter.Iterator) *RelatedResource { +// ReadRelatedResource reads a value of the 'related_resource' type from the given iterator. +func ReadRelatedResource(iterator *jsoniter.Iterator) *RelatedResource { object := &RelatedResource{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/reserved_resource_list_type_json.go b/accountsmgmt/v1/reserved_resource_list_type_json.go index dfa72ac4c..791c7d05d 100644 --- a/accountsmgmt/v1/reserved_resource_list_type_json.go +++ b/accountsmgmt/v1/reserved_resource_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalReservedResourceList(list []*ReservedResource, writer io.Writer) error { stream := helpers.NewStream(writer) - writeReservedResourceList(list, stream) + WriteReservedResourceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalReservedResourceList(list []*ReservedResource, writer io.Writer) err return stream.Error } -// writeReservedResourceList writes a list of value of the 'reserved_resource' type to +// WriteReservedResourceList writes a list of value of the 'reserved_resource' type to // the given stream. -func writeReservedResourceList(list []*ReservedResource, stream *jsoniter.Stream) { +func WriteReservedResourceList(list []*ReservedResource, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeReservedResource(value, stream) + WriteReservedResource(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalReservedResourceList(source interface{}) (items []*ReservedResourc if err != nil { return } - items = readReservedResourceList(iterator) + items = ReadReservedResourceList(iterator) err = iterator.Error return } -// readReservedResourceList reads list of values of the ”reserved_resource' type from +// ReadReservedResourceList reads list of values of the ”reserved_resource' type from // the given iterator. -func readReservedResourceList(iterator *jsoniter.Iterator) []*ReservedResource { +func ReadReservedResourceList(iterator *jsoniter.Iterator) []*ReservedResource { list := []*ReservedResource{} for iterator.ReadArray() { - item := readReservedResource(iterator) + item := ReadReservedResource(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/reserved_resource_type.go b/accountsmgmt/v1/reserved_resource_type.go index 9c3660fe1..d35f19b30 100644 --- a/accountsmgmt/v1/reserved_resource_type.go +++ b/accountsmgmt/v1/reserved_resource_type.go @@ -260,6 +260,29 @@ func (l *ReservedResourceList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ReservedResourceList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ReservedResourceList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ReservedResourceList) SetItems(items []*ReservedResource) { + l.items = items +} + +// Items returns the items of the list. +func (l *ReservedResourceList) Items() []*ReservedResource { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ReservedResourceList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/reserved_resource_type_json.go b/accountsmgmt/v1/reserved_resource_type_json.go index 8323b9753..c05d45331 100644 --- a/accountsmgmt/v1/reserved_resource_type_json.go +++ b/accountsmgmt/v1/reserved_resource_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalReservedResource writes a value of the 'reserved_resource' type to the given writer. func MarshalReservedResource(object *ReservedResource, writer io.Writer) error { stream := helpers.NewStream(writer) - writeReservedResource(object, stream) + WriteReservedResource(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalReservedResource(object *ReservedResource, writer io.Writer) error { return stream.Error } -// writeReservedResource writes a value of the 'reserved_resource' type to the given stream. -func writeReservedResource(object *ReservedResource, stream *jsoniter.Stream) { +// WriteReservedResource writes a value of the 'reserved_resource' type to the given stream. +func WriteReservedResource(object *ReservedResource, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -142,13 +142,13 @@ func UnmarshalReservedResource(source interface{}) (object *ReservedResource, er if err != nil { return } - object = readReservedResource(iterator) + object = ReadReservedResource(iterator) err = iterator.Error return } -// readReservedResource reads a value of the 'reserved_resource' type from the given iterator. -func readReservedResource(iterator *jsoniter.Iterator) *ReservedResource { +// ReadReservedResource reads a value of the 'reserved_resource' type from the given iterator. +func ReadReservedResource(iterator *jsoniter.Iterator) *ReservedResource { object := &ReservedResource{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/resource_list_type_json.go b/accountsmgmt/v1/resource_list_type_json.go index 284f2ef85..6d70c6748 100644 --- a/accountsmgmt/v1/resource_list_type_json.go +++ b/accountsmgmt/v1/resource_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalResourceList(list []*Resource, writer io.Writer) error { stream := helpers.NewStream(writer) - writeResourceList(list, stream) + WriteResourceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalResourceList(list []*Resource, writer io.Writer) error { return stream.Error } -// writeResourceList writes a list of value of the 'resource' type to +// WriteResourceList writes a list of value of the 'resource' type to // the given stream. -func writeResourceList(list []*Resource, stream *jsoniter.Stream) { +func WriteResourceList(list []*Resource, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeResource(value, stream) + WriteResource(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalResourceList(source interface{}) (items []*Resource, err error) { if err != nil { return } - items = readResourceList(iterator) + items = ReadResourceList(iterator) err = iterator.Error return } -// readResourceList reads list of values of the ”resource' type from +// ReadResourceList reads list of values of the ”resource' type from // the given iterator. -func readResourceList(iterator *jsoniter.Iterator) []*Resource { +func ReadResourceList(iterator *jsoniter.Iterator) []*Resource { list := []*Resource{} for iterator.ReadArray() { - item := readResource(iterator) + item := ReadResource(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/resource_quota_list_type_json.go b/accountsmgmt/v1/resource_quota_list_type_json.go index 30f0a305a..263b9f9f5 100644 --- a/accountsmgmt/v1/resource_quota_list_type_json.go +++ b/accountsmgmt/v1/resource_quota_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalResourceQuotaList(list []*ResourceQuota, writer io.Writer) error { stream := helpers.NewStream(writer) - writeResourceQuotaList(list, stream) + WriteResourceQuotaList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalResourceQuotaList(list []*ResourceQuota, writer io.Writer) error { return stream.Error } -// writeResourceQuotaList writes a list of value of the 'resource_quota' type to +// WriteResourceQuotaList writes a list of value of the 'resource_quota' type to // the given stream. -func writeResourceQuotaList(list []*ResourceQuota, stream *jsoniter.Stream) { +func WriteResourceQuotaList(list []*ResourceQuota, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeResourceQuota(value, stream) + WriteResourceQuota(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalResourceQuotaList(source interface{}) (items []*ResourceQuota, err if err != nil { return } - items = readResourceQuotaList(iterator) + items = ReadResourceQuotaList(iterator) err = iterator.Error return } -// readResourceQuotaList reads list of values of the ”resource_quota' type from +// ReadResourceQuotaList reads list of values of the ”resource_quota' type from // the given iterator. -func readResourceQuotaList(iterator *jsoniter.Iterator) []*ResourceQuota { +func ReadResourceQuotaList(iterator *jsoniter.Iterator) []*ResourceQuota { list := []*ResourceQuota{} for iterator.ReadArray() { - item := readResourceQuota(iterator) + item := ReadResourceQuota(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/resource_quota_type.go b/accountsmgmt/v1/resource_quota_type.go index 1d45a167d..e23ee9ec5 100644 --- a/accountsmgmt/v1/resource_quota_type.go +++ b/accountsmgmt/v1/resource_quota_type.go @@ -59,7 +59,7 @@ func (o *ResourceQuota) Kind() string { return ResourceQuotaKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *ResourceQuota) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -280,6 +280,29 @@ func (l *ResourceQuotaList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ResourceQuotaList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ResourceQuotaList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ResourceQuotaList) SetItems(items []*ResourceQuota) { + l.items = items +} + +// Items returns the items of the list. +func (l *ResourceQuotaList) Items() []*ResourceQuota { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ResourceQuotaList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/resource_quota_type_json.go b/accountsmgmt/v1/resource_quota_type_json.go index 2601cc7df..7023e8b5b 100644 --- a/accountsmgmt/v1/resource_quota_type_json.go +++ b/accountsmgmt/v1/resource_quota_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalResourceQuota writes a value of the 'resource_quota' type to the given writer. func MarshalResourceQuota(object *ResourceQuota, writer io.Writer) error { stream := helpers.NewStream(writer) - writeResourceQuota(object, stream) + WriteResourceQuota(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalResourceQuota(object *ResourceQuota, writer io.Writer) error { return stream.Error } -// writeResourceQuota writes a value of the 'resource_quota' type to the given stream. -func writeResourceQuota(object *ResourceQuota, stream *jsoniter.Stream) { +// WriteResourceQuota writes a value of the 'resource_quota' type to the given stream. +func WriteResourceQuota(object *ResourceQuota, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -129,13 +129,13 @@ func UnmarshalResourceQuota(source interface{}) (object *ResourceQuota, err erro if err != nil { return } - object = readResourceQuota(iterator) + object = ReadResourceQuota(iterator) err = iterator.Error return } -// readResourceQuota reads a value of the 'resource_quota' type from the given iterator. -func readResourceQuota(iterator *jsoniter.Iterator) *ResourceQuota { +// ReadResourceQuota reads a value of the 'resource_quota' type from the given iterator. +func ReadResourceQuota(iterator *jsoniter.Iterator) *ResourceQuota { object := &ResourceQuota{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/resource_quotas_resource_json.go b/accountsmgmt/v1/resource_quotas_resource_json.go index b5d7501cc..1f537c6c6 100644 --- a/accountsmgmt/v1/resource_quotas_resource_json.go +++ b/accountsmgmt/v1/resource_quotas_resource_json.go @@ -57,7 +57,7 @@ func readResourceQuotasListResponse(response *ResourceQuotasListResponse, reader value := iterator.ReadInt() response.total = &value case "items": - items := readResourceQuotaList(iterator) + items := ReadResourceQuotaList(iterator) response.items = &ResourceQuotaList{ items: items, } diff --git a/accountsmgmt/v1/resource_type.go b/accountsmgmt/v1/resource_type.go index f9ac28396..629713251 100644 --- a/accountsmgmt/v1/resource_type.go +++ b/accountsmgmt/v1/resource_type.go @@ -57,7 +57,7 @@ func (o *Resource) Kind() string { return ResourceKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Resource) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -286,6 +286,29 @@ func (l *ResourceList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ResourceList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ResourceList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ResourceList) SetItems(items []*Resource) { + l.items = items +} + +// Items returns the items of the list. +func (l *ResourceList) Items() []*Resource { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ResourceList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/resource_type_json.go b/accountsmgmt/v1/resource_type_json.go index fa8d0a141..c039be7b1 100644 --- a/accountsmgmt/v1/resource_type_json.go +++ b/accountsmgmt/v1/resource_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalResource writes a value of the 'resource' type to the given writer. func MarshalResource(object *Resource, writer io.Writer) error { stream := helpers.NewStream(writer) - writeResource(object, stream) + WriteResource(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalResource(object *Resource, writer io.Writer) error { return stream.Error } -// writeResource writes a value of the 'resource' type to the given stream. -func writeResource(object *Resource, stream *jsoniter.Stream) { +// WriteResource writes a value of the 'resource' type to the given stream. +func WriteResource(object *Resource, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -128,13 +128,13 @@ func UnmarshalResource(source interface{}) (object *Resource, err error) { if err != nil { return } - object = readResource(iterator) + object = ReadResource(iterator) err = iterator.Error return } -// readResource reads a value of the 'resource' type from the given iterator. -func readResource(iterator *jsoniter.Iterator) *Resource { +// ReadResource reads a value of the 'resource' type from the given iterator. +func ReadResource(iterator *jsoniter.Iterator) *Resource { object := &Resource{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/role_binding_list_type_json.go b/accountsmgmt/v1/role_binding_list_type_json.go index d38ee6ca3..f06c95106 100644 --- a/accountsmgmt/v1/role_binding_list_type_json.go +++ b/accountsmgmt/v1/role_binding_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalRoleBindingList(list []*RoleBinding, writer io.Writer) error { stream := helpers.NewStream(writer) - writeRoleBindingList(list, stream) + WriteRoleBindingList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalRoleBindingList(list []*RoleBinding, writer io.Writer) error { return stream.Error } -// writeRoleBindingList writes a list of value of the 'role_binding' type to +// WriteRoleBindingList writes a list of value of the 'role_binding' type to // the given stream. -func writeRoleBindingList(list []*RoleBinding, stream *jsoniter.Stream) { +func WriteRoleBindingList(list []*RoleBinding, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeRoleBinding(value, stream) + WriteRoleBinding(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalRoleBindingList(source interface{}) (items []*RoleBinding, err err if err != nil { return } - items = readRoleBindingList(iterator) + items = ReadRoleBindingList(iterator) err = iterator.Error return } -// readRoleBindingList reads list of values of the ”role_binding' type from +// ReadRoleBindingList reads list of values of the ”role_binding' type from // the given iterator. -func readRoleBindingList(iterator *jsoniter.Iterator) []*RoleBinding { +func ReadRoleBindingList(iterator *jsoniter.Iterator) []*RoleBinding { list := []*RoleBinding{} for iterator.ReadArray() { - item := readRoleBinding(iterator) + item := ReadRoleBinding(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/role_binding_type.go b/accountsmgmt/v1/role_binding_type.go index 7a3cf3a5a..37f9c4967 100644 --- a/accountsmgmt/v1/role_binding_type.go +++ b/accountsmgmt/v1/role_binding_type.go @@ -66,7 +66,7 @@ func (o *RoleBinding) Kind() string { return RoleBindingKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *RoleBinding) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -420,6 +420,29 @@ func (l *RoleBindingList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *RoleBindingList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *RoleBindingList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *RoleBindingList) SetItems(items []*RoleBinding) { + l.items = items +} + +// Items returns the items of the list. +func (l *RoleBindingList) Items() []*RoleBinding { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *RoleBindingList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/role_binding_type_json.go b/accountsmgmt/v1/role_binding_type_json.go index 45a2d70d3..a83c7158f 100644 --- a/accountsmgmt/v1/role_binding_type_json.go +++ b/accountsmgmt/v1/role_binding_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalRoleBinding writes a value of the 'role_binding' type to the given writer. func MarshalRoleBinding(object *RoleBinding, writer io.Writer) error { stream := helpers.NewStream(writer) - writeRoleBinding(object, stream) + WriteRoleBinding(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalRoleBinding(object *RoleBinding, writer io.Writer) error { return stream.Error } -// writeRoleBinding writes a value of the 'role_binding' type to the given stream. -func writeRoleBinding(object *RoleBinding, stream *jsoniter.Stream) { +// WriteRoleBinding writes a value of the 'role_binding' type to the given stream. +func WriteRoleBinding(object *RoleBinding, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -72,7 +72,7 @@ func writeRoleBinding(object *RoleBinding, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("account") - writeAccount(object.account, stream) + WriteAccount(object.account, stream) count++ } present_ = object.bitmap_&16 != 0 @@ -117,7 +117,7 @@ func writeRoleBinding(object *RoleBinding, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("organization") - writeOrganization(object.organization, stream) + WriteOrganization(object.organization, stream) count++ } present_ = object.bitmap_&512 != 0 @@ -135,7 +135,7 @@ func writeRoleBinding(object *RoleBinding, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("role") - writeRole(object.role, stream) + WriteRole(object.role, stream) count++ } present_ = object.bitmap_&2048 != 0 @@ -153,7 +153,7 @@ func writeRoleBinding(object *RoleBinding, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("subscription") - writeSubscription(object.subscription, stream) + WriteSubscription(object.subscription, stream) count++ } present_ = object.bitmap_&8192 != 0 @@ -192,13 +192,13 @@ func UnmarshalRoleBinding(source interface{}) (object *RoleBinding, err error) { if err != nil { return } - object = readRoleBinding(iterator) + object = ReadRoleBinding(iterator) err = iterator.Error return } -// readRoleBinding reads a value of the 'role_binding' type from the given iterator. -func readRoleBinding(iterator *jsoniter.Iterator) *RoleBinding { +// ReadRoleBinding reads a value of the 'role_binding' type from the given iterator. +func ReadRoleBinding(iterator *jsoniter.Iterator) *RoleBinding { object := &RoleBinding{} for { field := iterator.ReadObject() @@ -218,7 +218,7 @@ func readRoleBinding(iterator *jsoniter.Iterator) *RoleBinding { object.href = iterator.ReadString() object.bitmap_ |= 4 case "account": - value := readAccount(iterator) + value := ReadAccount(iterator) object.account = value object.bitmap_ |= 8 case "account_id": @@ -242,7 +242,7 @@ func readRoleBinding(iterator *jsoniter.Iterator) *RoleBinding { object.managedBy = value object.bitmap_ |= 128 case "organization": - value := readOrganization(iterator) + value := ReadOrganization(iterator) object.organization = value object.bitmap_ |= 256 case "organization_id": @@ -250,7 +250,7 @@ func readRoleBinding(iterator *jsoniter.Iterator) *RoleBinding { object.organizationID = value object.bitmap_ |= 512 case "role": - value := readRole(iterator) + value := ReadRole(iterator) object.role = value object.bitmap_ |= 1024 case "role_id": @@ -258,7 +258,7 @@ func readRoleBinding(iterator *jsoniter.Iterator) *RoleBinding { object.roleID = value object.bitmap_ |= 2048 case "subscription": - value := readSubscription(iterator) + value := ReadSubscription(iterator) object.subscription = value object.bitmap_ |= 4096 case "subscription_id": diff --git a/accountsmgmt/v1/role_bindings_resource_json.go b/accountsmgmt/v1/role_bindings_resource_json.go index f53a405f6..625a05f43 100644 --- a/accountsmgmt/v1/role_bindings_resource_json.go +++ b/accountsmgmt/v1/role_bindings_resource_json.go @@ -57,7 +57,7 @@ func readRoleBindingsListResponse(response *RoleBindingsListResponse, reader io. value := iterator.ReadInt() response.total = &value case "items": - items := readRoleBindingList(iterator) + items := ReadRoleBindingList(iterator) response.items = &RoleBindingList{ items: items, } diff --git a/accountsmgmt/v1/role_list_type_json.go b/accountsmgmt/v1/role_list_type_json.go index af97d5e77..91d457822 100644 --- a/accountsmgmt/v1/role_list_type_json.go +++ b/accountsmgmt/v1/role_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalRoleList(list []*Role, writer io.Writer) error { stream := helpers.NewStream(writer) - writeRoleList(list, stream) + WriteRoleList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalRoleList(list []*Role, writer io.Writer) error { return stream.Error } -// writeRoleList writes a list of value of the 'role' type to +// WriteRoleList writes a list of value of the 'role' type to // the given stream. -func writeRoleList(list []*Role, stream *jsoniter.Stream) { +func WriteRoleList(list []*Role, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeRole(value, stream) + WriteRole(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalRoleList(source interface{}) (items []*Role, err error) { if err != nil { return } - items = readRoleList(iterator) + items = ReadRoleList(iterator) err = iterator.Error return } -// readRoleList reads list of values of the ”role' type from +// ReadRoleList reads list of values of the ”role' type from // the given iterator. -func readRoleList(iterator *jsoniter.Iterator) []*Role { +func ReadRoleList(iterator *jsoniter.Iterator) []*Role { list := []*Role{} for iterator.ReadArray() { - item := readRole(iterator) + item := ReadRole(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/role_type.go b/accountsmgmt/v1/role_type.go index 352e66191..d6ce4ca70 100644 --- a/accountsmgmt/v1/role_type.go +++ b/accountsmgmt/v1/role_type.go @@ -51,7 +51,7 @@ func (o *Role) Kind() string { return RoleKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Role) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -196,6 +196,29 @@ func (l *RoleList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *RoleList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *RoleList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *RoleList) SetItems(items []*Role) { + l.items = items +} + +// Items returns the items of the list. +func (l *RoleList) Items() []*Role { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *RoleList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/role_type_json.go b/accountsmgmt/v1/role_type_json.go index a9313330a..e2c670d3f 100644 --- a/accountsmgmt/v1/role_type_json.go +++ b/accountsmgmt/v1/role_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalRole writes a value of the 'role' type to the given writer. func MarshalRole(object *Role, writer io.Writer) error { stream := helpers.NewStream(writer) - writeRole(object, stream) + WriteRole(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalRole(object *Role, writer io.Writer) error { return stream.Error } -// writeRole writes a value of the 'role' type to the given stream. -func writeRole(object *Role, stream *jsoniter.Stream) { +// WriteRole writes a value of the 'role' type to the given stream. +func WriteRole(object *Role, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -80,7 +80,7 @@ func writeRole(object *Role, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("permissions") - writePermissionList(object.permissions, stream) + WritePermissionList(object.permissions, stream) } stream.WriteObjectEnd() } @@ -92,13 +92,13 @@ func UnmarshalRole(source interface{}) (object *Role, err error) { if err != nil { return } - object = readRole(iterator) + object = ReadRole(iterator) err = iterator.Error return } -// readRole reads a value of the 'role' type from the given iterator. -func readRole(iterator *jsoniter.Iterator) *Role { +// ReadRole reads a value of the 'role' type from the given iterator. +func ReadRole(iterator *jsoniter.Iterator) *Role { object := &Role{} for { field := iterator.ReadObject() @@ -122,7 +122,7 @@ func readRole(iterator *jsoniter.Iterator) *Role { object.name = value object.bitmap_ |= 8 case "permissions": - value := readPermissionList(iterator) + value := ReadPermissionList(iterator) object.permissions = value object.bitmap_ |= 16 default: diff --git a/accountsmgmt/v1/roles_resource_json.go b/accountsmgmt/v1/roles_resource_json.go index 7d816add1..11206b84d 100644 --- a/accountsmgmt/v1/roles_resource_json.go +++ b/accountsmgmt/v1/roles_resource_json.go @@ -57,7 +57,7 @@ func readRolesListResponse(response *RolesListResponse, reader io.Reader) error value := iterator.ReadInt() response.total = &value case "items": - items := readRoleList(iterator) + items := ReadRoleList(iterator) response.items = &RoleList{ items: items, } diff --git a/accountsmgmt/v1/sku_rule_list_type_json.go b/accountsmgmt/v1/sku_rule_list_type_json.go index 30b05cb0c..8198ff1b4 100644 --- a/accountsmgmt/v1/sku_rule_list_type_json.go +++ b/accountsmgmt/v1/sku_rule_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSkuRuleList(list []*SkuRule, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSkuRuleList(list, stream) + WriteSkuRuleList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalSkuRuleList(list []*SkuRule, writer io.Writer) error { return stream.Error } -// writeSkuRuleList writes a list of value of the 'sku_rule' type to +// WriteSkuRuleList writes a list of value of the 'sku_rule' type to // the given stream. -func writeSkuRuleList(list []*SkuRule, stream *jsoniter.Stream) { +func WriteSkuRuleList(list []*SkuRule, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeSkuRule(value, stream) + WriteSkuRule(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalSkuRuleList(source interface{}) (items []*SkuRule, err error) { if err != nil { return } - items = readSkuRuleList(iterator) + items = ReadSkuRuleList(iterator) err = iterator.Error return } -// readSkuRuleList reads list of values of the ”sku_rule' type from +// ReadSkuRuleList reads list of values of the ”sku_rule' type from // the given iterator. -func readSkuRuleList(iterator *jsoniter.Iterator) []*SkuRule { +func ReadSkuRuleList(iterator *jsoniter.Iterator) []*SkuRule { list := []*SkuRule{} for iterator.ReadArray() { - item := readSkuRule(iterator) + item := ReadSkuRule(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/sku_rule_type.go b/accountsmgmt/v1/sku_rule_type.go index 4234ce5b2..4e38703bc 100644 --- a/accountsmgmt/v1/sku_rule_type.go +++ b/accountsmgmt/v1/sku_rule_type.go @@ -54,7 +54,7 @@ func (o *SkuRule) Kind() string { return SkuRuleKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *SkuRule) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -230,6 +230,29 @@ func (l *SkuRuleList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *SkuRuleList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *SkuRuleList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *SkuRuleList) SetItems(items []*SkuRule) { + l.items = items +} + +// Items returns the items of the list. +func (l *SkuRuleList) Items() []*SkuRule { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *SkuRuleList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/sku_rule_type_json.go b/accountsmgmt/v1/sku_rule_type_json.go index 7b61bb06d..7a02579dd 100644 --- a/accountsmgmt/v1/sku_rule_type_json.go +++ b/accountsmgmt/v1/sku_rule_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalSkuRule writes a value of the 'sku_rule' type to the given writer. func MarshalSkuRule(object *SkuRule, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSkuRule(object, stream) + WriteSkuRule(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalSkuRule(object *SkuRule, writer io.Writer) error { return stream.Error } -// writeSkuRule writes a value of the 'sku_rule' type to the given stream. -func writeSkuRule(object *SkuRule, stream *jsoniter.Stream) { +// WriteSkuRule writes a value of the 'sku_rule' type to the given stream. +func WriteSkuRule(object *SkuRule, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -101,13 +101,13 @@ func UnmarshalSkuRule(source interface{}) (object *SkuRule, err error) { if err != nil { return } - object = readSkuRule(iterator) + object = ReadSkuRule(iterator) err = iterator.Error return } -// readSkuRule reads a value of the 'sku_rule' type from the given iterator. -func readSkuRule(iterator *jsoniter.Iterator) *SkuRule { +// ReadSkuRule reads a value of the 'sku_rule' type from the given iterator. +func ReadSkuRule(iterator *jsoniter.Iterator) *SkuRule { object := &SkuRule{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/sku_rules_resource_json.go b/accountsmgmt/v1/sku_rules_resource_json.go index d83dc3133..a8f8eabb2 100644 --- a/accountsmgmt/v1/sku_rules_resource_json.go +++ b/accountsmgmt/v1/sku_rules_resource_json.go @@ -49,7 +49,7 @@ func readSkuRulesListResponse(response *SkuRulesListResponse, reader io.Reader) value := iterator.ReadInt() response.total = &value case "items": - items := readSkuRuleList(iterator) + items := ReadSkuRuleList(iterator) response.items = &SkuRuleList{ items: items, } diff --git a/accountsmgmt/v1/string_list_type_json.go b/accountsmgmt/v1/string_list_type_json.go index 08fce3b29..a2639144f 100644 --- a/accountsmgmt/v1/string_list_type_json.go +++ b/accountsmgmt/v1/string_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalStringList(list []string, writer io.Writer) error { stream := helpers.NewStream(writer) - writeStringList(list, stream) + WriteStringList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalStringList(list []string, writer io.Writer) error { return stream.Error } -// writeStringList writes a list of value of the 'string' type to +// WriteStringList writes a list of value of the 'string' type to // the given stream. -func writeStringList(list []string, stream *jsoniter.Stream) { +func WriteStringList(list []string, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalStringList(source interface{}) (items []string, err error) { if err != nil { return } - items = readStringList(iterator) + items = ReadStringList(iterator) err = iterator.Error return } -// readStringList reads list of values of the ”string' type from +// ReadStringList reads list of values of the ”string' type from // the given iterator. -func readStringList(iterator *jsoniter.Iterator) []string { +func ReadStringList(iterator *jsoniter.Iterator) []string { list := []string{} for iterator.ReadArray() { item := iterator.ReadString() diff --git a/accountsmgmt/v1/subscription_list_type_json.go b/accountsmgmt/v1/subscription_list_type_json.go index d0a5edf28..9822a39fb 100644 --- a/accountsmgmt/v1/subscription_list_type_json.go +++ b/accountsmgmt/v1/subscription_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSubscriptionList(list []*Subscription, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSubscriptionList(list, stream) + WriteSubscriptionList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalSubscriptionList(list []*Subscription, writer io.Writer) error { return stream.Error } -// writeSubscriptionList writes a list of value of the 'subscription' type to +// WriteSubscriptionList writes a list of value of the 'subscription' type to // the given stream. -func writeSubscriptionList(list []*Subscription, stream *jsoniter.Stream) { +func WriteSubscriptionList(list []*Subscription, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeSubscription(value, stream) + WriteSubscription(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalSubscriptionList(source interface{}) (items []*Subscription, err e if err != nil { return } - items = readSubscriptionList(iterator) + items = ReadSubscriptionList(iterator) err = iterator.Error return } -// readSubscriptionList reads list of values of the ”subscription' type from +// ReadSubscriptionList reads list of values of the ”subscription' type from // the given iterator. -func readSubscriptionList(iterator *jsoniter.Iterator) []*Subscription { +func ReadSubscriptionList(iterator *jsoniter.Iterator) []*Subscription { list := []*Subscription{} for iterator.ReadArray() { - item := readSubscription(iterator) + item := ReadSubscription(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/subscription_metrics_list_type_json.go b/accountsmgmt/v1/subscription_metrics_list_type_json.go index 818d839a8..f7e0b918d 100644 --- a/accountsmgmt/v1/subscription_metrics_list_type_json.go +++ b/accountsmgmt/v1/subscription_metrics_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSubscriptionMetricsList(list []*SubscriptionMetrics, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSubscriptionMetricsList(list, stream) + WriteSubscriptionMetricsList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalSubscriptionMetricsList(list []*SubscriptionMetrics, writer io.Write return stream.Error } -// writeSubscriptionMetricsList writes a list of value of the 'subscription_metrics' type to +// WriteSubscriptionMetricsList writes a list of value of the 'subscription_metrics' type to // the given stream. -func writeSubscriptionMetricsList(list []*SubscriptionMetrics, stream *jsoniter.Stream) { +func WriteSubscriptionMetricsList(list []*SubscriptionMetrics, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeSubscriptionMetrics(value, stream) + WriteSubscriptionMetrics(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalSubscriptionMetricsList(source interface{}) (items []*Subscription if err != nil { return } - items = readSubscriptionMetricsList(iterator) + items = ReadSubscriptionMetricsList(iterator) err = iterator.Error return } -// readSubscriptionMetricsList reads list of values of the ”subscription_metrics' type from +// ReadSubscriptionMetricsList reads list of values of the ”subscription_metrics' type from // the given iterator. -func readSubscriptionMetricsList(iterator *jsoniter.Iterator) []*SubscriptionMetrics { +func ReadSubscriptionMetricsList(iterator *jsoniter.Iterator) []*SubscriptionMetrics { list := []*SubscriptionMetrics{} for iterator.ReadArray() { - item := readSubscriptionMetrics(iterator) + item := ReadSubscriptionMetrics(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/subscription_metrics_type.go b/accountsmgmt/v1/subscription_metrics_type.go index b52515904..92025af2c 100644 --- a/accountsmgmt/v1/subscription_metrics_type.go +++ b/accountsmgmt/v1/subscription_metrics_type.go @@ -498,6 +498,29 @@ func (l *SubscriptionMetricsList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *SubscriptionMetricsList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *SubscriptionMetricsList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *SubscriptionMetricsList) SetItems(items []*SubscriptionMetrics) { + l.items = items +} + +// Items returns the items of the list. +func (l *SubscriptionMetricsList) Items() []*SubscriptionMetrics { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *SubscriptionMetricsList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/subscription_metrics_type_json.go b/accountsmgmt/v1/subscription_metrics_type_json.go index f1ace1cd4..e9d4915d8 100644 --- a/accountsmgmt/v1/subscription_metrics_type_json.go +++ b/accountsmgmt/v1/subscription_metrics_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalSubscriptionMetrics writes a value of the 'subscription_metrics' type to the given writer. func MarshalSubscriptionMetrics(object *SubscriptionMetrics, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSubscriptionMetrics(object, stream) + WriteSubscriptionMetrics(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalSubscriptionMetrics(object *SubscriptionMetrics, writer io.Writer) e return stream.Error } -// writeSubscriptionMetrics writes a value of the 'subscription_metrics' type to the given stream. -func writeSubscriptionMetrics(object *SubscriptionMetrics, stream *jsoniter.Stream) { +// WriteSubscriptionMetrics writes a value of the 'subscription_metrics' type to the given stream. +func WriteSubscriptionMetrics(object *SubscriptionMetrics, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -57,7 +57,7 @@ func writeSubscriptionMetrics(object *SubscriptionMetrics, stream *jsoniter.Stre stream.WriteMore() } stream.WriteObjectField("compute_nodes_cpu") - writeClusterResource(object.computeNodesCpu, stream) + WriteClusterResource(object.computeNodesCpu, stream) count++ } present_ = object.bitmap_&4 != 0 && object.computeNodesMemory != nil @@ -66,7 +66,7 @@ func writeSubscriptionMetrics(object *SubscriptionMetrics, stream *jsoniter.Stre stream.WriteMore() } stream.WriteObjectField("compute_nodes_memory") - writeClusterResource(object.computeNodesMemory, stream) + WriteClusterResource(object.computeNodesMemory, stream) count++ } present_ = object.bitmap_&8 != 0 && object.computeNodesSockets != nil @@ -75,7 +75,7 @@ func writeSubscriptionMetrics(object *SubscriptionMetrics, stream *jsoniter.Stre stream.WriteMore() } stream.WriteObjectField("compute_nodes_sockets") - writeClusterResource(object.computeNodesSockets, stream) + WriteClusterResource(object.computeNodesSockets, stream) count++ } present_ = object.bitmap_&16 != 0 @@ -93,7 +93,7 @@ func writeSubscriptionMetrics(object *SubscriptionMetrics, stream *jsoniter.Stre stream.WriteMore() } stream.WriteObjectField("cpu") - writeClusterResource(object.cpu, stream) + WriteClusterResource(object.cpu, stream) count++ } present_ = object.bitmap_&64 != 0 @@ -120,7 +120,7 @@ func writeSubscriptionMetrics(object *SubscriptionMetrics, stream *jsoniter.Stre stream.WriteMore() } stream.WriteObjectField("memory") - writeClusterResource(object.memory, stream) + WriteClusterResource(object.memory, stream) count++ } present_ = object.bitmap_&512 != 0 && object.nodes != nil @@ -129,7 +129,7 @@ func writeSubscriptionMetrics(object *SubscriptionMetrics, stream *jsoniter.Stre stream.WriteMore() } stream.WriteObjectField("nodes") - writeClusterMetricsNodes(object.nodes, stream) + WriteClusterMetricsNodes(object.nodes, stream) count++ } present_ = object.bitmap_&1024 != 0 @@ -174,7 +174,7 @@ func writeSubscriptionMetrics(object *SubscriptionMetrics, stream *jsoniter.Stre stream.WriteMore() } stream.WriteObjectField("sockets") - writeClusterResource(object.sockets, stream) + WriteClusterResource(object.sockets, stream) count++ } present_ = object.bitmap_&32768 != 0 @@ -201,7 +201,7 @@ func writeSubscriptionMetrics(object *SubscriptionMetrics, stream *jsoniter.Stre stream.WriteMore() } stream.WriteObjectField("storage") - writeClusterResource(object.storage, stream) + WriteClusterResource(object.storage, stream) count++ } present_ = object.bitmap_&262144 != 0 @@ -237,7 +237,7 @@ func writeSubscriptionMetrics(object *SubscriptionMetrics, stream *jsoniter.Stre stream.WriteMore() } stream.WriteObjectField("upgrade") - writeClusterUpgrade(object.upgrade, stream) + WriteClusterUpgrade(object.upgrade, stream) } stream.WriteObjectEnd() } @@ -249,13 +249,13 @@ func UnmarshalSubscriptionMetrics(source interface{}) (object *SubscriptionMetri if err != nil { return } - object = readSubscriptionMetrics(iterator) + object = ReadSubscriptionMetrics(iterator) err = iterator.Error return } -// readSubscriptionMetrics reads a value of the 'subscription_metrics' type from the given iterator. -func readSubscriptionMetrics(iterator *jsoniter.Iterator) *SubscriptionMetrics { +// ReadSubscriptionMetrics reads a value of the 'subscription_metrics' type from the given iterator. +func ReadSubscriptionMetrics(iterator *jsoniter.Iterator) *SubscriptionMetrics { object := &SubscriptionMetrics{} for { field := iterator.ReadObject() @@ -268,15 +268,15 @@ func readSubscriptionMetrics(iterator *jsoniter.Iterator) *SubscriptionMetrics { object.cloudProvider = value object.bitmap_ |= 1 case "compute_nodes_cpu": - value := readClusterResource(iterator) + value := ReadClusterResource(iterator) object.computeNodesCpu = value object.bitmap_ |= 2 case "compute_nodes_memory": - value := readClusterResource(iterator) + value := ReadClusterResource(iterator) object.computeNodesMemory = value object.bitmap_ |= 4 case "compute_nodes_sockets": - value := readClusterResource(iterator) + value := ReadClusterResource(iterator) object.computeNodesSockets = value object.bitmap_ |= 8 case "console_url": @@ -284,7 +284,7 @@ func readSubscriptionMetrics(iterator *jsoniter.Iterator) *SubscriptionMetrics { object.consoleUrl = value object.bitmap_ |= 16 case "cpu": - value := readClusterResource(iterator) + value := ReadClusterResource(iterator) object.cpu = value object.bitmap_ |= 32 case "critical_alerts_firing": @@ -296,11 +296,11 @@ func readSubscriptionMetrics(iterator *jsoniter.Iterator) *SubscriptionMetrics { object.healthState = value object.bitmap_ |= 128 case "memory": - value := readClusterResource(iterator) + value := ReadClusterResource(iterator) object.memory = value object.bitmap_ |= 256 case "nodes": - value := readClusterMetricsNodes(iterator) + value := ReadClusterMetricsNodes(iterator) object.nodes = value object.bitmap_ |= 512 case "openshift_version": @@ -320,7 +320,7 @@ func readSubscriptionMetrics(iterator *jsoniter.Iterator) *SubscriptionMetrics { object.region = value object.bitmap_ |= 8192 case "sockets": - value := readClusterResource(iterator) + value := ReadClusterResource(iterator) object.sockets = value object.bitmap_ |= 16384 case "state": @@ -332,7 +332,7 @@ func readSubscriptionMetrics(iterator *jsoniter.Iterator) *SubscriptionMetrics { object.stateDescription = value object.bitmap_ |= 65536 case "storage": - value := readClusterResource(iterator) + value := ReadClusterResource(iterator) object.storage = value object.bitmap_ |= 131072 case "subscription_cpu_total": @@ -348,7 +348,7 @@ func readSubscriptionMetrics(iterator *jsoniter.Iterator) *SubscriptionMetrics { object.subscriptionSocketTotal = value object.bitmap_ |= 1048576 case "upgrade": - value := readClusterUpgrade(iterator) + value := ReadClusterUpgrade(iterator) object.upgrade = value object.bitmap_ |= 2097152 default: diff --git a/accountsmgmt/v1/subscription_registration_list_type_json.go b/accountsmgmt/v1/subscription_registration_list_type_json.go index e2ca148d6..1b0cd7795 100644 --- a/accountsmgmt/v1/subscription_registration_list_type_json.go +++ b/accountsmgmt/v1/subscription_registration_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSubscriptionRegistrationList(list []*SubscriptionRegistration, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSubscriptionRegistrationList(list, stream) + WriteSubscriptionRegistrationList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalSubscriptionRegistrationList(list []*SubscriptionRegistration, write return stream.Error } -// writeSubscriptionRegistrationList writes a list of value of the 'subscription_registration' type to +// WriteSubscriptionRegistrationList writes a list of value of the 'subscription_registration' type to // the given stream. -func writeSubscriptionRegistrationList(list []*SubscriptionRegistration, stream *jsoniter.Stream) { +func WriteSubscriptionRegistrationList(list []*SubscriptionRegistration, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeSubscriptionRegistration(value, stream) + WriteSubscriptionRegistration(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalSubscriptionRegistrationList(source interface{}) (items []*Subscri if err != nil { return } - items = readSubscriptionRegistrationList(iterator) + items = ReadSubscriptionRegistrationList(iterator) err = iterator.Error return } -// readSubscriptionRegistrationList reads list of values of the ”subscription_registration' type from +// ReadSubscriptionRegistrationList reads list of values of the ”subscription_registration' type from // the given iterator. -func readSubscriptionRegistrationList(iterator *jsoniter.Iterator) []*SubscriptionRegistration { +func ReadSubscriptionRegistrationList(iterator *jsoniter.Iterator) []*SubscriptionRegistration { list := []*SubscriptionRegistration{} for iterator.ReadArray() { - item := readSubscriptionRegistration(iterator) + item := ReadSubscriptionRegistration(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/subscription_registration_type.go b/accountsmgmt/v1/subscription_registration_type.go index 219ba299f..f4102a7e2 100644 --- a/accountsmgmt/v1/subscription_registration_type.go +++ b/accountsmgmt/v1/subscription_registration_type.go @@ -178,6 +178,29 @@ func (l *SubscriptionRegistrationList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *SubscriptionRegistrationList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *SubscriptionRegistrationList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *SubscriptionRegistrationList) SetItems(items []*SubscriptionRegistration) { + l.items = items +} + +// Items returns the items of the list. +func (l *SubscriptionRegistrationList) Items() []*SubscriptionRegistration { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *SubscriptionRegistrationList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/subscription_registration_type_json.go b/accountsmgmt/v1/subscription_registration_type_json.go index 60b829486..90fe1ce3c 100644 --- a/accountsmgmt/v1/subscription_registration_type_json.go +++ b/accountsmgmt/v1/subscription_registration_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalSubscriptionRegistration writes a value of the 'subscription_registration' type to the given writer. func MarshalSubscriptionRegistration(object *SubscriptionRegistration, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSubscriptionRegistration(object, stream) + WriteSubscriptionRegistration(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalSubscriptionRegistration(object *SubscriptionRegistration, writer io return stream.Error } -// writeSubscriptionRegistration writes a value of the 'subscription_registration' type to the given stream. -func writeSubscriptionRegistration(object *SubscriptionRegistration, stream *jsoniter.Stream) { +// WriteSubscriptionRegistration writes a value of the 'subscription_registration' type to the given stream. +func WriteSubscriptionRegistration(object *SubscriptionRegistration, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -96,13 +96,13 @@ func UnmarshalSubscriptionRegistration(source interface{}) (object *Subscription if err != nil { return } - object = readSubscriptionRegistration(iterator) + object = ReadSubscriptionRegistration(iterator) err = iterator.Error return } -// readSubscriptionRegistration reads a value of the 'subscription_registration' type from the given iterator. -func readSubscriptionRegistration(iterator *jsoniter.Iterator) *SubscriptionRegistration { +// ReadSubscriptionRegistration reads a value of the 'subscription_registration' type from the given iterator. +func ReadSubscriptionRegistration(iterator *jsoniter.Iterator) *SubscriptionRegistration { object := &SubscriptionRegistration{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/subscription_reserved_resources_resource_json.go b/accountsmgmt/v1/subscription_reserved_resources_resource_json.go index a3d9db882..2462f13c2 100644 --- a/accountsmgmt/v1/subscription_reserved_resources_resource_json.go +++ b/accountsmgmt/v1/subscription_reserved_resources_resource_json.go @@ -49,7 +49,7 @@ func readSubscriptionReservedResourcesListResponse(response *SubscriptionReserve value := iterator.ReadInt() response.total = &value case "items": - items := readReservedResourceList(iterator) + items := ReadReservedResourceList(iterator) response.items = &ReservedResourceList{ items: items, } diff --git a/accountsmgmt/v1/subscription_type.go b/accountsmgmt/v1/subscription_type.go index dea88d39a..a455a51b1 100644 --- a/accountsmgmt/v1/subscription_type.go +++ b/accountsmgmt/v1/subscription_type.go @@ -87,7 +87,7 @@ func (o *Subscription) Kind() string { return SubscriptionKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Subscription) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -872,6 +872,29 @@ func (l *SubscriptionList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *SubscriptionList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *SubscriptionList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *SubscriptionList) SetItems(items []*Subscription) { + l.items = items +} + +// Items returns the items of the list. +func (l *SubscriptionList) Items() []*Subscription { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *SubscriptionList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/subscription_type_json.go b/accountsmgmt/v1/subscription_type_json.go index a61b352b8..162d89263 100644 --- a/accountsmgmt/v1/subscription_type_json.go +++ b/accountsmgmt/v1/subscription_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalSubscription writes a value of the 'subscription' type to the given writer. func MarshalSubscription(object *Subscription, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSubscription(object, stream) + WriteSubscription(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalSubscription(object *Subscription, writer io.Writer) error { return stream.Error } -// writeSubscription writes a value of the 'subscription' type to the given stream. -func writeSubscription(object *Subscription, stream *jsoniter.Stream) { +// WriteSubscription writes a value of the 'subscription' type to the given stream. +func WriteSubscription(object *Subscription, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -81,7 +81,7 @@ func writeSubscription(object *Subscription, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("capabilities") - writeCapabilityList(object.capabilities, stream) + WriteCapabilityList(object.capabilities, stream) count++ } present_ = object.bitmap_&32 != 0 @@ -162,7 +162,7 @@ func writeSubscription(object *Subscription, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("creator") - writeAccount(object.creator, stream) + WriteAccount(object.creator, stream) count++ } present_ = object.bitmap_&16384 != 0 @@ -189,7 +189,7 @@ func writeSubscription(object *Subscription, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("labels") - writeLabelList(object.labels, stream) + WriteLabelList(object.labels, stream) count++ } present_ = object.bitmap_&131072 != 0 @@ -234,7 +234,7 @@ func writeSubscription(object *Subscription, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("metrics") - writeSubscriptionMetricsList(object.metrics, stream) + WriteSubscriptionMetricsList(object.metrics, stream) count++ } present_ = object.bitmap_&4194304 != 0 && object.notificationContacts != nil @@ -243,7 +243,7 @@ func writeSubscription(object *Subscription, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("notification_contacts") - writeAccountList(object.notificationContacts, stream) + WriteAccountList(object.notificationContacts, stream) count++ } present_ = object.bitmap_&8388608 != 0 @@ -261,7 +261,7 @@ func writeSubscription(object *Subscription, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("plan") - writePlan(object.plan, stream) + WritePlan(object.plan, stream) count++ } present_ = object.bitmap_&33554432 != 0 @@ -381,13 +381,13 @@ func UnmarshalSubscription(source interface{}) (object *Subscription, err error) if err != nil { return } - object = readSubscription(iterator) + object = ReadSubscription(iterator) err = iterator.Error return } -// readSubscription reads a value of the 'subscription' type from the given iterator. -func readSubscription(iterator *jsoniter.Iterator) *Subscription { +// ReadSubscription reads a value of the 'subscription' type from the given iterator. +func ReadSubscription(iterator *jsoniter.Iterator) *Subscription { object := &Subscription{} for { field := iterator.ReadObject() @@ -411,7 +411,7 @@ func readSubscription(iterator *jsoniter.Iterator) *Subscription { object.billingMarketplaceAccount = value object.bitmap_ |= 8 case "capabilities": - value := readCapabilityList(iterator) + value := ReadCapabilityList(iterator) object.capabilities = value object.bitmap_ |= 16 case "cloud_account_id": @@ -452,7 +452,7 @@ func readSubscription(iterator *jsoniter.Iterator) *Subscription { object.createdAt = value object.bitmap_ |= 4096 case "creator": - value := readAccount(iterator) + value := ReadAccount(iterator) object.creator = value object.bitmap_ |= 8192 case "display_name": @@ -464,7 +464,7 @@ func readSubscription(iterator *jsoniter.Iterator) *Subscription { object.externalClusterID = value object.bitmap_ |= 32768 case "labels": - value := readLabelList(iterator) + value := ReadLabelList(iterator) object.labels = value object.bitmap_ |= 65536 case "last_reconcile_date": @@ -496,11 +496,11 @@ func readSubscription(iterator *jsoniter.Iterator) *Subscription { object.managed = value object.bitmap_ |= 1048576 case "metrics": - value := readSubscriptionMetricsList(iterator) + value := ReadSubscriptionMetricsList(iterator) object.metrics = value object.bitmap_ |= 2097152 case "notification_contacts": - value := readAccountList(iterator) + value := ReadAccountList(iterator) object.notificationContacts = value object.bitmap_ |= 4194304 case "organization_id": @@ -508,7 +508,7 @@ func readSubscription(iterator *jsoniter.Iterator) *Subscription { object.organizationID = value object.bitmap_ |= 8388608 case "plan": - value := readPlan(iterator) + value := ReadPlan(iterator) object.plan = value object.bitmap_ |= 16777216 case "product_bundle": diff --git a/accountsmgmt/v1/subscriptions_resource_json.go b/accountsmgmt/v1/subscriptions_resource_json.go index 220421419..3021c85e9 100644 --- a/accountsmgmt/v1/subscriptions_resource_json.go +++ b/accountsmgmt/v1/subscriptions_resource_json.go @@ -49,7 +49,7 @@ func readSubscriptionsListResponse(response *SubscriptionsListResponse, reader i value := iterator.ReadInt() response.total = &value case "items": - items := readSubscriptionList(iterator) + items := ReadSubscriptionList(iterator) response.items = &SubscriptionList{ items: items, } diff --git a/accountsmgmt/v1/summary_dashboard_list_type_json.go b/accountsmgmt/v1/summary_dashboard_list_type_json.go index 06229c5de..f02dcb7d6 100644 --- a/accountsmgmt/v1/summary_dashboard_list_type_json.go +++ b/accountsmgmt/v1/summary_dashboard_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSummaryDashboardList(list []*SummaryDashboard, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSummaryDashboardList(list, stream) + WriteSummaryDashboardList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalSummaryDashboardList(list []*SummaryDashboard, writer io.Writer) err return stream.Error } -// writeSummaryDashboardList writes a list of value of the 'summary_dashboard' type to +// WriteSummaryDashboardList writes a list of value of the 'summary_dashboard' type to // the given stream. -func writeSummaryDashboardList(list []*SummaryDashboard, stream *jsoniter.Stream) { +func WriteSummaryDashboardList(list []*SummaryDashboard, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeSummaryDashboard(value, stream) + WriteSummaryDashboard(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalSummaryDashboardList(source interface{}) (items []*SummaryDashboar if err != nil { return } - items = readSummaryDashboardList(iterator) + items = ReadSummaryDashboardList(iterator) err = iterator.Error return } -// readSummaryDashboardList reads list of values of the ”summary_dashboard' type from +// ReadSummaryDashboardList reads list of values of the ”summary_dashboard' type from // the given iterator. -func readSummaryDashboardList(iterator *jsoniter.Iterator) []*SummaryDashboard { +func ReadSummaryDashboardList(iterator *jsoniter.Iterator) []*SummaryDashboard { list := []*SummaryDashboard{} for iterator.ReadArray() { - item := readSummaryDashboard(iterator) + item := ReadSummaryDashboard(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/summary_dashboard_type.go b/accountsmgmt/v1/summary_dashboard_type.go index fd6f4f065..1566d6c61 100644 --- a/accountsmgmt/v1/summary_dashboard_type.go +++ b/accountsmgmt/v1/summary_dashboard_type.go @@ -50,7 +50,7 @@ func (o *SummaryDashboard) Kind() string { return SummaryDashboardKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *SummaryDashboard) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -176,6 +176,29 @@ func (l *SummaryDashboardList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *SummaryDashboardList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *SummaryDashboardList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *SummaryDashboardList) SetItems(items []*SummaryDashboard) { + l.items = items +} + +// Items returns the items of the list. +func (l *SummaryDashboardList) Items() []*SummaryDashboard { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *SummaryDashboardList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/summary_dashboard_type_json.go b/accountsmgmt/v1/summary_dashboard_type_json.go index 4c81239d0..69c247376 100644 --- a/accountsmgmt/v1/summary_dashboard_type_json.go +++ b/accountsmgmt/v1/summary_dashboard_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalSummaryDashboard writes a value of the 'summary_dashboard' type to the given writer. func MarshalSummaryDashboard(object *SummaryDashboard, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSummaryDashboard(object, stream) + WriteSummaryDashboard(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalSummaryDashboard(object *SummaryDashboard, writer io.Writer) error { return stream.Error } -// writeSummaryDashboard writes a value of the 'summary_dashboard' type to the given stream. -func writeSummaryDashboard(object *SummaryDashboard, stream *jsoniter.Stream) { +// WriteSummaryDashboard writes a value of the 'summary_dashboard' type to the given stream. +func WriteSummaryDashboard(object *SummaryDashboard, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -71,7 +71,7 @@ func writeSummaryDashboard(object *SummaryDashboard, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("metrics") - writeSummaryMetricsList(object.metrics, stream) + WriteSummaryMetricsList(object.metrics, stream) } stream.WriteObjectEnd() } @@ -83,13 +83,13 @@ func UnmarshalSummaryDashboard(source interface{}) (object *SummaryDashboard, er if err != nil { return } - object = readSummaryDashboard(iterator) + object = ReadSummaryDashboard(iterator) err = iterator.Error return } -// readSummaryDashboard reads a value of the 'summary_dashboard' type from the given iterator. -func readSummaryDashboard(iterator *jsoniter.Iterator) *SummaryDashboard { +// ReadSummaryDashboard reads a value of the 'summary_dashboard' type from the given iterator. +func ReadSummaryDashboard(iterator *jsoniter.Iterator) *SummaryDashboard { object := &SummaryDashboard{} for { field := iterator.ReadObject() @@ -109,7 +109,7 @@ func readSummaryDashboard(iterator *jsoniter.Iterator) *SummaryDashboard { object.href = iterator.ReadString() object.bitmap_ |= 4 case "metrics": - value := readSummaryMetricsList(iterator) + value := ReadSummaryMetricsList(iterator) object.metrics = value object.bitmap_ |= 8 default: diff --git a/accountsmgmt/v1/summary_metrics_list_type_json.go b/accountsmgmt/v1/summary_metrics_list_type_json.go index 857dabc3d..ad67db46b 100644 --- a/accountsmgmt/v1/summary_metrics_list_type_json.go +++ b/accountsmgmt/v1/summary_metrics_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSummaryMetricsList(list []*SummaryMetrics, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSummaryMetricsList(list, stream) + WriteSummaryMetricsList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalSummaryMetricsList(list []*SummaryMetrics, writer io.Writer) error { return stream.Error } -// writeSummaryMetricsList writes a list of value of the 'summary_metrics' type to +// WriteSummaryMetricsList writes a list of value of the 'summary_metrics' type to // the given stream. -func writeSummaryMetricsList(list []*SummaryMetrics, stream *jsoniter.Stream) { +func WriteSummaryMetricsList(list []*SummaryMetrics, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeSummaryMetrics(value, stream) + WriteSummaryMetrics(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalSummaryMetricsList(source interface{}) (items []*SummaryMetrics, e if err != nil { return } - items = readSummaryMetricsList(iterator) + items = ReadSummaryMetricsList(iterator) err = iterator.Error return } -// readSummaryMetricsList reads list of values of the ”summary_metrics' type from +// ReadSummaryMetricsList reads list of values of the ”summary_metrics' type from // the given iterator. -func readSummaryMetricsList(iterator *jsoniter.Iterator) []*SummaryMetrics { +func ReadSummaryMetricsList(iterator *jsoniter.Iterator) []*SummaryMetrics { list := []*SummaryMetrics{} for iterator.ReadArray() { - item := readSummaryMetrics(iterator) + item := ReadSummaryMetrics(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/summary_metrics_type.go b/accountsmgmt/v1/summary_metrics_type.go index 322ea68df..c27825ad9 100644 --- a/accountsmgmt/v1/summary_metrics_type.go +++ b/accountsmgmt/v1/summary_metrics_type.go @@ -96,6 +96,29 @@ func (l *SummaryMetricsList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *SummaryMetricsList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *SummaryMetricsList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *SummaryMetricsList) SetItems(items []*SummaryMetrics) { + l.items = items +} + +// Items returns the items of the list. +func (l *SummaryMetricsList) Items() []*SummaryMetrics { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *SummaryMetricsList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/summary_metrics_type_json.go b/accountsmgmt/v1/summary_metrics_type_json.go index 8b43fe02d..93950e5f5 100644 --- a/accountsmgmt/v1/summary_metrics_type_json.go +++ b/accountsmgmt/v1/summary_metrics_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalSummaryMetrics writes a value of the 'summary_metrics' type to the given writer. func MarshalSummaryMetrics(object *SummaryMetrics, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSummaryMetrics(object, stream) + WriteSummaryMetrics(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalSummaryMetrics(object *SummaryMetrics, writer io.Writer) error { return stream.Error } -// writeSummaryMetrics writes a value of the 'summary_metrics' type to the given stream. -func writeSummaryMetrics(object *SummaryMetrics, stream *jsoniter.Stream) { +// WriteSummaryMetrics writes a value of the 'summary_metrics' type to the given stream. +func WriteSummaryMetrics(object *SummaryMetrics, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -57,7 +57,7 @@ func writeSummaryMetrics(object *SummaryMetrics, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("vector") - writeSummarySampleList(object.vector, stream) + WriteSummarySampleList(object.vector, stream) } stream.WriteObjectEnd() } @@ -69,13 +69,13 @@ func UnmarshalSummaryMetrics(source interface{}) (object *SummaryMetrics, err er if err != nil { return } - object = readSummaryMetrics(iterator) + object = ReadSummaryMetrics(iterator) err = iterator.Error return } -// readSummaryMetrics reads a value of the 'summary_metrics' type from the given iterator. -func readSummaryMetrics(iterator *jsoniter.Iterator) *SummaryMetrics { +// ReadSummaryMetrics reads a value of the 'summary_metrics' type from the given iterator. +func ReadSummaryMetrics(iterator *jsoniter.Iterator) *SummaryMetrics { object := &SummaryMetrics{} for { field := iterator.ReadObject() @@ -88,7 +88,7 @@ func readSummaryMetrics(iterator *jsoniter.Iterator) *SummaryMetrics { object.name = value object.bitmap_ |= 1 case "vector": - value := readSummarySampleList(iterator) + value := ReadSummarySampleList(iterator) object.vector = value object.bitmap_ |= 2 default: diff --git a/accountsmgmt/v1/summary_sample_list_type_json.go b/accountsmgmt/v1/summary_sample_list_type_json.go index 44425a27a..4e64a579c 100644 --- a/accountsmgmt/v1/summary_sample_list_type_json.go +++ b/accountsmgmt/v1/summary_sample_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSummarySampleList(list []*SummarySample, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSummarySampleList(list, stream) + WriteSummarySampleList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalSummarySampleList(list []*SummarySample, writer io.Writer) error { return stream.Error } -// writeSummarySampleList writes a list of value of the 'summary_sample' type to +// WriteSummarySampleList writes a list of value of the 'summary_sample' type to // the given stream. -func writeSummarySampleList(list []*SummarySample, stream *jsoniter.Stream) { +func WriteSummarySampleList(list []*SummarySample, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeSummarySample(value, stream) + WriteSummarySample(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalSummarySampleList(source interface{}) (items []*SummarySample, err if err != nil { return } - items = readSummarySampleList(iterator) + items = ReadSummarySampleList(iterator) err = iterator.Error return } -// readSummarySampleList reads list of values of the ”summary_sample' type from +// ReadSummarySampleList reads list of values of the ”summary_sample' type from // the given iterator. -func readSummarySampleList(iterator *jsoniter.Iterator) []*SummarySample { +func ReadSummarySampleList(iterator *jsoniter.Iterator) []*SummarySample { list := []*SummarySample{} for iterator.ReadArray() { - item := readSummarySample(iterator) + item := ReadSummarySample(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/summary_sample_type.go b/accountsmgmt/v1/summary_sample_type.go index eb32674ec..28c184503 100644 --- a/accountsmgmt/v1/summary_sample_type.go +++ b/accountsmgmt/v1/summary_sample_type.go @@ -96,6 +96,29 @@ func (l *SummarySampleList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *SummarySampleList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *SummarySampleList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *SummarySampleList) SetItems(items []*SummarySample) { + l.items = items +} + +// Items returns the items of the list. +func (l *SummarySampleList) Items() []*SummarySample { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *SummarySampleList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/summary_sample_type_json.go b/accountsmgmt/v1/summary_sample_type_json.go index 092417a7c..d837162d6 100644 --- a/accountsmgmt/v1/summary_sample_type_json.go +++ b/accountsmgmt/v1/summary_sample_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalSummarySample writes a value of the 'summary_sample' type to the given writer. func MarshalSummarySample(object *SummarySample, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSummarySample(object, stream) + WriteSummarySample(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalSummarySample(object *SummarySample, writer io.Writer) error { return stream.Error } -// writeSummarySample writes a value of the 'summary_sample' type to the given stream. -func writeSummarySample(object *SummarySample, stream *jsoniter.Stream) { +// WriteSummarySample writes a value of the 'summary_sample' type to the given stream. +func WriteSummarySample(object *SummarySample, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalSummarySample(source interface{}) (object *SummarySample, err erro if err != nil { return } - object = readSummarySample(iterator) + object = ReadSummarySample(iterator) err = iterator.Error return } -// readSummarySample reads a value of the 'summary_sample' type from the given iterator. -func readSummarySample(iterator *jsoniter.Iterator) *SummarySample { +// ReadSummarySample reads a value of the 'summary_sample' type from the given iterator. +func ReadSummarySample(iterator *jsoniter.Iterator) *SummarySample { object := &SummarySample{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/support_case_request_list_type_json.go b/accountsmgmt/v1/support_case_request_list_type_json.go index fcb914677..abbd2af9a 100644 --- a/accountsmgmt/v1/support_case_request_list_type_json.go +++ b/accountsmgmt/v1/support_case_request_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSupportCaseRequestList(list []*SupportCaseRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSupportCaseRequestList(list, stream) + WriteSupportCaseRequestList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalSupportCaseRequestList(list []*SupportCaseRequest, writer io.Writer) return stream.Error } -// writeSupportCaseRequestList writes a list of value of the 'support_case_request' type to +// WriteSupportCaseRequestList writes a list of value of the 'support_case_request' type to // the given stream. -func writeSupportCaseRequestList(list []*SupportCaseRequest, stream *jsoniter.Stream) { +func WriteSupportCaseRequestList(list []*SupportCaseRequest, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeSupportCaseRequest(value, stream) + WriteSupportCaseRequest(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalSupportCaseRequestList(source interface{}) (items []*SupportCaseRe if err != nil { return } - items = readSupportCaseRequestList(iterator) + items = ReadSupportCaseRequestList(iterator) err = iterator.Error return } -// readSupportCaseRequestList reads list of values of the ”support_case_request' type from +// ReadSupportCaseRequestList reads list of values of the ”support_case_request' type from // the given iterator. -func readSupportCaseRequestList(iterator *jsoniter.Iterator) []*SupportCaseRequest { +func ReadSupportCaseRequestList(iterator *jsoniter.Iterator) []*SupportCaseRequest { list := []*SupportCaseRequest{} for iterator.ReadArray() { - item := readSupportCaseRequest(iterator) + item := ReadSupportCaseRequest(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/support_case_request_type.go b/accountsmgmt/v1/support_case_request_type.go index 452307fb6..17a3f450f 100644 --- a/accountsmgmt/v1/support_case_request_type.go +++ b/accountsmgmt/v1/support_case_request_type.go @@ -56,7 +56,7 @@ func (o *SupportCaseRequest) Kind() string { return SupportCaseRequestKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *SupportCaseRequest) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -324,6 +324,29 @@ func (l *SupportCaseRequestList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *SupportCaseRequestList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *SupportCaseRequestList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *SupportCaseRequestList) SetItems(items []*SupportCaseRequest) { + l.items = items +} + +// Items returns the items of the list. +func (l *SupportCaseRequestList) Items() []*SupportCaseRequest { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *SupportCaseRequestList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/support_case_request_type_json.go b/accountsmgmt/v1/support_case_request_type_json.go index 3ff9624ca..a68505d39 100644 --- a/accountsmgmt/v1/support_case_request_type_json.go +++ b/accountsmgmt/v1/support_case_request_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalSupportCaseRequest writes a value of the 'support_case_request' type to the given writer. func MarshalSupportCaseRequest(object *SupportCaseRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSupportCaseRequest(object, stream) + WriteSupportCaseRequest(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalSupportCaseRequest(object *SupportCaseRequest, writer io.Writer) err return stream.Error } -// writeSupportCaseRequest writes a value of the 'support_case_request' type to the given stream. -func writeSupportCaseRequest(object *SupportCaseRequest, stream *jsoniter.Stream) { +// WriteSupportCaseRequest writes a value of the 'support_case_request' type to the given stream. +func WriteSupportCaseRequest(object *SupportCaseRequest, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -137,13 +137,13 @@ func UnmarshalSupportCaseRequest(source interface{}) (object *SupportCaseRequest if err != nil { return } - object = readSupportCaseRequest(iterator) + object = ReadSupportCaseRequest(iterator) err = iterator.Error return } -// readSupportCaseRequest reads a value of the 'support_case_request' type from the given iterator. -func readSupportCaseRequest(iterator *jsoniter.Iterator) *SupportCaseRequest { +// ReadSupportCaseRequest reads a value of the 'support_case_request' type from the given iterator. +func ReadSupportCaseRequest(iterator *jsoniter.Iterator) *SupportCaseRequest { object := &SupportCaseRequest{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/support_case_response_list_type_json.go b/accountsmgmt/v1/support_case_response_list_type_json.go index 8d4235630..c135c28db 100644 --- a/accountsmgmt/v1/support_case_response_list_type_json.go +++ b/accountsmgmt/v1/support_case_response_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSupportCaseResponseList(list []*SupportCaseResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSupportCaseResponseList(list, stream) + WriteSupportCaseResponseList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalSupportCaseResponseList(list []*SupportCaseResponse, writer io.Write return stream.Error } -// writeSupportCaseResponseList writes a list of value of the 'support_case_response' type to +// WriteSupportCaseResponseList writes a list of value of the 'support_case_response' type to // the given stream. -func writeSupportCaseResponseList(list []*SupportCaseResponse, stream *jsoniter.Stream) { +func WriteSupportCaseResponseList(list []*SupportCaseResponse, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeSupportCaseResponse(value, stream) + WriteSupportCaseResponse(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalSupportCaseResponseList(source interface{}) (items []*SupportCaseR if err != nil { return } - items = readSupportCaseResponseList(iterator) + items = ReadSupportCaseResponseList(iterator) err = iterator.Error return } -// readSupportCaseResponseList reads list of values of the ”support_case_response' type from +// ReadSupportCaseResponseList reads list of values of the ”support_case_response' type from // the given iterator. -func readSupportCaseResponseList(iterator *jsoniter.Iterator) []*SupportCaseResponse { +func ReadSupportCaseResponseList(iterator *jsoniter.Iterator) []*SupportCaseResponse { list := []*SupportCaseResponse{} for iterator.ReadArray() { - item := readSupportCaseResponse(iterator) + item := ReadSupportCaseResponse(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/support_case_response_type.go b/accountsmgmt/v1/support_case_response_type.go index 75a38b260..1a46644b2 100644 --- a/accountsmgmt/v1/support_case_response_type.go +++ b/accountsmgmt/v1/support_case_response_type.go @@ -58,7 +58,7 @@ func (o *SupportCaseResponse) Kind() string { return SupportCaseResponseKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *SupportCaseResponse) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -372,6 +372,29 @@ func (l *SupportCaseResponseList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *SupportCaseResponseList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *SupportCaseResponseList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *SupportCaseResponseList) SetItems(items []*SupportCaseResponse) { + l.items = items +} + +// Items returns the items of the list. +func (l *SupportCaseResponseList) Items() []*SupportCaseResponse { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *SupportCaseResponseList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/support_case_response_type_json.go b/accountsmgmt/v1/support_case_response_type_json.go index 1d661e2ae..b8ae4f77e 100644 --- a/accountsmgmt/v1/support_case_response_type_json.go +++ b/accountsmgmt/v1/support_case_response_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalSupportCaseResponse writes a value of the 'support_case_response' type to the given writer. func MarshalSupportCaseResponse(object *SupportCaseResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSupportCaseResponse(object, stream) + WriteSupportCaseResponse(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalSupportCaseResponse(object *SupportCaseResponse, writer io.Writer) e return stream.Error } -// writeSupportCaseResponse writes a value of the 'support_case_response' type to the given stream. -func writeSupportCaseResponse(object *SupportCaseResponse, stream *jsoniter.Stream) { +// WriteSupportCaseResponse writes a value of the 'support_case_response' type to the given stream. +func WriteSupportCaseResponse(object *SupportCaseResponse, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -155,13 +155,13 @@ func UnmarshalSupportCaseResponse(source interface{}) (object *SupportCaseRespon if err != nil { return } - object = readSupportCaseResponse(iterator) + object = ReadSupportCaseResponse(iterator) err = iterator.Error return } -// readSupportCaseResponse reads a value of the 'support_case_response' type from the given iterator. -func readSupportCaseResponse(iterator *jsoniter.Iterator) *SupportCaseResponse { +// ReadSupportCaseResponse reads a value of the 'support_case_response' type from the given iterator. +func ReadSupportCaseResponse(iterator *jsoniter.Iterator) *SupportCaseResponse { object := &SupportCaseResponse{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/template_parameter_list_type_json.go b/accountsmgmt/v1/template_parameter_list_type_json.go index 644bce8d1..dd64d23d1 100644 --- a/accountsmgmt/v1/template_parameter_list_type_json.go +++ b/accountsmgmt/v1/template_parameter_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalTemplateParameterList(list []*TemplateParameter, writer io.Writer) error { stream := helpers.NewStream(writer) - writeTemplateParameterList(list, stream) + WriteTemplateParameterList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalTemplateParameterList(list []*TemplateParameter, writer io.Writer) e return stream.Error } -// writeTemplateParameterList writes a list of value of the 'template_parameter' type to +// WriteTemplateParameterList writes a list of value of the 'template_parameter' type to // the given stream. -func writeTemplateParameterList(list []*TemplateParameter, stream *jsoniter.Stream) { +func WriteTemplateParameterList(list []*TemplateParameter, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeTemplateParameter(value, stream) + WriteTemplateParameter(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalTemplateParameterList(source interface{}) (items []*TemplateParame if err != nil { return } - items = readTemplateParameterList(iterator) + items = ReadTemplateParameterList(iterator) err = iterator.Error return } -// readTemplateParameterList reads list of values of the ”template_parameter' type from +// ReadTemplateParameterList reads list of values of the ”template_parameter' type from // the given iterator. -func readTemplateParameterList(iterator *jsoniter.Iterator) []*TemplateParameter { +func ReadTemplateParameterList(iterator *jsoniter.Iterator) []*TemplateParameter { list := []*TemplateParameter{} for iterator.ReadArray() { - item := readTemplateParameter(iterator) + item := ReadTemplateParameter(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/template_parameter_type.go b/accountsmgmt/v1/template_parameter_type.go index 378c376e1..50431d2c6 100644 --- a/accountsmgmt/v1/template_parameter_type.go +++ b/accountsmgmt/v1/template_parameter_type.go @@ -107,6 +107,29 @@ func (l *TemplateParameterList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *TemplateParameterList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *TemplateParameterList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *TemplateParameterList) SetItems(items []*TemplateParameter) { + l.items = items +} + +// Items returns the items of the list. +func (l *TemplateParameterList) Items() []*TemplateParameter { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *TemplateParameterList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/template_parameter_type_json.go b/accountsmgmt/v1/template_parameter_type_json.go index fd632c8f1..39d767e25 100644 --- a/accountsmgmt/v1/template_parameter_type_json.go +++ b/accountsmgmt/v1/template_parameter_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalTemplateParameter writes a value of the 'template_parameter' type to the given writer. func MarshalTemplateParameter(object *TemplateParameter, writer io.Writer) error { stream := helpers.NewStream(writer) - writeTemplateParameter(object, stream) + WriteTemplateParameter(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalTemplateParameter(object *TemplateParameter, writer io.Writer) error return stream.Error } -// writeTemplateParameter writes a value of the 'template_parameter' type to the given stream. -func writeTemplateParameter(object *TemplateParameter, stream *jsoniter.Stream) { +// WriteTemplateParameter writes a value of the 'template_parameter' type to the given stream. +func WriteTemplateParameter(object *TemplateParameter, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalTemplateParameter(source interface{}) (object *TemplateParameter, if err != nil { return } - object = readTemplateParameter(iterator) + object = ReadTemplateParameter(iterator) err = iterator.Error return } -// readTemplateParameter reads a value of the 'template_parameter' type from the given iterator. -func readTemplateParameter(iterator *jsoniter.Iterator) *TemplateParameter { +// ReadTemplateParameter reads a value of the 'template_parameter' type from the given iterator. +func ReadTemplateParameter(iterator *jsoniter.Iterator) *TemplateParameter { object := &TemplateParameter{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/token_authorization_request_list_type_json.go b/accountsmgmt/v1/token_authorization_request_list_type_json.go index f53f69537..859a4e8ab 100644 --- a/accountsmgmt/v1/token_authorization_request_list_type_json.go +++ b/accountsmgmt/v1/token_authorization_request_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalTokenAuthorizationRequestList(list []*TokenAuthorizationRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeTokenAuthorizationRequestList(list, stream) + WriteTokenAuthorizationRequestList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalTokenAuthorizationRequestList(list []*TokenAuthorizationRequest, wri return stream.Error } -// writeTokenAuthorizationRequestList writes a list of value of the 'token_authorization_request' type to +// WriteTokenAuthorizationRequestList writes a list of value of the 'token_authorization_request' type to // the given stream. -func writeTokenAuthorizationRequestList(list []*TokenAuthorizationRequest, stream *jsoniter.Stream) { +func WriteTokenAuthorizationRequestList(list []*TokenAuthorizationRequest, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeTokenAuthorizationRequest(value, stream) + WriteTokenAuthorizationRequest(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalTokenAuthorizationRequestList(source interface{}) (items []*TokenA if err != nil { return } - items = readTokenAuthorizationRequestList(iterator) + items = ReadTokenAuthorizationRequestList(iterator) err = iterator.Error return } -// readTokenAuthorizationRequestList reads list of values of the ”token_authorization_request' type from +// ReadTokenAuthorizationRequestList reads list of values of the ”token_authorization_request' type from // the given iterator. -func readTokenAuthorizationRequestList(iterator *jsoniter.Iterator) []*TokenAuthorizationRequest { +func ReadTokenAuthorizationRequestList(iterator *jsoniter.Iterator) []*TokenAuthorizationRequest { list := []*TokenAuthorizationRequest{} for iterator.ReadArray() { - item := readTokenAuthorizationRequest(iterator) + item := ReadTokenAuthorizationRequest(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/token_authorization_request_type.go b/accountsmgmt/v1/token_authorization_request_type.go index 076cfe132..3f1a88e78 100644 --- a/accountsmgmt/v1/token_authorization_request_type.go +++ b/accountsmgmt/v1/token_authorization_request_type.go @@ -80,6 +80,29 @@ func (l *TokenAuthorizationRequestList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *TokenAuthorizationRequestList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *TokenAuthorizationRequestList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *TokenAuthorizationRequestList) SetItems(items []*TokenAuthorizationRequest) { + l.items = items +} + +// Items returns the items of the list. +func (l *TokenAuthorizationRequestList) Items() []*TokenAuthorizationRequest { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *TokenAuthorizationRequestList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/token_authorization_request_type_json.go b/accountsmgmt/v1/token_authorization_request_type_json.go index 4f78643a0..d3c761b59 100644 --- a/accountsmgmt/v1/token_authorization_request_type_json.go +++ b/accountsmgmt/v1/token_authorization_request_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalTokenAuthorizationRequest writes a value of the 'token_authorization_request' type to the given writer. func MarshalTokenAuthorizationRequest(object *TokenAuthorizationRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeTokenAuthorizationRequest(object, stream) + WriteTokenAuthorizationRequest(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalTokenAuthorizationRequest(object *TokenAuthorizationRequest, writer return stream.Error } -// writeTokenAuthorizationRequest writes a value of the 'token_authorization_request' type to the given stream. -func writeTokenAuthorizationRequest(object *TokenAuthorizationRequest, stream *jsoniter.Stream) { +// WriteTokenAuthorizationRequest writes a value of the 'token_authorization_request' type to the given stream. +func WriteTokenAuthorizationRequest(object *TokenAuthorizationRequest, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalTokenAuthorizationRequest(source interface{}) (object *TokenAuthor if err != nil { return } - object = readTokenAuthorizationRequest(iterator) + object = ReadTokenAuthorizationRequest(iterator) err = iterator.Error return } -// readTokenAuthorizationRequest reads a value of the 'token_authorization_request' type from the given iterator. -func readTokenAuthorizationRequest(iterator *jsoniter.Iterator) *TokenAuthorizationRequest { +// ReadTokenAuthorizationRequest reads a value of the 'token_authorization_request' type from the given iterator. +func ReadTokenAuthorizationRequest(iterator *jsoniter.Iterator) *TokenAuthorizationRequest { object := &TokenAuthorizationRequest{} for { field := iterator.ReadObject() diff --git a/accountsmgmt/v1/token_authorization_response_list_type_json.go b/accountsmgmt/v1/token_authorization_response_list_type_json.go index 0f16b5c7b..20fb1da0d 100644 --- a/accountsmgmt/v1/token_authorization_response_list_type_json.go +++ b/accountsmgmt/v1/token_authorization_response_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalTokenAuthorizationResponseList(list []*TokenAuthorizationResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeTokenAuthorizationResponseList(list, stream) + WriteTokenAuthorizationResponseList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalTokenAuthorizationResponseList(list []*TokenAuthorizationResponse, w return stream.Error } -// writeTokenAuthorizationResponseList writes a list of value of the 'token_authorization_response' type to +// WriteTokenAuthorizationResponseList writes a list of value of the 'token_authorization_response' type to // the given stream. -func writeTokenAuthorizationResponseList(list []*TokenAuthorizationResponse, stream *jsoniter.Stream) { +func WriteTokenAuthorizationResponseList(list []*TokenAuthorizationResponse, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeTokenAuthorizationResponse(value, stream) + WriteTokenAuthorizationResponse(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalTokenAuthorizationResponseList(source interface{}) (items []*Token if err != nil { return } - items = readTokenAuthorizationResponseList(iterator) + items = ReadTokenAuthorizationResponseList(iterator) err = iterator.Error return } -// readTokenAuthorizationResponseList reads list of values of the ”token_authorization_response' type from +// ReadTokenAuthorizationResponseList reads list of values of the ”token_authorization_response' type from // the given iterator. -func readTokenAuthorizationResponseList(iterator *jsoniter.Iterator) []*TokenAuthorizationResponse { +func ReadTokenAuthorizationResponseList(iterator *jsoniter.Iterator) []*TokenAuthorizationResponse { list := []*TokenAuthorizationResponse{} for iterator.ReadArray() { - item := readTokenAuthorizationResponse(iterator) + item := ReadTokenAuthorizationResponse(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/token_authorization_response_type.go b/accountsmgmt/v1/token_authorization_response_type.go index 0e4911f24..ee70910a8 100644 --- a/accountsmgmt/v1/token_authorization_response_type.go +++ b/accountsmgmt/v1/token_authorization_response_type.go @@ -76,6 +76,29 @@ func (l *TokenAuthorizationResponseList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *TokenAuthorizationResponseList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *TokenAuthorizationResponseList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *TokenAuthorizationResponseList) SetItems(items []*TokenAuthorizationResponse) { + l.items = items +} + +// Items returns the items of the list. +func (l *TokenAuthorizationResponseList) Items() []*TokenAuthorizationResponse { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *TokenAuthorizationResponseList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/token_authorization_response_type_json.go b/accountsmgmt/v1/token_authorization_response_type_json.go index 3280e2ea7..10b34393c 100644 --- a/accountsmgmt/v1/token_authorization_response_type_json.go +++ b/accountsmgmt/v1/token_authorization_response_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalTokenAuthorizationResponse writes a value of the 'token_authorization_response' type to the given writer. func MarshalTokenAuthorizationResponse(object *TokenAuthorizationResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeTokenAuthorizationResponse(object, stream) + WriteTokenAuthorizationResponse(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalTokenAuthorizationResponse(object *TokenAuthorizationResponse, write return stream.Error } -// writeTokenAuthorizationResponse writes a value of the 'token_authorization_response' type to the given stream. -func writeTokenAuthorizationResponse(object *TokenAuthorizationResponse, stream *jsoniter.Stream) { +// WriteTokenAuthorizationResponse writes a value of the 'token_authorization_response' type to the given stream. +func WriteTokenAuthorizationResponse(object *TokenAuthorizationResponse, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeTokenAuthorizationResponse(object *TokenAuthorizationResponse, stream stream.WriteMore() } stream.WriteObjectField("account") - writeAccount(object.account, stream) + WriteAccount(object.account, stream) } stream.WriteObjectEnd() } @@ -60,13 +60,13 @@ func UnmarshalTokenAuthorizationResponse(source interface{}) (object *TokenAutho if err != nil { return } - object = readTokenAuthorizationResponse(iterator) + object = ReadTokenAuthorizationResponse(iterator) err = iterator.Error return } -// readTokenAuthorizationResponse reads a value of the 'token_authorization_response' type from the given iterator. -func readTokenAuthorizationResponse(iterator *jsoniter.Iterator) *TokenAuthorizationResponse { +// ReadTokenAuthorizationResponse reads a value of the 'token_authorization_response' type from the given iterator. +func ReadTokenAuthorizationResponse(iterator *jsoniter.Iterator) *TokenAuthorizationResponse { object := &TokenAuthorizationResponse{} for { field := iterator.ReadObject() @@ -75,7 +75,7 @@ func readTokenAuthorizationResponse(iterator *jsoniter.Iterator) *TokenAuthoriza } switch field { case "account": - value := readAccount(iterator) + value := ReadAccount(iterator) object.account = value object.bitmap_ |= 1 default: diff --git a/accountsmgmt/v1/value_unit_list_type_json.go b/accountsmgmt/v1/value_unit_list_type_json.go index 1ae5255a9..f53df0ebb 100644 --- a/accountsmgmt/v1/value_unit_list_type_json.go +++ b/accountsmgmt/v1/value_unit_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalValueUnitList(list []*ValueUnit, writer io.Writer) error { stream := helpers.NewStream(writer) - writeValueUnitList(list, stream) + WriteValueUnitList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalValueUnitList(list []*ValueUnit, writer io.Writer) error { return stream.Error } -// writeValueUnitList writes a list of value of the 'value_unit' type to +// WriteValueUnitList writes a list of value of the 'value_unit' type to // the given stream. -func writeValueUnitList(list []*ValueUnit, stream *jsoniter.Stream) { +func WriteValueUnitList(list []*ValueUnit, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeValueUnit(value, stream) + WriteValueUnit(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalValueUnitList(source interface{}) (items []*ValueUnit, err error) if err != nil { return } - items = readValueUnitList(iterator) + items = ReadValueUnitList(iterator) err = iterator.Error return } -// readValueUnitList reads list of values of the ”value_unit' type from +// ReadValueUnitList reads list of values of the ”value_unit' type from // the given iterator. -func readValueUnitList(iterator *jsoniter.Iterator) []*ValueUnit { +func ReadValueUnitList(iterator *jsoniter.Iterator) []*ValueUnit { list := []*ValueUnit{} for iterator.ReadArray() { - item := readValueUnit(iterator) + item := ReadValueUnit(iterator) list = append(list, item) } return list diff --git a/accountsmgmt/v1/value_unit_type.go b/accountsmgmt/v1/value_unit_type.go index b91d7811a..77b67cc5d 100644 --- a/accountsmgmt/v1/value_unit_type.go +++ b/accountsmgmt/v1/value_unit_type.go @@ -96,6 +96,29 @@ func (l *ValueUnitList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ValueUnitList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ValueUnitList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ValueUnitList) SetItems(items []*ValueUnit) { + l.items = items +} + +// Items returns the items of the list. +func (l *ValueUnitList) Items() []*ValueUnit { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ValueUnitList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/accountsmgmt/v1/value_unit_type_json.go b/accountsmgmt/v1/value_unit_type_json.go index bf58da973..2c2873ac7 100644 --- a/accountsmgmt/v1/value_unit_type_json.go +++ b/accountsmgmt/v1/value_unit_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalValueUnit writes a value of the 'value_unit' type to the given writer. func MarshalValueUnit(object *ValueUnit, writer io.Writer) error { stream := helpers.NewStream(writer) - writeValueUnit(object, stream) + WriteValueUnit(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalValueUnit(object *ValueUnit, writer io.Writer) error { return stream.Error } -// writeValueUnit writes a value of the 'value_unit' type to the given stream. -func writeValueUnit(object *ValueUnit, stream *jsoniter.Stream) { +// WriteValueUnit writes a value of the 'value_unit' type to the given stream. +func WriteValueUnit(object *ValueUnit, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalValueUnit(source interface{}) (object *ValueUnit, err error) { if err != nil { return } - object = readValueUnit(iterator) + object = ReadValueUnit(iterator) err = iterator.Error return } -// readValueUnit reads a value of the 'value_unit' type from the given iterator. -func readValueUnit(iterator *jsoniter.Iterator) *ValueUnit { +// ReadValueUnit reads a value of the 'value_unit' type from the given iterator. +func ReadValueUnit(iterator *jsoniter.Iterator) *ValueUnit { object := &ValueUnit{} for { field := iterator.ReadObject() diff --git a/addonsmgmt/v1/additional_catalog_source_list_type_json.go b/addonsmgmt/v1/additional_catalog_source_list_type_json.go index ee27d56fd..13e28a944 100644 --- a/addonsmgmt/v1/additional_catalog_source_list_type_json.go +++ b/addonsmgmt/v1/additional_catalog_source_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAdditionalCatalogSourceList(list []*AdditionalCatalogSource, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAdditionalCatalogSourceList(list, stream) + WriteAdditionalCatalogSourceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAdditionalCatalogSourceList(list []*AdditionalCatalogSource, writer return stream.Error } -// writeAdditionalCatalogSourceList writes a list of value of the 'additional_catalog_source' type to +// WriteAdditionalCatalogSourceList writes a list of value of the 'additional_catalog_source' type to // the given stream. -func writeAdditionalCatalogSourceList(list []*AdditionalCatalogSource, stream *jsoniter.Stream) { +func WriteAdditionalCatalogSourceList(list []*AdditionalCatalogSource, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAdditionalCatalogSource(value, stream) + WriteAdditionalCatalogSource(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAdditionalCatalogSourceList(source interface{}) (items []*Addition if err != nil { return } - items = readAdditionalCatalogSourceList(iterator) + items = ReadAdditionalCatalogSourceList(iterator) err = iterator.Error return } -// readAdditionalCatalogSourceList reads list of values of the ”additional_catalog_source' type from +// ReadAdditionalCatalogSourceList reads list of values of the ”additional_catalog_source' type from // the given iterator. -func readAdditionalCatalogSourceList(iterator *jsoniter.Iterator) []*AdditionalCatalogSource { +func ReadAdditionalCatalogSourceList(iterator *jsoniter.Iterator) []*AdditionalCatalogSource { list := []*AdditionalCatalogSource{} for iterator.ReadArray() { - item := readAdditionalCatalogSource(iterator) + item := ReadAdditionalCatalogSource(iterator) list = append(list, item) } return list diff --git a/addonsmgmt/v1/additional_catalog_source_type.go b/addonsmgmt/v1/additional_catalog_source_type.go index 003eb0792..54027c67d 100644 --- a/addonsmgmt/v1/additional_catalog_source_type.go +++ b/addonsmgmt/v1/additional_catalog_source_type.go @@ -154,6 +154,29 @@ func (l *AdditionalCatalogSourceList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AdditionalCatalogSourceList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AdditionalCatalogSourceList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AdditionalCatalogSourceList) SetItems(items []*AdditionalCatalogSource) { + l.items = items +} + +// Items returns the items of the list. +func (l *AdditionalCatalogSourceList) Items() []*AdditionalCatalogSource { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AdditionalCatalogSourceList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/addonsmgmt/v1/additional_catalog_source_type_json.go b/addonsmgmt/v1/additional_catalog_source_type_json.go index 7cf6f049c..6ed3fac7c 100644 --- a/addonsmgmt/v1/additional_catalog_source_type_json.go +++ b/addonsmgmt/v1/additional_catalog_source_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAdditionalCatalogSource writes a value of the 'additional_catalog_source' type to the given writer. func MarshalAdditionalCatalogSource(object *AdditionalCatalogSource, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAdditionalCatalogSource(object, stream) + WriteAdditionalCatalogSource(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAdditionalCatalogSource(object *AdditionalCatalogSource, writer io.W return stream.Error } -// writeAdditionalCatalogSource writes a value of the 'additional_catalog_source' type to the given stream. -func writeAdditionalCatalogSource(object *AdditionalCatalogSource, stream *jsoniter.Stream) { +// WriteAdditionalCatalogSource writes a value of the 'additional_catalog_source' type to the given stream. +func WriteAdditionalCatalogSource(object *AdditionalCatalogSource, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -87,13 +87,13 @@ func UnmarshalAdditionalCatalogSource(source interface{}) (object *AdditionalCat if err != nil { return } - object = readAdditionalCatalogSource(iterator) + object = ReadAdditionalCatalogSource(iterator) err = iterator.Error return } -// readAdditionalCatalogSource reads a value of the 'additional_catalog_source' type from the given iterator. -func readAdditionalCatalogSource(iterator *jsoniter.Iterator) *AdditionalCatalogSource { +// ReadAdditionalCatalogSource reads a value of the 'additional_catalog_source' type from the given iterator. +func ReadAdditionalCatalogSource(iterator *jsoniter.Iterator) *AdditionalCatalogSource { object := &AdditionalCatalogSource{} for { field := iterator.ReadObject() diff --git a/addonsmgmt/v1/addon_config_list_type_json.go b/addonsmgmt/v1/addon_config_list_type_json.go index c3bddb507..b04d3a070 100644 --- a/addonsmgmt/v1/addon_config_list_type_json.go +++ b/addonsmgmt/v1/addon_config_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddonConfigList(list []*AddonConfig, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonConfigList(list, stream) + WriteAddonConfigList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddonConfigList(list []*AddonConfig, writer io.Writer) error { return stream.Error } -// writeAddonConfigList writes a list of value of the 'addon_config' type to +// WriteAddonConfigList writes a list of value of the 'addon_config' type to // the given stream. -func writeAddonConfigList(list []*AddonConfig, stream *jsoniter.Stream) { +func WriteAddonConfigList(list []*AddonConfig, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddonConfig(value, stream) + WriteAddonConfig(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddonConfigList(source interface{}) (items []*AddonConfig, err err if err != nil { return } - items = readAddonConfigList(iterator) + items = ReadAddonConfigList(iterator) err = iterator.Error return } -// readAddonConfigList reads list of values of the ”addon_config' type from +// ReadAddonConfigList reads list of values of the ”addon_config' type from // the given iterator. -func readAddonConfigList(iterator *jsoniter.Iterator) []*AddonConfig { +func ReadAddonConfigList(iterator *jsoniter.Iterator) []*AddonConfig { list := []*AddonConfig{} for iterator.ReadArray() { - item := readAddonConfig(iterator) + item := ReadAddonConfig(iterator) list = append(list, item) } return list diff --git a/addonsmgmt/v1/addon_config_type.go b/addonsmgmt/v1/addon_config_type.go index ea3880f92..0845ae716 100644 --- a/addonsmgmt/v1/addon_config_type.go +++ b/addonsmgmt/v1/addon_config_type.go @@ -107,6 +107,29 @@ func (l *AddonConfigList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddonConfigList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddonConfigList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddonConfigList) SetItems(items []*AddonConfig) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddonConfigList) Items() []*AddonConfig { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddonConfigList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/addonsmgmt/v1/addon_config_type_json.go b/addonsmgmt/v1/addon_config_type_json.go index d1835a9ef..c16285eb4 100644 --- a/addonsmgmt/v1/addon_config_type_json.go +++ b/addonsmgmt/v1/addon_config_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAddonConfig writes a value of the 'addon_config' type to the given writer. func MarshalAddonConfig(object *AddonConfig, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonConfig(object, stream) + WriteAddonConfig(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAddonConfig(object *AddonConfig, writer io.Writer) error { return stream.Error } -// writeAddonConfig writes a value of the 'addon_config' type to the given stream. -func writeAddonConfig(object *AddonConfig, stream *jsoniter.Stream) { +// WriteAddonConfig writes a value of the 'addon_config' type to the given stream. +func WriteAddonConfig(object *AddonConfig, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeAddonConfig(object *AddonConfig, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("add_on_environment_variables") - writeAddonEnvironmentVariableList(object.addOnEnvironmentVariables, stream) + WriteAddonEnvironmentVariableList(object.addOnEnvironmentVariables, stream) count++ } present_ = object.bitmap_&2 != 0 && object.addOnSecretPropagations != nil @@ -57,7 +57,7 @@ func writeAddonConfig(object *AddonConfig, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("add_on_secret_propagations") - writeAddonSecretPropagationList(object.addOnSecretPropagations, stream) + WriteAddonSecretPropagationList(object.addOnSecretPropagations, stream) } stream.WriteObjectEnd() } @@ -69,13 +69,13 @@ func UnmarshalAddonConfig(source interface{}) (object *AddonConfig, err error) { if err != nil { return } - object = readAddonConfig(iterator) + object = ReadAddonConfig(iterator) err = iterator.Error return } -// readAddonConfig reads a value of the 'addon_config' type from the given iterator. -func readAddonConfig(iterator *jsoniter.Iterator) *AddonConfig { +// ReadAddonConfig reads a value of the 'addon_config' type from the given iterator. +func ReadAddonConfig(iterator *jsoniter.Iterator) *AddonConfig { object := &AddonConfig{} for { field := iterator.ReadObject() @@ -84,11 +84,11 @@ func readAddonConfig(iterator *jsoniter.Iterator) *AddonConfig { } switch field { case "add_on_environment_variables": - value := readAddonEnvironmentVariableList(iterator) + value := ReadAddonEnvironmentVariableList(iterator) object.addOnEnvironmentVariables = value object.bitmap_ |= 1 case "add_on_secret_propagations": - value := readAddonSecretPropagationList(iterator) + value := ReadAddonSecretPropagationList(iterator) object.addOnSecretPropagations = value object.bitmap_ |= 2 default: diff --git a/addonsmgmt/v1/addon_environment_variable_list_type_json.go b/addonsmgmt/v1/addon_environment_variable_list_type_json.go index 86842f1e8..bb12ae40d 100644 --- a/addonsmgmt/v1/addon_environment_variable_list_type_json.go +++ b/addonsmgmt/v1/addon_environment_variable_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddonEnvironmentVariableList(list []*AddonEnvironmentVariable, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonEnvironmentVariableList(list, stream) + WriteAddonEnvironmentVariableList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddonEnvironmentVariableList(list []*AddonEnvironmentVariable, write return stream.Error } -// writeAddonEnvironmentVariableList writes a list of value of the 'addon_environment_variable' type to +// WriteAddonEnvironmentVariableList writes a list of value of the 'addon_environment_variable' type to // the given stream. -func writeAddonEnvironmentVariableList(list []*AddonEnvironmentVariable, stream *jsoniter.Stream) { +func WriteAddonEnvironmentVariableList(list []*AddonEnvironmentVariable, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddonEnvironmentVariable(value, stream) + WriteAddonEnvironmentVariable(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddonEnvironmentVariableList(source interface{}) (items []*AddonEn if err != nil { return } - items = readAddonEnvironmentVariableList(iterator) + items = ReadAddonEnvironmentVariableList(iterator) err = iterator.Error return } -// readAddonEnvironmentVariableList reads list of values of the ”addon_environment_variable' type from +// ReadAddonEnvironmentVariableList reads list of values of the ”addon_environment_variable' type from // the given iterator. -func readAddonEnvironmentVariableList(iterator *jsoniter.Iterator) []*AddonEnvironmentVariable { +func ReadAddonEnvironmentVariableList(iterator *jsoniter.Iterator) []*AddonEnvironmentVariable { list := []*AddonEnvironmentVariable{} for iterator.ReadArray() { - item := readAddonEnvironmentVariable(iterator) + item := ReadAddonEnvironmentVariable(iterator) list = append(list, item) } return list diff --git a/addonsmgmt/v1/addon_environment_variable_type.go b/addonsmgmt/v1/addon_environment_variable_type.go index be3f8e02f..788dc8d8b 100644 --- a/addonsmgmt/v1/addon_environment_variable_type.go +++ b/addonsmgmt/v1/addon_environment_variable_type.go @@ -154,6 +154,29 @@ func (l *AddonEnvironmentVariableList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddonEnvironmentVariableList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddonEnvironmentVariableList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddonEnvironmentVariableList) SetItems(items []*AddonEnvironmentVariable) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddonEnvironmentVariableList) Items() []*AddonEnvironmentVariable { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddonEnvironmentVariableList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/addonsmgmt/v1/addon_environment_variable_type_json.go b/addonsmgmt/v1/addon_environment_variable_type_json.go index 1ea03e0b0..4f687c270 100644 --- a/addonsmgmt/v1/addon_environment_variable_type_json.go +++ b/addonsmgmt/v1/addon_environment_variable_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAddonEnvironmentVariable writes a value of the 'addon_environment_variable' type to the given writer. func MarshalAddonEnvironmentVariable(object *AddonEnvironmentVariable, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonEnvironmentVariable(object, stream) + WriteAddonEnvironmentVariable(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAddonEnvironmentVariable(object *AddonEnvironmentVariable, writer io return stream.Error } -// writeAddonEnvironmentVariable writes a value of the 'addon_environment_variable' type to the given stream. -func writeAddonEnvironmentVariable(object *AddonEnvironmentVariable, stream *jsoniter.Stream) { +// WriteAddonEnvironmentVariable writes a value of the 'addon_environment_variable' type to the given stream. +func WriteAddonEnvironmentVariable(object *AddonEnvironmentVariable, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -87,13 +87,13 @@ func UnmarshalAddonEnvironmentVariable(source interface{}) (object *AddonEnviron if err != nil { return } - object = readAddonEnvironmentVariable(iterator) + object = ReadAddonEnvironmentVariable(iterator) err = iterator.Error return } -// readAddonEnvironmentVariable reads a value of the 'addon_environment_variable' type from the given iterator. -func readAddonEnvironmentVariable(iterator *jsoniter.Iterator) *AddonEnvironmentVariable { +// ReadAddonEnvironmentVariable reads a value of the 'addon_environment_variable' type from the given iterator. +func ReadAddonEnvironmentVariable(iterator *jsoniter.Iterator) *AddonEnvironmentVariable { object := &AddonEnvironmentVariable{} for { field := iterator.ReadObject() diff --git a/addonsmgmt/v1/addon_inquiries_resource_json.go b/addonsmgmt/v1/addon_inquiries_resource_json.go index 19b1c40e1..8d4c16d7f 100644 --- a/addonsmgmt/v1/addon_inquiries_resource_json.go +++ b/addonsmgmt/v1/addon_inquiries_resource_json.go @@ -49,7 +49,7 @@ func readAddonInquiriesListResponse(response *AddonInquiriesListResponse, reader value := iterator.ReadInt() response.total = &value case "items": - items := readAddonList(iterator) + items := ReadAddonList(iterator) response.items = &AddonList{ items: items, } diff --git a/addonsmgmt/v1/addon_install_mode_list_type_json.go b/addonsmgmt/v1/addon_install_mode_list_type_json.go index 8df764008..176a4565b 100644 --- a/addonsmgmt/v1/addon_install_mode_list_type_json.go +++ b/addonsmgmt/v1/addon_install_mode_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddonInstallModeList(list []AddonInstallMode, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonInstallModeList(list, stream) + WriteAddonInstallModeList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalAddonInstallModeList(list []AddonInstallMode, writer io.Writer) erro return stream.Error } -// writeAddonInstallModeList writes a list of value of the 'addon_install_mode' type to +// WriteAddonInstallModeList writes a list of value of the 'addon_install_mode' type to // the given stream. -func writeAddonInstallModeList(list []AddonInstallMode, stream *jsoniter.Stream) { +func WriteAddonInstallModeList(list []AddonInstallMode, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalAddonInstallModeList(source interface{}) (items []AddonInstallMode if err != nil { return } - items = readAddonInstallModeList(iterator) + items = ReadAddonInstallModeList(iterator) err = iterator.Error return } -// readAddonInstallModeList reads list of values of the ”addon_install_mode' type from +// ReadAddonInstallModeList reads list of values of the ”addon_install_mode' type from // the given iterator. -func readAddonInstallModeList(iterator *jsoniter.Iterator) []AddonInstallMode { +func ReadAddonInstallModeList(iterator *jsoniter.Iterator) []AddonInstallMode { list := []AddonInstallMode{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/addonsmgmt/v1/addon_installation_billing_list_type_json.go b/addonsmgmt/v1/addon_installation_billing_list_type_json.go index b4807b3c5..7c50d31cd 100644 --- a/addonsmgmt/v1/addon_installation_billing_list_type_json.go +++ b/addonsmgmt/v1/addon_installation_billing_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddonInstallationBillingList(list []*AddonInstallationBilling, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonInstallationBillingList(list, stream) + WriteAddonInstallationBillingList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddonInstallationBillingList(list []*AddonInstallationBilling, write return stream.Error } -// writeAddonInstallationBillingList writes a list of value of the 'addon_installation_billing' type to +// WriteAddonInstallationBillingList writes a list of value of the 'addon_installation_billing' type to // the given stream. -func writeAddonInstallationBillingList(list []*AddonInstallationBilling, stream *jsoniter.Stream) { +func WriteAddonInstallationBillingList(list []*AddonInstallationBilling, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddonInstallationBilling(value, stream) + WriteAddonInstallationBilling(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddonInstallationBillingList(source interface{}) (items []*AddonIn if err != nil { return } - items = readAddonInstallationBillingList(iterator) + items = ReadAddonInstallationBillingList(iterator) err = iterator.Error return } -// readAddonInstallationBillingList reads list of values of the ”addon_installation_billing' type from +// ReadAddonInstallationBillingList reads list of values of the ”addon_installation_billing' type from // the given iterator. -func readAddonInstallationBillingList(iterator *jsoniter.Iterator) []*AddonInstallationBilling { +func ReadAddonInstallationBillingList(iterator *jsoniter.Iterator) []*AddonInstallationBilling { list := []*AddonInstallationBilling{} for iterator.ReadArray() { - item := readAddonInstallationBilling(iterator) + item := ReadAddonInstallationBilling(iterator) list = append(list, item) } return list diff --git a/addonsmgmt/v1/addon_installation_billing_type.go b/addonsmgmt/v1/addon_installation_billing_type.go index 9831bd21a..a56e63acc 100644 --- a/addonsmgmt/v1/addon_installation_billing_type.go +++ b/addonsmgmt/v1/addon_installation_billing_type.go @@ -178,6 +178,29 @@ func (l *AddonInstallationBillingList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddonInstallationBillingList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddonInstallationBillingList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddonInstallationBillingList) SetItems(items []*AddonInstallationBilling) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddonInstallationBillingList) Items() []*AddonInstallationBilling { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddonInstallationBillingList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/addonsmgmt/v1/addon_installation_billing_type_json.go b/addonsmgmt/v1/addon_installation_billing_type_json.go index f9d689a0f..0d20f1b75 100644 --- a/addonsmgmt/v1/addon_installation_billing_type_json.go +++ b/addonsmgmt/v1/addon_installation_billing_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAddonInstallationBilling writes a value of the 'addon_installation_billing' type to the given writer. func MarshalAddonInstallationBilling(object *AddonInstallationBilling, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonInstallationBilling(object, stream) + WriteAddonInstallationBilling(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAddonInstallationBilling(object *AddonInstallationBilling, writer io return stream.Error } -// writeAddonInstallationBilling writes a value of the 'addon_installation_billing' type to the given stream. -func writeAddonInstallationBilling(object *AddonInstallationBilling, stream *jsoniter.Stream) { +// WriteAddonInstallationBilling writes a value of the 'addon_installation_billing' type to the given stream. +func WriteAddonInstallationBilling(object *AddonInstallationBilling, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -96,13 +96,13 @@ func UnmarshalAddonInstallationBilling(source interface{}) (object *AddonInstall if err != nil { return } - object = readAddonInstallationBilling(iterator) + object = ReadAddonInstallationBilling(iterator) err = iterator.Error return } -// readAddonInstallationBilling reads a value of the 'addon_installation_billing' type from the given iterator. -func readAddonInstallationBilling(iterator *jsoniter.Iterator) *AddonInstallationBilling { +// ReadAddonInstallationBilling reads a value of the 'addon_installation_billing' type from the given iterator. +func ReadAddonInstallationBilling(iterator *jsoniter.Iterator) *AddonInstallationBilling { object := &AddonInstallationBilling{} for { field := iterator.ReadObject() diff --git a/addonsmgmt/v1/addon_installation_list_type_json.go b/addonsmgmt/v1/addon_installation_list_type_json.go index ce08f071b..9a5f200c5 100644 --- a/addonsmgmt/v1/addon_installation_list_type_json.go +++ b/addonsmgmt/v1/addon_installation_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddonInstallationList(list []*AddonInstallation, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonInstallationList(list, stream) + WriteAddonInstallationList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddonInstallationList(list []*AddonInstallation, writer io.Writer) e return stream.Error } -// writeAddonInstallationList writes a list of value of the 'addon_installation' type to +// WriteAddonInstallationList writes a list of value of the 'addon_installation' type to // the given stream. -func writeAddonInstallationList(list []*AddonInstallation, stream *jsoniter.Stream) { +func WriteAddonInstallationList(list []*AddonInstallation, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddonInstallation(value, stream) + WriteAddonInstallation(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddonInstallationList(source interface{}) (items []*AddonInstallat if err != nil { return } - items = readAddonInstallationList(iterator) + items = ReadAddonInstallationList(iterator) err = iterator.Error return } -// readAddonInstallationList reads list of values of the ”addon_installation' type from +// ReadAddonInstallationList reads list of values of the ”addon_installation' type from // the given iterator. -func readAddonInstallationList(iterator *jsoniter.Iterator) []*AddonInstallation { +func ReadAddonInstallationList(iterator *jsoniter.Iterator) []*AddonInstallation { list := []*AddonInstallation{} for iterator.ReadArray() { - item := readAddonInstallation(iterator) + item := ReadAddonInstallation(iterator) list = append(list, item) } return list diff --git a/addonsmgmt/v1/addon_installation_parameter_list_type_json.go b/addonsmgmt/v1/addon_installation_parameter_list_type_json.go index 6ba79579a..aff444383 100644 --- a/addonsmgmt/v1/addon_installation_parameter_list_type_json.go +++ b/addonsmgmt/v1/addon_installation_parameter_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddonInstallationParameterList(list []*AddonInstallationParameter, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonInstallationParameterList(list, stream) + WriteAddonInstallationParameterList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddonInstallationParameterList(list []*AddonInstallationParameter, w return stream.Error } -// writeAddonInstallationParameterList writes a list of value of the 'addon_installation_parameter' type to +// WriteAddonInstallationParameterList writes a list of value of the 'addon_installation_parameter' type to // the given stream. -func writeAddonInstallationParameterList(list []*AddonInstallationParameter, stream *jsoniter.Stream) { +func WriteAddonInstallationParameterList(list []*AddonInstallationParameter, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddonInstallationParameter(value, stream) + WriteAddonInstallationParameter(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddonInstallationParameterList(source interface{}) (items []*Addon if err != nil { return } - items = readAddonInstallationParameterList(iterator) + items = ReadAddonInstallationParameterList(iterator) err = iterator.Error return } -// readAddonInstallationParameterList reads list of values of the ”addon_installation_parameter' type from +// ReadAddonInstallationParameterList reads list of values of the ”addon_installation_parameter' type from // the given iterator. -func readAddonInstallationParameterList(iterator *jsoniter.Iterator) []*AddonInstallationParameter { +func ReadAddonInstallationParameterList(iterator *jsoniter.Iterator) []*AddonInstallationParameter { list := []*AddonInstallationParameter{} for iterator.ReadArray() { - item := readAddonInstallationParameter(iterator) + item := ReadAddonInstallationParameter(iterator) list = append(list, item) } return list diff --git a/addonsmgmt/v1/addon_installation_parameter_type.go b/addonsmgmt/v1/addon_installation_parameter_type.go index 9be6420e9..b0d902eb7 100644 --- a/addonsmgmt/v1/addon_installation_parameter_type.go +++ b/addonsmgmt/v1/addon_installation_parameter_type.go @@ -154,6 +154,29 @@ func (l *AddonInstallationParameterList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddonInstallationParameterList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddonInstallationParameterList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddonInstallationParameterList) SetItems(items []*AddonInstallationParameter) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddonInstallationParameterList) Items() []*AddonInstallationParameter { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddonInstallationParameterList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/addonsmgmt/v1/addon_installation_parameter_type_json.go b/addonsmgmt/v1/addon_installation_parameter_type_json.go index 24cf0f4f1..0f6f1254d 100644 --- a/addonsmgmt/v1/addon_installation_parameter_type_json.go +++ b/addonsmgmt/v1/addon_installation_parameter_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAddonInstallationParameter writes a value of the 'addon_installation_parameter' type to the given writer. func MarshalAddonInstallationParameter(object *AddonInstallationParameter, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonInstallationParameter(object, stream) + WriteAddonInstallationParameter(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAddonInstallationParameter(object *AddonInstallationParameter, write return stream.Error } -// writeAddonInstallationParameter writes a value of the 'addon_installation_parameter' type to the given stream. -func writeAddonInstallationParameter(object *AddonInstallationParameter, stream *jsoniter.Stream) { +// WriteAddonInstallationParameter writes a value of the 'addon_installation_parameter' type to the given stream. +func WriteAddonInstallationParameter(object *AddonInstallationParameter, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -87,13 +87,13 @@ func UnmarshalAddonInstallationParameter(source interface{}) (object *AddonInsta if err != nil { return } - object = readAddonInstallationParameter(iterator) + object = ReadAddonInstallationParameter(iterator) err = iterator.Error return } -// readAddonInstallationParameter reads a value of the 'addon_installation_parameter' type from the given iterator. -func readAddonInstallationParameter(iterator *jsoniter.Iterator) *AddonInstallationParameter { +// ReadAddonInstallationParameter reads a value of the 'addon_installation_parameter' type from the given iterator. +func ReadAddonInstallationParameter(iterator *jsoniter.Iterator) *AddonInstallationParameter { object := &AddonInstallationParameter{} for { field := iterator.ReadObject() diff --git a/addonsmgmt/v1/addon_installation_parameters_list_type_json.go b/addonsmgmt/v1/addon_installation_parameters_list_type_json.go index b69251487..269c2051f 100644 --- a/addonsmgmt/v1/addon_installation_parameters_list_type_json.go +++ b/addonsmgmt/v1/addon_installation_parameters_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddonInstallationParametersList(list []*AddonInstallationParameters, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonInstallationParametersList(list, stream) + WriteAddonInstallationParametersList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddonInstallationParametersList(list []*AddonInstallationParameters, return stream.Error } -// writeAddonInstallationParametersList writes a list of value of the 'addon_installation_parameters' type to +// WriteAddonInstallationParametersList writes a list of value of the 'addon_installation_parameters' type to // the given stream. -func writeAddonInstallationParametersList(list []*AddonInstallationParameters, stream *jsoniter.Stream) { +func WriteAddonInstallationParametersList(list []*AddonInstallationParameters, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddonInstallationParameters(value, stream) + WriteAddonInstallationParameters(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddonInstallationParametersList(source interface{}) (items []*Addo if err != nil { return } - items = readAddonInstallationParametersList(iterator) + items = ReadAddonInstallationParametersList(iterator) err = iterator.Error return } -// readAddonInstallationParametersList reads list of values of the ”addon_installation_parameters' type from +// ReadAddonInstallationParametersList reads list of values of the ”addon_installation_parameters' type from // the given iterator. -func readAddonInstallationParametersList(iterator *jsoniter.Iterator) []*AddonInstallationParameters { +func ReadAddonInstallationParametersList(iterator *jsoniter.Iterator) []*AddonInstallationParameters { list := []*AddonInstallationParameters{} for iterator.ReadArray() { - item := readAddonInstallationParameters(iterator) + item := ReadAddonInstallationParameters(iterator) list = append(list, item) } return list diff --git a/addonsmgmt/v1/addon_installation_parameters_type.go b/addonsmgmt/v1/addon_installation_parameters_type.go index ae9c0f84c..5b5551ac3 100644 --- a/addonsmgmt/v1/addon_installation_parameters_type.go +++ b/addonsmgmt/v1/addon_installation_parameters_type.go @@ -82,6 +82,29 @@ func (l *AddonInstallationParametersList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddonInstallationParametersList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddonInstallationParametersList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddonInstallationParametersList) SetItems(items []*AddonInstallationParameters) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddonInstallationParametersList) Items() []*AddonInstallationParameters { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddonInstallationParametersList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/addonsmgmt/v1/addon_installation_parameters_type_json.go b/addonsmgmt/v1/addon_installation_parameters_type_json.go index dd6b2a570..cb24d7c15 100644 --- a/addonsmgmt/v1/addon_installation_parameters_type_json.go +++ b/addonsmgmt/v1/addon_installation_parameters_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAddonInstallationParameters writes a value of the 'addon_installation_parameters' type to the given writer. func MarshalAddonInstallationParameters(object *AddonInstallationParameters, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonInstallationParameters(object, stream) + WriteAddonInstallationParameters(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAddonInstallationParameters(object *AddonInstallationParameters, wri return stream.Error } -// writeAddonInstallationParameters writes a value of the 'addon_installation_parameters' type to the given stream. -func writeAddonInstallationParameters(object *AddonInstallationParameters, stream *jsoniter.Stream) { +// WriteAddonInstallationParameters writes a value of the 'addon_installation_parameters' type to the given stream. +func WriteAddonInstallationParameters(object *AddonInstallationParameters, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeAddonInstallationParameters(object *AddonInstallationParameters, strea stream.WriteMore() } stream.WriteObjectField("items") - writeAddonInstallationParameterList(object.items, stream) + WriteAddonInstallationParameterList(object.items, stream) } stream.WriteObjectEnd() } @@ -60,13 +60,13 @@ func UnmarshalAddonInstallationParameters(source interface{}) (object *AddonInst if err != nil { return } - object = readAddonInstallationParameters(iterator) + object = ReadAddonInstallationParameters(iterator) err = iterator.Error return } -// readAddonInstallationParameters reads a value of the 'addon_installation_parameters' type from the given iterator. -func readAddonInstallationParameters(iterator *jsoniter.Iterator) *AddonInstallationParameters { +// ReadAddonInstallationParameters reads a value of the 'addon_installation_parameters' type from the given iterator. +func ReadAddonInstallationParameters(iterator *jsoniter.Iterator) *AddonInstallationParameters { object := &AddonInstallationParameters{} for { field := iterator.ReadObject() @@ -75,7 +75,7 @@ func readAddonInstallationParameters(iterator *jsoniter.Iterator) *AddonInstalla } switch field { case "items": - value := readAddonInstallationParameterList(iterator) + value := ReadAddonInstallationParameterList(iterator) object.items = value object.bitmap_ |= 1 default: diff --git a/addonsmgmt/v1/addon_installation_state_list_type_json.go b/addonsmgmt/v1/addon_installation_state_list_type_json.go index 13d9ec52e..f0828317d 100644 --- a/addonsmgmt/v1/addon_installation_state_list_type_json.go +++ b/addonsmgmt/v1/addon_installation_state_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddonInstallationStateList(list []AddonInstallationState, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonInstallationStateList(list, stream) + WriteAddonInstallationStateList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalAddonInstallationStateList(list []AddonInstallationState, writer io. return stream.Error } -// writeAddonInstallationStateList writes a list of value of the 'addon_installation_state' type to +// WriteAddonInstallationStateList writes a list of value of the 'addon_installation_state' type to // the given stream. -func writeAddonInstallationStateList(list []AddonInstallationState, stream *jsoniter.Stream) { +func WriteAddonInstallationStateList(list []AddonInstallationState, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalAddonInstallationStateList(source interface{}) (items []AddonInsta if err != nil { return } - items = readAddonInstallationStateList(iterator) + items = ReadAddonInstallationStateList(iterator) err = iterator.Error return } -// readAddonInstallationStateList reads list of values of the ”addon_installation_state' type from +// ReadAddonInstallationStateList reads list of values of the ”addon_installation_state' type from // the given iterator. -func readAddonInstallationStateList(iterator *jsoniter.Iterator) []AddonInstallationState { +func ReadAddonInstallationStateList(iterator *jsoniter.Iterator) []AddonInstallationState { list := []AddonInstallationState{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/addonsmgmt/v1/addon_installation_type.go b/addonsmgmt/v1/addon_installation_type.go index 2cd7c33fb..a2a49093f 100644 --- a/addonsmgmt/v1/addon_installation_type.go +++ b/addonsmgmt/v1/addon_installation_type.go @@ -68,7 +68,7 @@ func (o *AddonInstallation) Kind() string { return AddonInstallationKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *AddonInstallation) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -474,6 +474,29 @@ func (l *AddonInstallationList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddonInstallationList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddonInstallationList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddonInstallationList) SetItems(items []*AddonInstallation) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddonInstallationList) Items() []*AddonInstallation { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddonInstallationList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/addonsmgmt/v1/addon_installation_type_json.go b/addonsmgmt/v1/addon_installation_type_json.go index 8e04e9c12..7d0de7f53 100644 --- a/addonsmgmt/v1/addon_installation_type_json.go +++ b/addonsmgmt/v1/addon_installation_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalAddonInstallation writes a value of the 'addon_installation' type to the given writer. func MarshalAddonInstallation(object *AddonInstallation, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonInstallation(object, stream) + WriteAddonInstallation(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalAddonInstallation(object *AddonInstallation, writer io.Writer) error return stream.Error } -// writeAddonInstallation writes a value of the 'addon_installation' type to the given stream. -func writeAddonInstallation(object *AddonInstallation, stream *jsoniter.Stream) { +// WriteAddonInstallation writes a value of the 'addon_installation' type to the given stream. +func WriteAddonInstallation(object *AddonInstallation, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -72,7 +72,7 @@ func writeAddonInstallation(object *AddonInstallation, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("addon") - writeAddon(object.addon, stream) + WriteAddon(object.addon, stream) count++ } present_ = object.bitmap_&16 != 0 && object.addonVersion != nil @@ -81,7 +81,7 @@ func writeAddonInstallation(object *AddonInstallation, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("addon_version") - writeAddonVersion(object.addonVersion, stream) + WriteAddonVersion(object.addonVersion, stream) count++ } present_ = object.bitmap_&32 != 0 && object.billing != nil @@ -90,7 +90,7 @@ func writeAddonInstallation(object *AddonInstallation, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("billing") - writeAddonInstallationBilling(object.billing, stream) + WriteAddonInstallationBilling(object.billing, stream) count++ } present_ = object.bitmap_&64 != 0 @@ -146,7 +146,7 @@ func writeAddonInstallation(object *AddonInstallation, stream *jsoniter.Stream) stream.WriteObjectField("parameters") stream.WriteObjectStart() stream.WriteObjectField("items") - writeAddonInstallationParameterList(object.parameters.items, stream) + WriteAddonInstallationParameterList(object.parameters.Items(), stream) stream.WriteObjectEnd() count++ } @@ -174,7 +174,7 @@ func writeAddonInstallation(object *AddonInstallation, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("subscription") - writeObjectReference(object.subscription, stream) + WriteObjectReference(object.subscription, stream) count++ } present_ = object.bitmap_&32768 != 0 @@ -195,13 +195,13 @@ func UnmarshalAddonInstallation(source interface{}) (object *AddonInstallation, if err != nil { return } - object = readAddonInstallation(iterator) + object = ReadAddonInstallation(iterator) err = iterator.Error return } -// readAddonInstallation reads a value of the 'addon_installation' type from the given iterator. -func readAddonInstallation(iterator *jsoniter.Iterator) *AddonInstallation { +// ReadAddonInstallation reads a value of the 'addon_installation' type from the given iterator. +func ReadAddonInstallation(iterator *jsoniter.Iterator) *AddonInstallation { object := &AddonInstallation{} for { field := iterator.ReadObject() @@ -221,15 +221,15 @@ func readAddonInstallation(iterator *jsoniter.Iterator) *AddonInstallation { object.href = iterator.ReadString() object.bitmap_ |= 4 case "addon": - value := readAddon(iterator) + value := ReadAddon(iterator) object.addon = value object.bitmap_ |= 8 case "addon_version": - value := readAddonVersion(iterator) + value := ReadAddonVersion(iterator) object.addonVersion = value object.bitmap_ |= 16 case "billing": - value := readAddonInstallationBilling(iterator) + value := ReadAddonInstallationBilling(iterator) object.billing = value object.bitmap_ |= 32 case "creation_timestamp": @@ -270,11 +270,11 @@ func readAddonInstallation(iterator *jsoniter.Iterator) *AddonInstallation { switch field { case "kind": text := iterator.ReadString() - value.link = text == AddonInstallationParameterListLinkKind + value.SetLink(text == AddonInstallationParameterListLinkKind) case "href": - value.href = iterator.ReadString() + value.SetHREF(iterator.ReadString()) case "items": - value.items = readAddonInstallationParameterList(iterator) + value.SetItems(ReadAddonInstallationParameterList(iterator)) default: iterator.ReadAny() } @@ -291,7 +291,7 @@ func readAddonInstallation(iterator *jsoniter.Iterator) *AddonInstallation { object.stateDescription = value object.bitmap_ |= 8192 case "subscription": - value := readObjectReference(iterator) + value := ReadObjectReference(iterator) object.subscription = value object.bitmap_ |= 16384 case "updated_timestamp": diff --git a/addonsmgmt/v1/addon_installations_resource_json.go b/addonsmgmt/v1/addon_installations_resource_json.go index 0b109044f..e406ecf08 100644 --- a/addonsmgmt/v1/addon_installations_resource_json.go +++ b/addonsmgmt/v1/addon_installations_resource_json.go @@ -63,7 +63,7 @@ func readAddonInstallationsListResponse(response *AddonInstallationsListResponse value := iterator.ReadInt() response.total = &value case "items": - items := readAddonInstallationList(iterator) + items := ReadAddonInstallationList(iterator) response.items = &AddonInstallationList{ items: items, } diff --git a/addonsmgmt/v1/addon_list_type_json.go b/addonsmgmt/v1/addon_list_type_json.go index b92e64a3d..5362f820b 100644 --- a/addonsmgmt/v1/addon_list_type_json.go +++ b/addonsmgmt/v1/addon_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddonList(list []*Addon, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonList(list, stream) + WriteAddonList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddonList(list []*Addon, writer io.Writer) error { return stream.Error } -// writeAddonList writes a list of value of the 'addon' type to +// WriteAddonList writes a list of value of the 'addon' type to // the given stream. -func writeAddonList(list []*Addon, stream *jsoniter.Stream) { +func WriteAddonList(list []*Addon, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddon(value, stream) + WriteAddon(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddonList(source interface{}) (items []*Addon, err error) { if err != nil { return } - items = readAddonList(iterator) + items = ReadAddonList(iterator) err = iterator.Error return } -// readAddonList reads list of values of the ”addon' type from +// ReadAddonList reads list of values of the ”addon' type from // the given iterator. -func readAddonList(iterator *jsoniter.Iterator) []*Addon { +func ReadAddonList(iterator *jsoniter.Iterator) []*Addon { list := []*Addon{} for iterator.ReadArray() { - item := readAddon(iterator) + item := ReadAddon(iterator) list = append(list, item) } return list diff --git a/addonsmgmt/v1/addon_namespace_list_type_json.go b/addonsmgmt/v1/addon_namespace_list_type_json.go index c1e38a1e1..7dcb8d902 100644 --- a/addonsmgmt/v1/addon_namespace_list_type_json.go +++ b/addonsmgmt/v1/addon_namespace_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddonNamespaceList(list []*AddonNamespace, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonNamespaceList(list, stream) + WriteAddonNamespaceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddonNamespaceList(list []*AddonNamespace, writer io.Writer) error { return stream.Error } -// writeAddonNamespaceList writes a list of value of the 'addon_namespace' type to +// WriteAddonNamespaceList writes a list of value of the 'addon_namespace' type to // the given stream. -func writeAddonNamespaceList(list []*AddonNamespace, stream *jsoniter.Stream) { +func WriteAddonNamespaceList(list []*AddonNamespace, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddonNamespace(value, stream) + WriteAddonNamespace(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddonNamespaceList(source interface{}) (items []*AddonNamespace, e if err != nil { return } - items = readAddonNamespaceList(iterator) + items = ReadAddonNamespaceList(iterator) err = iterator.Error return } -// readAddonNamespaceList reads list of values of the ”addon_namespace' type from +// ReadAddonNamespaceList reads list of values of the ”addon_namespace' type from // the given iterator. -func readAddonNamespaceList(iterator *jsoniter.Iterator) []*AddonNamespace { +func ReadAddonNamespaceList(iterator *jsoniter.Iterator) []*AddonNamespace { list := []*AddonNamespace{} for iterator.ReadArray() { - item := readAddonNamespace(iterator) + item := ReadAddonNamespace(iterator) list = append(list, item) } return list diff --git a/addonsmgmt/v1/addon_namespace_type.go b/addonsmgmt/v1/addon_namespace_type.go index bd7c19492..dd640435a 100644 --- a/addonsmgmt/v1/addon_namespace_type.go +++ b/addonsmgmt/v1/addon_namespace_type.go @@ -154,6 +154,29 @@ func (l *AddonNamespaceList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddonNamespaceList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddonNamespaceList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddonNamespaceList) SetItems(items []*AddonNamespace) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddonNamespaceList) Items() []*AddonNamespace { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddonNamespaceList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/addonsmgmt/v1/addon_namespace_type_json.go b/addonsmgmt/v1/addon_namespace_type_json.go index b3c3acf42..653cb3f22 100644 --- a/addonsmgmt/v1/addon_namespace_type_json.go +++ b/addonsmgmt/v1/addon_namespace_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalAddonNamespace writes a value of the 'addon_namespace' type to the given writer. func MarshalAddonNamespace(object *AddonNamespace, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonNamespace(object, stream) + WriteAddonNamespace(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalAddonNamespace(object *AddonNamespace, writer io.Writer) error { return stream.Error } -// writeAddonNamespace writes a value of the 'addon_namespace' type to the given stream. -func writeAddonNamespace(object *AddonNamespace, stream *jsoniter.Stream) { +// WriteAddonNamespace writes a value of the 'addon_namespace' type to the given stream. +func WriteAddonNamespace(object *AddonNamespace, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -128,13 +128,13 @@ func UnmarshalAddonNamespace(source interface{}) (object *AddonNamespace, err er if err != nil { return } - object = readAddonNamespace(iterator) + object = ReadAddonNamespace(iterator) err = iterator.Error return } -// readAddonNamespace reads a value of the 'addon_namespace' type from the given iterator. -func readAddonNamespace(iterator *jsoniter.Iterator) *AddonNamespace { +// ReadAddonNamespace reads a value of the 'addon_namespace' type from the given iterator. +func ReadAddonNamespace(iterator *jsoniter.Iterator) *AddonNamespace { object := &AddonNamespace{} for { field := iterator.ReadObject() diff --git a/addonsmgmt/v1/addon_parameter_list_type_json.go b/addonsmgmt/v1/addon_parameter_list_type_json.go index a826382b5..a38e7ed1c 100644 --- a/addonsmgmt/v1/addon_parameter_list_type_json.go +++ b/addonsmgmt/v1/addon_parameter_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddonParameterList(list []*AddonParameter, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonParameterList(list, stream) + WriteAddonParameterList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddonParameterList(list []*AddonParameter, writer io.Writer) error { return stream.Error } -// writeAddonParameterList writes a list of value of the 'addon_parameter' type to +// WriteAddonParameterList writes a list of value of the 'addon_parameter' type to // the given stream. -func writeAddonParameterList(list []*AddonParameter, stream *jsoniter.Stream) { +func WriteAddonParameterList(list []*AddonParameter, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddonParameter(value, stream) + WriteAddonParameter(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddonParameterList(source interface{}) (items []*AddonParameter, e if err != nil { return } - items = readAddonParameterList(iterator) + items = ReadAddonParameterList(iterator) err = iterator.Error return } -// readAddonParameterList reads list of values of the ”addon_parameter' type from +// ReadAddonParameterList reads list of values of the ”addon_parameter' type from // the given iterator. -func readAddonParameterList(iterator *jsoniter.Iterator) []*AddonParameter { +func ReadAddonParameterList(iterator *jsoniter.Iterator) []*AddonParameter { list := []*AddonParameter{} for iterator.ReadArray() { - item := readAddonParameter(iterator) + item := ReadAddonParameter(iterator) list = append(list, item) } return list diff --git a/addonsmgmt/v1/addon_parameter_option_list_type_json.go b/addonsmgmt/v1/addon_parameter_option_list_type_json.go index 1fcdd283d..ba043de78 100644 --- a/addonsmgmt/v1/addon_parameter_option_list_type_json.go +++ b/addonsmgmt/v1/addon_parameter_option_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddonParameterOptionList(list []*AddonParameterOption, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonParameterOptionList(list, stream) + WriteAddonParameterOptionList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddonParameterOptionList(list []*AddonParameterOption, writer io.Wri return stream.Error } -// writeAddonParameterOptionList writes a list of value of the 'addon_parameter_option' type to +// WriteAddonParameterOptionList writes a list of value of the 'addon_parameter_option' type to // the given stream. -func writeAddonParameterOptionList(list []*AddonParameterOption, stream *jsoniter.Stream) { +func WriteAddonParameterOptionList(list []*AddonParameterOption, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddonParameterOption(value, stream) + WriteAddonParameterOption(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddonParameterOptionList(source interface{}) (items []*AddonParame if err != nil { return } - items = readAddonParameterOptionList(iterator) + items = ReadAddonParameterOptionList(iterator) err = iterator.Error return } -// readAddonParameterOptionList reads list of values of the ”addon_parameter_option' type from +// ReadAddonParameterOptionList reads list of values of the ”addon_parameter_option' type from // the given iterator. -func readAddonParameterOptionList(iterator *jsoniter.Iterator) []*AddonParameterOption { +func ReadAddonParameterOptionList(iterator *jsoniter.Iterator) []*AddonParameterOption { list := []*AddonParameterOption{} for iterator.ReadArray() { - item := readAddonParameterOption(iterator) + item := ReadAddonParameterOption(iterator) list = append(list, item) } return list diff --git a/addonsmgmt/v1/addon_parameter_option_type.go b/addonsmgmt/v1/addon_parameter_option_type.go index cbc4e2434..ae5f1e621 100644 --- a/addonsmgmt/v1/addon_parameter_option_type.go +++ b/addonsmgmt/v1/addon_parameter_option_type.go @@ -154,6 +154,29 @@ func (l *AddonParameterOptionList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddonParameterOptionList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddonParameterOptionList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddonParameterOptionList) SetItems(items []*AddonParameterOption) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddonParameterOptionList) Items() []*AddonParameterOption { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddonParameterOptionList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/addonsmgmt/v1/addon_parameter_option_type_json.go b/addonsmgmt/v1/addon_parameter_option_type_json.go index 7811b0a80..4fcb07447 100644 --- a/addonsmgmt/v1/addon_parameter_option_type_json.go +++ b/addonsmgmt/v1/addon_parameter_option_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAddonParameterOption writes a value of the 'addon_parameter_option' type to the given writer. func MarshalAddonParameterOption(object *AddonParameterOption, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonParameterOption(object, stream) + WriteAddonParameterOption(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAddonParameterOption(object *AddonParameterOption, writer io.Writer) return stream.Error } -// writeAddonParameterOption writes a value of the 'addon_parameter_option' type to the given stream. -func writeAddonParameterOption(object *AddonParameterOption, stream *jsoniter.Stream) { +// WriteAddonParameterOption writes a value of the 'addon_parameter_option' type to the given stream. +func WriteAddonParameterOption(object *AddonParameterOption, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -66,7 +66,7 @@ func writeAddonParameterOption(object *AddonParameterOption, stream *jsoniter.St stream.WriteMore() } stream.WriteObjectField("requirements") - writeAddonRequirementList(object.requirements, stream) + WriteAddonRequirementList(object.requirements, stream) count++ } present_ = object.bitmap_&8 != 0 @@ -87,13 +87,13 @@ func UnmarshalAddonParameterOption(source interface{}) (object *AddonParameterOp if err != nil { return } - object = readAddonParameterOption(iterator) + object = ReadAddonParameterOption(iterator) err = iterator.Error return } -// readAddonParameterOption reads a value of the 'addon_parameter_option' type from the given iterator. -func readAddonParameterOption(iterator *jsoniter.Iterator) *AddonParameterOption { +// ReadAddonParameterOption reads a value of the 'addon_parameter_option' type from the given iterator. +func ReadAddonParameterOption(iterator *jsoniter.Iterator) *AddonParameterOption { object := &AddonParameterOption{} for { field := iterator.ReadObject() @@ -110,7 +110,7 @@ func readAddonParameterOption(iterator *jsoniter.Iterator) *AddonParameterOption object.rank = value object.bitmap_ |= 2 case "requirements": - value := readAddonRequirementList(iterator) + value := ReadAddonRequirementList(iterator) object.requirements = value object.bitmap_ |= 4 case "value": diff --git a/addonsmgmt/v1/addon_parameter_type.go b/addonsmgmt/v1/addon_parameter_type.go index 47f584d74..eab64b656 100644 --- a/addonsmgmt/v1/addon_parameter_type.go +++ b/addonsmgmt/v1/addon_parameter_type.go @@ -416,6 +416,29 @@ func (l *AddonParameterList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddonParameterList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddonParameterList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddonParameterList) SetItems(items []*AddonParameter) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddonParameterList) Items() []*AddonParameter { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddonParameterList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/addonsmgmt/v1/addon_parameter_type_json.go b/addonsmgmt/v1/addon_parameter_type_json.go index fcf899515..e99a93d49 100644 --- a/addonsmgmt/v1/addon_parameter_type_json.go +++ b/addonsmgmt/v1/addon_parameter_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAddonParameter writes a value of the 'addon_parameter' type to the given writer. func MarshalAddonParameter(object *AddonParameter, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonParameter(object, stream) + WriteAddonParameter(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAddonParameter(object *AddonParameter, writer io.Writer) error { return stream.Error } -// writeAddonParameter writes a value of the 'addon_parameter' type to the given stream. -func writeAddonParameter(object *AddonParameter, stream *jsoniter.Stream) { +// WriteAddonParameter writes a value of the 'addon_parameter' type to the given stream. +func WriteAddonParameter(object *AddonParameter, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -57,7 +57,7 @@ func writeAddonParameter(object *AddonParameter, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("addon") - writeAddon(object.addon, stream) + WriteAddon(object.addon, stream) count++ } present_ = object.bitmap_&4 != 0 && object.conditions != nil @@ -66,7 +66,7 @@ func writeAddonParameter(object *AddonParameter, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("conditions") - writeAddonRequirementList(object.conditions, stream) + WriteAddonRequirementList(object.conditions, stream) count++ } present_ = object.bitmap_&8 != 0 @@ -129,7 +129,7 @@ func writeAddonParameter(object *AddonParameter, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("options") - writeAddonParameterOptionList(object.options, stream) + WriteAddonParameterOptionList(object.options, stream) count++ } present_ = object.bitmap_&1024 != 0 @@ -186,13 +186,13 @@ func UnmarshalAddonParameter(source interface{}) (object *AddonParameter, err er if err != nil { return } - object = readAddonParameter(iterator) + object = ReadAddonParameter(iterator) err = iterator.Error return } -// readAddonParameter reads a value of the 'addon_parameter' type from the given iterator. -func readAddonParameter(iterator *jsoniter.Iterator) *AddonParameter { +// ReadAddonParameter reads a value of the 'addon_parameter' type from the given iterator. +func ReadAddonParameter(iterator *jsoniter.Iterator) *AddonParameter { object := &AddonParameter{} for { field := iterator.ReadObject() @@ -205,11 +205,11 @@ func readAddonParameter(iterator *jsoniter.Iterator) *AddonParameter { object.id = value object.bitmap_ |= 1 case "addon": - value := readAddon(iterator) + value := ReadAddon(iterator) object.addon = value object.bitmap_ |= 2 case "conditions": - value := readAddonRequirementList(iterator) + value := ReadAddonRequirementList(iterator) object.conditions = value object.bitmap_ |= 4 case "default_value": @@ -237,7 +237,7 @@ func readAddonParameter(iterator *jsoniter.Iterator) *AddonParameter { object.name = value object.bitmap_ |= 256 case "options": - value := readAddonParameterOptionList(iterator) + value := ReadAddonParameterOptionList(iterator) object.options = value object.bitmap_ |= 512 case "order": diff --git a/addonsmgmt/v1/addon_parameter_value_type_list_type_json.go b/addonsmgmt/v1/addon_parameter_value_type_list_type_json.go index d54802092..cdce76feb 100644 --- a/addonsmgmt/v1/addon_parameter_value_type_list_type_json.go +++ b/addonsmgmt/v1/addon_parameter_value_type_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddonParameterValueTypeList(list []AddonParameterValueType, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonParameterValueTypeList(list, stream) + WriteAddonParameterValueTypeList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalAddonParameterValueTypeList(list []AddonParameterValueType, writer i return stream.Error } -// writeAddonParameterValueTypeList writes a list of value of the 'addon_parameter_value_type' type to +// WriteAddonParameterValueTypeList writes a list of value of the 'addon_parameter_value_type' type to // the given stream. -func writeAddonParameterValueTypeList(list []AddonParameterValueType, stream *jsoniter.Stream) { +func WriteAddonParameterValueTypeList(list []AddonParameterValueType, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalAddonParameterValueTypeList(source interface{}) (items []AddonPara if err != nil { return } - items = readAddonParameterValueTypeList(iterator) + items = ReadAddonParameterValueTypeList(iterator) err = iterator.Error return } -// readAddonParameterValueTypeList reads list of values of the ”addon_parameter_value_type' type from +// ReadAddonParameterValueTypeList reads list of values of the ”addon_parameter_value_type' type from // the given iterator. -func readAddonParameterValueTypeList(iterator *jsoniter.Iterator) []AddonParameterValueType { +func ReadAddonParameterValueTypeList(iterator *jsoniter.Iterator) []AddonParameterValueType { list := []AddonParameterValueType{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/addonsmgmt/v1/addon_parameters_list_type_json.go b/addonsmgmt/v1/addon_parameters_list_type_json.go index 5c8c83093..0191679f5 100644 --- a/addonsmgmt/v1/addon_parameters_list_type_json.go +++ b/addonsmgmt/v1/addon_parameters_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddonParametersList(list []*AddonParameters, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonParametersList(list, stream) + WriteAddonParametersList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddonParametersList(list []*AddonParameters, writer io.Writer) error return stream.Error } -// writeAddonParametersList writes a list of value of the 'addon_parameters' type to +// WriteAddonParametersList writes a list of value of the 'addon_parameters' type to // the given stream. -func writeAddonParametersList(list []*AddonParameters, stream *jsoniter.Stream) { +func WriteAddonParametersList(list []*AddonParameters, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddonParameters(value, stream) + WriteAddonParameters(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddonParametersList(source interface{}) (items []*AddonParameters, if err != nil { return } - items = readAddonParametersList(iterator) + items = ReadAddonParametersList(iterator) err = iterator.Error return } -// readAddonParametersList reads list of values of the ”addon_parameters' type from +// ReadAddonParametersList reads list of values of the ”addon_parameters' type from // the given iterator. -func readAddonParametersList(iterator *jsoniter.Iterator) []*AddonParameters { +func ReadAddonParametersList(iterator *jsoniter.Iterator) []*AddonParameters { list := []*AddonParameters{} for iterator.ReadArray() { - item := readAddonParameters(iterator) + item := ReadAddonParameters(iterator) list = append(list, item) } return list diff --git a/addonsmgmt/v1/addon_parameters_type.go b/addonsmgmt/v1/addon_parameters_type.go index bf0792b53..e96447ca0 100644 --- a/addonsmgmt/v1/addon_parameters_type.go +++ b/addonsmgmt/v1/addon_parameters_type.go @@ -82,6 +82,29 @@ func (l *AddonParametersList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddonParametersList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddonParametersList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddonParametersList) SetItems(items []*AddonParameters) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddonParametersList) Items() []*AddonParameters { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddonParametersList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/addonsmgmt/v1/addon_parameters_type_json.go b/addonsmgmt/v1/addon_parameters_type_json.go index 99bb930ef..834ce343f 100644 --- a/addonsmgmt/v1/addon_parameters_type_json.go +++ b/addonsmgmt/v1/addon_parameters_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAddonParameters writes a value of the 'addon_parameters' type to the given writer. func MarshalAddonParameters(object *AddonParameters, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonParameters(object, stream) + WriteAddonParameters(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAddonParameters(object *AddonParameters, writer io.Writer) error { return stream.Error } -// writeAddonParameters writes a value of the 'addon_parameters' type to the given stream. -func writeAddonParameters(object *AddonParameters, stream *jsoniter.Stream) { +// WriteAddonParameters writes a value of the 'addon_parameters' type to the given stream. +func WriteAddonParameters(object *AddonParameters, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeAddonParameters(object *AddonParameters, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("items") - writeAddonParameterList(object.items, stream) + WriteAddonParameterList(object.items, stream) } stream.WriteObjectEnd() } @@ -60,13 +60,13 @@ func UnmarshalAddonParameters(source interface{}) (object *AddonParameters, err if err != nil { return } - object = readAddonParameters(iterator) + object = ReadAddonParameters(iterator) err = iterator.Error return } -// readAddonParameters reads a value of the 'addon_parameters' type from the given iterator. -func readAddonParameters(iterator *jsoniter.Iterator) *AddonParameters { +// ReadAddonParameters reads a value of the 'addon_parameters' type from the given iterator. +func ReadAddonParameters(iterator *jsoniter.Iterator) *AddonParameters { object := &AddonParameters{} for { field := iterator.ReadObject() @@ -75,7 +75,7 @@ func readAddonParameters(iterator *jsoniter.Iterator) *AddonParameters { } switch field { case "items": - value := readAddonParameterList(iterator) + value := ReadAddonParameterList(iterator) object.items = value object.bitmap_ |= 1 default: diff --git a/addonsmgmt/v1/addon_requirement_list_type_json.go b/addonsmgmt/v1/addon_requirement_list_type_json.go index 4a25b7aa4..f0522b3c9 100644 --- a/addonsmgmt/v1/addon_requirement_list_type_json.go +++ b/addonsmgmt/v1/addon_requirement_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddonRequirementList(list []*AddonRequirement, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonRequirementList(list, stream) + WriteAddonRequirementList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddonRequirementList(list []*AddonRequirement, writer io.Writer) err return stream.Error } -// writeAddonRequirementList writes a list of value of the 'addon_requirement' type to +// WriteAddonRequirementList writes a list of value of the 'addon_requirement' type to // the given stream. -func writeAddonRequirementList(list []*AddonRequirement, stream *jsoniter.Stream) { +func WriteAddonRequirementList(list []*AddonRequirement, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddonRequirement(value, stream) + WriteAddonRequirement(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddonRequirementList(source interface{}) (items []*AddonRequiremen if err != nil { return } - items = readAddonRequirementList(iterator) + items = ReadAddonRequirementList(iterator) err = iterator.Error return } -// readAddonRequirementList reads list of values of the ”addon_requirement' type from +// ReadAddonRequirementList reads list of values of the ”addon_requirement' type from // the given iterator. -func readAddonRequirementList(iterator *jsoniter.Iterator) []*AddonRequirement { +func ReadAddonRequirementList(iterator *jsoniter.Iterator) []*AddonRequirement { list := []*AddonRequirement{} for iterator.ReadArray() { - item := readAddonRequirement(iterator) + item := ReadAddonRequirement(iterator) list = append(list, item) } return list diff --git a/addonsmgmt/v1/addon_requirement_resource_list_type_json.go b/addonsmgmt/v1/addon_requirement_resource_list_type_json.go index b3daa29b9..cb97699ef 100644 --- a/addonsmgmt/v1/addon_requirement_resource_list_type_json.go +++ b/addonsmgmt/v1/addon_requirement_resource_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddonRequirementResourceList(list []AddonRequirementResource, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonRequirementResourceList(list, stream) + WriteAddonRequirementResourceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalAddonRequirementResourceList(list []AddonRequirementResource, writer return stream.Error } -// writeAddonRequirementResourceList writes a list of value of the 'addon_requirement_resource' type to +// WriteAddonRequirementResourceList writes a list of value of the 'addon_requirement_resource' type to // the given stream. -func writeAddonRequirementResourceList(list []AddonRequirementResource, stream *jsoniter.Stream) { +func WriteAddonRequirementResourceList(list []AddonRequirementResource, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalAddonRequirementResourceList(source interface{}) (items []AddonReq if err != nil { return } - items = readAddonRequirementResourceList(iterator) + items = ReadAddonRequirementResourceList(iterator) err = iterator.Error return } -// readAddonRequirementResourceList reads list of values of the ”addon_requirement_resource' type from +// ReadAddonRequirementResourceList reads list of values of the ”addon_requirement_resource' type from // the given iterator. -func readAddonRequirementResourceList(iterator *jsoniter.Iterator) []AddonRequirementResource { +func ReadAddonRequirementResourceList(iterator *jsoniter.Iterator) []AddonRequirementResource { list := []AddonRequirementResource{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/addonsmgmt/v1/addon_requirement_status_list_type_json.go b/addonsmgmt/v1/addon_requirement_status_list_type_json.go index 33b1cf764..5e3d6a9d1 100644 --- a/addonsmgmt/v1/addon_requirement_status_list_type_json.go +++ b/addonsmgmt/v1/addon_requirement_status_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddonRequirementStatusList(list []*AddonRequirementStatus, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonRequirementStatusList(list, stream) + WriteAddonRequirementStatusList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddonRequirementStatusList(list []*AddonRequirementStatus, writer io return stream.Error } -// writeAddonRequirementStatusList writes a list of value of the 'addon_requirement_status' type to +// WriteAddonRequirementStatusList writes a list of value of the 'addon_requirement_status' type to // the given stream. -func writeAddonRequirementStatusList(list []*AddonRequirementStatus, stream *jsoniter.Stream) { +func WriteAddonRequirementStatusList(list []*AddonRequirementStatus, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddonRequirementStatus(value, stream) + WriteAddonRequirementStatus(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddonRequirementStatusList(source interface{}) (items []*AddonRequ if err != nil { return } - items = readAddonRequirementStatusList(iterator) + items = ReadAddonRequirementStatusList(iterator) err = iterator.Error return } -// readAddonRequirementStatusList reads list of values of the ”addon_requirement_status' type from +// ReadAddonRequirementStatusList reads list of values of the ”addon_requirement_status' type from // the given iterator. -func readAddonRequirementStatusList(iterator *jsoniter.Iterator) []*AddonRequirementStatus { +func ReadAddonRequirementStatusList(iterator *jsoniter.Iterator) []*AddonRequirementStatus { list := []*AddonRequirementStatus{} for iterator.ReadArray() { - item := readAddonRequirementStatus(iterator) + item := ReadAddonRequirementStatus(iterator) list = append(list, item) } return list diff --git a/addonsmgmt/v1/addon_requirement_status_type.go b/addonsmgmt/v1/addon_requirement_status_type.go index ad087ab3d..3c4f73831 100644 --- a/addonsmgmt/v1/addon_requirement_status_type.go +++ b/addonsmgmt/v1/addon_requirement_status_type.go @@ -106,6 +106,29 @@ func (l *AddonRequirementStatusList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddonRequirementStatusList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddonRequirementStatusList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddonRequirementStatusList) SetItems(items []*AddonRequirementStatus) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddonRequirementStatusList) Items() []*AddonRequirementStatus { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddonRequirementStatusList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/addonsmgmt/v1/addon_requirement_status_type_json.go b/addonsmgmt/v1/addon_requirement_status_type_json.go index fec490fb0..043d49a81 100644 --- a/addonsmgmt/v1/addon_requirement_status_type_json.go +++ b/addonsmgmt/v1/addon_requirement_status_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAddonRequirementStatus writes a value of the 'addon_requirement_status' type to the given writer. func MarshalAddonRequirementStatus(object *AddonRequirementStatus, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonRequirementStatus(object, stream) + WriteAddonRequirementStatus(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAddonRequirementStatus(object *AddonRequirementStatus, writer io.Wri return stream.Error } -// writeAddonRequirementStatus writes a value of the 'addon_requirement_status' type to the given stream. -func writeAddonRequirementStatus(object *AddonRequirementStatus, stream *jsoniter.Stream) { +// WriteAddonRequirementStatus writes a value of the 'addon_requirement_status' type to the given stream. +func WriteAddonRequirementStatus(object *AddonRequirementStatus, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeAddonRequirementStatus(object *AddonRequirementStatus, stream *jsonite stream.WriteMore() } stream.WriteObjectField("error_msgs") - writeStringList(object.errorMsgs, stream) + WriteStringList(object.errorMsgs, stream) count++ } present_ = object.bitmap_&2 != 0 @@ -69,13 +69,13 @@ func UnmarshalAddonRequirementStatus(source interface{}) (object *AddonRequireme if err != nil { return } - object = readAddonRequirementStatus(iterator) + object = ReadAddonRequirementStatus(iterator) err = iterator.Error return } -// readAddonRequirementStatus reads a value of the 'addon_requirement_status' type from the given iterator. -func readAddonRequirementStatus(iterator *jsoniter.Iterator) *AddonRequirementStatus { +// ReadAddonRequirementStatus reads a value of the 'addon_requirement_status' type from the given iterator. +func ReadAddonRequirementStatus(iterator *jsoniter.Iterator) *AddonRequirementStatus { object := &AddonRequirementStatus{} for { field := iterator.ReadObject() @@ -84,7 +84,7 @@ func readAddonRequirementStatus(iterator *jsoniter.Iterator) *AddonRequirementSt } switch field { case "error_msgs": - value := readStringList(iterator) + value := ReadStringList(iterator) object.errorMsgs = value object.bitmap_ |= 1 case "fulfilled": diff --git a/addonsmgmt/v1/addon_requirement_type.go b/addonsmgmt/v1/addon_requirement_type.go index 35ac41258..c649bc1ab 100644 --- a/addonsmgmt/v1/addon_requirement_type.go +++ b/addonsmgmt/v1/addon_requirement_type.go @@ -178,6 +178,29 @@ func (l *AddonRequirementList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddonRequirementList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddonRequirementList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddonRequirementList) SetItems(items []*AddonRequirement) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddonRequirementList) Items() []*AddonRequirement { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddonRequirementList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/addonsmgmt/v1/addon_requirement_type_json.go b/addonsmgmt/v1/addon_requirement_type_json.go index 37459bd42..5d92ba82d 100644 --- a/addonsmgmt/v1/addon_requirement_type_json.go +++ b/addonsmgmt/v1/addon_requirement_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalAddonRequirement writes a value of the 'addon_requirement' type to the given writer. func MarshalAddonRequirement(object *AddonRequirement, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonRequirement(object, stream) + WriteAddonRequirement(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalAddonRequirement(object *AddonRequirement, writer io.Writer) error { return stream.Error } -// writeAddonRequirement writes a value of the 'addon_requirement' type to the given stream. -func writeAddonRequirement(object *AddonRequirement, stream *jsoniter.Stream) { +// WriteAddonRequirement writes a value of the 'addon_requirement' type to the given stream. +func WriteAddonRequirement(object *AddonRequirement, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -105,7 +105,7 @@ func writeAddonRequirement(object *AddonRequirement, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("status") - writeAddonRequirementStatus(object.status, stream) + WriteAddonRequirementStatus(object.status, stream) } stream.WriteObjectEnd() } @@ -117,13 +117,13 @@ func UnmarshalAddonRequirement(source interface{}) (object *AddonRequirement, er if err != nil { return } - object = readAddonRequirement(iterator) + object = ReadAddonRequirement(iterator) err = iterator.Error return } -// readAddonRequirement reads a value of the 'addon_requirement' type from the given iterator. -func readAddonRequirement(iterator *jsoniter.Iterator) *AddonRequirement { +// ReadAddonRequirement reads a value of the 'addon_requirement' type from the given iterator. +func ReadAddonRequirement(iterator *jsoniter.Iterator) *AddonRequirement { object := &AddonRequirement{} for { field := iterator.ReadObject() @@ -158,7 +158,7 @@ func readAddonRequirement(iterator *jsoniter.Iterator) *AddonRequirement { object.resource = value object.bitmap_ |= 8 case "status": - value := readAddonRequirementStatus(iterator) + value := ReadAddonRequirementStatus(iterator) object.status = value object.bitmap_ |= 16 default: diff --git a/addonsmgmt/v1/addon_secret_propagation_list_type_json.go b/addonsmgmt/v1/addon_secret_propagation_list_type_json.go index bf4fd637e..4181cdaa8 100644 --- a/addonsmgmt/v1/addon_secret_propagation_list_type_json.go +++ b/addonsmgmt/v1/addon_secret_propagation_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddonSecretPropagationList(list []*AddonSecretPropagation, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonSecretPropagationList(list, stream) + WriteAddonSecretPropagationList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddonSecretPropagationList(list []*AddonSecretPropagation, writer io return stream.Error } -// writeAddonSecretPropagationList writes a list of value of the 'addon_secret_propagation' type to +// WriteAddonSecretPropagationList writes a list of value of the 'addon_secret_propagation' type to // the given stream. -func writeAddonSecretPropagationList(list []*AddonSecretPropagation, stream *jsoniter.Stream) { +func WriteAddonSecretPropagationList(list []*AddonSecretPropagation, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddonSecretPropagation(value, stream) + WriteAddonSecretPropagation(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddonSecretPropagationList(source interface{}) (items []*AddonSecr if err != nil { return } - items = readAddonSecretPropagationList(iterator) + items = ReadAddonSecretPropagationList(iterator) err = iterator.Error return } -// readAddonSecretPropagationList reads list of values of the ”addon_secret_propagation' type from +// ReadAddonSecretPropagationList reads list of values of the ”addon_secret_propagation' type from // the given iterator. -func readAddonSecretPropagationList(iterator *jsoniter.Iterator) []*AddonSecretPropagation { +func ReadAddonSecretPropagationList(iterator *jsoniter.Iterator) []*AddonSecretPropagation { list := []*AddonSecretPropagation{} for iterator.ReadArray() { - item := readAddonSecretPropagation(iterator) + item := ReadAddonSecretPropagation(iterator) list = append(list, item) } return list diff --git a/addonsmgmt/v1/addon_secret_propagation_type.go b/addonsmgmt/v1/addon_secret_propagation_type.go index 9fe7fd5e8..888376a4d 100644 --- a/addonsmgmt/v1/addon_secret_propagation_type.go +++ b/addonsmgmt/v1/addon_secret_propagation_type.go @@ -154,6 +154,29 @@ func (l *AddonSecretPropagationList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddonSecretPropagationList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddonSecretPropagationList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddonSecretPropagationList) SetItems(items []*AddonSecretPropagation) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddonSecretPropagationList) Items() []*AddonSecretPropagation { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddonSecretPropagationList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/addonsmgmt/v1/addon_secret_propagation_type_json.go b/addonsmgmt/v1/addon_secret_propagation_type_json.go index f04b9a0e7..d23fc0384 100644 --- a/addonsmgmt/v1/addon_secret_propagation_type_json.go +++ b/addonsmgmt/v1/addon_secret_propagation_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAddonSecretPropagation writes a value of the 'addon_secret_propagation' type to the given writer. func MarshalAddonSecretPropagation(object *AddonSecretPropagation, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonSecretPropagation(object, stream) + WriteAddonSecretPropagation(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAddonSecretPropagation(object *AddonSecretPropagation, writer io.Wri return stream.Error } -// writeAddonSecretPropagation writes a value of the 'addon_secret_propagation' type to the given stream. -func writeAddonSecretPropagation(object *AddonSecretPropagation, stream *jsoniter.Stream) { +// WriteAddonSecretPropagation writes a value of the 'addon_secret_propagation' type to the given stream. +func WriteAddonSecretPropagation(object *AddonSecretPropagation, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -87,13 +87,13 @@ func UnmarshalAddonSecretPropagation(source interface{}) (object *AddonSecretPro if err != nil { return } - object = readAddonSecretPropagation(iterator) + object = ReadAddonSecretPropagation(iterator) err = iterator.Error return } -// readAddonSecretPropagation reads a value of the 'addon_secret_propagation' type from the given iterator. -func readAddonSecretPropagation(iterator *jsoniter.Iterator) *AddonSecretPropagation { +// ReadAddonSecretPropagation reads a value of the 'addon_secret_propagation' type from the given iterator. +func ReadAddonSecretPropagation(iterator *jsoniter.Iterator) *AddonSecretPropagation { object := &AddonSecretPropagation{} for { field := iterator.ReadObject() diff --git a/addonsmgmt/v1/addon_status_condition_list_type_json.go b/addonsmgmt/v1/addon_status_condition_list_type_json.go index 8baa2e199..2be0ff15e 100644 --- a/addonsmgmt/v1/addon_status_condition_list_type_json.go +++ b/addonsmgmt/v1/addon_status_condition_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddonStatusConditionList(list []*AddonStatusCondition, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonStatusConditionList(list, stream) + WriteAddonStatusConditionList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddonStatusConditionList(list []*AddonStatusCondition, writer io.Wri return stream.Error } -// writeAddonStatusConditionList writes a list of value of the 'addon_status_condition' type to +// WriteAddonStatusConditionList writes a list of value of the 'addon_status_condition' type to // the given stream. -func writeAddonStatusConditionList(list []*AddonStatusCondition, stream *jsoniter.Stream) { +func WriteAddonStatusConditionList(list []*AddonStatusCondition, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddonStatusCondition(value, stream) + WriteAddonStatusCondition(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddonStatusConditionList(source interface{}) (items []*AddonStatus if err != nil { return } - items = readAddonStatusConditionList(iterator) + items = ReadAddonStatusConditionList(iterator) err = iterator.Error return } -// readAddonStatusConditionList reads list of values of the ”addon_status_condition' type from +// ReadAddonStatusConditionList reads list of values of the ”addon_status_condition' type from // the given iterator. -func readAddonStatusConditionList(iterator *jsoniter.Iterator) []*AddonStatusCondition { +func ReadAddonStatusConditionList(iterator *jsoniter.Iterator) []*AddonStatusCondition { list := []*AddonStatusCondition{} for iterator.ReadArray() { - item := readAddonStatusCondition(iterator) + item := ReadAddonStatusCondition(iterator) list = append(list, item) } return list diff --git a/addonsmgmt/v1/addon_status_condition_type.go b/addonsmgmt/v1/addon_status_condition_type.go index 0f16cf6c3..a9450d7dc 100644 --- a/addonsmgmt/v1/addon_status_condition_type.go +++ b/addonsmgmt/v1/addon_status_condition_type.go @@ -154,6 +154,29 @@ func (l *AddonStatusConditionList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddonStatusConditionList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddonStatusConditionList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddonStatusConditionList) SetItems(items []*AddonStatusCondition) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddonStatusConditionList) Items() []*AddonStatusCondition { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddonStatusConditionList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/addonsmgmt/v1/addon_status_condition_type_json.go b/addonsmgmt/v1/addon_status_condition_type_json.go index b0134f2bc..52ff24991 100644 --- a/addonsmgmt/v1/addon_status_condition_type_json.go +++ b/addonsmgmt/v1/addon_status_condition_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAddonStatusCondition writes a value of the 'addon_status_condition' type to the given writer. func MarshalAddonStatusCondition(object *AddonStatusCondition, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonStatusCondition(object, stream) + WriteAddonStatusCondition(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAddonStatusCondition(object *AddonStatusCondition, writer io.Writer) return stream.Error } -// writeAddonStatusCondition writes a value of the 'addon_status_condition' type to the given stream. -func writeAddonStatusCondition(object *AddonStatusCondition, stream *jsoniter.Stream) { +// WriteAddonStatusCondition writes a value of the 'addon_status_condition' type to the given stream. +func WriteAddonStatusCondition(object *AddonStatusCondition, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -87,13 +87,13 @@ func UnmarshalAddonStatusCondition(source interface{}) (object *AddonStatusCondi if err != nil { return } - object = readAddonStatusCondition(iterator) + object = ReadAddonStatusCondition(iterator) err = iterator.Error return } -// readAddonStatusCondition reads a value of the 'addon_status_condition' type from the given iterator. -func readAddonStatusCondition(iterator *jsoniter.Iterator) *AddonStatusCondition { +// ReadAddonStatusCondition reads a value of the 'addon_status_condition' type from the given iterator. +func ReadAddonStatusCondition(iterator *jsoniter.Iterator) *AddonStatusCondition { object := &AddonStatusCondition{} for { field := iterator.ReadObject() diff --git a/addonsmgmt/v1/addon_status_condition_type_list_type_json.go b/addonsmgmt/v1/addon_status_condition_type_list_type_json.go index ff52af7b5..d39b448c4 100644 --- a/addonsmgmt/v1/addon_status_condition_type_list_type_json.go +++ b/addonsmgmt/v1/addon_status_condition_type_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddonStatusConditionTypeList(list []AddonStatusConditionType, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonStatusConditionTypeList(list, stream) + WriteAddonStatusConditionTypeList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalAddonStatusConditionTypeList(list []AddonStatusConditionType, writer return stream.Error } -// writeAddonStatusConditionTypeList writes a list of value of the 'addon_status_condition_type' type to +// WriteAddonStatusConditionTypeList writes a list of value of the 'addon_status_condition_type' type to // the given stream. -func writeAddonStatusConditionTypeList(list []AddonStatusConditionType, stream *jsoniter.Stream) { +func WriteAddonStatusConditionTypeList(list []AddonStatusConditionType, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalAddonStatusConditionTypeList(source interface{}) (items []AddonSta if err != nil { return } - items = readAddonStatusConditionTypeList(iterator) + items = ReadAddonStatusConditionTypeList(iterator) err = iterator.Error return } -// readAddonStatusConditionTypeList reads list of values of the ”addon_status_condition_type' type from +// ReadAddonStatusConditionTypeList reads list of values of the ”addon_status_condition_type' type from // the given iterator. -func readAddonStatusConditionTypeList(iterator *jsoniter.Iterator) []AddonStatusConditionType { +func ReadAddonStatusConditionTypeList(iterator *jsoniter.Iterator) []AddonStatusConditionType { list := []AddonStatusConditionType{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/addonsmgmt/v1/addon_status_condition_value_list_type_json.go b/addonsmgmt/v1/addon_status_condition_value_list_type_json.go index 5173bf1e2..151bc9878 100644 --- a/addonsmgmt/v1/addon_status_condition_value_list_type_json.go +++ b/addonsmgmt/v1/addon_status_condition_value_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddonStatusConditionValueList(list []AddonStatusConditionValue, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonStatusConditionValueList(list, stream) + WriteAddonStatusConditionValueList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalAddonStatusConditionValueList(list []AddonStatusConditionValue, writ return stream.Error } -// writeAddonStatusConditionValueList writes a list of value of the 'addon_status_condition_value' type to +// WriteAddonStatusConditionValueList writes a list of value of the 'addon_status_condition_value' type to // the given stream. -func writeAddonStatusConditionValueList(list []AddonStatusConditionValue, stream *jsoniter.Stream) { +func WriteAddonStatusConditionValueList(list []AddonStatusConditionValue, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalAddonStatusConditionValueList(source interface{}) (items []AddonSt if err != nil { return } - items = readAddonStatusConditionValueList(iterator) + items = ReadAddonStatusConditionValueList(iterator) err = iterator.Error return } -// readAddonStatusConditionValueList reads list of values of the ”addon_status_condition_value' type from +// ReadAddonStatusConditionValueList reads list of values of the ”addon_status_condition_value' type from // the given iterator. -func readAddonStatusConditionValueList(iterator *jsoniter.Iterator) []AddonStatusConditionValue { +func ReadAddonStatusConditionValueList(iterator *jsoniter.Iterator) []AddonStatusConditionValue { list := []AddonStatusConditionValue{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/addonsmgmt/v1/addon_status_list_type_json.go b/addonsmgmt/v1/addon_status_list_type_json.go index 5c3a809b5..dd67908b9 100644 --- a/addonsmgmt/v1/addon_status_list_type_json.go +++ b/addonsmgmt/v1/addon_status_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddonStatusList(list []*AddonStatus, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonStatusList(list, stream) + WriteAddonStatusList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddonStatusList(list []*AddonStatus, writer io.Writer) error { return stream.Error } -// writeAddonStatusList writes a list of value of the 'addon_status' type to +// WriteAddonStatusList writes a list of value of the 'addon_status' type to // the given stream. -func writeAddonStatusList(list []*AddonStatus, stream *jsoniter.Stream) { +func WriteAddonStatusList(list []*AddonStatus, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddonStatus(value, stream) + WriteAddonStatus(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddonStatusList(source interface{}) (items []*AddonStatus, err err if err != nil { return } - items = readAddonStatusList(iterator) + items = ReadAddonStatusList(iterator) err = iterator.Error return } -// readAddonStatusList reads list of values of the ”addon_status' type from +// ReadAddonStatusList reads list of values of the ”addon_status' type from // the given iterator. -func readAddonStatusList(iterator *jsoniter.Iterator) []*AddonStatus { +func ReadAddonStatusList(iterator *jsoniter.Iterator) []*AddonStatus { list := []*AddonStatus{} for iterator.ReadArray() { - item := readAddonStatus(iterator) + item := ReadAddonStatus(iterator) list = append(list, item) } return list diff --git a/addonsmgmt/v1/addon_status_type.go b/addonsmgmt/v1/addon_status_type.go index 37128b85c..19f7d3f32 100644 --- a/addonsmgmt/v1/addon_status_type.go +++ b/addonsmgmt/v1/addon_status_type.go @@ -55,7 +55,7 @@ func (o *AddonStatus) Kind() string { return AddonStatusKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *AddonStatus) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -254,6 +254,29 @@ func (l *AddonStatusList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddonStatusList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddonStatusList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddonStatusList) SetItems(items []*AddonStatus) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddonStatusList) Items() []*AddonStatus { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddonStatusList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/addonsmgmt/v1/addon_status_type_json.go b/addonsmgmt/v1/addon_status_type_json.go index 16bbddf58..f05b51739 100644 --- a/addonsmgmt/v1/addon_status_type_json.go +++ b/addonsmgmt/v1/addon_status_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAddonStatus writes a value of the 'addon_status' type to the given writer. func MarshalAddonStatus(object *AddonStatus, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonStatus(object, stream) + WriteAddonStatus(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAddonStatus(object *AddonStatus, writer io.Writer) error { return stream.Error } -// writeAddonStatus writes a value of the 'addon_status' type to the given stream. -func writeAddonStatus(object *AddonStatus, stream *jsoniter.Stream) { +// WriteAddonStatus writes a value of the 'addon_status' type to the given stream. +func WriteAddonStatus(object *AddonStatus, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -89,7 +89,7 @@ func writeAddonStatus(object *AddonStatus, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("status_conditions") - writeAddonStatusConditionList(object.statusConditions, stream) + WriteAddonStatusConditionList(object.statusConditions, stream) count++ } present_ = object.bitmap_&64 != 0 @@ -110,13 +110,13 @@ func UnmarshalAddonStatus(source interface{}) (object *AddonStatus, err error) { if err != nil { return } - object = readAddonStatus(iterator) + object = ReadAddonStatus(iterator) err = iterator.Error return } -// readAddonStatus reads a value of the 'addon_status' type from the given iterator. -func readAddonStatus(iterator *jsoniter.Iterator) *AddonStatus { +// ReadAddonStatus reads a value of the 'addon_status' type from the given iterator. +func ReadAddonStatus(iterator *jsoniter.Iterator) *AddonStatus { object := &AddonStatus{} for { field := iterator.ReadObject() @@ -144,7 +144,7 @@ func readAddonStatus(iterator *jsoniter.Iterator) *AddonStatus { object.correlationID = value object.bitmap_ |= 16 case "status_conditions": - value := readAddonStatusConditionList(iterator) + value := ReadAddonStatusConditionList(iterator) object.statusConditions = value object.bitmap_ |= 32 case "version": diff --git a/addonsmgmt/v1/addon_statuses_resource_json.go b/addonsmgmt/v1/addon_statuses_resource_json.go index 99a14606a..ece26ce75 100644 --- a/addonsmgmt/v1/addon_statuses_resource_json.go +++ b/addonsmgmt/v1/addon_statuses_resource_json.go @@ -57,7 +57,7 @@ func readAddonStatusesListResponse(response *AddonStatusesListResponse, reader i value := iterator.ReadInt() response.total = &value case "items": - items := readAddonStatusList(iterator) + items := ReadAddonStatusList(iterator) response.items = &AddonStatusList{ items: items, } diff --git a/addonsmgmt/v1/addon_sub_operator_list_type_json.go b/addonsmgmt/v1/addon_sub_operator_list_type_json.go index 14231039e..8cc769c03 100644 --- a/addonsmgmt/v1/addon_sub_operator_list_type_json.go +++ b/addonsmgmt/v1/addon_sub_operator_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddonSubOperatorList(list []*AddonSubOperator, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonSubOperatorList(list, stream) + WriteAddonSubOperatorList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddonSubOperatorList(list []*AddonSubOperator, writer io.Writer) err return stream.Error } -// writeAddonSubOperatorList writes a list of value of the 'addon_sub_operator' type to +// WriteAddonSubOperatorList writes a list of value of the 'addon_sub_operator' type to // the given stream. -func writeAddonSubOperatorList(list []*AddonSubOperator, stream *jsoniter.Stream) { +func WriteAddonSubOperatorList(list []*AddonSubOperator, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddonSubOperator(value, stream) + WriteAddonSubOperator(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddonSubOperatorList(source interface{}) (items []*AddonSubOperato if err != nil { return } - items = readAddonSubOperatorList(iterator) + items = ReadAddonSubOperatorList(iterator) err = iterator.Error return } -// readAddonSubOperatorList reads list of values of the ”addon_sub_operator' type from +// ReadAddonSubOperatorList reads list of values of the ”addon_sub_operator' type from // the given iterator. -func readAddonSubOperatorList(iterator *jsoniter.Iterator) []*AddonSubOperator { +func ReadAddonSubOperatorList(iterator *jsoniter.Iterator) []*AddonSubOperator { list := []*AddonSubOperator{} for iterator.ReadArray() { - item := readAddonSubOperator(iterator) + item := ReadAddonSubOperator(iterator) list = append(list, item) } return list diff --git a/addonsmgmt/v1/addon_sub_operator_type.go b/addonsmgmt/v1/addon_sub_operator_type.go index 346c6d285..51bcc79d7 100644 --- a/addonsmgmt/v1/addon_sub_operator_type.go +++ b/addonsmgmt/v1/addon_sub_operator_type.go @@ -151,6 +151,29 @@ func (l *AddonSubOperatorList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddonSubOperatorList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddonSubOperatorList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddonSubOperatorList) SetItems(items []*AddonSubOperator) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddonSubOperatorList) Items() []*AddonSubOperator { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddonSubOperatorList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/addonsmgmt/v1/addon_sub_operator_type_json.go b/addonsmgmt/v1/addon_sub_operator_type_json.go index 419fefa15..0ceaa2e9a 100644 --- a/addonsmgmt/v1/addon_sub_operator_type_json.go +++ b/addonsmgmt/v1/addon_sub_operator_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAddonSubOperator writes a value of the 'addon_sub_operator' type to the given writer. func MarshalAddonSubOperator(object *AddonSubOperator, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonSubOperator(object, stream) + WriteAddonSubOperator(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAddonSubOperator(object *AddonSubOperator, writer io.Writer) error { return stream.Error } -// writeAddonSubOperator writes a value of the 'addon_sub_operator' type to the given stream. -func writeAddonSubOperator(object *AddonSubOperator, stream *jsoniter.Stream) { +// WriteAddonSubOperator writes a value of the 'addon_sub_operator' type to the given stream. +func WriteAddonSubOperator(object *AddonSubOperator, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeAddonSubOperator(object *AddonSubOperator, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("addon") - writeAddon(object.addon, stream) + WriteAddon(object.addon, stream) count++ } present_ = object.bitmap_&2 != 0 @@ -87,13 +87,13 @@ func UnmarshalAddonSubOperator(source interface{}) (object *AddonSubOperator, er if err != nil { return } - object = readAddonSubOperator(iterator) + object = ReadAddonSubOperator(iterator) err = iterator.Error return } -// readAddonSubOperator reads a value of the 'addon_sub_operator' type from the given iterator. -func readAddonSubOperator(iterator *jsoniter.Iterator) *AddonSubOperator { +// ReadAddonSubOperator reads a value of the 'addon_sub_operator' type from the given iterator. +func ReadAddonSubOperator(iterator *jsoniter.Iterator) *AddonSubOperator { object := &AddonSubOperator{} for { field := iterator.ReadObject() @@ -102,7 +102,7 @@ func readAddonSubOperator(iterator *jsoniter.Iterator) *AddonSubOperator { } switch field { case "addon": - value := readAddon(iterator) + value := ReadAddon(iterator) object.addon = value object.bitmap_ |= 1 case "enabled": diff --git a/addonsmgmt/v1/addon_type.go b/addonsmgmt/v1/addon_type.go index 1fd5e6a51..de15d3712 100644 --- a/addonsmgmt/v1/addon_type.go +++ b/addonsmgmt/v1/addon_type.go @@ -74,7 +74,7 @@ func (o *Addon) Kind() string { return AddonKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Addon) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -710,6 +710,29 @@ func (l *AddonList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddonList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddonList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddonList) SetItems(items []*Addon) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddonList) Items() []*Addon { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddonList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/addonsmgmt/v1/addon_type_json.go b/addonsmgmt/v1/addon_type_json.go index df4f95a63..66352dcbd 100644 --- a/addonsmgmt/v1/addon_type_json.go +++ b/addonsmgmt/v1/addon_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalAddon writes a value of the 'addon' type to the given writer. func MarshalAddon(object *Addon, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddon(object, stream) + WriteAddon(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalAddon(object *Addon, writer io.Writer) error { return stream.Error } -// writeAddon writes a value of the 'addon' type to the given stream. -func writeAddon(object *Addon, stream *jsoniter.Stream) { +// WriteAddon writes a value of the 'addon' type to the given stream. +func WriteAddon(object *Addon, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -130,7 +130,7 @@ func writeAddon(object *Addon, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("config") - writeAddonConfig(object.config, stream) + WriteAddonConfig(object.config, stream) count++ } present_ = object.bitmap_&64 != 0 && object.credentialsRequests != nil @@ -139,7 +139,7 @@ func writeAddon(object *Addon, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("credentials_requests") - writeCredentialRequestList(object.credentialsRequests, stream) + WriteCredentialRequestList(object.credentialsRequests, stream) count++ } present_ = object.bitmap_&128 != 0 @@ -238,7 +238,7 @@ func writeAddon(object *Addon, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("namespaces") - writeAddonNamespaceList(object.namespaces, stream) + WriteAddonNamespaceList(object.namespaces, stream) count++ } present_ = object.bitmap_&262144 != 0 @@ -258,7 +258,7 @@ func writeAddon(object *Addon, stream *jsoniter.Stream) { stream.WriteObjectField("parameters") stream.WriteObjectStart() stream.WriteObjectField("items") - writeAddonParameterList(object.parameters.items, stream) + WriteAddonParameterList(object.parameters.Items(), stream) stream.WriteObjectEnd() count++ } @@ -268,7 +268,7 @@ func writeAddon(object *Addon, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("requirements") - writeAddonRequirementList(object.requirements, stream) + WriteAddonRequirementList(object.requirements, stream) count++ } present_ = object.bitmap_&2097152 != 0 @@ -295,7 +295,7 @@ func writeAddon(object *Addon, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("sub_operators") - writeAddonSubOperatorList(object.subOperators, stream) + WriteAddonSubOperatorList(object.subOperators, stream) count++ } present_ = object.bitmap_&16777216 != 0 @@ -313,7 +313,7 @@ func writeAddon(object *Addon, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("version") - writeAddonVersion(object.version, stream) + WriteAddonVersion(object.version, stream) } stream.WriteObjectEnd() } @@ -325,13 +325,13 @@ func UnmarshalAddon(source interface{}) (object *Addon, err error) { if err != nil { return } - object = readAddon(iterator) + object = ReadAddon(iterator) err = iterator.Error return } -// readAddon reads a value of the 'addon' type from the given iterator. -func readAddon(iterator *jsoniter.Iterator) *Addon { +// ReadAddon reads a value of the 'addon' type from the given iterator. +func ReadAddon(iterator *jsoniter.Iterator) *Addon { object := &Addon{} for { field := iterator.ReadObject() @@ -375,11 +375,11 @@ func readAddon(iterator *jsoniter.Iterator) *Addon { object.commonLabels = value object.bitmap_ |= 16 case "config": - value := readAddonConfig(iterator) + value := ReadAddonConfig(iterator) object.config = value object.bitmap_ |= 32 case "credentials_requests": - value := readCredentialRequestList(iterator) + value := ReadCredentialRequestList(iterator) object.credentialsRequests = value object.bitmap_ |= 64 case "description": @@ -424,7 +424,7 @@ func readAddon(iterator *jsoniter.Iterator) *Addon { object.name = value object.bitmap_ |= 65536 case "namespaces": - value := readAddonNamespaceList(iterator) + value := ReadAddonNamespaceList(iterator) object.namespaces = value object.bitmap_ |= 131072 case "operator_name": @@ -441,11 +441,11 @@ func readAddon(iterator *jsoniter.Iterator) *Addon { switch field { case "kind": text := iterator.ReadString() - value.link = text == AddonParameterListLinkKind + value.SetLink(text == AddonParameterListLinkKind) case "href": - value.href = iterator.ReadString() + value.SetHREF(iterator.ReadString()) case "items": - value.items = readAddonParameterList(iterator) + value.SetItems(ReadAddonParameterList(iterator)) default: iterator.ReadAny() } @@ -453,7 +453,7 @@ func readAddon(iterator *jsoniter.Iterator) *Addon { object.parameters = value object.bitmap_ |= 524288 case "requirements": - value := readAddonRequirementList(iterator) + value := ReadAddonRequirementList(iterator) object.requirements = value object.bitmap_ |= 1048576 case "resource_cost": @@ -465,7 +465,7 @@ func readAddon(iterator *jsoniter.Iterator) *Addon { object.resourceName = value object.bitmap_ |= 4194304 case "sub_operators": - value := readAddonSubOperatorList(iterator) + value := ReadAddonSubOperatorList(iterator) object.subOperators = value object.bitmap_ |= 8388608 case "target_namespace": @@ -473,7 +473,7 @@ func readAddon(iterator *jsoniter.Iterator) *Addon { object.targetNamespace = value object.bitmap_ |= 16777216 case "version": - value := readAddonVersion(iterator) + value := ReadAddonVersion(iterator) object.version = value object.bitmap_ |= 33554432 default: diff --git a/addonsmgmt/v1/addon_version_list_type_json.go b/addonsmgmt/v1/addon_version_list_type_json.go index cc205de58..b66bd1a88 100644 --- a/addonsmgmt/v1/addon_version_list_type_json.go +++ b/addonsmgmt/v1/addon_version_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddonVersionList(list []*AddonVersion, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonVersionList(list, stream) + WriteAddonVersionList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddonVersionList(list []*AddonVersion, writer io.Writer) error { return stream.Error } -// writeAddonVersionList writes a list of value of the 'addon_version' type to +// WriteAddonVersionList writes a list of value of the 'addon_version' type to // the given stream. -func writeAddonVersionList(list []*AddonVersion, stream *jsoniter.Stream) { +func WriteAddonVersionList(list []*AddonVersion, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddonVersion(value, stream) + WriteAddonVersion(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddonVersionList(source interface{}) (items []*AddonVersion, err e if err != nil { return } - items = readAddonVersionList(iterator) + items = ReadAddonVersionList(iterator) err = iterator.Error return } -// readAddonVersionList reads list of values of the ”addon_version' type from +// ReadAddonVersionList reads list of values of the ”addon_version' type from // the given iterator. -func readAddonVersionList(iterator *jsoniter.Iterator) []*AddonVersion { +func ReadAddonVersionList(iterator *jsoniter.Iterator) []*AddonVersion { list := []*AddonVersion{} for iterator.ReadArray() { - item := readAddonVersion(iterator) + item := ReadAddonVersion(iterator) list = append(list, item) } return list diff --git a/addonsmgmt/v1/addon_version_type.go b/addonsmgmt/v1/addon_version_type.go index 84739422a..84fde4b29 100644 --- a/addonsmgmt/v1/addon_version_type.go +++ b/addonsmgmt/v1/addon_version_type.go @@ -65,7 +65,7 @@ func (o *AddonVersion) Kind() string { return AddonVersionKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *AddonVersion) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -494,6 +494,29 @@ func (l *AddonVersionList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddonVersionList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddonVersionList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddonVersionList) SetItems(items []*AddonVersion) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddonVersionList) Items() []*AddonVersion { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddonVersionList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/addonsmgmt/v1/addon_version_type_json.go b/addonsmgmt/v1/addon_version_type_json.go index c9b160340..5911b7ce3 100644 --- a/addonsmgmt/v1/addon_version_type_json.go +++ b/addonsmgmt/v1/addon_version_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAddonVersion writes a value of the 'addon_version' type to the given writer. func MarshalAddonVersion(object *AddonVersion, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonVersion(object, stream) + WriteAddonVersion(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAddonVersion(object *AddonVersion, writer io.Writer) error { return stream.Error } -// writeAddonVersion writes a value of the 'addon_version' type to the given stream. -func writeAddonVersion(object *AddonVersion, stream *jsoniter.Stream) { +// WriteAddonVersion writes a value of the 'addon_version' type to the given stream. +func WriteAddonVersion(object *AddonVersion, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -71,7 +71,7 @@ func writeAddonVersion(object *AddonVersion, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("additional_catalog_sources") - writeAdditionalCatalogSourceList(object.additionalCatalogSources, stream) + WriteAdditionalCatalogSourceList(object.additionalCatalogSources, stream) count++ } present_ = object.bitmap_&16 != 0 && object.availableUpgrades != nil @@ -80,7 +80,7 @@ func writeAddonVersion(object *AddonVersion, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("available_upgrades") - writeStringList(object.availableUpgrades, stream) + WriteStringList(object.availableUpgrades, stream) count++ } present_ = object.bitmap_&32 != 0 @@ -98,7 +98,7 @@ func writeAddonVersion(object *AddonVersion, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("config") - writeAddonConfig(object.config, stream) + WriteAddonConfig(object.config, stream) count++ } present_ = object.bitmap_&128 != 0 @@ -116,7 +116,7 @@ func writeAddonVersion(object *AddonVersion, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("metrics_federation") - writeMetricsFederation(object.metricsFederation, stream) + WriteMetricsFederation(object.metricsFederation, stream) count++ } present_ = object.bitmap_&512 != 0 && object.monitoringStack != nil @@ -125,7 +125,7 @@ func writeAddonVersion(object *AddonVersion, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("monitoring_stack") - writeMonitoringStack(object.monitoringStack, stream) + WriteMonitoringStack(object.monitoringStack, stream) count++ } present_ = object.bitmap_&1024 != 0 @@ -143,7 +143,7 @@ func writeAddonVersion(object *AddonVersion, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("parameters") - writeAddonParameters(object.parameters, stream) + WriteAddonParameters(object.parameters, stream) count++ } present_ = object.bitmap_&4096 != 0 @@ -161,7 +161,7 @@ func writeAddonVersion(object *AddonVersion, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("requirements") - writeAddonRequirementList(object.requirements, stream) + WriteAddonRequirementList(object.requirements, stream) count++ } present_ = object.bitmap_&16384 != 0 @@ -179,7 +179,7 @@ func writeAddonVersion(object *AddonVersion, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("sub_operators") - writeAddonSubOperatorList(object.subOperators, stream) + WriteAddonSubOperatorList(object.subOperators, stream) count++ } present_ = object.bitmap_&65536 != 0 @@ -200,13 +200,13 @@ func UnmarshalAddonVersion(source interface{}) (object *AddonVersion, err error) if err != nil { return } - object = readAddonVersion(iterator) + object = ReadAddonVersion(iterator) err = iterator.Error return } -// readAddonVersion reads a value of the 'addon_version' type from the given iterator. -func readAddonVersion(iterator *jsoniter.Iterator) *AddonVersion { +// ReadAddonVersion reads a value of the 'addon_version' type from the given iterator. +func ReadAddonVersion(iterator *jsoniter.Iterator) *AddonVersion { object := &AddonVersion{} for { field := iterator.ReadObject() @@ -226,11 +226,11 @@ func readAddonVersion(iterator *jsoniter.Iterator) *AddonVersion { object.href = iterator.ReadString() object.bitmap_ |= 4 case "additional_catalog_sources": - value := readAdditionalCatalogSourceList(iterator) + value := ReadAdditionalCatalogSourceList(iterator) object.additionalCatalogSources = value object.bitmap_ |= 8 case "available_upgrades": - value := readStringList(iterator) + value := ReadStringList(iterator) object.availableUpgrades = value object.bitmap_ |= 16 case "channel": @@ -238,7 +238,7 @@ func readAddonVersion(iterator *jsoniter.Iterator) *AddonVersion { object.channel = value object.bitmap_ |= 32 case "config": - value := readAddonConfig(iterator) + value := ReadAddonConfig(iterator) object.config = value object.bitmap_ |= 64 case "enabled": @@ -246,11 +246,11 @@ func readAddonVersion(iterator *jsoniter.Iterator) *AddonVersion { object.enabled = value object.bitmap_ |= 128 case "metrics_federation": - value := readMetricsFederation(iterator) + value := ReadMetricsFederation(iterator) object.metricsFederation = value object.bitmap_ |= 256 case "monitoring_stack": - value := readMonitoringStack(iterator) + value := ReadMonitoringStack(iterator) object.monitoringStack = value object.bitmap_ |= 512 case "package_image": @@ -258,7 +258,7 @@ func readAddonVersion(iterator *jsoniter.Iterator) *AddonVersion { object.packageImage = value object.bitmap_ |= 1024 case "parameters": - value := readAddonParameters(iterator) + value := ReadAddonParameters(iterator) object.parameters = value object.bitmap_ |= 2048 case "pull_secret_name": @@ -266,7 +266,7 @@ func readAddonVersion(iterator *jsoniter.Iterator) *AddonVersion { object.pullSecretName = value object.bitmap_ |= 4096 case "requirements": - value := readAddonRequirementList(iterator) + value := ReadAddonRequirementList(iterator) object.requirements = value object.bitmap_ |= 8192 case "source_image": @@ -274,7 +274,7 @@ func readAddonVersion(iterator *jsoniter.Iterator) *AddonVersion { object.sourceImage = value object.bitmap_ |= 16384 case "sub_operators": - value := readAddonSubOperatorList(iterator) + value := ReadAddonSubOperatorList(iterator) object.subOperators = value object.bitmap_ |= 32768 case "upgrade_plans_created": diff --git a/addonsmgmt/v1/addon_versions_resource_json.go b/addonsmgmt/v1/addon_versions_resource_json.go index 7431d2dd9..c836eb850 100644 --- a/addonsmgmt/v1/addon_versions_resource_json.go +++ b/addonsmgmt/v1/addon_versions_resource_json.go @@ -57,7 +57,7 @@ func readAddonVersionsListResponse(response *AddonVersionsListResponse, reader i value := iterator.ReadInt() response.total = &value case "items": - items := readAddonVersionList(iterator) + items := ReadAddonVersionList(iterator) response.items = &AddonVersionList{ items: items, } diff --git a/addonsmgmt/v1/addons_resource_json.go b/addonsmgmt/v1/addons_resource_json.go index a791fc052..2b1f6ca3b 100644 --- a/addonsmgmt/v1/addons_resource_json.go +++ b/addonsmgmt/v1/addons_resource_json.go @@ -57,7 +57,7 @@ func readAddonsListResponse(response *AddonsListResponse, reader io.Reader) erro value := iterator.ReadInt() response.total = &value case "items": - items := readAddonList(iterator) + items := ReadAddonList(iterator) response.items = &AddonList{ items: items, } diff --git a/addonsmgmt/v1/billing_model_list_type_json.go b/addonsmgmt/v1/billing_model_list_type_json.go index 2968c6429..be4ed71c1 100644 --- a/addonsmgmt/v1/billing_model_list_type_json.go +++ b/addonsmgmt/v1/billing_model_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalBillingModelList(list []BillingModel, writer io.Writer) error { stream := helpers.NewStream(writer) - writeBillingModelList(list, stream) + WriteBillingModelList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalBillingModelList(list []BillingModel, writer io.Writer) error { return stream.Error } -// writeBillingModelList writes a list of value of the 'billing_model' type to +// WriteBillingModelList writes a list of value of the 'billing_model' type to // the given stream. -func writeBillingModelList(list []BillingModel, stream *jsoniter.Stream) { +func WriteBillingModelList(list []BillingModel, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalBillingModelList(source interface{}) (items []BillingModel, err er if err != nil { return } - items = readBillingModelList(iterator) + items = ReadBillingModelList(iterator) err = iterator.Error return } -// readBillingModelList reads list of values of the ”billing_model' type from +// ReadBillingModelList reads list of values of the ”billing_model' type from // the given iterator. -func readBillingModelList(iterator *jsoniter.Iterator) []BillingModel { +func ReadBillingModelList(iterator *jsoniter.Iterator) []BillingModel { list := []BillingModel{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/addonsmgmt/v1/boolean_list_type_json.go b/addonsmgmt/v1/boolean_list_type_json.go index 3bd22ad51..5d11606f1 100644 --- a/addonsmgmt/v1/boolean_list_type_json.go +++ b/addonsmgmt/v1/boolean_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalBooleanList(list []bool, writer io.Writer) error { stream := helpers.NewStream(writer) - writeBooleanList(list, stream) + WriteBooleanList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalBooleanList(list []bool, writer io.Writer) error { return stream.Error } -// writeBooleanList writes a list of value of the 'boolean' type to +// WriteBooleanList writes a list of value of the 'boolean' type to // the given stream. -func writeBooleanList(list []bool, stream *jsoniter.Stream) { +func WriteBooleanList(list []bool, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalBooleanList(source interface{}) (items []bool, err error) { if err != nil { return } - items = readBooleanList(iterator) + items = ReadBooleanList(iterator) err = iterator.Error return } -// readBooleanList reads list of values of the ”boolean' type from +// ReadBooleanList reads list of values of the ”boolean' type from // the given iterator. -func readBooleanList(iterator *jsoniter.Iterator) []bool { +func ReadBooleanList(iterator *jsoniter.Iterator) []bool { list := []bool{} for iterator.ReadArray() { item := iterator.ReadBool() diff --git a/addonsmgmt/v1/credential_request_list_type_json.go b/addonsmgmt/v1/credential_request_list_type_json.go index bcce265c0..3aab8633a 100644 --- a/addonsmgmt/v1/credential_request_list_type_json.go +++ b/addonsmgmt/v1/credential_request_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalCredentialRequestList(list []*CredentialRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCredentialRequestList(list, stream) + WriteCredentialRequestList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalCredentialRequestList(list []*CredentialRequest, writer io.Writer) e return stream.Error } -// writeCredentialRequestList writes a list of value of the 'credential_request' type to +// WriteCredentialRequestList writes a list of value of the 'credential_request' type to // the given stream. -func writeCredentialRequestList(list []*CredentialRequest, stream *jsoniter.Stream) { +func WriteCredentialRequestList(list []*CredentialRequest, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeCredentialRequest(value, stream) + WriteCredentialRequest(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalCredentialRequestList(source interface{}) (items []*CredentialRequ if err != nil { return } - items = readCredentialRequestList(iterator) + items = ReadCredentialRequestList(iterator) err = iterator.Error return } -// readCredentialRequestList reads list of values of the ”credential_request' type from +// ReadCredentialRequestList reads list of values of the ”credential_request' type from // the given iterator. -func readCredentialRequestList(iterator *jsoniter.Iterator) []*CredentialRequest { +func ReadCredentialRequestList(iterator *jsoniter.Iterator) []*CredentialRequest { list := []*CredentialRequest{} for iterator.ReadArray() { - item := readCredentialRequest(iterator) + item := ReadCredentialRequest(iterator) list = append(list, item) } return list diff --git a/addonsmgmt/v1/credential_request_type.go b/addonsmgmt/v1/credential_request_type.go index 97c52416b..5ed52bc10 100644 --- a/addonsmgmt/v1/credential_request_type.go +++ b/addonsmgmt/v1/credential_request_type.go @@ -154,6 +154,29 @@ func (l *CredentialRequestList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *CredentialRequestList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *CredentialRequestList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *CredentialRequestList) SetItems(items []*CredentialRequest) { + l.items = items +} + +// Items returns the items of the list. +func (l *CredentialRequestList) Items() []*CredentialRequest { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *CredentialRequestList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/addonsmgmt/v1/credential_request_type_json.go b/addonsmgmt/v1/credential_request_type_json.go index 3740507b1..2843187ed 100644 --- a/addonsmgmt/v1/credential_request_type_json.go +++ b/addonsmgmt/v1/credential_request_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalCredentialRequest writes a value of the 'credential_request' type to the given writer. func MarshalCredentialRequest(object *CredentialRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCredentialRequest(object, stream) + WriteCredentialRequest(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalCredentialRequest(object *CredentialRequest, writer io.Writer) error return stream.Error } -// writeCredentialRequest writes a value of the 'credential_request' type to the given stream. -func writeCredentialRequest(object *CredentialRequest, stream *jsoniter.Stream) { +// WriteCredentialRequest writes a value of the 'credential_request' type to the given stream. +func WriteCredentialRequest(object *CredentialRequest, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -66,7 +66,7 @@ func writeCredentialRequest(object *CredentialRequest, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("policy_permissions") - writeStringList(object.policyPermissions, stream) + WriteStringList(object.policyPermissions, stream) count++ } present_ = object.bitmap_&8 != 0 @@ -87,13 +87,13 @@ func UnmarshalCredentialRequest(source interface{}) (object *CredentialRequest, if err != nil { return } - object = readCredentialRequest(iterator) + object = ReadCredentialRequest(iterator) err = iterator.Error return } -// readCredentialRequest reads a value of the 'credential_request' type from the given iterator. -func readCredentialRequest(iterator *jsoniter.Iterator) *CredentialRequest { +// ReadCredentialRequest reads a value of the 'credential_request' type from the given iterator. +func ReadCredentialRequest(iterator *jsoniter.Iterator) *CredentialRequest { object := &CredentialRequest{} for { field := iterator.ReadObject() @@ -110,7 +110,7 @@ func readCredentialRequest(iterator *jsoniter.Iterator) *CredentialRequest { object.namespace = value object.bitmap_ |= 2 case "policy_permissions": - value := readStringList(iterator) + value := ReadStringList(iterator) object.policyPermissions = value object.bitmap_ |= 4 case "service_account": diff --git a/addonsmgmt/v1/date_list_type_json.go b/addonsmgmt/v1/date_list_type_json.go index 918560a12..7787a2067 100644 --- a/addonsmgmt/v1/date_list_type_json.go +++ b/addonsmgmt/v1/date_list_type_json.go @@ -31,7 +31,7 @@ import ( // the given writer. func MarshalDateList(list []time.Time, writer io.Writer) error { stream := helpers.NewStream(writer) - writeDateList(list, stream) + WriteDateList(list, stream) err := stream.Flush() if err != nil { return err @@ -39,9 +39,9 @@ func MarshalDateList(list []time.Time, writer io.Writer) error { return stream.Error } -// writeDateList writes a list of value of the 'date' type to +// WriteDateList writes a list of value of the 'date' type to // the given stream. -func writeDateList(list []time.Time, stream *jsoniter.Stream) { +func WriteDateList(list []time.Time, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -59,14 +59,14 @@ func UnmarshalDateList(source interface{}) (items []time.Time, err error) { if err != nil { return } - items = readDateList(iterator) + items = ReadDateList(iterator) err = iterator.Error return } -// readDateList reads list of values of the ”date' type from +// ReadDateList reads list of values of the ”date' type from // the given iterator. -func readDateList(iterator *jsoniter.Iterator) []time.Time { +func ReadDateList(iterator *jsoniter.Iterator) []time.Time { list := []time.Time{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/addonsmgmt/v1/float_list_type_json.go b/addonsmgmt/v1/float_list_type_json.go index 65125e9e9..2208cb8ca 100644 --- a/addonsmgmt/v1/float_list_type_json.go +++ b/addonsmgmt/v1/float_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalFloatList(list []float64, writer io.Writer) error { stream := helpers.NewStream(writer) - writeFloatList(list, stream) + WriteFloatList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalFloatList(list []float64, writer io.Writer) error { return stream.Error } -// writeFloatList writes a list of value of the 'float' type to +// WriteFloatList writes a list of value of the 'float' type to // the given stream. -func writeFloatList(list []float64, stream *jsoniter.Stream) { +func WriteFloatList(list []float64, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalFloatList(source interface{}) (items []float64, err error) { if err != nil { return } - items = readFloatList(iterator) + items = ReadFloatList(iterator) err = iterator.Error return } -// readFloatList reads list of values of the ”float' type from +// ReadFloatList reads list of values of the ”float' type from // the given iterator. -func readFloatList(iterator *jsoniter.Iterator) []float64 { +func ReadFloatList(iterator *jsoniter.Iterator) []float64 { list := []float64{} for iterator.ReadArray() { item := iterator.ReadFloat64() diff --git a/addonsmgmt/v1/integer_list_type_json.go b/addonsmgmt/v1/integer_list_type_json.go index 3ca62f6c8..234c3e6cb 100644 --- a/addonsmgmt/v1/integer_list_type_json.go +++ b/addonsmgmt/v1/integer_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalIntegerList(list []int, writer io.Writer) error { stream := helpers.NewStream(writer) - writeIntegerList(list, stream) + WriteIntegerList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalIntegerList(list []int, writer io.Writer) error { return stream.Error } -// writeIntegerList writes a list of value of the 'integer' type to +// WriteIntegerList writes a list of value of the 'integer' type to // the given stream. -func writeIntegerList(list []int, stream *jsoniter.Stream) { +func WriteIntegerList(list []int, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalIntegerList(source interface{}) (items []int, err error) { if err != nil { return } - items = readIntegerList(iterator) + items = ReadIntegerList(iterator) err = iterator.Error return } -// readIntegerList reads list of values of the ”integer' type from +// ReadIntegerList reads list of values of the ”integer' type from // the given iterator. -func readIntegerList(iterator *jsoniter.Iterator) []int { +func ReadIntegerList(iterator *jsoniter.Iterator) []int { list := []int{} for iterator.ReadArray() { item := iterator.ReadInt() diff --git a/addonsmgmt/v1/interface_list_type_json.go b/addonsmgmt/v1/interface_list_type_json.go index ab6b0b4f2..b0768a524 100644 --- a/addonsmgmt/v1/interface_list_type_json.go +++ b/addonsmgmt/v1/interface_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalInterfaceList(list []interface{}, writer io.Writer) error { stream := helpers.NewStream(writer) - writeInterfaceList(list, stream) + WriteInterfaceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalInterfaceList(list []interface{}, writer io.Writer) error { return stream.Error } -// writeInterfaceList writes a list of value of the 'interface' type to +// WriteInterfaceList writes a list of value of the 'interface' type to // the given stream. -func writeInterfaceList(list []interface{}, stream *jsoniter.Stream) { +func WriteInterfaceList(list []interface{}, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalInterfaceList(source interface{}) (items []interface{}, err error) if err != nil { return } - items = readInterfaceList(iterator) + items = ReadInterfaceList(iterator) err = iterator.Error return } -// readInterfaceList reads list of values of the ”interface' type from +// ReadInterfaceList reads list of values of the ”interface' type from // the given iterator. -func readInterfaceList(iterator *jsoniter.Iterator) []interface{} { +func ReadInterfaceList(iterator *jsoniter.Iterator) []interface{} { list := []interface{}{} for iterator.ReadArray() { var item interface{} diff --git a/addonsmgmt/v1/long_list_type_json.go b/addonsmgmt/v1/long_list_type_json.go index c7ff20df1..d5bf3a06d 100644 --- a/addonsmgmt/v1/long_list_type_json.go +++ b/addonsmgmt/v1/long_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalLongList(list []int64, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLongList(list, stream) + WriteLongList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalLongList(list []int64, writer io.Writer) error { return stream.Error } -// writeLongList writes a list of value of the 'long' type to +// WriteLongList writes a list of value of the 'long' type to // the given stream. -func writeLongList(list []int64, stream *jsoniter.Stream) { +func WriteLongList(list []int64, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalLongList(source interface{}) (items []int64, err error) { if err != nil { return } - items = readLongList(iterator) + items = ReadLongList(iterator) err = iterator.Error return } -// readLongList reads list of values of the ”long' type from +// ReadLongList reads list of values of the ”long' type from // the given iterator. -func readLongList(iterator *jsoniter.Iterator) []int64 { +func ReadLongList(iterator *jsoniter.Iterator) []int64 { list := []int64{} for iterator.ReadArray() { item := iterator.ReadInt64() diff --git a/addonsmgmt/v1/metrics_federation_list_type_json.go b/addonsmgmt/v1/metrics_federation_list_type_json.go index 19ba89b18..1eb634c6b 100644 --- a/addonsmgmt/v1/metrics_federation_list_type_json.go +++ b/addonsmgmt/v1/metrics_federation_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalMetricsFederationList(list []*MetricsFederation, writer io.Writer) error { stream := helpers.NewStream(writer) - writeMetricsFederationList(list, stream) + WriteMetricsFederationList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalMetricsFederationList(list []*MetricsFederation, writer io.Writer) e return stream.Error } -// writeMetricsFederationList writes a list of value of the 'metrics_federation' type to +// WriteMetricsFederationList writes a list of value of the 'metrics_federation' type to // the given stream. -func writeMetricsFederationList(list []*MetricsFederation, stream *jsoniter.Stream) { +func WriteMetricsFederationList(list []*MetricsFederation, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeMetricsFederation(value, stream) + WriteMetricsFederation(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalMetricsFederationList(source interface{}) (items []*MetricsFederat if err != nil { return } - items = readMetricsFederationList(iterator) + items = ReadMetricsFederationList(iterator) err = iterator.Error return } -// readMetricsFederationList reads list of values of the ”metrics_federation' type from +// ReadMetricsFederationList reads list of values of the ”metrics_federation' type from // the given iterator. -func readMetricsFederationList(iterator *jsoniter.Iterator) []*MetricsFederation { +func ReadMetricsFederationList(iterator *jsoniter.Iterator) []*MetricsFederation { list := []*MetricsFederation{} for iterator.ReadArray() { - item := readMetricsFederation(iterator) + item := ReadMetricsFederation(iterator) list = append(list, item) } return list diff --git a/addonsmgmt/v1/metrics_federation_type.go b/addonsmgmt/v1/metrics_federation_type.go index b79f9976f..f1145023d 100644 --- a/addonsmgmt/v1/metrics_federation_type.go +++ b/addonsmgmt/v1/metrics_federation_type.go @@ -154,6 +154,29 @@ func (l *MetricsFederationList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *MetricsFederationList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *MetricsFederationList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *MetricsFederationList) SetItems(items []*MetricsFederation) { + l.items = items +} + +// Items returns the items of the list. +func (l *MetricsFederationList) Items() []*MetricsFederation { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *MetricsFederationList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/addonsmgmt/v1/metrics_federation_type_json.go b/addonsmgmt/v1/metrics_federation_type_json.go index 07fbd3c0d..ea0e4191e 100644 --- a/addonsmgmt/v1/metrics_federation_type_json.go +++ b/addonsmgmt/v1/metrics_federation_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalMetricsFederation writes a value of the 'metrics_federation' type to the given writer. func MarshalMetricsFederation(object *MetricsFederation, writer io.Writer) error { stream := helpers.NewStream(writer) - writeMetricsFederation(object, stream) + WriteMetricsFederation(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalMetricsFederation(object *MetricsFederation, writer io.Writer) error return stream.Error } -// writeMetricsFederation writes a value of the 'metrics_federation' type to the given stream. -func writeMetricsFederation(object *MetricsFederation, stream *jsoniter.Stream) { +// WriteMetricsFederation writes a value of the 'metrics_federation' type to the given stream. +func WriteMetricsFederation(object *MetricsFederation, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -78,7 +78,7 @@ func writeMetricsFederation(object *MetricsFederation, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("match_names") - writeStringList(object.matchNames, stream) + WriteStringList(object.matchNames, stream) count++ } present_ = object.bitmap_&4 != 0 @@ -108,13 +108,13 @@ func UnmarshalMetricsFederation(source interface{}) (object *MetricsFederation, if err != nil { return } - object = readMetricsFederation(iterator) + object = ReadMetricsFederation(iterator) err = iterator.Error return } -// readMetricsFederation reads a value of the 'metrics_federation' type from the given iterator. -func readMetricsFederation(iterator *jsoniter.Iterator) *MetricsFederation { +// ReadMetricsFederation reads a value of the 'metrics_federation' type from the given iterator. +func ReadMetricsFederation(iterator *jsoniter.Iterator) *MetricsFederation { object := &MetricsFederation{} for { field := iterator.ReadObject() @@ -135,7 +135,7 @@ func readMetricsFederation(iterator *jsoniter.Iterator) *MetricsFederation { object.matchLabels = value object.bitmap_ |= 1 case "match_names": - value := readStringList(iterator) + value := ReadStringList(iterator) object.matchNames = value object.bitmap_ |= 2 case "namespace": diff --git a/addonsmgmt/v1/monitoring_stack_list_type_json.go b/addonsmgmt/v1/monitoring_stack_list_type_json.go index 799ff49ae..64107a032 100644 --- a/addonsmgmt/v1/monitoring_stack_list_type_json.go +++ b/addonsmgmt/v1/monitoring_stack_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalMonitoringStackList(list []*MonitoringStack, writer io.Writer) error { stream := helpers.NewStream(writer) - writeMonitoringStackList(list, stream) + WriteMonitoringStackList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalMonitoringStackList(list []*MonitoringStack, writer io.Writer) error return stream.Error } -// writeMonitoringStackList writes a list of value of the 'monitoring_stack' type to +// WriteMonitoringStackList writes a list of value of the 'monitoring_stack' type to // the given stream. -func writeMonitoringStackList(list []*MonitoringStack, stream *jsoniter.Stream) { +func WriteMonitoringStackList(list []*MonitoringStack, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeMonitoringStack(value, stream) + WriteMonitoringStack(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalMonitoringStackList(source interface{}) (items []*MonitoringStack, if err != nil { return } - items = readMonitoringStackList(iterator) + items = ReadMonitoringStackList(iterator) err = iterator.Error return } -// readMonitoringStackList reads list of values of the ”monitoring_stack' type from +// ReadMonitoringStackList reads list of values of the ”monitoring_stack' type from // the given iterator. -func readMonitoringStackList(iterator *jsoniter.Iterator) []*MonitoringStack { +func ReadMonitoringStackList(iterator *jsoniter.Iterator) []*MonitoringStack { list := []*MonitoringStack{} for iterator.ReadArray() { - item := readMonitoringStack(iterator) + item := ReadMonitoringStack(iterator) list = append(list, item) } return list diff --git a/addonsmgmt/v1/monitoring_stack_resource_list_type_json.go b/addonsmgmt/v1/monitoring_stack_resource_list_type_json.go index 649d162cb..f09cd6871 100644 --- a/addonsmgmt/v1/monitoring_stack_resource_list_type_json.go +++ b/addonsmgmt/v1/monitoring_stack_resource_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalMonitoringStackResourceList(list []*MonitoringStackResource, writer io.Writer) error { stream := helpers.NewStream(writer) - writeMonitoringStackResourceList(list, stream) + WriteMonitoringStackResourceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalMonitoringStackResourceList(list []*MonitoringStackResource, writer return stream.Error } -// writeMonitoringStackResourceList writes a list of value of the 'monitoring_stack_resource' type to +// WriteMonitoringStackResourceList writes a list of value of the 'monitoring_stack_resource' type to // the given stream. -func writeMonitoringStackResourceList(list []*MonitoringStackResource, stream *jsoniter.Stream) { +func WriteMonitoringStackResourceList(list []*MonitoringStackResource, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeMonitoringStackResource(value, stream) + WriteMonitoringStackResource(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalMonitoringStackResourceList(source interface{}) (items []*Monitori if err != nil { return } - items = readMonitoringStackResourceList(iterator) + items = ReadMonitoringStackResourceList(iterator) err = iterator.Error return } -// readMonitoringStackResourceList reads list of values of the ”monitoring_stack_resource' type from +// ReadMonitoringStackResourceList reads list of values of the ”monitoring_stack_resource' type from // the given iterator. -func readMonitoringStackResourceList(iterator *jsoniter.Iterator) []*MonitoringStackResource { +func ReadMonitoringStackResourceList(iterator *jsoniter.Iterator) []*MonitoringStackResource { list := []*MonitoringStackResource{} for iterator.ReadArray() { - item := readMonitoringStackResource(iterator) + item := ReadMonitoringStackResource(iterator) list = append(list, item) } return list diff --git a/addonsmgmt/v1/monitoring_stack_resource_type.go b/addonsmgmt/v1/monitoring_stack_resource_type.go index c157129fa..91ddba3f8 100644 --- a/addonsmgmt/v1/monitoring_stack_resource_type.go +++ b/addonsmgmt/v1/monitoring_stack_resource_type.go @@ -106,6 +106,29 @@ func (l *MonitoringStackResourceList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *MonitoringStackResourceList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *MonitoringStackResourceList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *MonitoringStackResourceList) SetItems(items []*MonitoringStackResource) { + l.items = items +} + +// Items returns the items of the list. +func (l *MonitoringStackResourceList) Items() []*MonitoringStackResource { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *MonitoringStackResourceList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/addonsmgmt/v1/monitoring_stack_resource_type_json.go b/addonsmgmt/v1/monitoring_stack_resource_type_json.go index 4dcfdca71..8b2ee00e6 100644 --- a/addonsmgmt/v1/monitoring_stack_resource_type_json.go +++ b/addonsmgmt/v1/monitoring_stack_resource_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalMonitoringStackResource writes a value of the 'monitoring_stack_resource' type to the given writer. func MarshalMonitoringStackResource(object *MonitoringStackResource, writer io.Writer) error { stream := helpers.NewStream(writer) - writeMonitoringStackResource(object, stream) + WriteMonitoringStackResource(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalMonitoringStackResource(object *MonitoringStackResource, writer io.W return stream.Error } -// writeMonitoringStackResource writes a value of the 'monitoring_stack_resource' type to the given stream. -func writeMonitoringStackResource(object *MonitoringStackResource, stream *jsoniter.Stream) { +// WriteMonitoringStackResource writes a value of the 'monitoring_stack_resource' type to the given stream. +func WriteMonitoringStackResource(object *MonitoringStackResource, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalMonitoringStackResource(source interface{}) (object *MonitoringSta if err != nil { return } - object = readMonitoringStackResource(iterator) + object = ReadMonitoringStackResource(iterator) err = iterator.Error return } -// readMonitoringStackResource reads a value of the 'monitoring_stack_resource' type from the given iterator. -func readMonitoringStackResource(iterator *jsoniter.Iterator) *MonitoringStackResource { +// ReadMonitoringStackResource reads a value of the 'monitoring_stack_resource' type from the given iterator. +func ReadMonitoringStackResource(iterator *jsoniter.Iterator) *MonitoringStackResource { object := &MonitoringStackResource{} for { field := iterator.ReadObject() diff --git a/addonsmgmt/v1/monitoring_stack_resources_list_type_json.go b/addonsmgmt/v1/monitoring_stack_resources_list_type_json.go index b7531a408..9a4044316 100644 --- a/addonsmgmt/v1/monitoring_stack_resources_list_type_json.go +++ b/addonsmgmt/v1/monitoring_stack_resources_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalMonitoringStackResourcesList(list []*MonitoringStackResources, writer io.Writer) error { stream := helpers.NewStream(writer) - writeMonitoringStackResourcesList(list, stream) + WriteMonitoringStackResourcesList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalMonitoringStackResourcesList(list []*MonitoringStackResources, write return stream.Error } -// writeMonitoringStackResourcesList writes a list of value of the 'monitoring_stack_resources' type to +// WriteMonitoringStackResourcesList writes a list of value of the 'monitoring_stack_resources' type to // the given stream. -func writeMonitoringStackResourcesList(list []*MonitoringStackResources, stream *jsoniter.Stream) { +func WriteMonitoringStackResourcesList(list []*MonitoringStackResources, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeMonitoringStackResources(value, stream) + WriteMonitoringStackResources(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalMonitoringStackResourcesList(source interface{}) (items []*Monitor if err != nil { return } - items = readMonitoringStackResourcesList(iterator) + items = ReadMonitoringStackResourcesList(iterator) err = iterator.Error return } -// readMonitoringStackResourcesList reads list of values of the ”monitoring_stack_resources' type from +// ReadMonitoringStackResourcesList reads list of values of the ”monitoring_stack_resources' type from // the given iterator. -func readMonitoringStackResourcesList(iterator *jsoniter.Iterator) []*MonitoringStackResources { +func ReadMonitoringStackResourcesList(iterator *jsoniter.Iterator) []*MonitoringStackResources { list := []*MonitoringStackResources{} for iterator.ReadArray() { - item := readMonitoringStackResources(iterator) + item := ReadMonitoringStackResources(iterator) list = append(list, item) } return list diff --git a/addonsmgmt/v1/monitoring_stack_resources_type.go b/addonsmgmt/v1/monitoring_stack_resources_type.go index 3a605defc..c0ef6e150 100644 --- a/addonsmgmt/v1/monitoring_stack_resources_type.go +++ b/addonsmgmt/v1/monitoring_stack_resources_type.go @@ -106,6 +106,29 @@ func (l *MonitoringStackResourcesList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *MonitoringStackResourcesList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *MonitoringStackResourcesList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *MonitoringStackResourcesList) SetItems(items []*MonitoringStackResources) { + l.items = items +} + +// Items returns the items of the list. +func (l *MonitoringStackResourcesList) Items() []*MonitoringStackResources { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *MonitoringStackResourcesList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/addonsmgmt/v1/monitoring_stack_resources_type_json.go b/addonsmgmt/v1/monitoring_stack_resources_type_json.go index 175fb292f..594c9ef76 100644 --- a/addonsmgmt/v1/monitoring_stack_resources_type_json.go +++ b/addonsmgmt/v1/monitoring_stack_resources_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalMonitoringStackResources writes a value of the 'monitoring_stack_resources' type to the given writer. func MarshalMonitoringStackResources(object *MonitoringStackResources, writer io.Writer) error { stream := helpers.NewStream(writer) - writeMonitoringStackResources(object, stream) + WriteMonitoringStackResources(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalMonitoringStackResources(object *MonitoringStackResources, writer io return stream.Error } -// writeMonitoringStackResources writes a value of the 'monitoring_stack_resources' type to the given stream. -func writeMonitoringStackResources(object *MonitoringStackResources, stream *jsoniter.Stream) { +// WriteMonitoringStackResources writes a value of the 'monitoring_stack_resources' type to the given stream. +func WriteMonitoringStackResources(object *MonitoringStackResources, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeMonitoringStackResources(object *MonitoringStackResources, stream *jso stream.WriteMore() } stream.WriteObjectField("limits") - writeMonitoringStackResource(object.limits, stream) + WriteMonitoringStackResource(object.limits, stream) count++ } present_ = object.bitmap_&2 != 0 && object.requests != nil @@ -57,7 +57,7 @@ func writeMonitoringStackResources(object *MonitoringStackResources, stream *jso stream.WriteMore() } stream.WriteObjectField("requests") - writeMonitoringStackResource(object.requests, stream) + WriteMonitoringStackResource(object.requests, stream) } stream.WriteObjectEnd() } @@ -69,13 +69,13 @@ func UnmarshalMonitoringStackResources(source interface{}) (object *MonitoringSt if err != nil { return } - object = readMonitoringStackResources(iterator) + object = ReadMonitoringStackResources(iterator) err = iterator.Error return } -// readMonitoringStackResources reads a value of the 'monitoring_stack_resources' type from the given iterator. -func readMonitoringStackResources(iterator *jsoniter.Iterator) *MonitoringStackResources { +// ReadMonitoringStackResources reads a value of the 'monitoring_stack_resources' type from the given iterator. +func ReadMonitoringStackResources(iterator *jsoniter.Iterator) *MonitoringStackResources { object := &MonitoringStackResources{} for { field := iterator.ReadObject() @@ -84,11 +84,11 @@ func readMonitoringStackResources(iterator *jsoniter.Iterator) *MonitoringStackR } switch field { case "limits": - value := readMonitoringStackResource(iterator) + value := ReadMonitoringStackResource(iterator) object.limits = value object.bitmap_ |= 1 case "requests": - value := readMonitoringStackResource(iterator) + value := ReadMonitoringStackResource(iterator) object.requests = value object.bitmap_ |= 2 default: diff --git a/addonsmgmt/v1/monitoring_stack_type.go b/addonsmgmt/v1/monitoring_stack_type.go index 563996e40..9481d5ba9 100644 --- a/addonsmgmt/v1/monitoring_stack_type.go +++ b/addonsmgmt/v1/monitoring_stack_type.go @@ -106,6 +106,29 @@ func (l *MonitoringStackList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *MonitoringStackList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *MonitoringStackList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *MonitoringStackList) SetItems(items []*MonitoringStack) { + l.items = items +} + +// Items returns the items of the list. +func (l *MonitoringStackList) Items() []*MonitoringStack { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *MonitoringStackList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/addonsmgmt/v1/monitoring_stack_type_json.go b/addonsmgmt/v1/monitoring_stack_type_json.go index 643f2a002..bd04cb58d 100644 --- a/addonsmgmt/v1/monitoring_stack_type_json.go +++ b/addonsmgmt/v1/monitoring_stack_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalMonitoringStack writes a value of the 'monitoring_stack' type to the given writer. func MarshalMonitoringStack(object *MonitoringStack, writer io.Writer) error { stream := helpers.NewStream(writer) - writeMonitoringStack(object, stream) + WriteMonitoringStack(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalMonitoringStack(object *MonitoringStack, writer io.Writer) error { return stream.Error } -// writeMonitoringStack writes a value of the 'monitoring_stack' type to the given stream. -func writeMonitoringStack(object *MonitoringStack, stream *jsoniter.Stream) { +// WriteMonitoringStack writes a value of the 'monitoring_stack' type to the given stream. +func WriteMonitoringStack(object *MonitoringStack, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -57,7 +57,7 @@ func writeMonitoringStack(object *MonitoringStack, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("resources") - writeMonitoringStackResources(object.resources, stream) + WriteMonitoringStackResources(object.resources, stream) } stream.WriteObjectEnd() } @@ -69,13 +69,13 @@ func UnmarshalMonitoringStack(source interface{}) (object *MonitoringStack, err if err != nil { return } - object = readMonitoringStack(iterator) + object = ReadMonitoringStack(iterator) err = iterator.Error return } -// readMonitoringStack reads a value of the 'monitoring_stack' type from the given iterator. -func readMonitoringStack(iterator *jsoniter.Iterator) *MonitoringStack { +// ReadMonitoringStack reads a value of the 'monitoring_stack' type from the given iterator. +func ReadMonitoringStack(iterator *jsoniter.Iterator) *MonitoringStack { object := &MonitoringStack{} for { field := iterator.ReadObject() @@ -88,7 +88,7 @@ func readMonitoringStack(iterator *jsoniter.Iterator) *MonitoringStack { object.enabled = value object.bitmap_ |= 1 case "resources": - value := readMonitoringStackResources(iterator) + value := ReadMonitoringStackResources(iterator) object.resources = value object.bitmap_ |= 2 default: diff --git a/addonsmgmt/v1/object_reference_list_type_json.go b/addonsmgmt/v1/object_reference_list_type_json.go index b4a47f974..ce16ecfd2 100644 --- a/addonsmgmt/v1/object_reference_list_type_json.go +++ b/addonsmgmt/v1/object_reference_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalObjectReferenceList(list []*ObjectReference, writer io.Writer) error { stream := helpers.NewStream(writer) - writeObjectReferenceList(list, stream) + WriteObjectReferenceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalObjectReferenceList(list []*ObjectReference, writer io.Writer) error return stream.Error } -// writeObjectReferenceList writes a list of value of the 'object_reference' type to +// WriteObjectReferenceList writes a list of value of the 'object_reference' type to // the given stream. -func writeObjectReferenceList(list []*ObjectReference, stream *jsoniter.Stream) { +func WriteObjectReferenceList(list []*ObjectReference, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeObjectReference(value, stream) + WriteObjectReference(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalObjectReferenceList(source interface{}) (items []*ObjectReference, if err != nil { return } - items = readObjectReferenceList(iterator) + items = ReadObjectReferenceList(iterator) err = iterator.Error return } -// readObjectReferenceList reads list of values of the ”object_reference' type from +// ReadObjectReferenceList reads list of values of the ”object_reference' type from // the given iterator. -func readObjectReferenceList(iterator *jsoniter.Iterator) []*ObjectReference { +func ReadObjectReferenceList(iterator *jsoniter.Iterator) []*ObjectReference { list := []*ObjectReference{} for iterator.ReadArray() { - item := readObjectReference(iterator) + item := ReadObjectReference(iterator) list = append(list, item) } return list diff --git a/addonsmgmt/v1/object_reference_type.go b/addonsmgmt/v1/object_reference_type.go index 95fc7fe0d..0b70f1d62 100644 --- a/addonsmgmt/v1/object_reference_type.go +++ b/addonsmgmt/v1/object_reference_type.go @@ -130,6 +130,29 @@ func (l *ObjectReferenceList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ObjectReferenceList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ObjectReferenceList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ObjectReferenceList) SetItems(items []*ObjectReference) { + l.items = items +} + +// Items returns the items of the list. +func (l *ObjectReferenceList) Items() []*ObjectReference { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ObjectReferenceList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/addonsmgmt/v1/object_reference_type_json.go b/addonsmgmt/v1/object_reference_type_json.go index a327d252b..8ef8e007b 100644 --- a/addonsmgmt/v1/object_reference_type_json.go +++ b/addonsmgmt/v1/object_reference_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalObjectReference writes a value of the 'object_reference' type to the given writer. func MarshalObjectReference(object *ObjectReference, writer io.Writer) error { stream := helpers.NewStream(writer) - writeObjectReference(object, stream) + WriteObjectReference(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalObjectReference(object *ObjectReference, writer io.Writer) error { return stream.Error } -// writeObjectReference writes a value of the 'object_reference' type to the given stream. -func writeObjectReference(object *ObjectReference, stream *jsoniter.Stream) { +// WriteObjectReference writes a value of the 'object_reference' type to the given stream. +func WriteObjectReference(object *ObjectReference, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -78,13 +78,13 @@ func UnmarshalObjectReference(source interface{}) (object *ObjectReference, err if err != nil { return } - object = readObjectReference(iterator) + object = ReadObjectReference(iterator) err = iterator.Error return } -// readObjectReference reads a value of the 'object_reference' type from the given iterator. -func readObjectReference(iterator *jsoniter.Iterator) *ObjectReference { +// ReadObjectReference reads a value of the 'object_reference' type from the given iterator. +func ReadObjectReference(iterator *jsoniter.Iterator) *ObjectReference { object := &ObjectReference{} for { field := iterator.ReadObject() diff --git a/addonsmgmt/v1/string_list_type_json.go b/addonsmgmt/v1/string_list_type_json.go index 1338c6f76..60594c3bc 100644 --- a/addonsmgmt/v1/string_list_type_json.go +++ b/addonsmgmt/v1/string_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalStringList(list []string, writer io.Writer) error { stream := helpers.NewStream(writer) - writeStringList(list, stream) + WriteStringList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalStringList(list []string, writer io.Writer) error { return stream.Error } -// writeStringList writes a list of value of the 'string' type to +// WriteStringList writes a list of value of the 'string' type to // the given stream. -func writeStringList(list []string, stream *jsoniter.Stream) { +func WriteStringList(list []string, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalStringList(source interface{}) (items []string, err error) { if err != nil { return } - items = readStringList(iterator) + items = ReadStringList(iterator) err = iterator.Error return } -// readStringList reads list of values of the ”string' type from +// ReadStringList reads list of values of the ”string' type from // the given iterator. -func readStringList(iterator *jsoniter.Iterator) []string { +func ReadStringList(iterator *jsoniter.Iterator) []string { list := []string{} for iterator.ReadArray() { item := iterator.ReadString() diff --git a/arohcp/client.go b/arohcp/client.go new file mode 100644 index 000000000..fc4875d81 --- /dev/null +++ b/arohcp/client.go @@ -0,0 +1,50 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package arohcp // github.com/openshift-online/ocm-sdk-go/arohcp + +import ( + "net/http" + "path" + + "github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1" +) + +// Client is the client for service 'aro_hcp'. +type Client struct { + transport http.RoundTripper + path string +} + +// NewClient creates a new client for the service 'aro_hcp' using the +// given transport to send the requests and receive the responses. +func NewClient(transport http.RoundTripper, path string) *Client { + client := new(Client) + client.transport = transport + client.path = path + return client +} + +// V1alpha1 returns a reference to a client for version 'v1alpha1'. +func (c *Client) V1alpha1() *v1alpha1.Client { + return v1alpha1.NewClient( + c.transport, + path.Join(c.path, "v1alpha1"), + ) +} diff --git a/arohcp/v1alpha1/audit_log_builder.go b/arohcp/v1alpha1/audit_log_builder.go new file mode 100644 index 000000000..d7d8c5093 --- /dev/null +++ b/arohcp/v1alpha1/audit_log_builder.go @@ -0,0 +1,63 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AuditLogBuilder contains the data and logic needed to build 'audit_log' objects. +// +// Contains the necessary attributes to support audit log forwarding +type AuditLogBuilder struct { + bitmap_ uint32 + roleArn string +} + +// NewAuditLog creates a new builder of 'audit_log' objects. +func NewAuditLog() *AuditLogBuilder { + return &AuditLogBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *AuditLogBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// RoleArn sets the value of the 'role_arn' attribute to the given value. +func (b *AuditLogBuilder) RoleArn(value string) *AuditLogBuilder { + b.roleArn = value + b.bitmap_ |= 1 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *AuditLogBuilder) Copy(object *AuditLog) *AuditLogBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.roleArn = object.roleArn + return b +} + +// Build creates a 'audit_log' object using the configuration stored in the builder. +func (b *AuditLogBuilder) Build() (object *AuditLog, err error) { + object = new(AuditLog) + object.bitmap_ = b.bitmap_ + object.roleArn = b.roleArn + return +} diff --git a/arohcp/v1alpha1/audit_log_list_builder.go b/arohcp/v1alpha1/audit_log_list_builder.go new file mode 100644 index 000000000..2ec36289a --- /dev/null +++ b/arohcp/v1alpha1/audit_log_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AuditLogListBuilder contains the data and logic needed to build +// 'audit_log' objects. +type AuditLogListBuilder struct { + items []*AuditLogBuilder +} + +// NewAuditLogList creates a new builder of 'audit_log' objects. +func NewAuditLogList() *AuditLogListBuilder { + return new(AuditLogListBuilder) +} + +// Items sets the items of the list. +func (b *AuditLogListBuilder) Items(values ...*AuditLogBuilder) *AuditLogListBuilder { + b.items = make([]*AuditLogBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *AuditLogListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *AuditLogListBuilder) Copy(list *AuditLogList) *AuditLogListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*AuditLogBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewAuditLog().Copy(v) + } + } + return b +} + +// Build creates a list of 'audit_log' objects using the +// configuration stored in the builder. +func (b *AuditLogListBuilder) Build() (list *AuditLogList, err error) { + items := make([]*AuditLog, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(AuditLogList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/audit_log_list_type_json.go b/arohcp/v1alpha1/audit_log_list_type_json.go new file mode 100644 index 000000000..191f20037 --- /dev/null +++ b/arohcp/v1alpha1/audit_log_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalAuditLogList writes a list of values of the 'audit_log' type to +// the given writer. +func MarshalAuditLogList(list []*AuditLog, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteAuditLogList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteAuditLogList writes a list of value of the 'audit_log' type to +// the given stream. +func WriteAuditLogList(list []*AuditLog, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteAuditLog(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalAuditLogList reads a list of values of the 'audit_log' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalAuditLogList(source interface{}) (items []*AuditLog, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadAuditLogList(iterator) + err = iterator.Error + return +} + +// ReadAuditLogList reads list of values of the ”audit_log' type from +// the given iterator. +func ReadAuditLogList(iterator *jsoniter.Iterator) []*AuditLog { + list := []*AuditLog{} + for iterator.ReadArray() { + item := ReadAuditLog(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/audit_log_type.go b/arohcp/v1alpha1/audit_log_type.go new file mode 100644 index 000000000..7cce77b65 --- /dev/null +++ b/arohcp/v1alpha1/audit_log_type.go @@ -0,0 +1,165 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AuditLog represents the values of the 'audit_log' type. +// +// Contains the necessary attributes to support audit log forwarding +type AuditLog struct { + bitmap_ uint32 + roleArn string +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *AuditLog) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// RoleArn returns the value of the 'role_arn' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// ARN of the CloudWatch audit log forwarding role +func (o *AuditLog) RoleArn() string { + if o != nil && o.bitmap_&1 != 0 { + return o.roleArn + } + return "" +} + +// GetRoleArn returns the value of the 'role_arn' attribute and +// a flag indicating if the attribute has a value. +// +// ARN of the CloudWatch audit log forwarding role +func (o *AuditLog) GetRoleArn() (value string, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.roleArn + } + return +} + +// AuditLogListKind is the name of the type used to represent list of objects of +// type 'audit_log'. +const AuditLogListKind = "AuditLogList" + +// AuditLogListLinkKind is the name of the type used to represent links to list +// of objects of type 'audit_log'. +const AuditLogListLinkKind = "AuditLogListLink" + +// AuditLogNilKind is the name of the type used to nil lists of objects of +// type 'audit_log'. +const AuditLogListNilKind = "AuditLogListNil" + +// AuditLogList is a list of values of the 'audit_log' type. +type AuditLogList struct { + href string + link bool + items []*AuditLog +} + +// Len returns the length of the list. +func (l *AuditLogList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *AuditLogList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AuditLogList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AuditLogList) SetItems(items []*AuditLog) { + l.items = items +} + +// Items returns the items of the list. +func (l *AuditLogList) Items() []*AuditLog { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *AuditLogList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *AuditLogList) Get(i int) *AuditLog { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *AuditLogList) Slice() []*AuditLog { + var slice []*AuditLog + if l == nil { + slice = make([]*AuditLog, 0) + } else { + slice = make([]*AuditLog, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *AuditLogList) Each(f func(item *AuditLog) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *AuditLogList) Range(f func(index int, item *AuditLog) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/audit_log_type_json.go b/arohcp/v1alpha1/audit_log_type_json.go new file mode 100644 index 000000000..7614052dd --- /dev/null +++ b/arohcp/v1alpha1/audit_log_type_json.go @@ -0,0 +1,86 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalAuditLog writes a value of the 'audit_log' type to the given writer. +func MarshalAuditLog(object *AuditLog, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteAuditLog(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteAuditLog writes a value of the 'audit_log' type to the given stream. +func WriteAuditLog(object *AuditLog, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("role_arn") + stream.WriteString(object.roleArn) + } + stream.WriteObjectEnd() +} + +// UnmarshalAuditLog reads a value of the 'audit_log' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalAuditLog(source interface{}) (object *AuditLog, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadAuditLog(iterator) + err = iterator.Error + return +} + +// ReadAuditLog reads a value of the 'audit_log' type from the given iterator. +func ReadAuditLog(iterator *jsoniter.Iterator) *AuditLog { + object := &AuditLog{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "role_arn": + value := iterator.ReadString() + object.roleArn = value + object.bitmap_ |= 1 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/aws_builder.go b/arohcp/v1alpha1/aws_builder.go new file mode 100644 index 000000000..4a70c3a0d --- /dev/null +++ b/arohcp/v1alpha1/aws_builder.go @@ -0,0 +1,386 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AWSBuilder contains the data and logic needed to build 'AWS' objects. +// +// _Amazon Web Services_ specific settings of a cluster. +type AWSBuilder struct { + bitmap_ uint32 + kmsKeyArn string + sts *STSBuilder + accessKeyID string + accountID string + additionalAllowedPrincipals []string + additionalComputeSecurityGroupIds []string + additionalControlPlaneSecurityGroupIds []string + additionalInfraSecurityGroupIds []string + auditLog *AuditLogBuilder + billingAccountID string + ec2MetadataHttpTokens Ec2MetadataHttpTokens + etcdEncryption *AwsEtcdEncryptionBuilder + hcpInternalCommunicationHostedZoneId string + privateHostedZoneID string + privateHostedZoneRoleARN string + privateLinkConfiguration *PrivateLinkClusterConfigurationBuilder + secretAccessKey string + subnetIDs []string + tags map[string]string + vpcEndpointRoleArn string + privateLink bool +} + +// NewAWS creates a new builder of 'AWS' objects. +func NewAWS() *AWSBuilder { + return &AWSBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *AWSBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// KMSKeyArn sets the value of the 'KMS_key_arn' attribute to the given value. +func (b *AWSBuilder) KMSKeyArn(value string) *AWSBuilder { + b.kmsKeyArn = value + b.bitmap_ |= 1 + return b +} + +// STS sets the value of the 'STS' attribute to the given value. +// +// Contains the necessary attributes to support role-based authentication on AWS. +func (b *AWSBuilder) STS(value *STSBuilder) *AWSBuilder { + b.sts = value + if value != nil { + b.bitmap_ |= 2 + } else { + b.bitmap_ &^= 2 + } + return b +} + +// AccessKeyID sets the value of the 'access_key_ID' attribute to the given value. +func (b *AWSBuilder) AccessKeyID(value string) *AWSBuilder { + b.accessKeyID = value + b.bitmap_ |= 4 + return b +} + +// AccountID sets the value of the 'account_ID' attribute to the given value. +func (b *AWSBuilder) AccountID(value string) *AWSBuilder { + b.accountID = value + b.bitmap_ |= 8 + return b +} + +// AdditionalAllowedPrincipals sets the value of the 'additional_allowed_principals' attribute to the given values. +func (b *AWSBuilder) AdditionalAllowedPrincipals(values ...string) *AWSBuilder { + b.additionalAllowedPrincipals = make([]string, len(values)) + copy(b.additionalAllowedPrincipals, values) + b.bitmap_ |= 16 + return b +} + +// AdditionalComputeSecurityGroupIds sets the value of the 'additional_compute_security_group_ids' attribute to the given values. +func (b *AWSBuilder) AdditionalComputeSecurityGroupIds(values ...string) *AWSBuilder { + b.additionalComputeSecurityGroupIds = make([]string, len(values)) + copy(b.additionalComputeSecurityGroupIds, values) + b.bitmap_ |= 32 + return b +} + +// AdditionalControlPlaneSecurityGroupIds sets the value of the 'additional_control_plane_security_group_ids' attribute to the given values. +func (b *AWSBuilder) AdditionalControlPlaneSecurityGroupIds(values ...string) *AWSBuilder { + b.additionalControlPlaneSecurityGroupIds = make([]string, len(values)) + copy(b.additionalControlPlaneSecurityGroupIds, values) + b.bitmap_ |= 64 + return b +} + +// AdditionalInfraSecurityGroupIds sets the value of the 'additional_infra_security_group_ids' attribute to the given values. +func (b *AWSBuilder) AdditionalInfraSecurityGroupIds(values ...string) *AWSBuilder { + b.additionalInfraSecurityGroupIds = make([]string, len(values)) + copy(b.additionalInfraSecurityGroupIds, values) + b.bitmap_ |= 128 + return b +} + +// AuditLog sets the value of the 'audit_log' attribute to the given value. +// +// Contains the necessary attributes to support audit log forwarding +func (b *AWSBuilder) AuditLog(value *AuditLogBuilder) *AWSBuilder { + b.auditLog = value + if value != nil { + b.bitmap_ |= 256 + } else { + b.bitmap_ &^= 256 + } + return b +} + +// BillingAccountID sets the value of the 'billing_account_ID' attribute to the given value. +func (b *AWSBuilder) BillingAccountID(value string) *AWSBuilder { + b.billingAccountID = value + b.bitmap_ |= 512 + return b +} + +// Ec2MetadataHttpTokens sets the value of the 'ec_2_metadata_http_tokens' attribute to the given value. +// +// Which Ec2MetadataHttpTokens to use for metadata service interaction options for EC2 instances +func (b *AWSBuilder) Ec2MetadataHttpTokens(value Ec2MetadataHttpTokens) *AWSBuilder { + b.ec2MetadataHttpTokens = value + b.bitmap_ |= 1024 + return b +} + +// EtcdEncryption sets the value of the 'etcd_encryption' attribute to the given value. +// +// Contains the necessary attributes to support etcd encryption for AWS based clusters. +func (b *AWSBuilder) EtcdEncryption(value *AwsEtcdEncryptionBuilder) *AWSBuilder { + b.etcdEncryption = value + if value != nil { + b.bitmap_ |= 2048 + } else { + b.bitmap_ &^= 2048 + } + return b +} + +// HcpInternalCommunicationHostedZoneId sets the value of the 'hcp_internal_communication_hosted_zone_id' attribute to the given value. +func (b *AWSBuilder) HcpInternalCommunicationHostedZoneId(value string) *AWSBuilder { + b.hcpInternalCommunicationHostedZoneId = value + b.bitmap_ |= 4096 + return b +} + +// PrivateHostedZoneID sets the value of the 'private_hosted_zone_ID' attribute to the given value. +func (b *AWSBuilder) PrivateHostedZoneID(value string) *AWSBuilder { + b.privateHostedZoneID = value + b.bitmap_ |= 8192 + return b +} + +// PrivateHostedZoneRoleARN sets the value of the 'private_hosted_zone_role_ARN' attribute to the given value. +func (b *AWSBuilder) PrivateHostedZoneRoleARN(value string) *AWSBuilder { + b.privateHostedZoneRoleARN = value + b.bitmap_ |= 16384 + return b +} + +// PrivateLink sets the value of the 'private_link' attribute to the given value. +func (b *AWSBuilder) PrivateLink(value bool) *AWSBuilder { + b.privateLink = value + b.bitmap_ |= 32768 + return b +} + +// PrivateLinkConfiguration sets the value of the 'private_link_configuration' attribute to the given value. +// +// Manages the configuration for the Private Links. +func (b *AWSBuilder) PrivateLinkConfiguration(value *PrivateLinkClusterConfigurationBuilder) *AWSBuilder { + b.privateLinkConfiguration = value + if value != nil { + b.bitmap_ |= 65536 + } else { + b.bitmap_ &^= 65536 + } + return b +} + +// SecretAccessKey sets the value of the 'secret_access_key' attribute to the given value. +func (b *AWSBuilder) SecretAccessKey(value string) *AWSBuilder { + b.secretAccessKey = value + b.bitmap_ |= 131072 + return b +} + +// SubnetIDs sets the value of the 'subnet_IDs' attribute to the given values. +func (b *AWSBuilder) SubnetIDs(values ...string) *AWSBuilder { + b.subnetIDs = make([]string, len(values)) + copy(b.subnetIDs, values) + b.bitmap_ |= 262144 + return b +} + +// Tags sets the value of the 'tags' attribute to the given value. +func (b *AWSBuilder) Tags(value map[string]string) *AWSBuilder { + b.tags = value + if value != nil { + b.bitmap_ |= 524288 + } else { + b.bitmap_ &^= 524288 + } + return b +} + +// VpcEndpointRoleArn sets the value of the 'vpc_endpoint_role_arn' attribute to the given value. +func (b *AWSBuilder) VpcEndpointRoleArn(value string) *AWSBuilder { + b.vpcEndpointRoleArn = value + b.bitmap_ |= 1048576 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *AWSBuilder) Copy(object *AWS) *AWSBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.kmsKeyArn = object.kmsKeyArn + if object.sts != nil { + b.sts = NewSTS().Copy(object.sts) + } else { + b.sts = nil + } + b.accessKeyID = object.accessKeyID + b.accountID = object.accountID + if object.additionalAllowedPrincipals != nil { + b.additionalAllowedPrincipals = make([]string, len(object.additionalAllowedPrincipals)) + copy(b.additionalAllowedPrincipals, object.additionalAllowedPrincipals) + } else { + b.additionalAllowedPrincipals = nil + } + if object.additionalComputeSecurityGroupIds != nil { + b.additionalComputeSecurityGroupIds = make([]string, len(object.additionalComputeSecurityGroupIds)) + copy(b.additionalComputeSecurityGroupIds, object.additionalComputeSecurityGroupIds) + } else { + b.additionalComputeSecurityGroupIds = nil + } + if object.additionalControlPlaneSecurityGroupIds != nil { + b.additionalControlPlaneSecurityGroupIds = make([]string, len(object.additionalControlPlaneSecurityGroupIds)) + copy(b.additionalControlPlaneSecurityGroupIds, object.additionalControlPlaneSecurityGroupIds) + } else { + b.additionalControlPlaneSecurityGroupIds = nil + } + if object.additionalInfraSecurityGroupIds != nil { + b.additionalInfraSecurityGroupIds = make([]string, len(object.additionalInfraSecurityGroupIds)) + copy(b.additionalInfraSecurityGroupIds, object.additionalInfraSecurityGroupIds) + } else { + b.additionalInfraSecurityGroupIds = nil + } + if object.auditLog != nil { + b.auditLog = NewAuditLog().Copy(object.auditLog) + } else { + b.auditLog = nil + } + b.billingAccountID = object.billingAccountID + b.ec2MetadataHttpTokens = object.ec2MetadataHttpTokens + if object.etcdEncryption != nil { + b.etcdEncryption = NewAwsEtcdEncryption().Copy(object.etcdEncryption) + } else { + b.etcdEncryption = nil + } + b.hcpInternalCommunicationHostedZoneId = object.hcpInternalCommunicationHostedZoneId + b.privateHostedZoneID = object.privateHostedZoneID + b.privateHostedZoneRoleARN = object.privateHostedZoneRoleARN + b.privateLink = object.privateLink + if object.privateLinkConfiguration != nil { + b.privateLinkConfiguration = NewPrivateLinkClusterConfiguration().Copy(object.privateLinkConfiguration) + } else { + b.privateLinkConfiguration = nil + } + b.secretAccessKey = object.secretAccessKey + if object.subnetIDs != nil { + b.subnetIDs = make([]string, len(object.subnetIDs)) + copy(b.subnetIDs, object.subnetIDs) + } else { + b.subnetIDs = nil + } + if len(object.tags) > 0 { + b.tags = map[string]string{} + for k, v := range object.tags { + b.tags[k] = v + } + } else { + b.tags = nil + } + b.vpcEndpointRoleArn = object.vpcEndpointRoleArn + return b +} + +// Build creates a 'AWS' object using the configuration stored in the builder. +func (b *AWSBuilder) Build() (object *AWS, err error) { + object = new(AWS) + object.bitmap_ = b.bitmap_ + object.kmsKeyArn = b.kmsKeyArn + if b.sts != nil { + object.sts, err = b.sts.Build() + if err != nil { + return + } + } + object.accessKeyID = b.accessKeyID + object.accountID = b.accountID + if b.additionalAllowedPrincipals != nil { + object.additionalAllowedPrincipals = make([]string, len(b.additionalAllowedPrincipals)) + copy(object.additionalAllowedPrincipals, b.additionalAllowedPrincipals) + } + if b.additionalComputeSecurityGroupIds != nil { + object.additionalComputeSecurityGroupIds = make([]string, len(b.additionalComputeSecurityGroupIds)) + copy(object.additionalComputeSecurityGroupIds, b.additionalComputeSecurityGroupIds) + } + if b.additionalControlPlaneSecurityGroupIds != nil { + object.additionalControlPlaneSecurityGroupIds = make([]string, len(b.additionalControlPlaneSecurityGroupIds)) + copy(object.additionalControlPlaneSecurityGroupIds, b.additionalControlPlaneSecurityGroupIds) + } + if b.additionalInfraSecurityGroupIds != nil { + object.additionalInfraSecurityGroupIds = make([]string, len(b.additionalInfraSecurityGroupIds)) + copy(object.additionalInfraSecurityGroupIds, b.additionalInfraSecurityGroupIds) + } + if b.auditLog != nil { + object.auditLog, err = b.auditLog.Build() + if err != nil { + return + } + } + object.billingAccountID = b.billingAccountID + object.ec2MetadataHttpTokens = b.ec2MetadataHttpTokens + if b.etcdEncryption != nil { + object.etcdEncryption, err = b.etcdEncryption.Build() + if err != nil { + return + } + } + object.hcpInternalCommunicationHostedZoneId = b.hcpInternalCommunicationHostedZoneId + object.privateHostedZoneID = b.privateHostedZoneID + object.privateHostedZoneRoleARN = b.privateHostedZoneRoleARN + object.privateLink = b.privateLink + if b.privateLinkConfiguration != nil { + object.privateLinkConfiguration, err = b.privateLinkConfiguration.Build() + if err != nil { + return + } + } + object.secretAccessKey = b.secretAccessKey + if b.subnetIDs != nil { + object.subnetIDs = make([]string, len(b.subnetIDs)) + copy(object.subnetIDs, b.subnetIDs) + } + if b.tags != nil { + object.tags = make(map[string]string) + for k, v := range b.tags { + object.tags[k] = v + } + } + object.vpcEndpointRoleArn = b.vpcEndpointRoleArn + return +} diff --git a/arohcp/v1alpha1/aws_etcd_encryption_builder.go b/arohcp/v1alpha1/aws_etcd_encryption_builder.go new file mode 100644 index 000000000..73643fd6b --- /dev/null +++ b/arohcp/v1alpha1/aws_etcd_encryption_builder.go @@ -0,0 +1,63 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AwsEtcdEncryptionBuilder contains the data and logic needed to build 'aws_etcd_encryption' objects. +// +// Contains the necessary attributes to support etcd encryption for AWS based clusters. +type AwsEtcdEncryptionBuilder struct { + bitmap_ uint32 + kmsKeyARN string +} + +// NewAwsEtcdEncryption creates a new builder of 'aws_etcd_encryption' objects. +func NewAwsEtcdEncryption() *AwsEtcdEncryptionBuilder { + return &AwsEtcdEncryptionBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *AwsEtcdEncryptionBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// KMSKeyARN sets the value of the 'KMS_key_ARN' attribute to the given value. +func (b *AwsEtcdEncryptionBuilder) KMSKeyARN(value string) *AwsEtcdEncryptionBuilder { + b.kmsKeyARN = value + b.bitmap_ |= 1 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *AwsEtcdEncryptionBuilder) Copy(object *AwsEtcdEncryption) *AwsEtcdEncryptionBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.kmsKeyARN = object.kmsKeyARN + return b +} + +// Build creates a 'aws_etcd_encryption' object using the configuration stored in the builder. +func (b *AwsEtcdEncryptionBuilder) Build() (object *AwsEtcdEncryption, err error) { + object = new(AwsEtcdEncryption) + object.bitmap_ = b.bitmap_ + object.kmsKeyARN = b.kmsKeyARN + return +} diff --git a/arohcp/v1alpha1/aws_etcd_encryption_list_builder.go b/arohcp/v1alpha1/aws_etcd_encryption_list_builder.go new file mode 100644 index 000000000..ece4c0981 --- /dev/null +++ b/arohcp/v1alpha1/aws_etcd_encryption_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AwsEtcdEncryptionListBuilder contains the data and logic needed to build +// 'aws_etcd_encryption' objects. +type AwsEtcdEncryptionListBuilder struct { + items []*AwsEtcdEncryptionBuilder +} + +// NewAwsEtcdEncryptionList creates a new builder of 'aws_etcd_encryption' objects. +func NewAwsEtcdEncryptionList() *AwsEtcdEncryptionListBuilder { + return new(AwsEtcdEncryptionListBuilder) +} + +// Items sets the items of the list. +func (b *AwsEtcdEncryptionListBuilder) Items(values ...*AwsEtcdEncryptionBuilder) *AwsEtcdEncryptionListBuilder { + b.items = make([]*AwsEtcdEncryptionBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *AwsEtcdEncryptionListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *AwsEtcdEncryptionListBuilder) Copy(list *AwsEtcdEncryptionList) *AwsEtcdEncryptionListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*AwsEtcdEncryptionBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewAwsEtcdEncryption().Copy(v) + } + } + return b +} + +// Build creates a list of 'aws_etcd_encryption' objects using the +// configuration stored in the builder. +func (b *AwsEtcdEncryptionListBuilder) Build() (list *AwsEtcdEncryptionList, err error) { + items := make([]*AwsEtcdEncryption, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(AwsEtcdEncryptionList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/aws_etcd_encryption_list_type_json.go b/arohcp/v1alpha1/aws_etcd_encryption_list_type_json.go new file mode 100644 index 000000000..14ffa483d --- /dev/null +++ b/arohcp/v1alpha1/aws_etcd_encryption_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalAwsEtcdEncryptionList writes a list of values of the 'aws_etcd_encryption' type to +// the given writer. +func MarshalAwsEtcdEncryptionList(list []*AwsEtcdEncryption, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteAwsEtcdEncryptionList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteAwsEtcdEncryptionList writes a list of value of the 'aws_etcd_encryption' type to +// the given stream. +func WriteAwsEtcdEncryptionList(list []*AwsEtcdEncryption, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteAwsEtcdEncryption(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalAwsEtcdEncryptionList reads a list of values of the 'aws_etcd_encryption' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalAwsEtcdEncryptionList(source interface{}) (items []*AwsEtcdEncryption, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadAwsEtcdEncryptionList(iterator) + err = iterator.Error + return +} + +// ReadAwsEtcdEncryptionList reads list of values of the ”aws_etcd_encryption' type from +// the given iterator. +func ReadAwsEtcdEncryptionList(iterator *jsoniter.Iterator) []*AwsEtcdEncryption { + list := []*AwsEtcdEncryption{} + for iterator.ReadArray() { + item := ReadAwsEtcdEncryption(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/aws_etcd_encryption_type.go b/arohcp/v1alpha1/aws_etcd_encryption_type.go new file mode 100644 index 000000000..d8c8d724c --- /dev/null +++ b/arohcp/v1alpha1/aws_etcd_encryption_type.go @@ -0,0 +1,165 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AwsEtcdEncryption represents the values of the 'aws_etcd_encryption' type. +// +// Contains the necessary attributes to support etcd encryption for AWS based clusters. +type AwsEtcdEncryption struct { + bitmap_ uint32 + kmsKeyARN string +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *AwsEtcdEncryption) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// KMSKeyARN returns the value of the 'KMS_key_ARN' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// ARN of the KMS to be used for the etcd encryption +func (o *AwsEtcdEncryption) KMSKeyARN() string { + if o != nil && o.bitmap_&1 != 0 { + return o.kmsKeyARN + } + return "" +} + +// GetKMSKeyARN returns the value of the 'KMS_key_ARN' attribute and +// a flag indicating if the attribute has a value. +// +// ARN of the KMS to be used for the etcd encryption +func (o *AwsEtcdEncryption) GetKMSKeyARN() (value string, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.kmsKeyARN + } + return +} + +// AwsEtcdEncryptionListKind is the name of the type used to represent list of objects of +// type 'aws_etcd_encryption'. +const AwsEtcdEncryptionListKind = "AwsEtcdEncryptionList" + +// AwsEtcdEncryptionListLinkKind is the name of the type used to represent links to list +// of objects of type 'aws_etcd_encryption'. +const AwsEtcdEncryptionListLinkKind = "AwsEtcdEncryptionListLink" + +// AwsEtcdEncryptionNilKind is the name of the type used to nil lists of objects of +// type 'aws_etcd_encryption'. +const AwsEtcdEncryptionListNilKind = "AwsEtcdEncryptionListNil" + +// AwsEtcdEncryptionList is a list of values of the 'aws_etcd_encryption' type. +type AwsEtcdEncryptionList struct { + href string + link bool + items []*AwsEtcdEncryption +} + +// Len returns the length of the list. +func (l *AwsEtcdEncryptionList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *AwsEtcdEncryptionList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AwsEtcdEncryptionList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AwsEtcdEncryptionList) SetItems(items []*AwsEtcdEncryption) { + l.items = items +} + +// Items returns the items of the list. +func (l *AwsEtcdEncryptionList) Items() []*AwsEtcdEncryption { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *AwsEtcdEncryptionList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *AwsEtcdEncryptionList) Get(i int) *AwsEtcdEncryption { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *AwsEtcdEncryptionList) Slice() []*AwsEtcdEncryption { + var slice []*AwsEtcdEncryption + if l == nil { + slice = make([]*AwsEtcdEncryption, 0) + } else { + slice = make([]*AwsEtcdEncryption, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *AwsEtcdEncryptionList) Each(f func(item *AwsEtcdEncryption) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *AwsEtcdEncryptionList) Range(f func(index int, item *AwsEtcdEncryption) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/aws_etcd_encryption_type_json.go b/arohcp/v1alpha1/aws_etcd_encryption_type_json.go new file mode 100644 index 000000000..a8520b99e --- /dev/null +++ b/arohcp/v1alpha1/aws_etcd_encryption_type_json.go @@ -0,0 +1,86 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalAwsEtcdEncryption writes a value of the 'aws_etcd_encryption' type to the given writer. +func MarshalAwsEtcdEncryption(object *AwsEtcdEncryption, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteAwsEtcdEncryption(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteAwsEtcdEncryption writes a value of the 'aws_etcd_encryption' type to the given stream. +func WriteAwsEtcdEncryption(object *AwsEtcdEncryption, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("kms_key_arn") + stream.WriteString(object.kmsKeyARN) + } + stream.WriteObjectEnd() +} + +// UnmarshalAwsEtcdEncryption reads a value of the 'aws_etcd_encryption' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalAwsEtcdEncryption(source interface{}) (object *AwsEtcdEncryption, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadAwsEtcdEncryption(iterator) + err = iterator.Error + return +} + +// ReadAwsEtcdEncryption reads a value of the 'aws_etcd_encryption' type from the given iterator. +func ReadAwsEtcdEncryption(iterator *jsoniter.Iterator) *AwsEtcdEncryption { + object := &AwsEtcdEncryption{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "kms_key_arn": + value := iterator.ReadString() + object.kmsKeyARN = value + object.bitmap_ |= 1 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/aws_list_builder.go b/arohcp/v1alpha1/aws_list_builder.go new file mode 100644 index 000000000..d77dd1197 --- /dev/null +++ b/arohcp/v1alpha1/aws_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AWSListBuilder contains the data and logic needed to build +// 'AWS' objects. +type AWSListBuilder struct { + items []*AWSBuilder +} + +// NewAWSList creates a new builder of 'AWS' objects. +func NewAWSList() *AWSListBuilder { + return new(AWSListBuilder) +} + +// Items sets the items of the list. +func (b *AWSListBuilder) Items(values ...*AWSBuilder) *AWSListBuilder { + b.items = make([]*AWSBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *AWSListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *AWSListBuilder) Copy(list *AWSList) *AWSListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*AWSBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewAWS().Copy(v) + } + } + return b +} + +// Build creates a list of 'AWS' objects using the +// configuration stored in the builder. +func (b *AWSListBuilder) Build() (list *AWSList, err error) { + items := make([]*AWS, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(AWSList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/aws_list_type_json.go b/arohcp/v1alpha1/aws_list_type_json.go new file mode 100644 index 000000000..d776920ea --- /dev/null +++ b/arohcp/v1alpha1/aws_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalAWSList writes a list of values of the 'AWS' type to +// the given writer. +func MarshalAWSList(list []*AWS, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteAWSList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteAWSList writes a list of value of the 'AWS' type to +// the given stream. +func WriteAWSList(list []*AWS, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteAWS(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalAWSList reads a list of values of the 'AWS' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalAWSList(source interface{}) (items []*AWS, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadAWSList(iterator) + err = iterator.Error + return +} + +// ReadAWSList reads list of values of the ”AWS' type from +// the given iterator. +func ReadAWSList(iterator *jsoniter.Iterator) []*AWS { + list := []*AWS{} + for iterator.ReadArray() { + item := ReadAWS(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/aws_shard_builder.go b/arohcp/v1alpha1/aws_shard_builder.go new file mode 100644 index 000000000..0d5f7824e --- /dev/null +++ b/arohcp/v1alpha1/aws_shard_builder.go @@ -0,0 +1,72 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AWSShardBuilder contains the data and logic needed to build 'AWS_shard' objects. +// +// Config for AWS provision shards +type AWSShardBuilder struct { + bitmap_ uint32 + ecrRepositoryURLs []string +} + +// NewAWSShard creates a new builder of 'AWS_shard' objects. +func NewAWSShard() *AWSShardBuilder { + return &AWSShardBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *AWSShardBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// ECRRepositoryURLs sets the value of the 'ECR_repository_URLs' attribute to the given values. +func (b *AWSShardBuilder) ECRRepositoryURLs(values ...string) *AWSShardBuilder { + b.ecrRepositoryURLs = make([]string, len(values)) + copy(b.ecrRepositoryURLs, values) + b.bitmap_ |= 1 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *AWSShardBuilder) Copy(object *AWSShard) *AWSShardBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + if object.ecrRepositoryURLs != nil { + b.ecrRepositoryURLs = make([]string, len(object.ecrRepositoryURLs)) + copy(b.ecrRepositoryURLs, object.ecrRepositoryURLs) + } else { + b.ecrRepositoryURLs = nil + } + return b +} + +// Build creates a 'AWS_shard' object using the configuration stored in the builder. +func (b *AWSShardBuilder) Build() (object *AWSShard, err error) { + object = new(AWSShard) + object.bitmap_ = b.bitmap_ + if b.ecrRepositoryURLs != nil { + object.ecrRepositoryURLs = make([]string, len(b.ecrRepositoryURLs)) + copy(object.ecrRepositoryURLs, b.ecrRepositoryURLs) + } + return +} diff --git a/arohcp/v1alpha1/aws_shard_list_builder.go b/arohcp/v1alpha1/aws_shard_list_builder.go new file mode 100644 index 000000000..fafa324f3 --- /dev/null +++ b/arohcp/v1alpha1/aws_shard_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AWSShardListBuilder contains the data and logic needed to build +// 'AWS_shard' objects. +type AWSShardListBuilder struct { + items []*AWSShardBuilder +} + +// NewAWSShardList creates a new builder of 'AWS_shard' objects. +func NewAWSShardList() *AWSShardListBuilder { + return new(AWSShardListBuilder) +} + +// Items sets the items of the list. +func (b *AWSShardListBuilder) Items(values ...*AWSShardBuilder) *AWSShardListBuilder { + b.items = make([]*AWSShardBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *AWSShardListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *AWSShardListBuilder) Copy(list *AWSShardList) *AWSShardListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*AWSShardBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewAWSShard().Copy(v) + } + } + return b +} + +// Build creates a list of 'AWS_shard' objects using the +// configuration stored in the builder. +func (b *AWSShardListBuilder) Build() (list *AWSShardList, err error) { + items := make([]*AWSShard, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(AWSShardList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/aws_shard_list_type_json.go b/arohcp/v1alpha1/aws_shard_list_type_json.go new file mode 100644 index 000000000..c3bdfca68 --- /dev/null +++ b/arohcp/v1alpha1/aws_shard_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalAWSShardList writes a list of values of the 'AWS_shard' type to +// the given writer. +func MarshalAWSShardList(list []*AWSShard, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteAWSShardList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteAWSShardList writes a list of value of the 'AWS_shard' type to +// the given stream. +func WriteAWSShardList(list []*AWSShard, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteAWSShard(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalAWSShardList reads a list of values of the 'AWS_shard' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalAWSShardList(source interface{}) (items []*AWSShard, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadAWSShardList(iterator) + err = iterator.Error + return +} + +// ReadAWSShardList reads list of values of the ”AWS_shard' type from +// the given iterator. +func ReadAWSShardList(iterator *jsoniter.Iterator) []*AWSShard { + list := []*AWSShard{} + for iterator.ReadArray() { + item := ReadAWSShard(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/aws_shard_type.go b/arohcp/v1alpha1/aws_shard_type.go new file mode 100644 index 000000000..83784474f --- /dev/null +++ b/arohcp/v1alpha1/aws_shard_type.go @@ -0,0 +1,165 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AWSShard represents the values of the 'AWS_shard' type. +// +// Config for AWS provision shards +type AWSShard struct { + bitmap_ uint32 + ecrRepositoryURLs []string +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *AWSShard) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// ECRRepositoryURLs returns the value of the 'ECR_repository_URLs' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// ECR repository URLs of the provision shard +func (o *AWSShard) ECRRepositoryURLs() []string { + if o != nil && o.bitmap_&1 != 0 { + return o.ecrRepositoryURLs + } + return nil +} + +// GetECRRepositoryURLs returns the value of the 'ECR_repository_URLs' attribute and +// a flag indicating if the attribute has a value. +// +// ECR repository URLs of the provision shard +func (o *AWSShard) GetECRRepositoryURLs() (value []string, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.ecrRepositoryURLs + } + return +} + +// AWSShardListKind is the name of the type used to represent list of objects of +// type 'AWS_shard'. +const AWSShardListKind = "AWSShardList" + +// AWSShardListLinkKind is the name of the type used to represent links to list +// of objects of type 'AWS_shard'. +const AWSShardListLinkKind = "AWSShardListLink" + +// AWSShardNilKind is the name of the type used to nil lists of objects of +// type 'AWS_shard'. +const AWSShardListNilKind = "AWSShardListNil" + +// AWSShardList is a list of values of the 'AWS_shard' type. +type AWSShardList struct { + href string + link bool + items []*AWSShard +} + +// Len returns the length of the list. +func (l *AWSShardList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *AWSShardList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AWSShardList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AWSShardList) SetItems(items []*AWSShard) { + l.items = items +} + +// Items returns the items of the list. +func (l *AWSShardList) Items() []*AWSShard { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *AWSShardList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *AWSShardList) Get(i int) *AWSShard { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *AWSShardList) Slice() []*AWSShard { + var slice []*AWSShard + if l == nil { + slice = make([]*AWSShard, 0) + } else { + slice = make([]*AWSShard, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *AWSShardList) Each(f func(item *AWSShard) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *AWSShardList) Range(f func(index int, item *AWSShard) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/aws_shard_type_json.go b/arohcp/v1alpha1/aws_shard_type_json.go new file mode 100644 index 000000000..9f566b773 --- /dev/null +++ b/arohcp/v1alpha1/aws_shard_type_json.go @@ -0,0 +1,86 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalAWSShard writes a value of the 'AWS_shard' type to the given writer. +func MarshalAWSShard(object *AWSShard, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteAWSShard(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteAWSShard writes a value of the 'AWS_shard' type to the given stream. +func WriteAWSShard(object *AWSShard, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 && object.ecrRepositoryURLs != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("ecr_repository_urls") + WriteStringList(object.ecrRepositoryURLs, stream) + } + stream.WriteObjectEnd() +} + +// UnmarshalAWSShard reads a value of the 'AWS_shard' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalAWSShard(source interface{}) (object *AWSShard, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadAWSShard(iterator) + err = iterator.Error + return +} + +// ReadAWSShard reads a value of the 'AWS_shard' type from the given iterator. +func ReadAWSShard(iterator *jsoniter.Iterator) *AWSShard { + object := &AWSShard{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "ecr_repository_urls": + value := ReadStringList(iterator) + object.ecrRepositoryURLs = value + object.bitmap_ |= 1 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/aws_type.go b/arohcp/v1alpha1/aws_type.go new file mode 100644 index 000000000..8711ca873 --- /dev/null +++ b/arohcp/v1alpha1/aws_type.go @@ -0,0 +1,645 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AWS represents the values of the 'AWS' type. +// +// _Amazon Web Services_ specific settings of a cluster. +type AWS struct { + bitmap_ uint32 + kmsKeyArn string + sts *STS + accessKeyID string + accountID string + additionalAllowedPrincipals []string + additionalComputeSecurityGroupIds []string + additionalControlPlaneSecurityGroupIds []string + additionalInfraSecurityGroupIds []string + auditLog *AuditLog + billingAccountID string + ec2MetadataHttpTokens Ec2MetadataHttpTokens + etcdEncryption *AwsEtcdEncryption + hcpInternalCommunicationHostedZoneId string + privateHostedZoneID string + privateHostedZoneRoleARN string + privateLinkConfiguration *PrivateLinkClusterConfiguration + secretAccessKey string + subnetIDs []string + tags map[string]string + vpcEndpointRoleArn string + privateLink bool +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *AWS) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// KMSKeyArn returns the value of the 'KMS_key_arn' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Customer Managed Key to encrypt EBS Volume +func (o *AWS) KMSKeyArn() string { + if o != nil && o.bitmap_&1 != 0 { + return o.kmsKeyArn + } + return "" +} + +// GetKMSKeyArn returns the value of the 'KMS_key_arn' attribute and +// a flag indicating if the attribute has a value. +// +// Customer Managed Key to encrypt EBS Volume +func (o *AWS) GetKMSKeyArn() (value string, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.kmsKeyArn + } + return +} + +// STS returns the value of the 'STS' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Contains the necessary attributes to support role-based authentication on AWS. +func (o *AWS) STS() *STS { + if o != nil && o.bitmap_&2 != 0 { + return o.sts + } + return nil +} + +// GetSTS returns the value of the 'STS' attribute and +// a flag indicating if the attribute has a value. +// +// Contains the necessary attributes to support role-based authentication on AWS. +func (o *AWS) GetSTS() (value *STS, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.sts + } + return +} + +// AccessKeyID returns the value of the 'access_key_ID' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// AWS access key identifier. +func (o *AWS) AccessKeyID() string { + if o != nil && o.bitmap_&4 != 0 { + return o.accessKeyID + } + return "" +} + +// GetAccessKeyID returns the value of the 'access_key_ID' attribute and +// a flag indicating if the attribute has a value. +// +// AWS access key identifier. +func (o *AWS) GetAccessKeyID() (value string, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.accessKeyID + } + return +} + +// AccountID returns the value of the 'account_ID' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// AWS account identifier. +func (o *AWS) AccountID() string { + if o != nil && o.bitmap_&8 != 0 { + return o.accountID + } + return "" +} + +// GetAccountID returns the value of the 'account_ID' attribute and +// a flag indicating if the attribute has a value. +// +// AWS account identifier. +func (o *AWS) GetAccountID() (value string, ok bool) { + ok = o != nil && o.bitmap_&8 != 0 + if ok { + value = o.accountID + } + return +} + +// AdditionalAllowedPrincipals returns the value of the 'additional_allowed_principals' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Additional allowed principal ARNs to be added to the hosted control plane's VPC Endpoint Service. +func (o *AWS) AdditionalAllowedPrincipals() []string { + if o != nil && o.bitmap_&16 != 0 { + return o.additionalAllowedPrincipals + } + return nil +} + +// GetAdditionalAllowedPrincipals returns the value of the 'additional_allowed_principals' attribute and +// a flag indicating if the attribute has a value. +// +// Additional allowed principal ARNs to be added to the hosted control plane's VPC Endpoint Service. +func (o *AWS) GetAdditionalAllowedPrincipals() (value []string, ok bool) { + ok = o != nil && o.bitmap_&16 != 0 + if ok { + value = o.additionalAllowedPrincipals + } + return +} + +// AdditionalComputeSecurityGroupIds returns the value of the 'additional_compute_security_group_ids' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Additional AWS Security Groups to be added to default worker (compute) machine pool. +func (o *AWS) AdditionalComputeSecurityGroupIds() []string { + if o != nil && o.bitmap_&32 != 0 { + return o.additionalComputeSecurityGroupIds + } + return nil +} + +// GetAdditionalComputeSecurityGroupIds returns the value of the 'additional_compute_security_group_ids' attribute and +// a flag indicating if the attribute has a value. +// +// Additional AWS Security Groups to be added to default worker (compute) machine pool. +func (o *AWS) GetAdditionalComputeSecurityGroupIds() (value []string, ok bool) { + ok = o != nil && o.bitmap_&32 != 0 + if ok { + value = o.additionalComputeSecurityGroupIds + } + return +} + +// AdditionalControlPlaneSecurityGroupIds returns the value of the 'additional_control_plane_security_group_ids' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Additional AWS Security Groups to be added to default control plane machine pool. +func (o *AWS) AdditionalControlPlaneSecurityGroupIds() []string { + if o != nil && o.bitmap_&64 != 0 { + return o.additionalControlPlaneSecurityGroupIds + } + return nil +} + +// GetAdditionalControlPlaneSecurityGroupIds returns the value of the 'additional_control_plane_security_group_ids' attribute and +// a flag indicating if the attribute has a value. +// +// Additional AWS Security Groups to be added to default control plane machine pool. +func (o *AWS) GetAdditionalControlPlaneSecurityGroupIds() (value []string, ok bool) { + ok = o != nil && o.bitmap_&64 != 0 + if ok { + value = o.additionalControlPlaneSecurityGroupIds + } + return +} + +// AdditionalInfraSecurityGroupIds returns the value of the 'additional_infra_security_group_ids' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Additional AWS Security Groups to be added to default infra machine pool. +func (o *AWS) AdditionalInfraSecurityGroupIds() []string { + if o != nil && o.bitmap_&128 != 0 { + return o.additionalInfraSecurityGroupIds + } + return nil +} + +// GetAdditionalInfraSecurityGroupIds returns the value of the 'additional_infra_security_group_ids' attribute and +// a flag indicating if the attribute has a value. +// +// Additional AWS Security Groups to be added to default infra machine pool. +func (o *AWS) GetAdditionalInfraSecurityGroupIds() (value []string, ok bool) { + ok = o != nil && o.bitmap_&128 != 0 + if ok { + value = o.additionalInfraSecurityGroupIds + } + return +} + +// AuditLog returns the value of the 'audit_log' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Audit log forwarding configuration +func (o *AWS) AuditLog() *AuditLog { + if o != nil && o.bitmap_&256 != 0 { + return o.auditLog + } + return nil +} + +// GetAuditLog returns the value of the 'audit_log' attribute and +// a flag indicating if the attribute has a value. +// +// Audit log forwarding configuration +func (o *AWS) GetAuditLog() (value *AuditLog, ok bool) { + ok = o != nil && o.bitmap_&256 != 0 + if ok { + value = o.auditLog + } + return +} + +// BillingAccountID returns the value of the 'billing_account_ID' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// BillingAccountID is the account used for billing subscriptions purchased via the marketplace +func (o *AWS) BillingAccountID() string { + if o != nil && o.bitmap_&512 != 0 { + return o.billingAccountID + } + return "" +} + +// GetBillingAccountID returns the value of the 'billing_account_ID' attribute and +// a flag indicating if the attribute has a value. +// +// BillingAccountID is the account used for billing subscriptions purchased via the marketplace +func (o *AWS) GetBillingAccountID() (value string, ok bool) { + ok = o != nil && o.bitmap_&512 != 0 + if ok { + value = o.billingAccountID + } + return +} + +// Ec2MetadataHttpTokens returns the value of the 'ec_2_metadata_http_tokens' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Which Ec2MetadataHttpTokens to use for metadata service interaction options for EC2 instances +func (o *AWS) Ec2MetadataHttpTokens() Ec2MetadataHttpTokens { + if o != nil && o.bitmap_&1024 != 0 { + return o.ec2MetadataHttpTokens + } + return Ec2MetadataHttpTokens("") +} + +// GetEc2MetadataHttpTokens returns the value of the 'ec_2_metadata_http_tokens' attribute and +// a flag indicating if the attribute has a value. +// +// Which Ec2MetadataHttpTokens to use for metadata service interaction options for EC2 instances +func (o *AWS) GetEc2MetadataHttpTokens() (value Ec2MetadataHttpTokens, ok bool) { + ok = o != nil && o.bitmap_&1024 != 0 + if ok { + value = o.ec2MetadataHttpTokens + } + return +} + +// EtcdEncryption returns the value of the 'etcd_encryption' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Related etcd encryption configuration +func (o *AWS) EtcdEncryption() *AwsEtcdEncryption { + if o != nil && o.bitmap_&2048 != 0 { + return o.etcdEncryption + } + return nil +} + +// GetEtcdEncryption returns the value of the 'etcd_encryption' attribute and +// a flag indicating if the attribute has a value. +// +// Related etcd encryption configuration +func (o *AWS) GetEtcdEncryption() (value *AwsEtcdEncryption, ok bool) { + ok = o != nil && o.bitmap_&2048 != 0 + if ok { + value = o.etcdEncryption + } + return +} + +// HcpInternalCommunicationHostedZoneId returns the value of the 'hcp_internal_communication_hosted_zone_id' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// ID of local private hosted zone for hypershift internal communication. +func (o *AWS) HcpInternalCommunicationHostedZoneId() string { + if o != nil && o.bitmap_&4096 != 0 { + return o.hcpInternalCommunicationHostedZoneId + } + return "" +} + +// GetHcpInternalCommunicationHostedZoneId returns the value of the 'hcp_internal_communication_hosted_zone_id' attribute and +// a flag indicating if the attribute has a value. +// +// ID of local private hosted zone for hypershift internal communication. +func (o *AWS) GetHcpInternalCommunicationHostedZoneId() (value string, ok bool) { + ok = o != nil && o.bitmap_&4096 != 0 + if ok { + value = o.hcpInternalCommunicationHostedZoneId + } + return +} + +// PrivateHostedZoneID returns the value of the 'private_hosted_zone_ID' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// ID of private hosted zone. +func (o *AWS) PrivateHostedZoneID() string { + if o != nil && o.bitmap_&8192 != 0 { + return o.privateHostedZoneID + } + return "" +} + +// GetPrivateHostedZoneID returns the value of the 'private_hosted_zone_ID' attribute and +// a flag indicating if the attribute has a value. +// +// ID of private hosted zone. +func (o *AWS) GetPrivateHostedZoneID() (value string, ok bool) { + ok = o != nil && o.bitmap_&8192 != 0 + if ok { + value = o.privateHostedZoneID + } + return +} + +// PrivateHostedZoneRoleARN returns the value of the 'private_hosted_zone_role_ARN' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Role ARN for private hosted zone. +func (o *AWS) PrivateHostedZoneRoleARN() string { + if o != nil && o.bitmap_&16384 != 0 { + return o.privateHostedZoneRoleARN + } + return "" +} + +// GetPrivateHostedZoneRoleARN returns the value of the 'private_hosted_zone_role_ARN' attribute and +// a flag indicating if the attribute has a value. +// +// Role ARN for private hosted zone. +func (o *AWS) GetPrivateHostedZoneRoleARN() (value string, ok bool) { + ok = o != nil && o.bitmap_&16384 != 0 + if ok { + value = o.privateHostedZoneRoleARN + } + return +} + +// PrivateLink returns the value of the 'private_link' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Sets cluster to be inaccessible externally. +func (o *AWS) PrivateLink() bool { + if o != nil && o.bitmap_&32768 != 0 { + return o.privateLink + } + return false +} + +// GetPrivateLink returns the value of the 'private_link' attribute and +// a flag indicating if the attribute has a value. +// +// Sets cluster to be inaccessible externally. +func (o *AWS) GetPrivateLink() (value bool, ok bool) { + ok = o != nil && o.bitmap_&32768 != 0 + if ok { + value = o.privateLink + } + return +} + +// PrivateLinkConfiguration returns the value of the 'private_link_configuration' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Manages additional configuration for Private Links. +func (o *AWS) PrivateLinkConfiguration() *PrivateLinkClusterConfiguration { + if o != nil && o.bitmap_&65536 != 0 { + return o.privateLinkConfiguration + } + return nil +} + +// GetPrivateLinkConfiguration returns the value of the 'private_link_configuration' attribute and +// a flag indicating if the attribute has a value. +// +// Manages additional configuration for Private Links. +func (o *AWS) GetPrivateLinkConfiguration() (value *PrivateLinkClusterConfiguration, ok bool) { + ok = o != nil && o.bitmap_&65536 != 0 + if ok { + value = o.privateLinkConfiguration + } + return +} + +// SecretAccessKey returns the value of the 'secret_access_key' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// AWS secret access key. +func (o *AWS) SecretAccessKey() string { + if o != nil && o.bitmap_&131072 != 0 { + return o.secretAccessKey + } + return "" +} + +// GetSecretAccessKey returns the value of the 'secret_access_key' attribute and +// a flag indicating if the attribute has a value. +// +// AWS secret access key. +func (o *AWS) GetSecretAccessKey() (value string, ok bool) { + ok = o != nil && o.bitmap_&131072 != 0 + if ok { + value = o.secretAccessKey + } + return +} + +// SubnetIDs returns the value of the 'subnet_IDs' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The subnet ids to be used when installing the cluster. +func (o *AWS) SubnetIDs() []string { + if o != nil && o.bitmap_&262144 != 0 { + return o.subnetIDs + } + return nil +} + +// GetSubnetIDs returns the value of the 'subnet_IDs' attribute and +// a flag indicating if the attribute has a value. +// +// The subnet ids to be used when installing the cluster. +func (o *AWS) GetSubnetIDs() (value []string, ok bool) { + ok = o != nil && o.bitmap_&262144 != 0 + if ok { + value = o.subnetIDs + } + return +} + +// Tags returns the value of the 'tags' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Optional keys and values that the installer will add as tags to all AWS resources it creates +func (o *AWS) Tags() map[string]string { + if o != nil && o.bitmap_&524288 != 0 { + return o.tags + } + return nil +} + +// GetTags returns the value of the 'tags' attribute and +// a flag indicating if the attribute has a value. +// +// Optional keys and values that the installer will add as tags to all AWS resources it creates +func (o *AWS) GetTags() (value map[string]string, ok bool) { + ok = o != nil && o.bitmap_&524288 != 0 + if ok { + value = o.tags + } + return +} + +// VpcEndpointRoleArn returns the value of the 'vpc_endpoint_role_arn' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Role ARN for VPC Endpoint Service cross account role. +func (o *AWS) VpcEndpointRoleArn() string { + if o != nil && o.bitmap_&1048576 != 0 { + return o.vpcEndpointRoleArn + } + return "" +} + +// GetVpcEndpointRoleArn returns the value of the 'vpc_endpoint_role_arn' attribute and +// a flag indicating if the attribute has a value. +// +// Role ARN for VPC Endpoint Service cross account role. +func (o *AWS) GetVpcEndpointRoleArn() (value string, ok bool) { + ok = o != nil && o.bitmap_&1048576 != 0 + if ok { + value = o.vpcEndpointRoleArn + } + return +} + +// AWSListKind is the name of the type used to represent list of objects of +// type 'AWS'. +const AWSListKind = "AWSList" + +// AWSListLinkKind is the name of the type used to represent links to list +// of objects of type 'AWS'. +const AWSListLinkKind = "AWSListLink" + +// AWSNilKind is the name of the type used to nil lists of objects of +// type 'AWS'. +const AWSListNilKind = "AWSListNil" + +// AWSList is a list of values of the 'AWS' type. +type AWSList struct { + href string + link bool + items []*AWS +} + +// Len returns the length of the list. +func (l *AWSList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *AWSList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AWSList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AWSList) SetItems(items []*AWS) { + l.items = items +} + +// Items returns the items of the list. +func (l *AWSList) Items() []*AWS { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *AWSList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *AWSList) Get(i int) *AWS { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *AWSList) Slice() []*AWS { + var slice []*AWS + if l == nil { + slice = make([]*AWS, 0) + } else { + slice = make([]*AWS, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *AWSList) Each(f func(item *AWS) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *AWSList) Range(f func(index int, item *AWS) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/aws_type_json.go b/arohcp/v1alpha1/aws_type_json.go new file mode 100644 index 000000000..2659c5b01 --- /dev/null +++ b/arohcp/v1alpha1/aws_type_json.go @@ -0,0 +1,376 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + "sort" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalAWS writes a value of the 'AWS' type to the given writer. +func MarshalAWS(object *AWS, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteAWS(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteAWS writes a value of the 'AWS' type to the given stream. +func WriteAWS(object *AWS, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("kms_key_arn") + stream.WriteString(object.kmsKeyArn) + count++ + } + present_ = object.bitmap_&2 != 0 && object.sts != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("sts") + WriteSTS(object.sts, stream) + count++ + } + present_ = object.bitmap_&4 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("access_key_id") + stream.WriteString(object.accessKeyID) + count++ + } + present_ = object.bitmap_&8 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("account_id") + stream.WriteString(object.accountID) + count++ + } + present_ = object.bitmap_&16 != 0 && object.additionalAllowedPrincipals != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("additional_allowed_principals") + WriteStringList(object.additionalAllowedPrincipals, stream) + count++ + } + present_ = object.bitmap_&32 != 0 && object.additionalComputeSecurityGroupIds != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("additional_compute_security_group_ids") + WriteStringList(object.additionalComputeSecurityGroupIds, stream) + count++ + } + present_ = object.bitmap_&64 != 0 && object.additionalControlPlaneSecurityGroupIds != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("additional_control_plane_security_group_ids") + WriteStringList(object.additionalControlPlaneSecurityGroupIds, stream) + count++ + } + present_ = object.bitmap_&128 != 0 && object.additionalInfraSecurityGroupIds != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("additional_infra_security_group_ids") + WriteStringList(object.additionalInfraSecurityGroupIds, stream) + count++ + } + present_ = object.bitmap_&256 != 0 && object.auditLog != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("audit_log") + WriteAuditLog(object.auditLog, stream) + count++ + } + present_ = object.bitmap_&512 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("billing_account_id") + stream.WriteString(object.billingAccountID) + count++ + } + present_ = object.bitmap_&1024 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("ec2_metadata_http_tokens") + stream.WriteString(string(object.ec2MetadataHttpTokens)) + count++ + } + present_ = object.bitmap_&2048 != 0 && object.etcdEncryption != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("etcd_encryption") + WriteAwsEtcdEncryption(object.etcdEncryption, stream) + count++ + } + present_ = object.bitmap_&4096 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("hcp_internal_communication_hosted_zone_id") + stream.WriteString(object.hcpInternalCommunicationHostedZoneId) + count++ + } + present_ = object.bitmap_&8192 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("private_hosted_zone_id") + stream.WriteString(object.privateHostedZoneID) + count++ + } + present_ = object.bitmap_&16384 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("private_hosted_zone_role_arn") + stream.WriteString(object.privateHostedZoneRoleARN) + count++ + } + present_ = object.bitmap_&32768 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("private_link") + stream.WriteBool(object.privateLink) + count++ + } + present_ = object.bitmap_&65536 != 0 && object.privateLinkConfiguration != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("private_link_configuration") + WritePrivateLinkClusterConfiguration(object.privateLinkConfiguration, stream) + count++ + } + present_ = object.bitmap_&131072 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("secret_access_key") + stream.WriteString(object.secretAccessKey) + count++ + } + present_ = object.bitmap_&262144 != 0 && object.subnetIDs != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("subnet_ids") + WriteStringList(object.subnetIDs, stream) + count++ + } + present_ = object.bitmap_&524288 != 0 && object.tags != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("tags") + if object.tags != nil { + stream.WriteObjectStart() + keys := make([]string, len(object.tags)) + i := 0 + for key := range object.tags { + keys[i] = key + i++ + } + sort.Strings(keys) + for i, key := range keys { + if i > 0 { + stream.WriteMore() + } + item := object.tags[key] + stream.WriteObjectField(key) + stream.WriteString(item) + } + stream.WriteObjectEnd() + } else { + stream.WriteNil() + } + count++ + } + present_ = object.bitmap_&1048576 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("vpc_endpoint_role_arn") + stream.WriteString(object.vpcEndpointRoleArn) + } + stream.WriteObjectEnd() +} + +// UnmarshalAWS reads a value of the 'AWS' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalAWS(source interface{}) (object *AWS, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadAWS(iterator) + err = iterator.Error + return +} + +// ReadAWS reads a value of the 'AWS' type from the given iterator. +func ReadAWS(iterator *jsoniter.Iterator) *AWS { + object := &AWS{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "kms_key_arn": + value := iterator.ReadString() + object.kmsKeyArn = value + object.bitmap_ |= 1 + case "sts": + value := ReadSTS(iterator) + object.sts = value + object.bitmap_ |= 2 + case "access_key_id": + value := iterator.ReadString() + object.accessKeyID = value + object.bitmap_ |= 4 + case "account_id": + value := iterator.ReadString() + object.accountID = value + object.bitmap_ |= 8 + case "additional_allowed_principals": + value := ReadStringList(iterator) + object.additionalAllowedPrincipals = value + object.bitmap_ |= 16 + case "additional_compute_security_group_ids": + value := ReadStringList(iterator) + object.additionalComputeSecurityGroupIds = value + object.bitmap_ |= 32 + case "additional_control_plane_security_group_ids": + value := ReadStringList(iterator) + object.additionalControlPlaneSecurityGroupIds = value + object.bitmap_ |= 64 + case "additional_infra_security_group_ids": + value := ReadStringList(iterator) + object.additionalInfraSecurityGroupIds = value + object.bitmap_ |= 128 + case "audit_log": + value := ReadAuditLog(iterator) + object.auditLog = value + object.bitmap_ |= 256 + case "billing_account_id": + value := iterator.ReadString() + object.billingAccountID = value + object.bitmap_ |= 512 + case "ec2_metadata_http_tokens": + text := iterator.ReadString() + value := Ec2MetadataHttpTokens(text) + object.ec2MetadataHttpTokens = value + object.bitmap_ |= 1024 + case "etcd_encryption": + value := ReadAwsEtcdEncryption(iterator) + object.etcdEncryption = value + object.bitmap_ |= 2048 + case "hcp_internal_communication_hosted_zone_id": + value := iterator.ReadString() + object.hcpInternalCommunicationHostedZoneId = value + object.bitmap_ |= 4096 + case "private_hosted_zone_id": + value := iterator.ReadString() + object.privateHostedZoneID = value + object.bitmap_ |= 8192 + case "private_hosted_zone_role_arn": + value := iterator.ReadString() + object.privateHostedZoneRoleARN = value + object.bitmap_ |= 16384 + case "private_link": + value := iterator.ReadBool() + object.privateLink = value + object.bitmap_ |= 32768 + case "private_link_configuration": + value := ReadPrivateLinkClusterConfiguration(iterator) + object.privateLinkConfiguration = value + object.bitmap_ |= 65536 + case "secret_access_key": + value := iterator.ReadString() + object.secretAccessKey = value + object.bitmap_ |= 131072 + case "subnet_ids": + value := ReadStringList(iterator) + object.subnetIDs = value + object.bitmap_ |= 262144 + case "tags": + value := map[string]string{} + for { + key := iterator.ReadObject() + if key == "" { + break + } + item := iterator.ReadString() + value[key] = item + } + object.tags = value + object.bitmap_ |= 524288 + case "vpc_endpoint_role_arn": + value := iterator.ReadString() + object.vpcEndpointRoleArn = value + object.bitmap_ |= 1048576 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/aws_volume_builder.go b/arohcp/v1alpha1/aws_volume_builder.go new file mode 100644 index 000000000..d069ad062 --- /dev/null +++ b/arohcp/v1alpha1/aws_volume_builder.go @@ -0,0 +1,73 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AWSVolumeBuilder contains the data and logic needed to build 'AWS_volume' objects. +// +// Holds settings for an AWS storage volume. +type AWSVolumeBuilder struct { + bitmap_ uint32 + iops int + size int +} + +// NewAWSVolume creates a new builder of 'AWS_volume' objects. +func NewAWSVolume() *AWSVolumeBuilder { + return &AWSVolumeBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *AWSVolumeBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// IOPS sets the value of the 'IOPS' attribute to the given value. +func (b *AWSVolumeBuilder) IOPS(value int) *AWSVolumeBuilder { + b.iops = value + b.bitmap_ |= 1 + return b +} + +// Size sets the value of the 'size' attribute to the given value. +func (b *AWSVolumeBuilder) Size(value int) *AWSVolumeBuilder { + b.size = value + b.bitmap_ |= 2 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *AWSVolumeBuilder) Copy(object *AWSVolume) *AWSVolumeBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.iops = object.iops + b.size = object.size + return b +} + +// Build creates a 'AWS_volume' object using the configuration stored in the builder. +func (b *AWSVolumeBuilder) Build() (object *AWSVolume, err error) { + object = new(AWSVolume) + object.bitmap_ = b.bitmap_ + object.iops = b.iops + object.size = b.size + return +} diff --git a/arohcp/v1alpha1/aws_volume_list_builder.go b/arohcp/v1alpha1/aws_volume_list_builder.go new file mode 100644 index 000000000..bbbfe42e2 --- /dev/null +++ b/arohcp/v1alpha1/aws_volume_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AWSVolumeListBuilder contains the data and logic needed to build +// 'AWS_volume' objects. +type AWSVolumeListBuilder struct { + items []*AWSVolumeBuilder +} + +// NewAWSVolumeList creates a new builder of 'AWS_volume' objects. +func NewAWSVolumeList() *AWSVolumeListBuilder { + return new(AWSVolumeListBuilder) +} + +// Items sets the items of the list. +func (b *AWSVolumeListBuilder) Items(values ...*AWSVolumeBuilder) *AWSVolumeListBuilder { + b.items = make([]*AWSVolumeBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *AWSVolumeListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *AWSVolumeListBuilder) Copy(list *AWSVolumeList) *AWSVolumeListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*AWSVolumeBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewAWSVolume().Copy(v) + } + } + return b +} + +// Build creates a list of 'AWS_volume' objects using the +// configuration stored in the builder. +func (b *AWSVolumeListBuilder) Build() (list *AWSVolumeList, err error) { + items := make([]*AWSVolume, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(AWSVolumeList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/aws_volume_list_type_json.go b/arohcp/v1alpha1/aws_volume_list_type_json.go new file mode 100644 index 000000000..e6379489b --- /dev/null +++ b/arohcp/v1alpha1/aws_volume_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalAWSVolumeList writes a list of values of the 'AWS_volume' type to +// the given writer. +func MarshalAWSVolumeList(list []*AWSVolume, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteAWSVolumeList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteAWSVolumeList writes a list of value of the 'AWS_volume' type to +// the given stream. +func WriteAWSVolumeList(list []*AWSVolume, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteAWSVolume(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalAWSVolumeList reads a list of values of the 'AWS_volume' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalAWSVolumeList(source interface{}) (items []*AWSVolume, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadAWSVolumeList(iterator) + err = iterator.Error + return +} + +// ReadAWSVolumeList reads list of values of the ”AWS_volume' type from +// the given iterator. +func ReadAWSVolumeList(iterator *jsoniter.Iterator) []*AWSVolume { + list := []*AWSVolume{} + for iterator.ReadArray() { + item := ReadAWSVolume(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/aws_volume_type.go b/arohcp/v1alpha1/aws_volume_type.go new file mode 100644 index 000000000..9f93537bb --- /dev/null +++ b/arohcp/v1alpha1/aws_volume_type.go @@ -0,0 +1,189 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AWSVolume represents the values of the 'AWS_volume' type. +// +// Holds settings for an AWS storage volume. +type AWSVolume struct { + bitmap_ uint32 + iops int + size int +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *AWSVolume) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// IOPS returns the value of the 'IOPS' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Volume provisioned IOPS. +func (o *AWSVolume) IOPS() int { + if o != nil && o.bitmap_&1 != 0 { + return o.iops + } + return 0 +} + +// GetIOPS returns the value of the 'IOPS' attribute and +// a flag indicating if the attribute has a value. +// +// Volume provisioned IOPS. +func (o *AWSVolume) GetIOPS() (value int, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.iops + } + return +} + +// Size returns the value of the 'size' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Volume size in Gib. +func (o *AWSVolume) Size() int { + if o != nil && o.bitmap_&2 != 0 { + return o.size + } + return 0 +} + +// GetSize returns the value of the 'size' attribute and +// a flag indicating if the attribute has a value. +// +// Volume size in Gib. +func (o *AWSVolume) GetSize() (value int, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.size + } + return +} + +// AWSVolumeListKind is the name of the type used to represent list of objects of +// type 'AWS_volume'. +const AWSVolumeListKind = "AWSVolumeList" + +// AWSVolumeListLinkKind is the name of the type used to represent links to list +// of objects of type 'AWS_volume'. +const AWSVolumeListLinkKind = "AWSVolumeListLink" + +// AWSVolumeNilKind is the name of the type used to nil lists of objects of +// type 'AWS_volume'. +const AWSVolumeListNilKind = "AWSVolumeListNil" + +// AWSVolumeList is a list of values of the 'AWS_volume' type. +type AWSVolumeList struct { + href string + link bool + items []*AWSVolume +} + +// Len returns the length of the list. +func (l *AWSVolumeList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *AWSVolumeList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AWSVolumeList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AWSVolumeList) SetItems(items []*AWSVolume) { + l.items = items +} + +// Items returns the items of the list. +func (l *AWSVolumeList) Items() []*AWSVolume { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *AWSVolumeList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *AWSVolumeList) Get(i int) *AWSVolume { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *AWSVolumeList) Slice() []*AWSVolume { + var slice []*AWSVolume + if l == nil { + slice = make([]*AWSVolume, 0) + } else { + slice = make([]*AWSVolume, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *AWSVolumeList) Each(f func(item *AWSVolume) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *AWSVolumeList) Range(f func(index int, item *AWSVolume) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/aws_volume_type_json.go b/arohcp/v1alpha1/aws_volume_type_json.go new file mode 100644 index 000000000..a54935c89 --- /dev/null +++ b/arohcp/v1alpha1/aws_volume_type_json.go @@ -0,0 +1,99 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalAWSVolume writes a value of the 'AWS_volume' type to the given writer. +func MarshalAWSVolume(object *AWSVolume, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteAWSVolume(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteAWSVolume writes a value of the 'AWS_volume' type to the given stream. +func WriteAWSVolume(object *AWSVolume, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("iops") + stream.WriteInt(object.iops) + count++ + } + present_ = object.bitmap_&2 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("size") + stream.WriteInt(object.size) + } + stream.WriteObjectEnd() +} + +// UnmarshalAWSVolume reads a value of the 'AWS_volume' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalAWSVolume(source interface{}) (object *AWSVolume, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadAWSVolume(iterator) + err = iterator.Error + return +} + +// ReadAWSVolume reads a value of the 'AWS_volume' type from the given iterator. +func ReadAWSVolume(iterator *jsoniter.Iterator) *AWSVolume { + object := &AWSVolume{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "iops": + value := iterator.ReadInt() + object.iops = value + object.bitmap_ |= 1 + case "size": + value := iterator.ReadInt() + object.size = value + object.bitmap_ |= 2 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/azure_builder.go b/arohcp/v1alpha1/azure_builder.go new file mode 100644 index 000000000..24cd8b817 --- /dev/null +++ b/arohcp/v1alpha1/azure_builder.go @@ -0,0 +1,174 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AzureBuilder contains the data and logic needed to build 'azure' objects. +// +// Microsoft Azure settings of a cluster. +type AzureBuilder struct { + bitmap_ uint32 + managedResourceGroupName string + networkSecurityGroupResourceID string + nodesOutboundConnectivity *AzureNodesOutboundConnectivityBuilder + operatorsAuthentication *AzureOperatorsAuthenticationBuilder + resourceGroupName string + resourceName string + subnetResourceID string + subscriptionID string + tenantID string +} + +// NewAzure creates a new builder of 'azure' objects. +func NewAzure() *AzureBuilder { + return &AzureBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *AzureBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// ManagedResourceGroupName sets the value of the 'managed_resource_group_name' attribute to the given value. +func (b *AzureBuilder) ManagedResourceGroupName(value string) *AzureBuilder { + b.managedResourceGroupName = value + b.bitmap_ |= 1 + return b +} + +// NetworkSecurityGroupResourceID sets the value of the 'network_security_group_resource_ID' attribute to the given value. +func (b *AzureBuilder) NetworkSecurityGroupResourceID(value string) *AzureBuilder { + b.networkSecurityGroupResourceID = value + b.bitmap_ |= 2 + return b +} + +// NodesOutboundConnectivity sets the value of the 'nodes_outbound_connectivity' attribute to the given value. +// +// The configuration of the node outbound connectivity +func (b *AzureBuilder) NodesOutboundConnectivity(value *AzureNodesOutboundConnectivityBuilder) *AzureBuilder { + b.nodesOutboundConnectivity = value + if value != nil { + b.bitmap_ |= 4 + } else { + b.bitmap_ &^= 4 + } + return b +} + +// OperatorsAuthentication sets the value of the 'operators_authentication' attribute to the given value. +// +// The configuration that the operators of the +// cluster have to authenticate to Azure. +func (b *AzureBuilder) OperatorsAuthentication(value *AzureOperatorsAuthenticationBuilder) *AzureBuilder { + b.operatorsAuthentication = value + if value != nil { + b.bitmap_ |= 8 + } else { + b.bitmap_ &^= 8 + } + return b +} + +// ResourceGroupName sets the value of the 'resource_group_name' attribute to the given value. +func (b *AzureBuilder) ResourceGroupName(value string) *AzureBuilder { + b.resourceGroupName = value + b.bitmap_ |= 16 + return b +} + +// ResourceName sets the value of the 'resource_name' attribute to the given value. +func (b *AzureBuilder) ResourceName(value string) *AzureBuilder { + b.resourceName = value + b.bitmap_ |= 32 + return b +} + +// SubnetResourceID sets the value of the 'subnet_resource_ID' attribute to the given value. +func (b *AzureBuilder) SubnetResourceID(value string) *AzureBuilder { + b.subnetResourceID = value + b.bitmap_ |= 64 + return b +} + +// SubscriptionID sets the value of the 'subscription_ID' attribute to the given value. +func (b *AzureBuilder) SubscriptionID(value string) *AzureBuilder { + b.subscriptionID = value + b.bitmap_ |= 128 + return b +} + +// TenantID sets the value of the 'tenant_ID' attribute to the given value. +func (b *AzureBuilder) TenantID(value string) *AzureBuilder { + b.tenantID = value + b.bitmap_ |= 256 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *AzureBuilder) Copy(object *Azure) *AzureBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.managedResourceGroupName = object.managedResourceGroupName + b.networkSecurityGroupResourceID = object.networkSecurityGroupResourceID + if object.nodesOutboundConnectivity != nil { + b.nodesOutboundConnectivity = NewAzureNodesOutboundConnectivity().Copy(object.nodesOutboundConnectivity) + } else { + b.nodesOutboundConnectivity = nil + } + if object.operatorsAuthentication != nil { + b.operatorsAuthentication = NewAzureOperatorsAuthentication().Copy(object.operatorsAuthentication) + } else { + b.operatorsAuthentication = nil + } + b.resourceGroupName = object.resourceGroupName + b.resourceName = object.resourceName + b.subnetResourceID = object.subnetResourceID + b.subscriptionID = object.subscriptionID + b.tenantID = object.tenantID + return b +} + +// Build creates a 'azure' object using the configuration stored in the builder. +func (b *AzureBuilder) Build() (object *Azure, err error) { + object = new(Azure) + object.bitmap_ = b.bitmap_ + object.managedResourceGroupName = b.managedResourceGroupName + object.networkSecurityGroupResourceID = b.networkSecurityGroupResourceID + if b.nodesOutboundConnectivity != nil { + object.nodesOutboundConnectivity, err = b.nodesOutboundConnectivity.Build() + if err != nil { + return + } + } + if b.operatorsAuthentication != nil { + object.operatorsAuthentication, err = b.operatorsAuthentication.Build() + if err != nil { + return + } + } + object.resourceGroupName = b.resourceGroupName + object.resourceName = b.resourceName + object.subnetResourceID = b.subnetResourceID + object.subscriptionID = b.subscriptionID + object.tenantID = b.tenantID + return +} diff --git a/arohcp/v1alpha1/azure_control_plane_managed_identity_builder.go b/arohcp/v1alpha1/azure_control_plane_managed_identity_builder.go new file mode 100644 index 000000000..0a5e74871 --- /dev/null +++ b/arohcp/v1alpha1/azure_control_plane_managed_identity_builder.go @@ -0,0 +1,84 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AzureControlPlaneManagedIdentityBuilder contains the data and logic needed to build 'azure_control_plane_managed_identity' objects. +// +// Represents the information associated to an Azure User-Assigned +// Managed Identity belonging to the Control Plane of the cluster. +type AzureControlPlaneManagedIdentityBuilder struct { + bitmap_ uint32 + clientID string + principalID string + resourceID string +} + +// NewAzureControlPlaneManagedIdentity creates a new builder of 'azure_control_plane_managed_identity' objects. +func NewAzureControlPlaneManagedIdentity() *AzureControlPlaneManagedIdentityBuilder { + return &AzureControlPlaneManagedIdentityBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *AzureControlPlaneManagedIdentityBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// ClientID sets the value of the 'client_ID' attribute to the given value. +func (b *AzureControlPlaneManagedIdentityBuilder) ClientID(value string) *AzureControlPlaneManagedIdentityBuilder { + b.clientID = value + b.bitmap_ |= 1 + return b +} + +// PrincipalID sets the value of the 'principal_ID' attribute to the given value. +func (b *AzureControlPlaneManagedIdentityBuilder) PrincipalID(value string) *AzureControlPlaneManagedIdentityBuilder { + b.principalID = value + b.bitmap_ |= 2 + return b +} + +// ResourceID sets the value of the 'resource_ID' attribute to the given value. +func (b *AzureControlPlaneManagedIdentityBuilder) ResourceID(value string) *AzureControlPlaneManagedIdentityBuilder { + b.resourceID = value + b.bitmap_ |= 4 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *AzureControlPlaneManagedIdentityBuilder) Copy(object *AzureControlPlaneManagedIdentity) *AzureControlPlaneManagedIdentityBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.clientID = object.clientID + b.principalID = object.principalID + b.resourceID = object.resourceID + return b +} + +// Build creates a 'azure_control_plane_managed_identity' object using the configuration stored in the builder. +func (b *AzureControlPlaneManagedIdentityBuilder) Build() (object *AzureControlPlaneManagedIdentity, err error) { + object = new(AzureControlPlaneManagedIdentity) + object.bitmap_ = b.bitmap_ + object.clientID = b.clientID + object.principalID = b.principalID + object.resourceID = b.resourceID + return +} diff --git a/arohcp/v1alpha1/azure_control_plane_managed_identity_list_builder.go b/arohcp/v1alpha1/azure_control_plane_managed_identity_list_builder.go new file mode 100644 index 000000000..3fd213a00 --- /dev/null +++ b/arohcp/v1alpha1/azure_control_plane_managed_identity_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AzureControlPlaneManagedIdentityListBuilder contains the data and logic needed to build +// 'azure_control_plane_managed_identity' objects. +type AzureControlPlaneManagedIdentityListBuilder struct { + items []*AzureControlPlaneManagedIdentityBuilder +} + +// NewAzureControlPlaneManagedIdentityList creates a new builder of 'azure_control_plane_managed_identity' objects. +func NewAzureControlPlaneManagedIdentityList() *AzureControlPlaneManagedIdentityListBuilder { + return new(AzureControlPlaneManagedIdentityListBuilder) +} + +// Items sets the items of the list. +func (b *AzureControlPlaneManagedIdentityListBuilder) Items(values ...*AzureControlPlaneManagedIdentityBuilder) *AzureControlPlaneManagedIdentityListBuilder { + b.items = make([]*AzureControlPlaneManagedIdentityBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *AzureControlPlaneManagedIdentityListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *AzureControlPlaneManagedIdentityListBuilder) Copy(list *AzureControlPlaneManagedIdentityList) *AzureControlPlaneManagedIdentityListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*AzureControlPlaneManagedIdentityBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewAzureControlPlaneManagedIdentity().Copy(v) + } + } + return b +} + +// Build creates a list of 'azure_control_plane_managed_identity' objects using the +// configuration stored in the builder. +func (b *AzureControlPlaneManagedIdentityListBuilder) Build() (list *AzureControlPlaneManagedIdentityList, err error) { + items := make([]*AzureControlPlaneManagedIdentity, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(AzureControlPlaneManagedIdentityList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/azure_control_plane_managed_identity_list_type_json.go b/arohcp/v1alpha1/azure_control_plane_managed_identity_list_type_json.go new file mode 100644 index 000000000..8401450b6 --- /dev/null +++ b/arohcp/v1alpha1/azure_control_plane_managed_identity_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalAzureControlPlaneManagedIdentityList writes a list of values of the 'azure_control_plane_managed_identity' type to +// the given writer. +func MarshalAzureControlPlaneManagedIdentityList(list []*AzureControlPlaneManagedIdentity, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteAzureControlPlaneManagedIdentityList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteAzureControlPlaneManagedIdentityList writes a list of value of the 'azure_control_plane_managed_identity' type to +// the given stream. +func WriteAzureControlPlaneManagedIdentityList(list []*AzureControlPlaneManagedIdentity, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteAzureControlPlaneManagedIdentity(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalAzureControlPlaneManagedIdentityList reads a list of values of the 'azure_control_plane_managed_identity' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalAzureControlPlaneManagedIdentityList(source interface{}) (items []*AzureControlPlaneManagedIdentity, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadAzureControlPlaneManagedIdentityList(iterator) + err = iterator.Error + return +} + +// ReadAzureControlPlaneManagedIdentityList reads list of values of the ”azure_control_plane_managed_identity' type from +// the given iterator. +func ReadAzureControlPlaneManagedIdentityList(iterator *jsoniter.Iterator) []*AzureControlPlaneManagedIdentity { + list := []*AzureControlPlaneManagedIdentity{} + for iterator.ReadArray() { + item := ReadAzureControlPlaneManagedIdentity(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/azure_control_plane_managed_identity_type.go b/arohcp/v1alpha1/azure_control_plane_managed_identity_type.go new file mode 100644 index 000000000..b587bc02a --- /dev/null +++ b/arohcp/v1alpha1/azure_control_plane_managed_identity_type.go @@ -0,0 +1,244 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AzureControlPlaneManagedIdentity represents the values of the 'azure_control_plane_managed_identity' type. +// +// Represents the information associated to an Azure User-Assigned +// Managed Identity belonging to the Control Plane of the cluster. +type AzureControlPlaneManagedIdentity struct { + bitmap_ uint32 + clientID string + principalID string + resourceID string +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *AzureControlPlaneManagedIdentity) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// ClientID returns the value of the 'client_ID' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The Client ID associated to the Azure User-Assigned Managed Identity. +// Readonly. +func (o *AzureControlPlaneManagedIdentity) ClientID() string { + if o != nil && o.bitmap_&1 != 0 { + return o.clientID + } + return "" +} + +// GetClientID returns the value of the 'client_ID' attribute and +// a flag indicating if the attribute has a value. +// +// The Client ID associated to the Azure User-Assigned Managed Identity. +// Readonly. +func (o *AzureControlPlaneManagedIdentity) GetClientID() (value string, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.clientID + } + return +} + +// PrincipalID returns the value of the 'principal_ID' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The Principal ID associated to the Azure User-Assigned Identity. +// Readonly. +func (o *AzureControlPlaneManagedIdentity) PrincipalID() string { + if o != nil && o.bitmap_&2 != 0 { + return o.principalID + } + return "" +} + +// GetPrincipalID returns the value of the 'principal_ID' attribute and +// a flag indicating if the attribute has a value. +// +// The Principal ID associated to the Azure User-Assigned Identity. +// Readonly. +func (o *AzureControlPlaneManagedIdentity) GetPrincipalID() (value string, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.principalID + } + return +} + +// ResourceID returns the value of the 'resource_ID' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The Azure Resource ID of the Azure User-Assigned Managed +// Identity. The managed identity represented must exist before +// creating the cluster. +// The Azure Resource Group Name specified as part of the Resource ID +// must belong to the Azure Subscription specified in `.azure.subscription_id`, +// and in the same Azure location as the cluster's region. +// The Azure Resource Group Name specified as part of the Resource ID +// must be a different Resource Group Name than the one specified in +// `.azure.managed_resource_group_name`. +// The Azure Resource Group Name specified as part of the Resource ID +// can be the same, or a different one than the one specified in +// `.azure.resource_group_name`. +// Required during creation. +// Immutable. +func (o *AzureControlPlaneManagedIdentity) ResourceID() string { + if o != nil && o.bitmap_&4 != 0 { + return o.resourceID + } + return "" +} + +// GetResourceID returns the value of the 'resource_ID' attribute and +// a flag indicating if the attribute has a value. +// +// The Azure Resource ID of the Azure User-Assigned Managed +// Identity. The managed identity represented must exist before +// creating the cluster. +// The Azure Resource Group Name specified as part of the Resource ID +// must belong to the Azure Subscription specified in `.azure.subscription_id`, +// and in the same Azure location as the cluster's region. +// The Azure Resource Group Name specified as part of the Resource ID +// must be a different Resource Group Name than the one specified in +// `.azure.managed_resource_group_name`. +// The Azure Resource Group Name specified as part of the Resource ID +// can be the same, or a different one than the one specified in +// `.azure.resource_group_name`. +// Required during creation. +// Immutable. +func (o *AzureControlPlaneManagedIdentity) GetResourceID() (value string, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.resourceID + } + return +} + +// AzureControlPlaneManagedIdentityListKind is the name of the type used to represent list of objects of +// type 'azure_control_plane_managed_identity'. +const AzureControlPlaneManagedIdentityListKind = "AzureControlPlaneManagedIdentityList" + +// AzureControlPlaneManagedIdentityListLinkKind is the name of the type used to represent links to list +// of objects of type 'azure_control_plane_managed_identity'. +const AzureControlPlaneManagedIdentityListLinkKind = "AzureControlPlaneManagedIdentityListLink" + +// AzureControlPlaneManagedIdentityNilKind is the name of the type used to nil lists of objects of +// type 'azure_control_plane_managed_identity'. +const AzureControlPlaneManagedIdentityListNilKind = "AzureControlPlaneManagedIdentityListNil" + +// AzureControlPlaneManagedIdentityList is a list of values of the 'azure_control_plane_managed_identity' type. +type AzureControlPlaneManagedIdentityList struct { + href string + link bool + items []*AzureControlPlaneManagedIdentity +} + +// Len returns the length of the list. +func (l *AzureControlPlaneManagedIdentityList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *AzureControlPlaneManagedIdentityList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AzureControlPlaneManagedIdentityList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AzureControlPlaneManagedIdentityList) SetItems(items []*AzureControlPlaneManagedIdentity) { + l.items = items +} + +// Items returns the items of the list. +func (l *AzureControlPlaneManagedIdentityList) Items() []*AzureControlPlaneManagedIdentity { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *AzureControlPlaneManagedIdentityList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *AzureControlPlaneManagedIdentityList) Get(i int) *AzureControlPlaneManagedIdentity { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *AzureControlPlaneManagedIdentityList) Slice() []*AzureControlPlaneManagedIdentity { + var slice []*AzureControlPlaneManagedIdentity + if l == nil { + slice = make([]*AzureControlPlaneManagedIdentity, 0) + } else { + slice = make([]*AzureControlPlaneManagedIdentity, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *AzureControlPlaneManagedIdentityList) Each(f func(item *AzureControlPlaneManagedIdentity) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *AzureControlPlaneManagedIdentityList) Range(f func(index int, item *AzureControlPlaneManagedIdentity) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/azure_control_plane_managed_identity_type_json.go b/arohcp/v1alpha1/azure_control_plane_managed_identity_type_json.go new file mode 100644 index 000000000..592fa1e7a --- /dev/null +++ b/arohcp/v1alpha1/azure_control_plane_managed_identity_type_json.go @@ -0,0 +1,112 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalAzureControlPlaneManagedIdentity writes a value of the 'azure_control_plane_managed_identity' type to the given writer. +func MarshalAzureControlPlaneManagedIdentity(object *AzureControlPlaneManagedIdentity, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteAzureControlPlaneManagedIdentity(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteAzureControlPlaneManagedIdentity writes a value of the 'azure_control_plane_managed_identity' type to the given stream. +func WriteAzureControlPlaneManagedIdentity(object *AzureControlPlaneManagedIdentity, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("client_id") + stream.WriteString(object.clientID) + count++ + } + present_ = object.bitmap_&2 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("principal_id") + stream.WriteString(object.principalID) + count++ + } + present_ = object.bitmap_&4 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("resource_id") + stream.WriteString(object.resourceID) + } + stream.WriteObjectEnd() +} + +// UnmarshalAzureControlPlaneManagedIdentity reads a value of the 'azure_control_plane_managed_identity' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalAzureControlPlaneManagedIdentity(source interface{}) (object *AzureControlPlaneManagedIdentity, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadAzureControlPlaneManagedIdentity(iterator) + err = iterator.Error + return +} + +// ReadAzureControlPlaneManagedIdentity reads a value of the 'azure_control_plane_managed_identity' type from the given iterator. +func ReadAzureControlPlaneManagedIdentity(iterator *jsoniter.Iterator) *AzureControlPlaneManagedIdentity { + object := &AzureControlPlaneManagedIdentity{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "client_id": + value := iterator.ReadString() + object.clientID = value + object.bitmap_ |= 1 + case "principal_id": + value := iterator.ReadString() + object.principalID = value + object.bitmap_ |= 2 + case "resource_id": + value := iterator.ReadString() + object.resourceID = value + object.bitmap_ |= 4 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/azure_data_plane_managed_identity_builder.go b/arohcp/v1alpha1/azure_data_plane_managed_identity_builder.go new file mode 100644 index 000000000..58a6588f1 --- /dev/null +++ b/arohcp/v1alpha1/azure_data_plane_managed_identity_builder.go @@ -0,0 +1,64 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AzureDataPlaneManagedIdentityBuilder contains the data and logic needed to build 'azure_data_plane_managed_identity' objects. +// +// Represents the information associated to an Azure User-Assigned +// Managed Identity belonging to the Data Plane of the cluster. +type AzureDataPlaneManagedIdentityBuilder struct { + bitmap_ uint32 + resourceID string +} + +// NewAzureDataPlaneManagedIdentity creates a new builder of 'azure_data_plane_managed_identity' objects. +func NewAzureDataPlaneManagedIdentity() *AzureDataPlaneManagedIdentityBuilder { + return &AzureDataPlaneManagedIdentityBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *AzureDataPlaneManagedIdentityBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// ResourceID sets the value of the 'resource_ID' attribute to the given value. +func (b *AzureDataPlaneManagedIdentityBuilder) ResourceID(value string) *AzureDataPlaneManagedIdentityBuilder { + b.resourceID = value + b.bitmap_ |= 1 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *AzureDataPlaneManagedIdentityBuilder) Copy(object *AzureDataPlaneManagedIdentity) *AzureDataPlaneManagedIdentityBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.resourceID = object.resourceID + return b +} + +// Build creates a 'azure_data_plane_managed_identity' object using the configuration stored in the builder. +func (b *AzureDataPlaneManagedIdentityBuilder) Build() (object *AzureDataPlaneManagedIdentity, err error) { + object = new(AzureDataPlaneManagedIdentity) + object.bitmap_ = b.bitmap_ + object.resourceID = b.resourceID + return +} diff --git a/arohcp/v1alpha1/azure_data_plane_managed_identity_list_builder.go b/arohcp/v1alpha1/azure_data_plane_managed_identity_list_builder.go new file mode 100644 index 000000000..37a17ce8f --- /dev/null +++ b/arohcp/v1alpha1/azure_data_plane_managed_identity_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AzureDataPlaneManagedIdentityListBuilder contains the data and logic needed to build +// 'azure_data_plane_managed_identity' objects. +type AzureDataPlaneManagedIdentityListBuilder struct { + items []*AzureDataPlaneManagedIdentityBuilder +} + +// NewAzureDataPlaneManagedIdentityList creates a new builder of 'azure_data_plane_managed_identity' objects. +func NewAzureDataPlaneManagedIdentityList() *AzureDataPlaneManagedIdentityListBuilder { + return new(AzureDataPlaneManagedIdentityListBuilder) +} + +// Items sets the items of the list. +func (b *AzureDataPlaneManagedIdentityListBuilder) Items(values ...*AzureDataPlaneManagedIdentityBuilder) *AzureDataPlaneManagedIdentityListBuilder { + b.items = make([]*AzureDataPlaneManagedIdentityBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *AzureDataPlaneManagedIdentityListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *AzureDataPlaneManagedIdentityListBuilder) Copy(list *AzureDataPlaneManagedIdentityList) *AzureDataPlaneManagedIdentityListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*AzureDataPlaneManagedIdentityBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewAzureDataPlaneManagedIdentity().Copy(v) + } + } + return b +} + +// Build creates a list of 'azure_data_plane_managed_identity' objects using the +// configuration stored in the builder. +func (b *AzureDataPlaneManagedIdentityListBuilder) Build() (list *AzureDataPlaneManagedIdentityList, err error) { + items := make([]*AzureDataPlaneManagedIdentity, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(AzureDataPlaneManagedIdentityList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/azure_data_plane_managed_identity_list_type_json.go b/arohcp/v1alpha1/azure_data_plane_managed_identity_list_type_json.go new file mode 100644 index 000000000..d1f870502 --- /dev/null +++ b/arohcp/v1alpha1/azure_data_plane_managed_identity_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalAzureDataPlaneManagedIdentityList writes a list of values of the 'azure_data_plane_managed_identity' type to +// the given writer. +func MarshalAzureDataPlaneManagedIdentityList(list []*AzureDataPlaneManagedIdentity, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteAzureDataPlaneManagedIdentityList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteAzureDataPlaneManagedIdentityList writes a list of value of the 'azure_data_plane_managed_identity' type to +// the given stream. +func WriteAzureDataPlaneManagedIdentityList(list []*AzureDataPlaneManagedIdentity, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteAzureDataPlaneManagedIdentity(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalAzureDataPlaneManagedIdentityList reads a list of values of the 'azure_data_plane_managed_identity' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalAzureDataPlaneManagedIdentityList(source interface{}) (items []*AzureDataPlaneManagedIdentity, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadAzureDataPlaneManagedIdentityList(iterator) + err = iterator.Error + return +} + +// ReadAzureDataPlaneManagedIdentityList reads list of values of the ”azure_data_plane_managed_identity' type from +// the given iterator. +func ReadAzureDataPlaneManagedIdentityList(iterator *jsoniter.Iterator) []*AzureDataPlaneManagedIdentity { + list := []*AzureDataPlaneManagedIdentity{} + for iterator.ReadArray() { + item := ReadAzureDataPlaneManagedIdentity(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/azure_data_plane_managed_identity_type.go b/arohcp/v1alpha1/azure_data_plane_managed_identity_type.go new file mode 100644 index 000000000..b3791de3e --- /dev/null +++ b/arohcp/v1alpha1/azure_data_plane_managed_identity_type.go @@ -0,0 +1,192 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AzureDataPlaneManagedIdentity represents the values of the 'azure_data_plane_managed_identity' type. +// +// Represents the information associated to an Azure User-Assigned +// Managed Identity belonging to the Data Plane of the cluster. +type AzureDataPlaneManagedIdentity struct { + bitmap_ uint32 + resourceID string +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *AzureDataPlaneManagedIdentity) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// ResourceID returns the value of the 'resource_ID' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The Azure Resource ID of the Azure User-Assigned Managed +// Identity. The managed identity represented must exist before +// creating the cluster. +// The Azure Resource Group Name specified as part of the Resource ID +// must belong to the Azure Subscription specified in `.azure.subscription_id`, +// and in the same Azure location as the cluster's region. +// The Azure Resource Group Name specified as part of the Resource ID +// must be a different Resource Group Name than the one specified in +// `.azure.managed_resource_group_name`. +// The Azure Resource Group Name specified as part of the Resource ID +// can be the same, or a different one than the one specified in +// `.azure.resource_group_name`. +// Required during creation. +// Immutable. +func (o *AzureDataPlaneManagedIdentity) ResourceID() string { + if o != nil && o.bitmap_&1 != 0 { + return o.resourceID + } + return "" +} + +// GetResourceID returns the value of the 'resource_ID' attribute and +// a flag indicating if the attribute has a value. +// +// The Azure Resource ID of the Azure User-Assigned Managed +// Identity. The managed identity represented must exist before +// creating the cluster. +// The Azure Resource Group Name specified as part of the Resource ID +// must belong to the Azure Subscription specified in `.azure.subscription_id`, +// and in the same Azure location as the cluster's region. +// The Azure Resource Group Name specified as part of the Resource ID +// must be a different Resource Group Name than the one specified in +// `.azure.managed_resource_group_name`. +// The Azure Resource Group Name specified as part of the Resource ID +// can be the same, or a different one than the one specified in +// `.azure.resource_group_name`. +// Required during creation. +// Immutable. +func (o *AzureDataPlaneManagedIdentity) GetResourceID() (value string, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.resourceID + } + return +} + +// AzureDataPlaneManagedIdentityListKind is the name of the type used to represent list of objects of +// type 'azure_data_plane_managed_identity'. +const AzureDataPlaneManagedIdentityListKind = "AzureDataPlaneManagedIdentityList" + +// AzureDataPlaneManagedIdentityListLinkKind is the name of the type used to represent links to list +// of objects of type 'azure_data_plane_managed_identity'. +const AzureDataPlaneManagedIdentityListLinkKind = "AzureDataPlaneManagedIdentityListLink" + +// AzureDataPlaneManagedIdentityNilKind is the name of the type used to nil lists of objects of +// type 'azure_data_plane_managed_identity'. +const AzureDataPlaneManagedIdentityListNilKind = "AzureDataPlaneManagedIdentityListNil" + +// AzureDataPlaneManagedIdentityList is a list of values of the 'azure_data_plane_managed_identity' type. +type AzureDataPlaneManagedIdentityList struct { + href string + link bool + items []*AzureDataPlaneManagedIdentity +} + +// Len returns the length of the list. +func (l *AzureDataPlaneManagedIdentityList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *AzureDataPlaneManagedIdentityList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AzureDataPlaneManagedIdentityList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AzureDataPlaneManagedIdentityList) SetItems(items []*AzureDataPlaneManagedIdentity) { + l.items = items +} + +// Items returns the items of the list. +func (l *AzureDataPlaneManagedIdentityList) Items() []*AzureDataPlaneManagedIdentity { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *AzureDataPlaneManagedIdentityList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *AzureDataPlaneManagedIdentityList) Get(i int) *AzureDataPlaneManagedIdentity { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *AzureDataPlaneManagedIdentityList) Slice() []*AzureDataPlaneManagedIdentity { + var slice []*AzureDataPlaneManagedIdentity + if l == nil { + slice = make([]*AzureDataPlaneManagedIdentity, 0) + } else { + slice = make([]*AzureDataPlaneManagedIdentity, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *AzureDataPlaneManagedIdentityList) Each(f func(item *AzureDataPlaneManagedIdentity) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *AzureDataPlaneManagedIdentityList) Range(f func(index int, item *AzureDataPlaneManagedIdentity) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/azure_data_plane_managed_identity_type_json.go b/arohcp/v1alpha1/azure_data_plane_managed_identity_type_json.go new file mode 100644 index 000000000..037de0e5a --- /dev/null +++ b/arohcp/v1alpha1/azure_data_plane_managed_identity_type_json.go @@ -0,0 +1,86 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalAzureDataPlaneManagedIdentity writes a value of the 'azure_data_plane_managed_identity' type to the given writer. +func MarshalAzureDataPlaneManagedIdentity(object *AzureDataPlaneManagedIdentity, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteAzureDataPlaneManagedIdentity(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteAzureDataPlaneManagedIdentity writes a value of the 'azure_data_plane_managed_identity' type to the given stream. +func WriteAzureDataPlaneManagedIdentity(object *AzureDataPlaneManagedIdentity, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("resource_id") + stream.WriteString(object.resourceID) + } + stream.WriteObjectEnd() +} + +// UnmarshalAzureDataPlaneManagedIdentity reads a value of the 'azure_data_plane_managed_identity' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalAzureDataPlaneManagedIdentity(source interface{}) (object *AzureDataPlaneManagedIdentity, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadAzureDataPlaneManagedIdentity(iterator) + err = iterator.Error + return +} + +// ReadAzureDataPlaneManagedIdentity reads a value of the 'azure_data_plane_managed_identity' type from the given iterator. +func ReadAzureDataPlaneManagedIdentity(iterator *jsoniter.Iterator) *AzureDataPlaneManagedIdentity { + object := &AzureDataPlaneManagedIdentity{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "resource_id": + value := iterator.ReadString() + object.resourceID = value + object.bitmap_ |= 1 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/azure_list_builder.go b/arohcp/v1alpha1/azure_list_builder.go new file mode 100644 index 000000000..055ac641a --- /dev/null +++ b/arohcp/v1alpha1/azure_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AzureListBuilder contains the data and logic needed to build +// 'azure' objects. +type AzureListBuilder struct { + items []*AzureBuilder +} + +// NewAzureList creates a new builder of 'azure' objects. +func NewAzureList() *AzureListBuilder { + return new(AzureListBuilder) +} + +// Items sets the items of the list. +func (b *AzureListBuilder) Items(values ...*AzureBuilder) *AzureListBuilder { + b.items = make([]*AzureBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *AzureListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *AzureListBuilder) Copy(list *AzureList) *AzureListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*AzureBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewAzure().Copy(v) + } + } + return b +} + +// Build creates a list of 'azure' objects using the +// configuration stored in the builder. +func (b *AzureListBuilder) Build() (list *AzureList, err error) { + items := make([]*Azure, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(AzureList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/azure_list_type_json.go b/arohcp/v1alpha1/azure_list_type_json.go new file mode 100644 index 000000000..b771fa66f --- /dev/null +++ b/arohcp/v1alpha1/azure_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalAzureList writes a list of values of the 'azure' type to +// the given writer. +func MarshalAzureList(list []*Azure, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteAzureList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteAzureList writes a list of value of the 'azure' type to +// the given stream. +func WriteAzureList(list []*Azure, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteAzure(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalAzureList reads a list of values of the 'azure' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalAzureList(source interface{}) (items []*Azure, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadAzureList(iterator) + err = iterator.Error + return +} + +// ReadAzureList reads list of values of the ”azure' type from +// the given iterator. +func ReadAzureList(iterator *jsoniter.Iterator) []*Azure { + list := []*Azure{} + for iterator.ReadArray() { + item := ReadAzure(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/azure_nodes_outbound_connectivity_builder.go b/arohcp/v1alpha1/azure_nodes_outbound_connectivity_builder.go new file mode 100644 index 000000000..6b685fa60 --- /dev/null +++ b/arohcp/v1alpha1/azure_nodes_outbound_connectivity_builder.go @@ -0,0 +1,63 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AzureNodesOutboundConnectivityBuilder contains the data and logic needed to build 'azure_nodes_outbound_connectivity' objects. +// +// The configuration of the node outbound connectivity +type AzureNodesOutboundConnectivityBuilder struct { + bitmap_ uint32 + outboundType string +} + +// NewAzureNodesOutboundConnectivity creates a new builder of 'azure_nodes_outbound_connectivity' objects. +func NewAzureNodesOutboundConnectivity() *AzureNodesOutboundConnectivityBuilder { + return &AzureNodesOutboundConnectivityBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *AzureNodesOutboundConnectivityBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// OutboundType sets the value of the 'outbound_type' attribute to the given value. +func (b *AzureNodesOutboundConnectivityBuilder) OutboundType(value string) *AzureNodesOutboundConnectivityBuilder { + b.outboundType = value + b.bitmap_ |= 1 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *AzureNodesOutboundConnectivityBuilder) Copy(object *AzureNodesOutboundConnectivity) *AzureNodesOutboundConnectivityBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.outboundType = object.outboundType + return b +} + +// Build creates a 'azure_nodes_outbound_connectivity' object using the configuration stored in the builder. +func (b *AzureNodesOutboundConnectivityBuilder) Build() (object *AzureNodesOutboundConnectivity, err error) { + object = new(AzureNodesOutboundConnectivity) + object.bitmap_ = b.bitmap_ + object.outboundType = b.outboundType + return +} diff --git a/arohcp/v1alpha1/azure_nodes_outbound_connectivity_list_builder.go b/arohcp/v1alpha1/azure_nodes_outbound_connectivity_list_builder.go new file mode 100644 index 000000000..1baad1123 --- /dev/null +++ b/arohcp/v1alpha1/azure_nodes_outbound_connectivity_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AzureNodesOutboundConnectivityListBuilder contains the data and logic needed to build +// 'azure_nodes_outbound_connectivity' objects. +type AzureNodesOutboundConnectivityListBuilder struct { + items []*AzureNodesOutboundConnectivityBuilder +} + +// NewAzureNodesOutboundConnectivityList creates a new builder of 'azure_nodes_outbound_connectivity' objects. +func NewAzureNodesOutboundConnectivityList() *AzureNodesOutboundConnectivityListBuilder { + return new(AzureNodesOutboundConnectivityListBuilder) +} + +// Items sets the items of the list. +func (b *AzureNodesOutboundConnectivityListBuilder) Items(values ...*AzureNodesOutboundConnectivityBuilder) *AzureNodesOutboundConnectivityListBuilder { + b.items = make([]*AzureNodesOutboundConnectivityBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *AzureNodesOutboundConnectivityListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *AzureNodesOutboundConnectivityListBuilder) Copy(list *AzureNodesOutboundConnectivityList) *AzureNodesOutboundConnectivityListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*AzureNodesOutboundConnectivityBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewAzureNodesOutboundConnectivity().Copy(v) + } + } + return b +} + +// Build creates a list of 'azure_nodes_outbound_connectivity' objects using the +// configuration stored in the builder. +func (b *AzureNodesOutboundConnectivityListBuilder) Build() (list *AzureNodesOutboundConnectivityList, err error) { + items := make([]*AzureNodesOutboundConnectivity, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(AzureNodesOutboundConnectivityList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/azure_nodes_outbound_connectivity_list_type_json.go b/arohcp/v1alpha1/azure_nodes_outbound_connectivity_list_type_json.go new file mode 100644 index 000000000..9788f8bd8 --- /dev/null +++ b/arohcp/v1alpha1/azure_nodes_outbound_connectivity_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalAzureNodesOutboundConnectivityList writes a list of values of the 'azure_nodes_outbound_connectivity' type to +// the given writer. +func MarshalAzureNodesOutboundConnectivityList(list []*AzureNodesOutboundConnectivity, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteAzureNodesOutboundConnectivityList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteAzureNodesOutboundConnectivityList writes a list of value of the 'azure_nodes_outbound_connectivity' type to +// the given stream. +func WriteAzureNodesOutboundConnectivityList(list []*AzureNodesOutboundConnectivity, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteAzureNodesOutboundConnectivity(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalAzureNodesOutboundConnectivityList reads a list of values of the 'azure_nodes_outbound_connectivity' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalAzureNodesOutboundConnectivityList(source interface{}) (items []*AzureNodesOutboundConnectivity, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadAzureNodesOutboundConnectivityList(iterator) + err = iterator.Error + return +} + +// ReadAzureNodesOutboundConnectivityList reads list of values of the ”azure_nodes_outbound_connectivity' type from +// the given iterator. +func ReadAzureNodesOutboundConnectivityList(iterator *jsoniter.Iterator) []*AzureNodesOutboundConnectivity { + list := []*AzureNodesOutboundConnectivity{} + for iterator.ReadArray() { + item := ReadAzureNodesOutboundConnectivity(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/azure_nodes_outbound_connectivity_type.go b/arohcp/v1alpha1/azure_nodes_outbound_connectivity_type.go new file mode 100644 index 000000000..5e989ca54 --- /dev/null +++ b/arohcp/v1alpha1/azure_nodes_outbound_connectivity_type.go @@ -0,0 +1,169 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AzureNodesOutboundConnectivity represents the values of the 'azure_nodes_outbound_connectivity' type. +// +// The configuration of the node outbound connectivity +type AzureNodesOutboundConnectivity struct { + bitmap_ uint32 + outboundType string +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *AzureNodesOutboundConnectivity) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// OutboundType returns the value of the 'outbound_type' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// OutboundType is the type of network outbound configuration. +// The default and only accepted value is 'load_balancer'. +// This value is immutable. +func (o *AzureNodesOutboundConnectivity) OutboundType() string { + if o != nil && o.bitmap_&1 != 0 { + return o.outboundType + } + return "" +} + +// GetOutboundType returns the value of the 'outbound_type' attribute and +// a flag indicating if the attribute has a value. +// +// OutboundType is the type of network outbound configuration. +// The default and only accepted value is 'load_balancer'. +// This value is immutable. +func (o *AzureNodesOutboundConnectivity) GetOutboundType() (value string, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.outboundType + } + return +} + +// AzureNodesOutboundConnectivityListKind is the name of the type used to represent list of objects of +// type 'azure_nodes_outbound_connectivity'. +const AzureNodesOutboundConnectivityListKind = "AzureNodesOutboundConnectivityList" + +// AzureNodesOutboundConnectivityListLinkKind is the name of the type used to represent links to list +// of objects of type 'azure_nodes_outbound_connectivity'. +const AzureNodesOutboundConnectivityListLinkKind = "AzureNodesOutboundConnectivityListLink" + +// AzureNodesOutboundConnectivityNilKind is the name of the type used to nil lists of objects of +// type 'azure_nodes_outbound_connectivity'. +const AzureNodesOutboundConnectivityListNilKind = "AzureNodesOutboundConnectivityListNil" + +// AzureNodesOutboundConnectivityList is a list of values of the 'azure_nodes_outbound_connectivity' type. +type AzureNodesOutboundConnectivityList struct { + href string + link bool + items []*AzureNodesOutboundConnectivity +} + +// Len returns the length of the list. +func (l *AzureNodesOutboundConnectivityList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *AzureNodesOutboundConnectivityList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AzureNodesOutboundConnectivityList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AzureNodesOutboundConnectivityList) SetItems(items []*AzureNodesOutboundConnectivity) { + l.items = items +} + +// Items returns the items of the list. +func (l *AzureNodesOutboundConnectivityList) Items() []*AzureNodesOutboundConnectivity { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *AzureNodesOutboundConnectivityList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *AzureNodesOutboundConnectivityList) Get(i int) *AzureNodesOutboundConnectivity { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *AzureNodesOutboundConnectivityList) Slice() []*AzureNodesOutboundConnectivity { + var slice []*AzureNodesOutboundConnectivity + if l == nil { + slice = make([]*AzureNodesOutboundConnectivity, 0) + } else { + slice = make([]*AzureNodesOutboundConnectivity, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *AzureNodesOutboundConnectivityList) Each(f func(item *AzureNodesOutboundConnectivity) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *AzureNodesOutboundConnectivityList) Range(f func(index int, item *AzureNodesOutboundConnectivity) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/azure_nodes_outbound_connectivity_type_json.go b/arohcp/v1alpha1/azure_nodes_outbound_connectivity_type_json.go new file mode 100644 index 000000000..f10d94036 --- /dev/null +++ b/arohcp/v1alpha1/azure_nodes_outbound_connectivity_type_json.go @@ -0,0 +1,86 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalAzureNodesOutboundConnectivity writes a value of the 'azure_nodes_outbound_connectivity' type to the given writer. +func MarshalAzureNodesOutboundConnectivity(object *AzureNodesOutboundConnectivity, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteAzureNodesOutboundConnectivity(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteAzureNodesOutboundConnectivity writes a value of the 'azure_nodes_outbound_connectivity' type to the given stream. +func WriteAzureNodesOutboundConnectivity(object *AzureNodesOutboundConnectivity, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("outbound_type") + stream.WriteString(object.outboundType) + } + stream.WriteObjectEnd() +} + +// UnmarshalAzureNodesOutboundConnectivity reads a value of the 'azure_nodes_outbound_connectivity' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalAzureNodesOutboundConnectivity(source interface{}) (object *AzureNodesOutboundConnectivity, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadAzureNodesOutboundConnectivity(iterator) + err = iterator.Error + return +} + +// ReadAzureNodesOutboundConnectivity reads a value of the 'azure_nodes_outbound_connectivity' type from the given iterator. +func ReadAzureNodesOutboundConnectivity(iterator *jsoniter.Iterator) *AzureNodesOutboundConnectivity { + object := &AzureNodesOutboundConnectivity{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "outbound_type": + value := iterator.ReadString() + object.outboundType = value + object.bitmap_ |= 1 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/azure_operators_authentication_builder.go b/arohcp/v1alpha1/azure_operators_authentication_builder.go new file mode 100644 index 000000000..6fa1f512f --- /dev/null +++ b/arohcp/v1alpha1/azure_operators_authentication_builder.go @@ -0,0 +1,81 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AzureOperatorsAuthenticationBuilder contains the data and logic needed to build 'azure_operators_authentication' objects. +// +// The configuration that the operators of the +// cluster have to authenticate to Azure. +type AzureOperatorsAuthenticationBuilder struct { + bitmap_ uint32 + managedIdentities *AzureOperatorsAuthenticationManagedIdentitiesBuilder +} + +// NewAzureOperatorsAuthentication creates a new builder of 'azure_operators_authentication' objects. +func NewAzureOperatorsAuthentication() *AzureOperatorsAuthenticationBuilder { + return &AzureOperatorsAuthenticationBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *AzureOperatorsAuthenticationBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// ManagedIdentities sets the value of the 'managed_identities' attribute to the given value. +// +// Represents the information related to Azure User-Assigned managed identities +// needed to perform Operators authentication based on Azure User-Assigned +// Managed Identities +func (b *AzureOperatorsAuthenticationBuilder) ManagedIdentities(value *AzureOperatorsAuthenticationManagedIdentitiesBuilder) *AzureOperatorsAuthenticationBuilder { + b.managedIdentities = value + if value != nil { + b.bitmap_ |= 1 + } else { + b.bitmap_ &^= 1 + } + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *AzureOperatorsAuthenticationBuilder) Copy(object *AzureOperatorsAuthentication) *AzureOperatorsAuthenticationBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + if object.managedIdentities != nil { + b.managedIdentities = NewAzureOperatorsAuthenticationManagedIdentities().Copy(object.managedIdentities) + } else { + b.managedIdentities = nil + } + return b +} + +// Build creates a 'azure_operators_authentication' object using the configuration stored in the builder. +func (b *AzureOperatorsAuthenticationBuilder) Build() (object *AzureOperatorsAuthentication, err error) { + object = new(AzureOperatorsAuthentication) + object.bitmap_ = b.bitmap_ + if b.managedIdentities != nil { + object.managedIdentities, err = b.managedIdentities.Build() + if err != nil { + return + } + } + return +} diff --git a/arohcp/v1alpha1/azure_operators_authentication_list_builder.go b/arohcp/v1alpha1/azure_operators_authentication_list_builder.go new file mode 100644 index 000000000..2d24e8eda --- /dev/null +++ b/arohcp/v1alpha1/azure_operators_authentication_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AzureOperatorsAuthenticationListBuilder contains the data and logic needed to build +// 'azure_operators_authentication' objects. +type AzureOperatorsAuthenticationListBuilder struct { + items []*AzureOperatorsAuthenticationBuilder +} + +// NewAzureOperatorsAuthenticationList creates a new builder of 'azure_operators_authentication' objects. +func NewAzureOperatorsAuthenticationList() *AzureOperatorsAuthenticationListBuilder { + return new(AzureOperatorsAuthenticationListBuilder) +} + +// Items sets the items of the list. +func (b *AzureOperatorsAuthenticationListBuilder) Items(values ...*AzureOperatorsAuthenticationBuilder) *AzureOperatorsAuthenticationListBuilder { + b.items = make([]*AzureOperatorsAuthenticationBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *AzureOperatorsAuthenticationListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *AzureOperatorsAuthenticationListBuilder) Copy(list *AzureOperatorsAuthenticationList) *AzureOperatorsAuthenticationListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*AzureOperatorsAuthenticationBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewAzureOperatorsAuthentication().Copy(v) + } + } + return b +} + +// Build creates a list of 'azure_operators_authentication' objects using the +// configuration stored in the builder. +func (b *AzureOperatorsAuthenticationListBuilder) Build() (list *AzureOperatorsAuthenticationList, err error) { + items := make([]*AzureOperatorsAuthentication, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(AzureOperatorsAuthenticationList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/azure_operators_authentication_list_type_json.go b/arohcp/v1alpha1/azure_operators_authentication_list_type_json.go new file mode 100644 index 000000000..daee6aae6 --- /dev/null +++ b/arohcp/v1alpha1/azure_operators_authentication_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalAzureOperatorsAuthenticationList writes a list of values of the 'azure_operators_authentication' type to +// the given writer. +func MarshalAzureOperatorsAuthenticationList(list []*AzureOperatorsAuthentication, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteAzureOperatorsAuthenticationList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteAzureOperatorsAuthenticationList writes a list of value of the 'azure_operators_authentication' type to +// the given stream. +func WriteAzureOperatorsAuthenticationList(list []*AzureOperatorsAuthentication, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteAzureOperatorsAuthentication(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalAzureOperatorsAuthenticationList reads a list of values of the 'azure_operators_authentication' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalAzureOperatorsAuthenticationList(source interface{}) (items []*AzureOperatorsAuthentication, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadAzureOperatorsAuthenticationList(iterator) + err = iterator.Error + return +} + +// ReadAzureOperatorsAuthenticationList reads list of values of the ”azure_operators_authentication' type from +// the given iterator. +func ReadAzureOperatorsAuthenticationList(iterator *jsoniter.Iterator) []*AzureOperatorsAuthentication { + list := []*AzureOperatorsAuthentication{} + for iterator.ReadArray() { + item := ReadAzureOperatorsAuthentication(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/azure_operators_authentication_managed_identities_builder.go b/arohcp/v1alpha1/azure_operators_authentication_managed_identities_builder.go new file mode 100644 index 000000000..69a8dae41 --- /dev/null +++ b/arohcp/v1alpha1/azure_operators_authentication_managed_identities_builder.go @@ -0,0 +1,149 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AzureOperatorsAuthenticationManagedIdentitiesBuilder contains the data and logic needed to build 'azure_operators_authentication_managed_identities' objects. +// +// Represents the information related to Azure User-Assigned managed identities +// needed to perform Operators authentication based on Azure User-Assigned +// Managed Identities +type AzureOperatorsAuthenticationManagedIdentitiesBuilder struct { + bitmap_ uint32 + controlPlaneOperatorsManagedIdentities map[string]*AzureControlPlaneManagedIdentityBuilder + dataPlaneOperatorsManagedIdentities map[string]*AzureDataPlaneManagedIdentityBuilder + managedIdentitiesDataPlaneIdentityUrl string + serviceManagedIdentity *AzureServiceManagedIdentityBuilder +} + +// NewAzureOperatorsAuthenticationManagedIdentities creates a new builder of 'azure_operators_authentication_managed_identities' objects. +func NewAzureOperatorsAuthenticationManagedIdentities() *AzureOperatorsAuthenticationManagedIdentitiesBuilder { + return &AzureOperatorsAuthenticationManagedIdentitiesBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *AzureOperatorsAuthenticationManagedIdentitiesBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// ControlPlaneOperatorsManagedIdentities sets the value of the 'control_plane_operators_managed_identities' attribute to the given value. +func (b *AzureOperatorsAuthenticationManagedIdentitiesBuilder) ControlPlaneOperatorsManagedIdentities(value map[string]*AzureControlPlaneManagedIdentityBuilder) *AzureOperatorsAuthenticationManagedIdentitiesBuilder { + b.controlPlaneOperatorsManagedIdentities = value + if value != nil { + b.bitmap_ |= 1 + } else { + b.bitmap_ &^= 1 + } + return b +} + +// DataPlaneOperatorsManagedIdentities sets the value of the 'data_plane_operators_managed_identities' attribute to the given value. +func (b *AzureOperatorsAuthenticationManagedIdentitiesBuilder) DataPlaneOperatorsManagedIdentities(value map[string]*AzureDataPlaneManagedIdentityBuilder) *AzureOperatorsAuthenticationManagedIdentitiesBuilder { + b.dataPlaneOperatorsManagedIdentities = value + if value != nil { + b.bitmap_ |= 2 + } else { + b.bitmap_ &^= 2 + } + return b +} + +// ManagedIdentitiesDataPlaneIdentityUrl sets the value of the 'managed_identities_data_plane_identity_url' attribute to the given value. +func (b *AzureOperatorsAuthenticationManagedIdentitiesBuilder) ManagedIdentitiesDataPlaneIdentityUrl(value string) *AzureOperatorsAuthenticationManagedIdentitiesBuilder { + b.managedIdentitiesDataPlaneIdentityUrl = value + b.bitmap_ |= 4 + return b +} + +// ServiceManagedIdentity sets the value of the 'service_managed_identity' attribute to the given value. +// +// Represents the information associated to an Azure User-Assigned +// Managed Identity whose purpose is to perform service level actions. +func (b *AzureOperatorsAuthenticationManagedIdentitiesBuilder) ServiceManagedIdentity(value *AzureServiceManagedIdentityBuilder) *AzureOperatorsAuthenticationManagedIdentitiesBuilder { + b.serviceManagedIdentity = value + if value != nil { + b.bitmap_ |= 8 + } else { + b.bitmap_ &^= 8 + } + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *AzureOperatorsAuthenticationManagedIdentitiesBuilder) Copy(object *AzureOperatorsAuthenticationManagedIdentities) *AzureOperatorsAuthenticationManagedIdentitiesBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + if len(object.controlPlaneOperatorsManagedIdentities) > 0 { + b.controlPlaneOperatorsManagedIdentities = map[string]*AzureControlPlaneManagedIdentityBuilder{} + for k, v := range object.controlPlaneOperatorsManagedIdentities { + b.controlPlaneOperatorsManagedIdentities[k] = NewAzureControlPlaneManagedIdentity().Copy(v) + } + } else { + b.controlPlaneOperatorsManagedIdentities = nil + } + if len(object.dataPlaneOperatorsManagedIdentities) > 0 { + b.dataPlaneOperatorsManagedIdentities = map[string]*AzureDataPlaneManagedIdentityBuilder{} + for k, v := range object.dataPlaneOperatorsManagedIdentities { + b.dataPlaneOperatorsManagedIdentities[k] = NewAzureDataPlaneManagedIdentity().Copy(v) + } + } else { + b.dataPlaneOperatorsManagedIdentities = nil + } + b.managedIdentitiesDataPlaneIdentityUrl = object.managedIdentitiesDataPlaneIdentityUrl + if object.serviceManagedIdentity != nil { + b.serviceManagedIdentity = NewAzureServiceManagedIdentity().Copy(object.serviceManagedIdentity) + } else { + b.serviceManagedIdentity = nil + } + return b +} + +// Build creates a 'azure_operators_authentication_managed_identities' object using the configuration stored in the builder. +func (b *AzureOperatorsAuthenticationManagedIdentitiesBuilder) Build() (object *AzureOperatorsAuthenticationManagedIdentities, err error) { + object = new(AzureOperatorsAuthenticationManagedIdentities) + object.bitmap_ = b.bitmap_ + if b.controlPlaneOperatorsManagedIdentities != nil { + object.controlPlaneOperatorsManagedIdentities = make(map[string]*AzureControlPlaneManagedIdentity) + for k, v := range b.controlPlaneOperatorsManagedIdentities { + object.controlPlaneOperatorsManagedIdentities[k], err = v.Build() + if err != nil { + return + } + } + } + if b.dataPlaneOperatorsManagedIdentities != nil { + object.dataPlaneOperatorsManagedIdentities = make(map[string]*AzureDataPlaneManagedIdentity) + for k, v := range b.dataPlaneOperatorsManagedIdentities { + object.dataPlaneOperatorsManagedIdentities[k], err = v.Build() + if err != nil { + return + } + } + } + object.managedIdentitiesDataPlaneIdentityUrl = b.managedIdentitiesDataPlaneIdentityUrl + if b.serviceManagedIdentity != nil { + object.serviceManagedIdentity, err = b.serviceManagedIdentity.Build() + if err != nil { + return + } + } + return +} diff --git a/arohcp/v1alpha1/azure_operators_authentication_managed_identities_list_builder.go b/arohcp/v1alpha1/azure_operators_authentication_managed_identities_list_builder.go new file mode 100644 index 000000000..4c6466951 --- /dev/null +++ b/arohcp/v1alpha1/azure_operators_authentication_managed_identities_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AzureOperatorsAuthenticationManagedIdentitiesListBuilder contains the data and logic needed to build +// 'azure_operators_authentication_managed_identities' objects. +type AzureOperatorsAuthenticationManagedIdentitiesListBuilder struct { + items []*AzureOperatorsAuthenticationManagedIdentitiesBuilder +} + +// NewAzureOperatorsAuthenticationManagedIdentitiesList creates a new builder of 'azure_operators_authentication_managed_identities' objects. +func NewAzureOperatorsAuthenticationManagedIdentitiesList() *AzureOperatorsAuthenticationManagedIdentitiesListBuilder { + return new(AzureOperatorsAuthenticationManagedIdentitiesListBuilder) +} + +// Items sets the items of the list. +func (b *AzureOperatorsAuthenticationManagedIdentitiesListBuilder) Items(values ...*AzureOperatorsAuthenticationManagedIdentitiesBuilder) *AzureOperatorsAuthenticationManagedIdentitiesListBuilder { + b.items = make([]*AzureOperatorsAuthenticationManagedIdentitiesBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *AzureOperatorsAuthenticationManagedIdentitiesListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *AzureOperatorsAuthenticationManagedIdentitiesListBuilder) Copy(list *AzureOperatorsAuthenticationManagedIdentitiesList) *AzureOperatorsAuthenticationManagedIdentitiesListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*AzureOperatorsAuthenticationManagedIdentitiesBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewAzureOperatorsAuthenticationManagedIdentities().Copy(v) + } + } + return b +} + +// Build creates a list of 'azure_operators_authentication_managed_identities' objects using the +// configuration stored in the builder. +func (b *AzureOperatorsAuthenticationManagedIdentitiesListBuilder) Build() (list *AzureOperatorsAuthenticationManagedIdentitiesList, err error) { + items := make([]*AzureOperatorsAuthenticationManagedIdentities, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(AzureOperatorsAuthenticationManagedIdentitiesList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/azure_operators_authentication_managed_identities_list_type_json.go b/arohcp/v1alpha1/azure_operators_authentication_managed_identities_list_type_json.go new file mode 100644 index 000000000..c8f8bc3e2 --- /dev/null +++ b/arohcp/v1alpha1/azure_operators_authentication_managed_identities_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalAzureOperatorsAuthenticationManagedIdentitiesList writes a list of values of the 'azure_operators_authentication_managed_identities' type to +// the given writer. +func MarshalAzureOperatorsAuthenticationManagedIdentitiesList(list []*AzureOperatorsAuthenticationManagedIdentities, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteAzureOperatorsAuthenticationManagedIdentitiesList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteAzureOperatorsAuthenticationManagedIdentitiesList writes a list of value of the 'azure_operators_authentication_managed_identities' type to +// the given stream. +func WriteAzureOperatorsAuthenticationManagedIdentitiesList(list []*AzureOperatorsAuthenticationManagedIdentities, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteAzureOperatorsAuthenticationManagedIdentities(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalAzureOperatorsAuthenticationManagedIdentitiesList reads a list of values of the 'azure_operators_authentication_managed_identities' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalAzureOperatorsAuthenticationManagedIdentitiesList(source interface{}) (items []*AzureOperatorsAuthenticationManagedIdentities, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadAzureOperatorsAuthenticationManagedIdentitiesList(iterator) + err = iterator.Error + return +} + +// ReadAzureOperatorsAuthenticationManagedIdentitiesList reads list of values of the ”azure_operators_authentication_managed_identities' type from +// the given iterator. +func ReadAzureOperatorsAuthenticationManagedIdentitiesList(iterator *jsoniter.Iterator) []*AzureOperatorsAuthenticationManagedIdentities { + list := []*AzureOperatorsAuthenticationManagedIdentities{} + for iterator.ReadArray() { + item := ReadAzureOperatorsAuthenticationManagedIdentities(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/azure_operators_authentication_managed_identities_type.go b/arohcp/v1alpha1/azure_operators_authentication_managed_identities_type.go new file mode 100644 index 000000000..4e4fee329 --- /dev/null +++ b/arohcp/v1alpha1/azure_operators_authentication_managed_identities_type.go @@ -0,0 +1,277 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AzureOperatorsAuthenticationManagedIdentities represents the values of the 'azure_operators_authentication_managed_identities' type. +// +// Represents the information related to Azure User-Assigned managed identities +// needed to perform Operators authentication based on Azure User-Assigned +// Managed Identities +type AzureOperatorsAuthenticationManagedIdentities struct { + bitmap_ uint32 + controlPlaneOperatorsManagedIdentities map[string]*AzureControlPlaneManagedIdentity + dataPlaneOperatorsManagedIdentities map[string]*AzureDataPlaneManagedIdentity + managedIdentitiesDataPlaneIdentityUrl string + serviceManagedIdentity *AzureServiceManagedIdentity +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *AzureOperatorsAuthenticationManagedIdentities) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// ControlPlaneOperatorsManagedIdentities returns the value of the 'control_plane_operators_managed_identities' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The set of Azure User-Assigned Managed Identities leveraged for the +// Control Plane operators of the cluster. The set of required managed +// identities is dependent on the Cluster's OpenShift version. +// Immutable +func (o *AzureOperatorsAuthenticationManagedIdentities) ControlPlaneOperatorsManagedIdentities() map[string]*AzureControlPlaneManagedIdentity { + if o != nil && o.bitmap_&1 != 0 { + return o.controlPlaneOperatorsManagedIdentities + } + return nil +} + +// GetControlPlaneOperatorsManagedIdentities returns the value of the 'control_plane_operators_managed_identities' attribute and +// a flag indicating if the attribute has a value. +// +// The set of Azure User-Assigned Managed Identities leveraged for the +// Control Plane operators of the cluster. The set of required managed +// identities is dependent on the Cluster's OpenShift version. +// Immutable +func (o *AzureOperatorsAuthenticationManagedIdentities) GetControlPlaneOperatorsManagedIdentities() (value map[string]*AzureControlPlaneManagedIdentity, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.controlPlaneOperatorsManagedIdentities + } + return +} + +// DataPlaneOperatorsManagedIdentities returns the value of the 'data_plane_operators_managed_identities' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The set of Azure User-Assigned Managed Identities leveraged for the +// Data Plane operators of the cluster. The set of required managed +// identities is dependent on the Cluster's OpenShift version. +// Immutable. +func (o *AzureOperatorsAuthenticationManagedIdentities) DataPlaneOperatorsManagedIdentities() map[string]*AzureDataPlaneManagedIdentity { + if o != nil && o.bitmap_&2 != 0 { + return o.dataPlaneOperatorsManagedIdentities + } + return nil +} + +// GetDataPlaneOperatorsManagedIdentities returns the value of the 'data_plane_operators_managed_identities' attribute and +// a flag indicating if the attribute has a value. +// +// The set of Azure User-Assigned Managed Identities leveraged for the +// Data Plane operators of the cluster. The set of required managed +// identities is dependent on the Cluster's OpenShift version. +// Immutable. +func (o *AzureOperatorsAuthenticationManagedIdentities) GetDataPlaneOperatorsManagedIdentities() (value map[string]*AzureDataPlaneManagedIdentity, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.dataPlaneOperatorsManagedIdentities + } + return +} + +// ManagedIdentitiesDataPlaneIdentityUrl returns the value of the 'managed_identities_data_plane_identity_url' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The Managed Identities Data Plane Identity URL associated with the +// cluster. It is the URL that will be used to communicate with the +// Managed Identities Resource Provider (MI RP). +// Required during creation. +// Immutable. +func (o *AzureOperatorsAuthenticationManagedIdentities) ManagedIdentitiesDataPlaneIdentityUrl() string { + if o != nil && o.bitmap_&4 != 0 { + return o.managedIdentitiesDataPlaneIdentityUrl + } + return "" +} + +// GetManagedIdentitiesDataPlaneIdentityUrl returns the value of the 'managed_identities_data_plane_identity_url' attribute and +// a flag indicating if the attribute has a value. +// +// The Managed Identities Data Plane Identity URL associated with the +// cluster. It is the URL that will be used to communicate with the +// Managed Identities Resource Provider (MI RP). +// Required during creation. +// Immutable. +func (o *AzureOperatorsAuthenticationManagedIdentities) GetManagedIdentitiesDataPlaneIdentityUrl() (value string, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.managedIdentitiesDataPlaneIdentityUrl + } + return +} + +// ServiceManagedIdentity returns the value of the 'service_managed_identity' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The Azure User-Assigned Managed Identity used to perform service +// level actions. Specifically: +// - Add Federated Identity Credentials to the identities in +// `data_plane_operators_managed_identities` that belong to Data +// Plane Cluster Operators +// - Perform permissions validation for the BYOVNet related resources +// associated to the Cluster +// +// Required during creation. +// Immutable. +func (o *AzureOperatorsAuthenticationManagedIdentities) ServiceManagedIdentity() *AzureServiceManagedIdentity { + if o != nil && o.bitmap_&8 != 0 { + return o.serviceManagedIdentity + } + return nil +} + +// GetServiceManagedIdentity returns the value of the 'service_managed_identity' attribute and +// a flag indicating if the attribute has a value. +// +// The Azure User-Assigned Managed Identity used to perform service +// level actions. Specifically: +// - Add Federated Identity Credentials to the identities in +// `data_plane_operators_managed_identities` that belong to Data +// Plane Cluster Operators +// - Perform permissions validation for the BYOVNet related resources +// associated to the Cluster +// +// Required during creation. +// Immutable. +func (o *AzureOperatorsAuthenticationManagedIdentities) GetServiceManagedIdentity() (value *AzureServiceManagedIdentity, ok bool) { + ok = o != nil && o.bitmap_&8 != 0 + if ok { + value = o.serviceManagedIdentity + } + return +} + +// AzureOperatorsAuthenticationManagedIdentitiesListKind is the name of the type used to represent list of objects of +// type 'azure_operators_authentication_managed_identities'. +const AzureOperatorsAuthenticationManagedIdentitiesListKind = "AzureOperatorsAuthenticationManagedIdentitiesList" + +// AzureOperatorsAuthenticationManagedIdentitiesListLinkKind is the name of the type used to represent links to list +// of objects of type 'azure_operators_authentication_managed_identities'. +const AzureOperatorsAuthenticationManagedIdentitiesListLinkKind = "AzureOperatorsAuthenticationManagedIdentitiesListLink" + +// AzureOperatorsAuthenticationManagedIdentitiesNilKind is the name of the type used to nil lists of objects of +// type 'azure_operators_authentication_managed_identities'. +const AzureOperatorsAuthenticationManagedIdentitiesListNilKind = "AzureOperatorsAuthenticationManagedIdentitiesListNil" + +// AzureOperatorsAuthenticationManagedIdentitiesList is a list of values of the 'azure_operators_authentication_managed_identities' type. +type AzureOperatorsAuthenticationManagedIdentitiesList struct { + href string + link bool + items []*AzureOperatorsAuthenticationManagedIdentities +} + +// Len returns the length of the list. +func (l *AzureOperatorsAuthenticationManagedIdentitiesList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *AzureOperatorsAuthenticationManagedIdentitiesList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AzureOperatorsAuthenticationManagedIdentitiesList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AzureOperatorsAuthenticationManagedIdentitiesList) SetItems(items []*AzureOperatorsAuthenticationManagedIdentities) { + l.items = items +} + +// Items returns the items of the list. +func (l *AzureOperatorsAuthenticationManagedIdentitiesList) Items() []*AzureOperatorsAuthenticationManagedIdentities { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *AzureOperatorsAuthenticationManagedIdentitiesList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *AzureOperatorsAuthenticationManagedIdentitiesList) Get(i int) *AzureOperatorsAuthenticationManagedIdentities { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *AzureOperatorsAuthenticationManagedIdentitiesList) Slice() []*AzureOperatorsAuthenticationManagedIdentities { + var slice []*AzureOperatorsAuthenticationManagedIdentities + if l == nil { + slice = make([]*AzureOperatorsAuthenticationManagedIdentities, 0) + } else { + slice = make([]*AzureOperatorsAuthenticationManagedIdentities, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *AzureOperatorsAuthenticationManagedIdentitiesList) Each(f func(item *AzureOperatorsAuthenticationManagedIdentities) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *AzureOperatorsAuthenticationManagedIdentitiesList) Range(f func(index int, item *AzureOperatorsAuthenticationManagedIdentities) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/azure_operators_authentication_managed_identities_type_json.go b/arohcp/v1alpha1/azure_operators_authentication_managed_identities_type_json.go new file mode 100644 index 000000000..5c0641db8 --- /dev/null +++ b/arohcp/v1alpha1/azure_operators_authentication_managed_identities_type_json.go @@ -0,0 +1,182 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + "sort" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalAzureOperatorsAuthenticationManagedIdentities writes a value of the 'azure_operators_authentication_managed_identities' type to the given writer. +func MarshalAzureOperatorsAuthenticationManagedIdentities(object *AzureOperatorsAuthenticationManagedIdentities, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteAzureOperatorsAuthenticationManagedIdentities(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteAzureOperatorsAuthenticationManagedIdentities writes a value of the 'azure_operators_authentication_managed_identities' type to the given stream. +func WriteAzureOperatorsAuthenticationManagedIdentities(object *AzureOperatorsAuthenticationManagedIdentities, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 && object.controlPlaneOperatorsManagedIdentities != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("control_plane_operators_managed_identities") + if object.controlPlaneOperatorsManagedIdentities != nil { + stream.WriteObjectStart() + keys := make([]string, len(object.controlPlaneOperatorsManagedIdentities)) + i := 0 + for key := range object.controlPlaneOperatorsManagedIdentities { + keys[i] = key + i++ + } + sort.Strings(keys) + for i, key := range keys { + if i > 0 { + stream.WriteMore() + } + item := object.controlPlaneOperatorsManagedIdentities[key] + stream.WriteObjectField(key) + WriteAzureControlPlaneManagedIdentity(item, stream) + } + stream.WriteObjectEnd() + } else { + stream.WriteNil() + } + count++ + } + present_ = object.bitmap_&2 != 0 && object.dataPlaneOperatorsManagedIdentities != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("data_plane_operators_managed_identities") + if object.dataPlaneOperatorsManagedIdentities != nil { + stream.WriteObjectStart() + keys := make([]string, len(object.dataPlaneOperatorsManagedIdentities)) + i := 0 + for key := range object.dataPlaneOperatorsManagedIdentities { + keys[i] = key + i++ + } + sort.Strings(keys) + for i, key := range keys { + if i > 0 { + stream.WriteMore() + } + item := object.dataPlaneOperatorsManagedIdentities[key] + stream.WriteObjectField(key) + WriteAzureDataPlaneManagedIdentity(item, stream) + } + stream.WriteObjectEnd() + } else { + stream.WriteNil() + } + count++ + } + present_ = object.bitmap_&4 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("managed_identities_data_plane_identity_url") + stream.WriteString(object.managedIdentitiesDataPlaneIdentityUrl) + count++ + } + present_ = object.bitmap_&8 != 0 && object.serviceManagedIdentity != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("service_managed_identity") + WriteAzureServiceManagedIdentity(object.serviceManagedIdentity, stream) + } + stream.WriteObjectEnd() +} + +// UnmarshalAzureOperatorsAuthenticationManagedIdentities reads a value of the 'azure_operators_authentication_managed_identities' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalAzureOperatorsAuthenticationManagedIdentities(source interface{}) (object *AzureOperatorsAuthenticationManagedIdentities, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadAzureOperatorsAuthenticationManagedIdentities(iterator) + err = iterator.Error + return +} + +// ReadAzureOperatorsAuthenticationManagedIdentities reads a value of the 'azure_operators_authentication_managed_identities' type from the given iterator. +func ReadAzureOperatorsAuthenticationManagedIdentities(iterator *jsoniter.Iterator) *AzureOperatorsAuthenticationManagedIdentities { + object := &AzureOperatorsAuthenticationManagedIdentities{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "control_plane_operators_managed_identities": + value := map[string]*AzureControlPlaneManagedIdentity{} + for { + key := iterator.ReadObject() + if key == "" { + break + } + item := ReadAzureControlPlaneManagedIdentity(iterator) + value[key] = item + } + object.controlPlaneOperatorsManagedIdentities = value + object.bitmap_ |= 1 + case "data_plane_operators_managed_identities": + value := map[string]*AzureDataPlaneManagedIdentity{} + for { + key := iterator.ReadObject() + if key == "" { + break + } + item := ReadAzureDataPlaneManagedIdentity(iterator) + value[key] = item + } + object.dataPlaneOperatorsManagedIdentities = value + object.bitmap_ |= 2 + case "managed_identities_data_plane_identity_url": + value := iterator.ReadString() + object.managedIdentitiesDataPlaneIdentityUrl = value + object.bitmap_ |= 4 + case "service_managed_identity": + value := ReadAzureServiceManagedIdentity(iterator) + object.serviceManagedIdentity = value + object.bitmap_ |= 8 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/azure_operators_authentication_type.go b/arohcp/v1alpha1/azure_operators_authentication_type.go new file mode 100644 index 000000000..4e86a3557 --- /dev/null +++ b/arohcp/v1alpha1/azure_operators_authentication_type.go @@ -0,0 +1,170 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AzureOperatorsAuthentication represents the values of the 'azure_operators_authentication' type. +// +// The configuration that the operators of the +// cluster have to authenticate to Azure. +type AzureOperatorsAuthentication struct { + bitmap_ uint32 + managedIdentities *AzureOperatorsAuthenticationManagedIdentities +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *AzureOperatorsAuthentication) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// ManagedIdentities returns the value of the 'managed_identities' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The authentication configuration to authenticate +// to Azure using Azure User-Assigned Managed Identities. +// Required during creation. +func (o *AzureOperatorsAuthentication) ManagedIdentities() *AzureOperatorsAuthenticationManagedIdentities { + if o != nil && o.bitmap_&1 != 0 { + return o.managedIdentities + } + return nil +} + +// GetManagedIdentities returns the value of the 'managed_identities' attribute and +// a flag indicating if the attribute has a value. +// +// The authentication configuration to authenticate +// to Azure using Azure User-Assigned Managed Identities. +// Required during creation. +func (o *AzureOperatorsAuthentication) GetManagedIdentities() (value *AzureOperatorsAuthenticationManagedIdentities, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.managedIdentities + } + return +} + +// AzureOperatorsAuthenticationListKind is the name of the type used to represent list of objects of +// type 'azure_operators_authentication'. +const AzureOperatorsAuthenticationListKind = "AzureOperatorsAuthenticationList" + +// AzureOperatorsAuthenticationListLinkKind is the name of the type used to represent links to list +// of objects of type 'azure_operators_authentication'. +const AzureOperatorsAuthenticationListLinkKind = "AzureOperatorsAuthenticationListLink" + +// AzureOperatorsAuthenticationNilKind is the name of the type used to nil lists of objects of +// type 'azure_operators_authentication'. +const AzureOperatorsAuthenticationListNilKind = "AzureOperatorsAuthenticationListNil" + +// AzureOperatorsAuthenticationList is a list of values of the 'azure_operators_authentication' type. +type AzureOperatorsAuthenticationList struct { + href string + link bool + items []*AzureOperatorsAuthentication +} + +// Len returns the length of the list. +func (l *AzureOperatorsAuthenticationList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *AzureOperatorsAuthenticationList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AzureOperatorsAuthenticationList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AzureOperatorsAuthenticationList) SetItems(items []*AzureOperatorsAuthentication) { + l.items = items +} + +// Items returns the items of the list. +func (l *AzureOperatorsAuthenticationList) Items() []*AzureOperatorsAuthentication { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *AzureOperatorsAuthenticationList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *AzureOperatorsAuthenticationList) Get(i int) *AzureOperatorsAuthentication { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *AzureOperatorsAuthenticationList) Slice() []*AzureOperatorsAuthentication { + var slice []*AzureOperatorsAuthentication + if l == nil { + slice = make([]*AzureOperatorsAuthentication, 0) + } else { + slice = make([]*AzureOperatorsAuthentication, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *AzureOperatorsAuthenticationList) Each(f func(item *AzureOperatorsAuthentication) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *AzureOperatorsAuthenticationList) Range(f func(index int, item *AzureOperatorsAuthentication) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/azure_operators_authentication_type_json.go b/arohcp/v1alpha1/azure_operators_authentication_type_json.go new file mode 100644 index 000000000..70beb17eb --- /dev/null +++ b/arohcp/v1alpha1/azure_operators_authentication_type_json.go @@ -0,0 +1,86 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalAzureOperatorsAuthentication writes a value of the 'azure_operators_authentication' type to the given writer. +func MarshalAzureOperatorsAuthentication(object *AzureOperatorsAuthentication, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteAzureOperatorsAuthentication(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteAzureOperatorsAuthentication writes a value of the 'azure_operators_authentication' type to the given stream. +func WriteAzureOperatorsAuthentication(object *AzureOperatorsAuthentication, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 && object.managedIdentities != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("managed_identities") + WriteAzureOperatorsAuthenticationManagedIdentities(object.managedIdentities, stream) + } + stream.WriteObjectEnd() +} + +// UnmarshalAzureOperatorsAuthentication reads a value of the 'azure_operators_authentication' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalAzureOperatorsAuthentication(source interface{}) (object *AzureOperatorsAuthentication, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadAzureOperatorsAuthentication(iterator) + err = iterator.Error + return +} + +// ReadAzureOperatorsAuthentication reads a value of the 'azure_operators_authentication' type from the given iterator. +func ReadAzureOperatorsAuthentication(iterator *jsoniter.Iterator) *AzureOperatorsAuthentication { + object := &AzureOperatorsAuthentication{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "managed_identities": + value := ReadAzureOperatorsAuthenticationManagedIdentities(iterator) + object.managedIdentities = value + object.bitmap_ |= 1 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/azure_service_managed_identity_builder.go b/arohcp/v1alpha1/azure_service_managed_identity_builder.go new file mode 100644 index 000000000..809689672 --- /dev/null +++ b/arohcp/v1alpha1/azure_service_managed_identity_builder.go @@ -0,0 +1,84 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AzureServiceManagedIdentityBuilder contains the data and logic needed to build 'azure_service_managed_identity' objects. +// +// Represents the information associated to an Azure User-Assigned +// Managed Identity whose purpose is to perform service level actions. +type AzureServiceManagedIdentityBuilder struct { + bitmap_ uint32 + clientID string + principalID string + resourceID string +} + +// NewAzureServiceManagedIdentity creates a new builder of 'azure_service_managed_identity' objects. +func NewAzureServiceManagedIdentity() *AzureServiceManagedIdentityBuilder { + return &AzureServiceManagedIdentityBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *AzureServiceManagedIdentityBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// ClientID sets the value of the 'client_ID' attribute to the given value. +func (b *AzureServiceManagedIdentityBuilder) ClientID(value string) *AzureServiceManagedIdentityBuilder { + b.clientID = value + b.bitmap_ |= 1 + return b +} + +// PrincipalID sets the value of the 'principal_ID' attribute to the given value. +func (b *AzureServiceManagedIdentityBuilder) PrincipalID(value string) *AzureServiceManagedIdentityBuilder { + b.principalID = value + b.bitmap_ |= 2 + return b +} + +// ResourceID sets the value of the 'resource_ID' attribute to the given value. +func (b *AzureServiceManagedIdentityBuilder) ResourceID(value string) *AzureServiceManagedIdentityBuilder { + b.resourceID = value + b.bitmap_ |= 4 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *AzureServiceManagedIdentityBuilder) Copy(object *AzureServiceManagedIdentity) *AzureServiceManagedIdentityBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.clientID = object.clientID + b.principalID = object.principalID + b.resourceID = object.resourceID + return b +} + +// Build creates a 'azure_service_managed_identity' object using the configuration stored in the builder. +func (b *AzureServiceManagedIdentityBuilder) Build() (object *AzureServiceManagedIdentity, err error) { + object = new(AzureServiceManagedIdentity) + object.bitmap_ = b.bitmap_ + object.clientID = b.clientID + object.principalID = b.principalID + object.resourceID = b.resourceID + return +} diff --git a/arohcp/v1alpha1/azure_service_managed_identity_list_builder.go b/arohcp/v1alpha1/azure_service_managed_identity_list_builder.go new file mode 100644 index 000000000..300f1c6f1 --- /dev/null +++ b/arohcp/v1alpha1/azure_service_managed_identity_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AzureServiceManagedIdentityListBuilder contains the data and logic needed to build +// 'azure_service_managed_identity' objects. +type AzureServiceManagedIdentityListBuilder struct { + items []*AzureServiceManagedIdentityBuilder +} + +// NewAzureServiceManagedIdentityList creates a new builder of 'azure_service_managed_identity' objects. +func NewAzureServiceManagedIdentityList() *AzureServiceManagedIdentityListBuilder { + return new(AzureServiceManagedIdentityListBuilder) +} + +// Items sets the items of the list. +func (b *AzureServiceManagedIdentityListBuilder) Items(values ...*AzureServiceManagedIdentityBuilder) *AzureServiceManagedIdentityListBuilder { + b.items = make([]*AzureServiceManagedIdentityBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *AzureServiceManagedIdentityListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *AzureServiceManagedIdentityListBuilder) Copy(list *AzureServiceManagedIdentityList) *AzureServiceManagedIdentityListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*AzureServiceManagedIdentityBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewAzureServiceManagedIdentity().Copy(v) + } + } + return b +} + +// Build creates a list of 'azure_service_managed_identity' objects using the +// configuration stored in the builder. +func (b *AzureServiceManagedIdentityListBuilder) Build() (list *AzureServiceManagedIdentityList, err error) { + items := make([]*AzureServiceManagedIdentity, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(AzureServiceManagedIdentityList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/azure_service_managed_identity_list_type_json.go b/arohcp/v1alpha1/azure_service_managed_identity_list_type_json.go new file mode 100644 index 000000000..8bd7f6176 --- /dev/null +++ b/arohcp/v1alpha1/azure_service_managed_identity_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalAzureServiceManagedIdentityList writes a list of values of the 'azure_service_managed_identity' type to +// the given writer. +func MarshalAzureServiceManagedIdentityList(list []*AzureServiceManagedIdentity, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteAzureServiceManagedIdentityList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteAzureServiceManagedIdentityList writes a list of value of the 'azure_service_managed_identity' type to +// the given stream. +func WriteAzureServiceManagedIdentityList(list []*AzureServiceManagedIdentity, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteAzureServiceManagedIdentity(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalAzureServiceManagedIdentityList reads a list of values of the 'azure_service_managed_identity' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalAzureServiceManagedIdentityList(source interface{}) (items []*AzureServiceManagedIdentity, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadAzureServiceManagedIdentityList(iterator) + err = iterator.Error + return +} + +// ReadAzureServiceManagedIdentityList reads list of values of the ”azure_service_managed_identity' type from +// the given iterator. +func ReadAzureServiceManagedIdentityList(iterator *jsoniter.Iterator) []*AzureServiceManagedIdentity { + list := []*AzureServiceManagedIdentity{} + for iterator.ReadArray() { + item := ReadAzureServiceManagedIdentity(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/azure_service_managed_identity_type.go b/arohcp/v1alpha1/azure_service_managed_identity_type.go new file mode 100644 index 000000000..2272aa889 --- /dev/null +++ b/arohcp/v1alpha1/azure_service_managed_identity_type.go @@ -0,0 +1,244 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// AzureServiceManagedIdentity represents the values of the 'azure_service_managed_identity' type. +// +// Represents the information associated to an Azure User-Assigned +// Managed Identity whose purpose is to perform service level actions. +type AzureServiceManagedIdentity struct { + bitmap_ uint32 + clientID string + principalID string + resourceID string +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *AzureServiceManagedIdentity) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// ClientID returns the value of the 'client_ID' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The Client ID associated to the Azure User-Assigned Managed Identity. +// Readonly. +func (o *AzureServiceManagedIdentity) ClientID() string { + if o != nil && o.bitmap_&1 != 0 { + return o.clientID + } + return "" +} + +// GetClientID returns the value of the 'client_ID' attribute and +// a flag indicating if the attribute has a value. +// +// The Client ID associated to the Azure User-Assigned Managed Identity. +// Readonly. +func (o *AzureServiceManagedIdentity) GetClientID() (value string, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.clientID + } + return +} + +// PrincipalID returns the value of the 'principal_ID' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The Principal ID associated to the Azure User-Assigned Managed Identity. +// Readonly. +func (o *AzureServiceManagedIdentity) PrincipalID() string { + if o != nil && o.bitmap_&2 != 0 { + return o.principalID + } + return "" +} + +// GetPrincipalID returns the value of the 'principal_ID' attribute and +// a flag indicating if the attribute has a value. +// +// The Principal ID associated to the Azure User-Assigned Managed Identity. +// Readonly. +func (o *AzureServiceManagedIdentity) GetPrincipalID() (value string, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.principalID + } + return +} + +// ResourceID returns the value of the 'resource_ID' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The Azure Resource ID of the Azure User-Assigned Managed +// Identity. The managed identity represented must exist before +// creating the cluster. +// The Azure Resource Group Name specified as part of the Resource ID +// must belong to the Azure Subscription specified in `.azure.subscription_id`, +// and in the same Azure location as the cluster's region. +// The Azure Resource Group Name specified as part of the Resource ID +// must be a different Resource Group Name than the one specified in +// `.azure.managed_resource_group_name`. +// The Azure Resource Group Name specified as part of the Resource ID +// can be the same, or a different one than the one specified in +// `.azure.resource_group_name`. +// Required during creation. +// Immutable. +func (o *AzureServiceManagedIdentity) ResourceID() string { + if o != nil && o.bitmap_&4 != 0 { + return o.resourceID + } + return "" +} + +// GetResourceID returns the value of the 'resource_ID' attribute and +// a flag indicating if the attribute has a value. +// +// The Azure Resource ID of the Azure User-Assigned Managed +// Identity. The managed identity represented must exist before +// creating the cluster. +// The Azure Resource Group Name specified as part of the Resource ID +// must belong to the Azure Subscription specified in `.azure.subscription_id`, +// and in the same Azure location as the cluster's region. +// The Azure Resource Group Name specified as part of the Resource ID +// must be a different Resource Group Name than the one specified in +// `.azure.managed_resource_group_name`. +// The Azure Resource Group Name specified as part of the Resource ID +// can be the same, or a different one than the one specified in +// `.azure.resource_group_name`. +// Required during creation. +// Immutable. +func (o *AzureServiceManagedIdentity) GetResourceID() (value string, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.resourceID + } + return +} + +// AzureServiceManagedIdentityListKind is the name of the type used to represent list of objects of +// type 'azure_service_managed_identity'. +const AzureServiceManagedIdentityListKind = "AzureServiceManagedIdentityList" + +// AzureServiceManagedIdentityListLinkKind is the name of the type used to represent links to list +// of objects of type 'azure_service_managed_identity'. +const AzureServiceManagedIdentityListLinkKind = "AzureServiceManagedIdentityListLink" + +// AzureServiceManagedIdentityNilKind is the name of the type used to nil lists of objects of +// type 'azure_service_managed_identity'. +const AzureServiceManagedIdentityListNilKind = "AzureServiceManagedIdentityListNil" + +// AzureServiceManagedIdentityList is a list of values of the 'azure_service_managed_identity' type. +type AzureServiceManagedIdentityList struct { + href string + link bool + items []*AzureServiceManagedIdentity +} + +// Len returns the length of the list. +func (l *AzureServiceManagedIdentityList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *AzureServiceManagedIdentityList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AzureServiceManagedIdentityList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AzureServiceManagedIdentityList) SetItems(items []*AzureServiceManagedIdentity) { + l.items = items +} + +// Items returns the items of the list. +func (l *AzureServiceManagedIdentityList) Items() []*AzureServiceManagedIdentity { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *AzureServiceManagedIdentityList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *AzureServiceManagedIdentityList) Get(i int) *AzureServiceManagedIdentity { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *AzureServiceManagedIdentityList) Slice() []*AzureServiceManagedIdentity { + var slice []*AzureServiceManagedIdentity + if l == nil { + slice = make([]*AzureServiceManagedIdentity, 0) + } else { + slice = make([]*AzureServiceManagedIdentity, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *AzureServiceManagedIdentityList) Each(f func(item *AzureServiceManagedIdentity) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *AzureServiceManagedIdentityList) Range(f func(index int, item *AzureServiceManagedIdentity) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/azure_service_managed_identity_type_json.go b/arohcp/v1alpha1/azure_service_managed_identity_type_json.go new file mode 100644 index 000000000..0c022cc6e --- /dev/null +++ b/arohcp/v1alpha1/azure_service_managed_identity_type_json.go @@ -0,0 +1,112 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalAzureServiceManagedIdentity writes a value of the 'azure_service_managed_identity' type to the given writer. +func MarshalAzureServiceManagedIdentity(object *AzureServiceManagedIdentity, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteAzureServiceManagedIdentity(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteAzureServiceManagedIdentity writes a value of the 'azure_service_managed_identity' type to the given stream. +func WriteAzureServiceManagedIdentity(object *AzureServiceManagedIdentity, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("client_id") + stream.WriteString(object.clientID) + count++ + } + present_ = object.bitmap_&2 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("principal_id") + stream.WriteString(object.principalID) + count++ + } + present_ = object.bitmap_&4 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("resource_id") + stream.WriteString(object.resourceID) + } + stream.WriteObjectEnd() +} + +// UnmarshalAzureServiceManagedIdentity reads a value of the 'azure_service_managed_identity' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalAzureServiceManagedIdentity(source interface{}) (object *AzureServiceManagedIdentity, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadAzureServiceManagedIdentity(iterator) + err = iterator.Error + return +} + +// ReadAzureServiceManagedIdentity reads a value of the 'azure_service_managed_identity' type from the given iterator. +func ReadAzureServiceManagedIdentity(iterator *jsoniter.Iterator) *AzureServiceManagedIdentity { + object := &AzureServiceManagedIdentity{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "client_id": + value := iterator.ReadString() + object.clientID = value + object.bitmap_ |= 1 + case "principal_id": + value := iterator.ReadString() + object.principalID = value + object.bitmap_ |= 2 + case "resource_id": + value := iterator.ReadString() + object.resourceID = value + object.bitmap_ |= 4 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/azure_type.go b/arohcp/v1alpha1/azure_type.go new file mode 100644 index 000000000..8fce48c1f --- /dev/null +++ b/arohcp/v1alpha1/azure_type.go @@ -0,0 +1,485 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// Azure represents the values of the 'azure' type. +// +// Microsoft Azure settings of a cluster. +type Azure struct { + bitmap_ uint32 + managedResourceGroupName string + networkSecurityGroupResourceID string + nodesOutboundConnectivity *AzureNodesOutboundConnectivity + operatorsAuthentication *AzureOperatorsAuthentication + resourceGroupName string + resourceName string + subnetResourceID string + subscriptionID string + tenantID string +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *Azure) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// ManagedResourceGroupName returns the value of the 'managed_resource_group_name' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The desired name of the Azure Resource Group where the Azure Resources related +// to the cluster are created. It must not previously exist. The Azure Resource +// Group is created with the given value, within the Azure Subscription +// `subscription_id` of the cluster. +// `managed_resource_group_name` cannot be equal to the value of `managed_resource_group`. +// `managed_resource_group_name` is located in the same Azure location as the +// cluster's region. +// Not to be confused with `resource_group_name`, which is the Azure Resource Group Name +// where the own Azure Resource associated to the cluster resides. +// Required during creation. +// Immutable. +func (o *Azure) ManagedResourceGroupName() string { + if o != nil && o.bitmap_&1 != 0 { + return o.managedResourceGroupName + } + return "" +} + +// GetManagedResourceGroupName returns the value of the 'managed_resource_group_name' attribute and +// a flag indicating if the attribute has a value. +// +// The desired name of the Azure Resource Group where the Azure Resources related +// to the cluster are created. It must not previously exist. The Azure Resource +// Group is created with the given value, within the Azure Subscription +// `subscription_id` of the cluster. +// `managed_resource_group_name` cannot be equal to the value of `managed_resource_group`. +// `managed_resource_group_name` is located in the same Azure location as the +// cluster's region. +// Not to be confused with `resource_group_name`, which is the Azure Resource Group Name +// where the own Azure Resource associated to the cluster resides. +// Required during creation. +// Immutable. +func (o *Azure) GetManagedResourceGroupName() (value string, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.managedResourceGroupName + } + return +} + +// NetworkSecurityGroupResourceID returns the value of the 'network_security_group_resource_ID' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The Azure Resource ID of a pre-existing Azure Network Security Group. +// The Network Security Group specified in network_security_group_resource_id +// must already be associated to the Azure Subnet `subnet_resource_id`. +// It is the Azure Network Security Group associated to the cluster's subnet +// specified in `subnet_resource_id`. +// `network_security_group_resource_id` must be located in the same Azure +// location as the cluster's region. +// The Azure Subscription specified as part of +// `network_security_group_resource_id` must be located in the same Azure +// Subscription as `subscription_id`. +// The Azure Resource Group Name specified as part of `network_security_group_resource_id` +// must belong to the Azure Subscription `subscription_id`, and in the same +// Azure location as the cluster's region. +// The Azure Resource Group Name specified as part of `network_security_group_resource_id` +// must be a different Resource Group Name than the one specified in +// `managed_resource_group_name`. +// The Azure Resource Group Name specified as part of `network_security_group_resource_id` +// can be the same, or a different one than the one specified in +// `resource_group_name`. +// Required during creation. +// Immutable. +func (o *Azure) NetworkSecurityGroupResourceID() string { + if o != nil && o.bitmap_&2 != 0 { + return o.networkSecurityGroupResourceID + } + return "" +} + +// GetNetworkSecurityGroupResourceID returns the value of the 'network_security_group_resource_ID' attribute and +// a flag indicating if the attribute has a value. +// +// The Azure Resource ID of a pre-existing Azure Network Security Group. +// The Network Security Group specified in network_security_group_resource_id +// must already be associated to the Azure Subnet `subnet_resource_id`. +// It is the Azure Network Security Group associated to the cluster's subnet +// specified in `subnet_resource_id`. +// `network_security_group_resource_id` must be located in the same Azure +// location as the cluster's region. +// The Azure Subscription specified as part of +// `network_security_group_resource_id` must be located in the same Azure +// Subscription as `subscription_id`. +// The Azure Resource Group Name specified as part of `network_security_group_resource_id` +// must belong to the Azure Subscription `subscription_id`, and in the same +// Azure location as the cluster's region. +// The Azure Resource Group Name specified as part of `network_security_group_resource_id` +// must be a different Resource Group Name than the one specified in +// `managed_resource_group_name`. +// The Azure Resource Group Name specified as part of `network_security_group_resource_id` +// can be the same, or a different one than the one specified in +// `resource_group_name`. +// Required during creation. +// Immutable. +func (o *Azure) GetNetworkSecurityGroupResourceID() (value string, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.networkSecurityGroupResourceID + } + return +} + +// NodesOutboundConnectivity returns the value of the 'nodes_outbound_connectivity' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// NodesOutboundConnectivity defines how the network outbound +// configuration of the Cluster's Node Pool's Nodes is performed. +// By default this is configured as Azure Load Balancer. This value is immutable. +func (o *Azure) NodesOutboundConnectivity() *AzureNodesOutboundConnectivity { + if o != nil && o.bitmap_&4 != 0 { + return o.nodesOutboundConnectivity + } + return nil +} + +// GetNodesOutboundConnectivity returns the value of the 'nodes_outbound_connectivity' attribute and +// a flag indicating if the attribute has a value. +// +// NodesOutboundConnectivity defines how the network outbound +// configuration of the Cluster's Node Pool's Nodes is performed. +// By default this is configured as Azure Load Balancer. This value is immutable. +func (o *Azure) GetNodesOutboundConnectivity() (value *AzureNodesOutboundConnectivity, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.nodesOutboundConnectivity + } + return +} + +// OperatorsAuthentication returns the value of the 'operators_authentication' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Defines how the operators of the cluster authenticate to Azure. +// Required during creation. +// Immutable. +func (o *Azure) OperatorsAuthentication() *AzureOperatorsAuthentication { + if o != nil && o.bitmap_&8 != 0 { + return o.operatorsAuthentication + } + return nil +} + +// GetOperatorsAuthentication returns the value of the 'operators_authentication' attribute and +// a flag indicating if the attribute has a value. +// +// Defines how the operators of the cluster authenticate to Azure. +// Required during creation. +// Immutable. +func (o *Azure) GetOperatorsAuthentication() (value *AzureOperatorsAuthentication, ok bool) { + ok = o != nil && o.bitmap_&8 != 0 + if ok { + value = o.operatorsAuthentication + } + return +} + +// ResourceGroupName returns the value of the 'resource_group_name' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The Azure Resource Group Name of the cluster. It must be a pre-existing +// Azure Resource Group and it must exist within the Azure Subscription +// `subscription_id` of the cluster. +// `resource_group_name` is located in the same Azure location as the +// cluster's region. +// Required during creation. +// Immutable. +func (o *Azure) ResourceGroupName() string { + if o != nil && o.bitmap_&16 != 0 { + return o.resourceGroupName + } + return "" +} + +// GetResourceGroupName returns the value of the 'resource_group_name' attribute and +// a flag indicating if the attribute has a value. +// +// The Azure Resource Group Name of the cluster. It must be a pre-existing +// Azure Resource Group and it must exist within the Azure Subscription +// `subscription_id` of the cluster. +// `resource_group_name` is located in the same Azure location as the +// cluster's region. +// Required during creation. +// Immutable. +func (o *Azure) GetResourceGroupName() (value string, ok bool) { + ok = o != nil && o.bitmap_&16 != 0 + if ok { + value = o.resourceGroupName + } + return +} + +// ResourceName returns the value of the 'resource_name' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The Azure Resource Name of the cluster. It must be within the +// Azure Resource Group Name `resource_group_name`. +// `resource_name` is located in the same Azure location as the cluster's region. +// Required during creation. +// Immutable. +func (o *Azure) ResourceName() string { + if o != nil && o.bitmap_&32 != 0 { + return o.resourceName + } + return "" +} + +// GetResourceName returns the value of the 'resource_name' attribute and +// a flag indicating if the attribute has a value. +// +// The Azure Resource Name of the cluster. It must be within the +// Azure Resource Group Name `resource_group_name`. +// `resource_name` is located in the same Azure location as the cluster's region. +// Required during creation. +// Immutable. +func (o *Azure) GetResourceName() (value string, ok bool) { + ok = o != nil && o.bitmap_&32 != 0 + if ok { + value = o.resourceName + } + return +} + +// SubnetResourceID returns the value of the 'subnet_resource_ID' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The Azure Resource ID of a pre-existing Azure Subnet. It is an Azure +// Subnet used for the Data Plane of the cluster. `subnet_resource_id` +// must be located in the same Azure location as the cluster's region. +// The Azure Subscription specified as part of the `subnet_resource_id` +// must be located in the same Azure Subscription as `subscription_id`. +// The Azure Resource Group Name specified as part of `subnet_resource_id` +// must belong to the Azure Subscription `subscription_id`, and in the same +// Azure location as the cluster's region. +// The Azure Resource Group Name specified as part of `subnet_resource_id` +// must be a different Resource Group Name than the one specified in +// `managed_resource_group_name`. +// The Azure Resource Group Name specified as part of the `subnet_resource_id` +// can be the same, or a different one than the one specified in +// `resource_group_name`. +// Required during creation. +// Immutable. +func (o *Azure) SubnetResourceID() string { + if o != nil && o.bitmap_&64 != 0 { + return o.subnetResourceID + } + return "" +} + +// GetSubnetResourceID returns the value of the 'subnet_resource_ID' attribute and +// a flag indicating if the attribute has a value. +// +// The Azure Resource ID of a pre-existing Azure Subnet. It is an Azure +// Subnet used for the Data Plane of the cluster. `subnet_resource_id` +// must be located in the same Azure location as the cluster's region. +// The Azure Subscription specified as part of the `subnet_resource_id` +// must be located in the same Azure Subscription as `subscription_id`. +// The Azure Resource Group Name specified as part of `subnet_resource_id` +// must belong to the Azure Subscription `subscription_id`, and in the same +// Azure location as the cluster's region. +// The Azure Resource Group Name specified as part of `subnet_resource_id` +// must be a different Resource Group Name than the one specified in +// `managed_resource_group_name`. +// The Azure Resource Group Name specified as part of the `subnet_resource_id` +// can be the same, or a different one than the one specified in +// `resource_group_name`. +// Required during creation. +// Immutable. +func (o *Azure) GetSubnetResourceID() (value string, ok bool) { + ok = o != nil && o.bitmap_&64 != 0 + if ok { + value = o.subnetResourceID + } + return +} + +// SubscriptionID returns the value of the 'subscription_ID' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The Azure Subscription ID associated with the cluster. It must belong to +// the Microsoft Entra Tenant ID `tenant_id`. +// Required during creation. +// Immutable. +func (o *Azure) SubscriptionID() string { + if o != nil && o.bitmap_&128 != 0 { + return o.subscriptionID + } + return "" +} + +// GetSubscriptionID returns the value of the 'subscription_ID' attribute and +// a flag indicating if the attribute has a value. +// +// The Azure Subscription ID associated with the cluster. It must belong to +// the Microsoft Entra Tenant ID `tenant_id`. +// Required during creation. +// Immutable. +func (o *Azure) GetSubscriptionID() (value string, ok bool) { + ok = o != nil && o.bitmap_&128 != 0 + if ok { + value = o.subscriptionID + } + return +} + +// TenantID returns the value of the 'tenant_ID' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The Microsoft Entra Tenant ID where the cluster belongs. +// Required during creation. +// Immutable. +func (o *Azure) TenantID() string { + if o != nil && o.bitmap_&256 != 0 { + return o.tenantID + } + return "" +} + +// GetTenantID returns the value of the 'tenant_ID' attribute and +// a flag indicating if the attribute has a value. +// +// The Microsoft Entra Tenant ID where the cluster belongs. +// Required during creation. +// Immutable. +func (o *Azure) GetTenantID() (value string, ok bool) { + ok = o != nil && o.bitmap_&256 != 0 + if ok { + value = o.tenantID + } + return +} + +// AzureListKind is the name of the type used to represent list of objects of +// type 'azure'. +const AzureListKind = "AzureList" + +// AzureListLinkKind is the name of the type used to represent links to list +// of objects of type 'azure'. +const AzureListLinkKind = "AzureListLink" + +// AzureNilKind is the name of the type used to nil lists of objects of +// type 'azure'. +const AzureListNilKind = "AzureListNil" + +// AzureList is a list of values of the 'azure' type. +type AzureList struct { + href string + link bool + items []*Azure +} + +// Len returns the length of the list. +func (l *AzureList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *AzureList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AzureList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AzureList) SetItems(items []*Azure) { + l.items = items +} + +// Items returns the items of the list. +func (l *AzureList) Items() []*Azure { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *AzureList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *AzureList) Get(i int) *Azure { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *AzureList) Slice() []*Azure { + var slice []*Azure + if l == nil { + slice = make([]*Azure, 0) + } else { + slice = make([]*Azure, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *AzureList) Each(f func(item *Azure) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *AzureList) Range(f func(index int, item *Azure) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/azure_type_json.go b/arohcp/v1alpha1/azure_type_json.go new file mode 100644 index 000000000..2a56b79ae --- /dev/null +++ b/arohcp/v1alpha1/azure_type_json.go @@ -0,0 +1,190 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalAzure writes a value of the 'azure' type to the given writer. +func MarshalAzure(object *Azure, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteAzure(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteAzure writes a value of the 'azure' type to the given stream. +func WriteAzure(object *Azure, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("managed_resource_group_name") + stream.WriteString(object.managedResourceGroupName) + count++ + } + present_ = object.bitmap_&2 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("network_security_group_resource_id") + stream.WriteString(object.networkSecurityGroupResourceID) + count++ + } + present_ = object.bitmap_&4 != 0 && object.nodesOutboundConnectivity != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("nodes_outbound_connectivity") + WriteAzureNodesOutboundConnectivity(object.nodesOutboundConnectivity, stream) + count++ + } + present_ = object.bitmap_&8 != 0 && object.operatorsAuthentication != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("operators_authentication") + WriteAzureOperatorsAuthentication(object.operatorsAuthentication, stream) + count++ + } + present_ = object.bitmap_&16 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("resource_group_name") + stream.WriteString(object.resourceGroupName) + count++ + } + present_ = object.bitmap_&32 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("resource_name") + stream.WriteString(object.resourceName) + count++ + } + present_ = object.bitmap_&64 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("subnet_resource_id") + stream.WriteString(object.subnetResourceID) + count++ + } + present_ = object.bitmap_&128 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("subscription_id") + stream.WriteString(object.subscriptionID) + count++ + } + present_ = object.bitmap_&256 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("tenant_id") + stream.WriteString(object.tenantID) + } + stream.WriteObjectEnd() +} + +// UnmarshalAzure reads a value of the 'azure' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalAzure(source interface{}) (object *Azure, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadAzure(iterator) + err = iterator.Error + return +} + +// ReadAzure reads a value of the 'azure' type from the given iterator. +func ReadAzure(iterator *jsoniter.Iterator) *Azure { + object := &Azure{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "managed_resource_group_name": + value := iterator.ReadString() + object.managedResourceGroupName = value + object.bitmap_ |= 1 + case "network_security_group_resource_id": + value := iterator.ReadString() + object.networkSecurityGroupResourceID = value + object.bitmap_ |= 2 + case "nodes_outbound_connectivity": + value := ReadAzureNodesOutboundConnectivity(iterator) + object.nodesOutboundConnectivity = value + object.bitmap_ |= 4 + case "operators_authentication": + value := ReadAzureOperatorsAuthentication(iterator) + object.operatorsAuthentication = value + object.bitmap_ |= 8 + case "resource_group_name": + value := iterator.ReadString() + object.resourceGroupName = value + object.bitmap_ |= 16 + case "resource_name": + value := iterator.ReadString() + object.resourceName = value + object.bitmap_ |= 32 + case "subnet_resource_id": + value := iterator.ReadString() + object.subnetResourceID = value + object.bitmap_ |= 64 + case "subscription_id": + value := iterator.ReadString() + object.subscriptionID = value + object.bitmap_ |= 128 + case "tenant_id": + value := iterator.ReadString() + object.tenantID = value + object.bitmap_ |= 256 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/billing_model_list_type_json.go b/arohcp/v1alpha1/billing_model_list_type_json.go new file mode 100644 index 000000000..a62bf0a88 --- /dev/null +++ b/arohcp/v1alpha1/billing_model_list_type_json.go @@ -0,0 +1,76 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalBillingModelList writes a list of values of the 'billing_model' type to +// the given writer. +func MarshalBillingModelList(list []BillingModel, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteBillingModelList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteBillingModelList writes a list of value of the 'billing_model' type to +// the given stream. +func WriteBillingModelList(list []BillingModel, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + stream.WriteString(string(value)) + } + stream.WriteArrayEnd() +} + +// UnmarshalBillingModelList reads a list of values of the 'billing_model' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalBillingModelList(source interface{}) (items []BillingModel, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadBillingModelList(iterator) + err = iterator.Error + return +} + +// ReadBillingModelList reads list of values of the ”billing_model' type from +// the given iterator. +func ReadBillingModelList(iterator *jsoniter.Iterator) []BillingModel { + list := []BillingModel{} + for iterator.ReadArray() { + text := iterator.ReadString() + item := BillingModel(text) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/billing_model_type.go b/arohcp/v1alpha1/billing_model_type.go new file mode 100644 index 000000000..0f0969da5 --- /dev/null +++ b/arohcp/v1alpha1/billing_model_type.go @@ -0,0 +1,38 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// BillingModel represents the values of the 'billing_model' enumerated type. +type BillingModel string + +const ( + // BillingModel Marketplace Legacy Marketplace billing model. Currently only used for tests. Use cloud-provider specific billing models instead. + BillingModelMarketplace BillingModel = "marketplace" + // AWS Marketplace billing model. + BillingModelMarketplaceAWS BillingModel = "marketplace-aws" + // GCP Marketplace billing model. + BillingModelMarketplaceGCP BillingModel = "marketplace-gcp" + // RH Marketplace billing model. + BillingModelMarketplaceRHM BillingModel = "marketplace-rhm" + // Azure Marketplace billing model. + BillingModelMarketplaceAzure BillingModel = "marketplace-azure" + // Standard. This is the default billing model + BillingModelStandard BillingModel = "standard" +) diff --git a/arohcp/v1alpha1/boolean_list_type_json.go b/arohcp/v1alpha1/boolean_list_type_json.go new file mode 100644 index 000000000..11621c5b2 --- /dev/null +++ b/arohcp/v1alpha1/boolean_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalBooleanList writes a list of values of the 'boolean' type to +// the given writer. +func MarshalBooleanList(list []bool, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteBooleanList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteBooleanList writes a list of value of the 'boolean' type to +// the given stream. +func WriteBooleanList(list []bool, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + stream.WriteBool(value) + } + stream.WriteArrayEnd() +} + +// UnmarshalBooleanList reads a list of values of the 'boolean' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalBooleanList(source interface{}) (items []bool, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadBooleanList(iterator) + err = iterator.Error + return +} + +// ReadBooleanList reads list of values of the ”boolean' type from +// the given iterator. +func ReadBooleanList(iterator *jsoniter.Iterator) []bool { + list := []bool{} + for iterator.ReadArray() { + item := iterator.ReadBool() + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/byo_oidc_builder.go b/arohcp/v1alpha1/byo_oidc_builder.go new file mode 100644 index 000000000..e7a8c4d68 --- /dev/null +++ b/arohcp/v1alpha1/byo_oidc_builder.go @@ -0,0 +1,63 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ByoOidcBuilder contains the data and logic needed to build 'byo_oidc' objects. +// +// ByoOidc configuration. +type ByoOidcBuilder struct { + bitmap_ uint32 + enabled bool +} + +// NewByoOidc creates a new builder of 'byo_oidc' objects. +func NewByoOidc() *ByoOidcBuilder { + return &ByoOidcBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *ByoOidcBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// Enabled sets the value of the 'enabled' attribute to the given value. +func (b *ByoOidcBuilder) Enabled(value bool) *ByoOidcBuilder { + b.enabled = value + b.bitmap_ |= 1 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *ByoOidcBuilder) Copy(object *ByoOidc) *ByoOidcBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.enabled = object.enabled + return b +} + +// Build creates a 'byo_oidc' object using the configuration stored in the builder. +func (b *ByoOidcBuilder) Build() (object *ByoOidc, err error) { + object = new(ByoOidc) + object.bitmap_ = b.bitmap_ + object.enabled = b.enabled + return +} diff --git a/arohcp/v1alpha1/byo_oidc_list_builder.go b/arohcp/v1alpha1/byo_oidc_list_builder.go new file mode 100644 index 000000000..ae98ca37e --- /dev/null +++ b/arohcp/v1alpha1/byo_oidc_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ByoOidcListBuilder contains the data and logic needed to build +// 'byo_oidc' objects. +type ByoOidcListBuilder struct { + items []*ByoOidcBuilder +} + +// NewByoOidcList creates a new builder of 'byo_oidc' objects. +func NewByoOidcList() *ByoOidcListBuilder { + return new(ByoOidcListBuilder) +} + +// Items sets the items of the list. +func (b *ByoOidcListBuilder) Items(values ...*ByoOidcBuilder) *ByoOidcListBuilder { + b.items = make([]*ByoOidcBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *ByoOidcListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *ByoOidcListBuilder) Copy(list *ByoOidcList) *ByoOidcListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*ByoOidcBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewByoOidc().Copy(v) + } + } + return b +} + +// Build creates a list of 'byo_oidc' objects using the +// configuration stored in the builder. +func (b *ByoOidcListBuilder) Build() (list *ByoOidcList, err error) { + items := make([]*ByoOidc, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(ByoOidcList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/byo_oidc_list_type_json.go b/arohcp/v1alpha1/byo_oidc_list_type_json.go new file mode 100644 index 000000000..c93f38209 --- /dev/null +++ b/arohcp/v1alpha1/byo_oidc_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalByoOidcList writes a list of values of the 'byo_oidc' type to +// the given writer. +func MarshalByoOidcList(list []*ByoOidc, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteByoOidcList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteByoOidcList writes a list of value of the 'byo_oidc' type to +// the given stream. +func WriteByoOidcList(list []*ByoOidc, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteByoOidc(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalByoOidcList reads a list of values of the 'byo_oidc' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalByoOidcList(source interface{}) (items []*ByoOidc, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadByoOidcList(iterator) + err = iterator.Error + return +} + +// ReadByoOidcList reads list of values of the ”byo_oidc' type from +// the given iterator. +func ReadByoOidcList(iterator *jsoniter.Iterator) []*ByoOidc { + list := []*ByoOidc{} + for iterator.ReadArray() { + item := ReadByoOidc(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/byo_oidc_type.go b/arohcp/v1alpha1/byo_oidc_type.go new file mode 100644 index 000000000..fc5918d33 --- /dev/null +++ b/arohcp/v1alpha1/byo_oidc_type.go @@ -0,0 +1,175 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ByoOidc represents the values of the 'byo_oidc' type. +// +// ByoOidc configuration. +type ByoOidc struct { + bitmap_ uint32 + enabled bool +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *ByoOidc) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// Enabled returns the value of the 'enabled' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Boolean flag indicating if the cluster should be creating using _ByoOidc_. +// +// By default this is `false`. +// +// To enable it the cluster needs to be ROSA cluster and the organization of the user needs +// to have the `byo-oidc` feature toggle enabled. +func (o *ByoOidc) Enabled() bool { + if o != nil && o.bitmap_&1 != 0 { + return o.enabled + } + return false +} + +// GetEnabled returns the value of the 'enabled' attribute and +// a flag indicating if the attribute has a value. +// +// Boolean flag indicating if the cluster should be creating using _ByoOidc_. +// +// By default this is `false`. +// +// To enable it the cluster needs to be ROSA cluster and the organization of the user needs +// to have the `byo-oidc` feature toggle enabled. +func (o *ByoOidc) GetEnabled() (value bool, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.enabled + } + return +} + +// ByoOidcListKind is the name of the type used to represent list of objects of +// type 'byo_oidc'. +const ByoOidcListKind = "ByoOidcList" + +// ByoOidcListLinkKind is the name of the type used to represent links to list +// of objects of type 'byo_oidc'. +const ByoOidcListLinkKind = "ByoOidcListLink" + +// ByoOidcNilKind is the name of the type used to nil lists of objects of +// type 'byo_oidc'. +const ByoOidcListNilKind = "ByoOidcListNil" + +// ByoOidcList is a list of values of the 'byo_oidc' type. +type ByoOidcList struct { + href string + link bool + items []*ByoOidc +} + +// Len returns the length of the list. +func (l *ByoOidcList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *ByoOidcList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ByoOidcList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ByoOidcList) SetItems(items []*ByoOidc) { + l.items = items +} + +// Items returns the items of the list. +func (l *ByoOidcList) Items() []*ByoOidc { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *ByoOidcList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *ByoOidcList) Get(i int) *ByoOidc { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *ByoOidcList) Slice() []*ByoOidc { + var slice []*ByoOidc + if l == nil { + slice = make([]*ByoOidc, 0) + } else { + slice = make([]*ByoOidc, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *ByoOidcList) Each(f func(item *ByoOidc) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *ByoOidcList) Range(f func(index int, item *ByoOidc) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/byo_oidc_type_json.go b/arohcp/v1alpha1/byo_oidc_type_json.go new file mode 100644 index 000000000..5e998e7f3 --- /dev/null +++ b/arohcp/v1alpha1/byo_oidc_type_json.go @@ -0,0 +1,86 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalByoOidc writes a value of the 'byo_oidc' type to the given writer. +func MarshalByoOidc(object *ByoOidc, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteByoOidc(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteByoOidc writes a value of the 'byo_oidc' type to the given stream. +func WriteByoOidc(object *ByoOidc, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("enabled") + stream.WriteBool(object.enabled) + } + stream.WriteObjectEnd() +} + +// UnmarshalByoOidc reads a value of the 'byo_oidc' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalByoOidc(source interface{}) (object *ByoOidc, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadByoOidc(iterator) + err = iterator.Error + return +} + +// ReadByoOidc reads a value of the 'byo_oidc' type from the given iterator. +func ReadByoOidc(iterator *jsoniter.Iterator) *ByoOidc { + object := &ByoOidc{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "enabled": + value := iterator.ReadBool() + object.enabled = value + object.bitmap_ |= 1 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/ccs_builder.go b/arohcp/v1alpha1/ccs_builder.go new file mode 100644 index 000000000..61cac0713 --- /dev/null +++ b/arohcp/v1alpha1/ccs_builder.go @@ -0,0 +1,97 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// CCSBuilder contains the data and logic needed to build 'CCS' objects. +type CCSBuilder struct { + bitmap_ uint32 + id string + href string + disableSCPChecks bool + enabled bool +} + +// NewCCS creates a new builder of 'CCS' objects. +func NewCCS() *CCSBuilder { + return &CCSBuilder{} +} + +// Link sets the flag that indicates if this is a link. +func (b *CCSBuilder) Link(value bool) *CCSBuilder { + b.bitmap_ |= 1 + return b +} + +// ID sets the identifier of the object. +func (b *CCSBuilder) ID(value string) *CCSBuilder { + b.id = value + b.bitmap_ |= 2 + return b +} + +// HREF sets the link to the object. +func (b *CCSBuilder) HREF(value string) *CCSBuilder { + b.href = value + b.bitmap_ |= 4 + return b +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *CCSBuilder) Empty() bool { + return b == nil || b.bitmap_&^1 == 0 +} + +// DisableSCPChecks sets the value of the 'disable_SCP_checks' attribute to the given value. +func (b *CCSBuilder) DisableSCPChecks(value bool) *CCSBuilder { + b.disableSCPChecks = value + b.bitmap_ |= 8 + return b +} + +// Enabled sets the value of the 'enabled' attribute to the given value. +func (b *CCSBuilder) Enabled(value bool) *CCSBuilder { + b.enabled = value + b.bitmap_ |= 16 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *CCSBuilder) Copy(object *CCS) *CCSBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.id = object.id + b.href = object.href + b.disableSCPChecks = object.disableSCPChecks + b.enabled = object.enabled + return b +} + +// Build creates a 'CCS' object using the configuration stored in the builder. +func (b *CCSBuilder) Build() (object *CCS, err error) { + object = new(CCS) + object.id = b.id + object.href = b.href + object.bitmap_ = b.bitmap_ + object.disableSCPChecks = b.disableSCPChecks + object.enabled = b.enabled + return +} diff --git a/arohcp/v1alpha1/ccs_list_builder.go b/arohcp/v1alpha1/ccs_list_builder.go new file mode 100644 index 000000000..bd987dc2a --- /dev/null +++ b/arohcp/v1alpha1/ccs_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// CCSListBuilder contains the data and logic needed to build +// 'CCS' objects. +type CCSListBuilder struct { + items []*CCSBuilder +} + +// NewCCSList creates a new builder of 'CCS' objects. +func NewCCSList() *CCSListBuilder { + return new(CCSListBuilder) +} + +// Items sets the items of the list. +func (b *CCSListBuilder) Items(values ...*CCSBuilder) *CCSListBuilder { + b.items = make([]*CCSBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *CCSListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *CCSListBuilder) Copy(list *CCSList) *CCSListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*CCSBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewCCS().Copy(v) + } + } + return b +} + +// Build creates a list of 'CCS' objects using the +// configuration stored in the builder. +func (b *CCSListBuilder) Build() (list *CCSList, err error) { + items := make([]*CCS, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(CCSList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/ccs_list_type_json.go b/arohcp/v1alpha1/ccs_list_type_json.go new file mode 100644 index 000000000..390e64e4f --- /dev/null +++ b/arohcp/v1alpha1/ccs_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalCCSList writes a list of values of the 'CCS' type to +// the given writer. +func MarshalCCSList(list []*CCS, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteCCSList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteCCSList writes a list of value of the 'CCS' type to +// the given stream. +func WriteCCSList(list []*CCS, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteCCS(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalCCSList reads a list of values of the 'CCS' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalCCSList(source interface{}) (items []*CCS, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadCCSList(iterator) + err = iterator.Error + return +} + +// ReadCCSList reads list of values of the ”CCS' type from +// the given iterator. +func ReadCCSList(iterator *jsoniter.Iterator) []*CCS { + list := []*CCS{} + for iterator.ReadArray() { + item := ReadCCS(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/ccs_type.go b/arohcp/v1alpha1/ccs_type.go new file mode 100644 index 000000000..2ffac1d7d --- /dev/null +++ b/arohcp/v1alpha1/ccs_type.go @@ -0,0 +1,289 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// CCSKind is the name of the type used to represent objects +// of type 'CCS'. +const CCSKind = "CCS" + +// CCSLinkKind is the name of the type used to represent links +// to objects of type 'CCS'. +const CCSLinkKind = "CCSLink" + +// CCSNilKind is the name of the type used to nil references +// to objects of type 'CCS'. +const CCSNilKind = "CCSNil" + +// CCS represents the values of the 'CCS' type. +type CCS struct { + bitmap_ uint32 + id string + href string + disableSCPChecks bool + enabled bool +} + +// Kind returns the name of the type of the object. +func (o *CCS) Kind() string { + if o == nil { + return CCSNilKind + } + if o.bitmap_&1 != 0 { + return CCSLinkKind + } + return CCSKind +} + +// Link returns true if this is a link. +func (o *CCS) Link() bool { + return o != nil && o.bitmap_&1 != 0 +} + +// ID returns the identifier of the object. +func (o *CCS) ID() string { + if o != nil && o.bitmap_&2 != 0 { + return o.id + } + return "" +} + +// GetID returns the identifier of the object and a flag indicating if the +// identifier has a value. +func (o *CCS) GetID() (value string, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.id + } + return +} + +// HREF returns the link to the object. +func (o *CCS) HREF() string { + if o != nil && o.bitmap_&4 != 0 { + return o.href + } + return "" +} + +// GetHREF returns the link of the object and a flag indicating if the +// link has a value. +func (o *CCS) GetHREF() (value string, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.href + } + return +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *CCS) Empty() bool { + return o == nil || o.bitmap_&^1 == 0 +} + +// DisableSCPChecks returns the value of the 'disable_SCP_checks' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Indicates if cloud permissions checks are disabled, +// when attempting installation of the cluster. +func (o *CCS) DisableSCPChecks() bool { + if o != nil && o.bitmap_&8 != 0 { + return o.disableSCPChecks + } + return false +} + +// GetDisableSCPChecks returns the value of the 'disable_SCP_checks' attribute and +// a flag indicating if the attribute has a value. +// +// Indicates if cloud permissions checks are disabled, +// when attempting installation of the cluster. +func (o *CCS) GetDisableSCPChecks() (value bool, ok bool) { + ok = o != nil && o.bitmap_&8 != 0 + if ok { + value = o.disableSCPChecks + } + return +} + +// Enabled returns the value of the 'enabled' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Indicates if Customer Cloud Subscription is enabled on the cluster. +func (o *CCS) Enabled() bool { + if o != nil && o.bitmap_&16 != 0 { + return o.enabled + } + return false +} + +// GetEnabled returns the value of the 'enabled' attribute and +// a flag indicating if the attribute has a value. +// +// Indicates if Customer Cloud Subscription is enabled on the cluster. +func (o *CCS) GetEnabled() (value bool, ok bool) { + ok = o != nil && o.bitmap_&16 != 0 + if ok { + value = o.enabled + } + return +} + +// CCSListKind is the name of the type used to represent list of objects of +// type 'CCS'. +const CCSListKind = "CCSList" + +// CCSListLinkKind is the name of the type used to represent links to list +// of objects of type 'CCS'. +const CCSListLinkKind = "CCSListLink" + +// CCSNilKind is the name of the type used to nil lists of objects of +// type 'CCS'. +const CCSListNilKind = "CCSListNil" + +// CCSList is a list of values of the 'CCS' type. +type CCSList struct { + href string + link bool + items []*CCS +} + +// Kind returns the name of the type of the object. +func (l *CCSList) Kind() string { + if l == nil { + return CCSListNilKind + } + if l.link { + return CCSListLinkKind + } + return CCSListKind +} + +// Link returns true iif this is a link. +func (l *CCSList) Link() bool { + return l != nil && l.link +} + +// HREF returns the link to the list. +func (l *CCSList) HREF() string { + if l != nil { + return l.href + } + return "" +} + +// GetHREF returns the link of the list and a flag indicating if the +// link has a value. +func (l *CCSList) GetHREF() (value string, ok bool) { + ok = l != nil && l.href != "" + if ok { + value = l.href + } + return +} + +// Len returns the length of the list. +func (l *CCSList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *CCSList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *CCSList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *CCSList) SetItems(items []*CCS) { + l.items = items +} + +// Items returns the items of the list. +func (l *CCSList) Items() []*CCS { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *CCSList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *CCSList) Get(i int) *CCS { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *CCSList) Slice() []*CCS { + var slice []*CCS + if l == nil { + slice = make([]*CCS, 0) + } else { + slice = make([]*CCS, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *CCSList) Each(f func(item *CCS) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *CCSList) Range(f func(index int, item *CCS) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/ccs_type_json.go b/arohcp/v1alpha1/ccs_type_json.go new file mode 100644 index 000000000..c42e9dbaa --- /dev/null +++ b/arohcp/v1alpha1/ccs_type_json.go @@ -0,0 +1,133 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalCCS writes a value of the 'CCS' type to the given writer. +func MarshalCCS(object *CCS, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteCCS(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteCCS writes a value of the 'CCS' type to the given stream. +func WriteCCS(object *CCS, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + stream.WriteObjectField("kind") + if object.bitmap_&1 != 0 { + stream.WriteString(CCSLinkKind) + } else { + stream.WriteString(CCSKind) + } + count++ + if object.bitmap_&2 != 0 { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("id") + stream.WriteString(object.id) + count++ + } + if object.bitmap_&4 != 0 { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("href") + stream.WriteString(object.href) + count++ + } + var present_ bool + present_ = object.bitmap_&8 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("disable_scp_checks") + stream.WriteBool(object.disableSCPChecks) + count++ + } + present_ = object.bitmap_&16 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("enabled") + stream.WriteBool(object.enabled) + } + stream.WriteObjectEnd() +} + +// UnmarshalCCS reads a value of the 'CCS' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalCCS(source interface{}) (object *CCS, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadCCS(iterator) + err = iterator.Error + return +} + +// ReadCCS reads a value of the 'CCS' type from the given iterator. +func ReadCCS(iterator *jsoniter.Iterator) *CCS { + object := &CCS{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "kind": + value := iterator.ReadString() + if value == CCSLinkKind { + object.bitmap_ |= 1 + } + case "id": + object.id = iterator.ReadString() + object.bitmap_ |= 2 + case "href": + object.href = iterator.ReadString() + object.bitmap_ |= 4 + case "disable_scp_checks": + value := iterator.ReadBool() + object.disableSCPChecks = value + object.bitmap_ |= 8 + case "enabled": + value := iterator.ReadBool() + object.enabled = value + object.bitmap_ |= 16 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/cloud_provider_builder.go b/arohcp/v1alpha1/cloud_provider_builder.go new file mode 100644 index 000000000..a20f77425 --- /dev/null +++ b/arohcp/v1alpha1/cloud_provider_builder.go @@ -0,0 +1,125 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// CloudProviderBuilder contains the data and logic needed to build 'cloud_provider' objects. +// +// Cloud provider. +type CloudProviderBuilder struct { + bitmap_ uint32 + id string + href string + displayName string + name string + regions []*CloudRegionBuilder +} + +// NewCloudProvider creates a new builder of 'cloud_provider' objects. +func NewCloudProvider() *CloudProviderBuilder { + return &CloudProviderBuilder{} +} + +// Link sets the flag that indicates if this is a link. +func (b *CloudProviderBuilder) Link(value bool) *CloudProviderBuilder { + b.bitmap_ |= 1 + return b +} + +// ID sets the identifier of the object. +func (b *CloudProviderBuilder) ID(value string) *CloudProviderBuilder { + b.id = value + b.bitmap_ |= 2 + return b +} + +// HREF sets the link to the object. +func (b *CloudProviderBuilder) HREF(value string) *CloudProviderBuilder { + b.href = value + b.bitmap_ |= 4 + return b +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *CloudProviderBuilder) Empty() bool { + return b == nil || b.bitmap_&^1 == 0 +} + +// DisplayName sets the value of the 'display_name' attribute to the given value. +func (b *CloudProviderBuilder) DisplayName(value string) *CloudProviderBuilder { + b.displayName = value + b.bitmap_ |= 8 + return b +} + +// Name sets the value of the 'name' attribute to the given value. +func (b *CloudProviderBuilder) Name(value string) *CloudProviderBuilder { + b.name = value + b.bitmap_ |= 16 + return b +} + +// Regions sets the value of the 'regions' attribute to the given values. +func (b *CloudProviderBuilder) Regions(values ...*CloudRegionBuilder) *CloudProviderBuilder { + b.regions = make([]*CloudRegionBuilder, len(values)) + copy(b.regions, values) + b.bitmap_ |= 32 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *CloudProviderBuilder) Copy(object *CloudProvider) *CloudProviderBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.id = object.id + b.href = object.href + b.displayName = object.displayName + b.name = object.name + if object.regions != nil { + b.regions = make([]*CloudRegionBuilder, len(object.regions)) + for i, v := range object.regions { + b.regions[i] = NewCloudRegion().Copy(v) + } + } else { + b.regions = nil + } + return b +} + +// Build creates a 'cloud_provider' object using the configuration stored in the builder. +func (b *CloudProviderBuilder) Build() (object *CloudProvider, err error) { + object = new(CloudProvider) + object.id = b.id + object.href = b.href + object.bitmap_ = b.bitmap_ + object.displayName = b.displayName + object.name = b.name + if b.regions != nil { + object.regions = make([]*CloudRegion, len(b.regions)) + for i, v := range b.regions { + object.regions[i], err = v.Build() + if err != nil { + return + } + } + } + return +} diff --git a/arohcp/v1alpha1/cloud_provider_list_builder.go b/arohcp/v1alpha1/cloud_provider_list_builder.go new file mode 100644 index 000000000..99d34a1b0 --- /dev/null +++ b/arohcp/v1alpha1/cloud_provider_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// CloudProviderListBuilder contains the data and logic needed to build +// 'cloud_provider' objects. +type CloudProviderListBuilder struct { + items []*CloudProviderBuilder +} + +// NewCloudProviderList creates a new builder of 'cloud_provider' objects. +func NewCloudProviderList() *CloudProviderListBuilder { + return new(CloudProviderListBuilder) +} + +// Items sets the items of the list. +func (b *CloudProviderListBuilder) Items(values ...*CloudProviderBuilder) *CloudProviderListBuilder { + b.items = make([]*CloudProviderBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *CloudProviderListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *CloudProviderListBuilder) Copy(list *CloudProviderList) *CloudProviderListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*CloudProviderBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewCloudProvider().Copy(v) + } + } + return b +} + +// Build creates a list of 'cloud_provider' objects using the +// configuration stored in the builder. +func (b *CloudProviderListBuilder) Build() (list *CloudProviderList, err error) { + items := make([]*CloudProvider, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(CloudProviderList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/cloud_provider_list_type_json.go b/arohcp/v1alpha1/cloud_provider_list_type_json.go new file mode 100644 index 000000000..3e09b637f --- /dev/null +++ b/arohcp/v1alpha1/cloud_provider_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalCloudProviderList writes a list of values of the 'cloud_provider' type to +// the given writer. +func MarshalCloudProviderList(list []*CloudProvider, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteCloudProviderList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteCloudProviderList writes a list of value of the 'cloud_provider' type to +// the given stream. +func WriteCloudProviderList(list []*CloudProvider, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteCloudProvider(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalCloudProviderList reads a list of values of the 'cloud_provider' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalCloudProviderList(source interface{}) (items []*CloudProvider, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadCloudProviderList(iterator) + err = iterator.Error + return +} + +// ReadCloudProviderList reads list of values of the ”cloud_provider' type from +// the given iterator. +func ReadCloudProviderList(iterator *jsoniter.Iterator) []*CloudProvider { + list := []*CloudProvider{} + for iterator.ReadArray() { + item := ReadCloudProvider(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/cloud_provider_type.go b/arohcp/v1alpha1/cloud_provider_type.go new file mode 100644 index 000000000..8f8c11b6b --- /dev/null +++ b/arohcp/v1alpha1/cloud_provider_type.go @@ -0,0 +1,315 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// CloudProviderKind is the name of the type used to represent objects +// of type 'cloud_provider'. +const CloudProviderKind = "CloudProvider" + +// CloudProviderLinkKind is the name of the type used to represent links +// to objects of type 'cloud_provider'. +const CloudProviderLinkKind = "CloudProviderLink" + +// CloudProviderNilKind is the name of the type used to nil references +// to objects of type 'cloud_provider'. +const CloudProviderNilKind = "CloudProviderNil" + +// CloudProvider represents the values of the 'cloud_provider' type. +// +// Cloud provider. +type CloudProvider struct { + bitmap_ uint32 + id string + href string + displayName string + name string + regions []*CloudRegion +} + +// Kind returns the name of the type of the object. +func (o *CloudProvider) Kind() string { + if o == nil { + return CloudProviderNilKind + } + if o.bitmap_&1 != 0 { + return CloudProviderLinkKind + } + return CloudProviderKind +} + +// Link returns true if this is a link. +func (o *CloudProvider) Link() bool { + return o != nil && o.bitmap_&1 != 0 +} + +// ID returns the identifier of the object. +func (o *CloudProvider) ID() string { + if o != nil && o.bitmap_&2 != 0 { + return o.id + } + return "" +} + +// GetID returns the identifier of the object and a flag indicating if the +// identifier has a value. +func (o *CloudProvider) GetID() (value string, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.id + } + return +} + +// HREF returns the link to the object. +func (o *CloudProvider) HREF() string { + if o != nil && o.bitmap_&4 != 0 { + return o.href + } + return "" +} + +// GetHREF returns the link of the object and a flag indicating if the +// link has a value. +func (o *CloudProvider) GetHREF() (value string, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.href + } + return +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *CloudProvider) Empty() bool { + return o == nil || o.bitmap_&^1 == 0 +} + +// DisplayName returns the value of the 'display_name' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Name of the cloud provider for display purposes. It can contain any characters, +// including spaces. +func (o *CloudProvider) DisplayName() string { + if o != nil && o.bitmap_&8 != 0 { + return o.displayName + } + return "" +} + +// GetDisplayName returns the value of the 'display_name' attribute and +// a flag indicating if the attribute has a value. +// +// Name of the cloud provider for display purposes. It can contain any characters, +// including spaces. +func (o *CloudProvider) GetDisplayName() (value string, ok bool) { + ok = o != nil && o.bitmap_&8 != 0 + if ok { + value = o.displayName + } + return +} + +// Name returns the value of the 'name' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Human friendly identifier of the cloud provider, for example `aws`. +func (o *CloudProvider) Name() string { + if o != nil && o.bitmap_&16 != 0 { + return o.name + } + return "" +} + +// GetName returns the value of the 'name' attribute and +// a flag indicating if the attribute has a value. +// +// Human friendly identifier of the cloud provider, for example `aws`. +func (o *CloudProvider) GetName() (value string, ok bool) { + ok = o != nil && o.bitmap_&16 != 0 + if ok { + value = o.name + } + return +} + +// Regions returns the value of the 'regions' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// (optional) Provider's regions - only included when listing providers with `fetchRegions=true`. +func (o *CloudProvider) Regions() []*CloudRegion { + if o != nil && o.bitmap_&32 != 0 { + return o.regions + } + return nil +} + +// GetRegions returns the value of the 'regions' attribute and +// a flag indicating if the attribute has a value. +// +// (optional) Provider's regions - only included when listing providers with `fetchRegions=true`. +func (o *CloudProvider) GetRegions() (value []*CloudRegion, ok bool) { + ok = o != nil && o.bitmap_&32 != 0 + if ok { + value = o.regions + } + return +} + +// CloudProviderListKind is the name of the type used to represent list of objects of +// type 'cloud_provider'. +const CloudProviderListKind = "CloudProviderList" + +// CloudProviderListLinkKind is the name of the type used to represent links to list +// of objects of type 'cloud_provider'. +const CloudProviderListLinkKind = "CloudProviderListLink" + +// CloudProviderNilKind is the name of the type used to nil lists of objects of +// type 'cloud_provider'. +const CloudProviderListNilKind = "CloudProviderListNil" + +// CloudProviderList is a list of values of the 'cloud_provider' type. +type CloudProviderList struct { + href string + link bool + items []*CloudProvider +} + +// Kind returns the name of the type of the object. +func (l *CloudProviderList) Kind() string { + if l == nil { + return CloudProviderListNilKind + } + if l.link { + return CloudProviderListLinkKind + } + return CloudProviderListKind +} + +// Link returns true iif this is a link. +func (l *CloudProviderList) Link() bool { + return l != nil && l.link +} + +// HREF returns the link to the list. +func (l *CloudProviderList) HREF() string { + if l != nil { + return l.href + } + return "" +} + +// GetHREF returns the link of the list and a flag indicating if the +// link has a value. +func (l *CloudProviderList) GetHREF() (value string, ok bool) { + ok = l != nil && l.href != "" + if ok { + value = l.href + } + return +} + +// Len returns the length of the list. +func (l *CloudProviderList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *CloudProviderList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *CloudProviderList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *CloudProviderList) SetItems(items []*CloudProvider) { + l.items = items +} + +// Items returns the items of the list. +func (l *CloudProviderList) Items() []*CloudProvider { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *CloudProviderList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *CloudProviderList) Get(i int) *CloudProvider { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *CloudProviderList) Slice() []*CloudProvider { + var slice []*CloudProvider + if l == nil { + slice = make([]*CloudProvider, 0) + } else { + slice = make([]*CloudProvider, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *CloudProviderList) Each(f func(item *CloudProvider) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *CloudProviderList) Range(f func(index int, item *CloudProvider) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/cloud_provider_type_json.go b/arohcp/v1alpha1/cloud_provider_type_json.go new file mode 100644 index 000000000..996e2998b --- /dev/null +++ b/arohcp/v1alpha1/cloud_provider_type_json.go @@ -0,0 +1,146 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalCloudProvider writes a value of the 'cloud_provider' type to the given writer. +func MarshalCloudProvider(object *CloudProvider, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteCloudProvider(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteCloudProvider writes a value of the 'cloud_provider' type to the given stream. +func WriteCloudProvider(object *CloudProvider, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + stream.WriteObjectField("kind") + if object.bitmap_&1 != 0 { + stream.WriteString(CloudProviderLinkKind) + } else { + stream.WriteString(CloudProviderKind) + } + count++ + if object.bitmap_&2 != 0 { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("id") + stream.WriteString(object.id) + count++ + } + if object.bitmap_&4 != 0 { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("href") + stream.WriteString(object.href) + count++ + } + var present_ bool + present_ = object.bitmap_&8 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("display_name") + stream.WriteString(object.displayName) + count++ + } + present_ = object.bitmap_&16 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("name") + stream.WriteString(object.name) + count++ + } + present_ = object.bitmap_&32 != 0 && object.regions != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("regions") + WriteCloudRegionList(object.regions, stream) + } + stream.WriteObjectEnd() +} + +// UnmarshalCloudProvider reads a value of the 'cloud_provider' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalCloudProvider(source interface{}) (object *CloudProvider, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadCloudProvider(iterator) + err = iterator.Error + return +} + +// ReadCloudProvider reads a value of the 'cloud_provider' type from the given iterator. +func ReadCloudProvider(iterator *jsoniter.Iterator) *CloudProvider { + object := &CloudProvider{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "kind": + value := iterator.ReadString() + if value == CloudProviderLinkKind { + object.bitmap_ |= 1 + } + case "id": + object.id = iterator.ReadString() + object.bitmap_ |= 2 + case "href": + object.href = iterator.ReadString() + object.bitmap_ |= 4 + case "display_name": + value := iterator.ReadString() + object.displayName = value + object.bitmap_ |= 8 + case "name": + value := iterator.ReadString() + object.name = value + object.bitmap_ |= 16 + case "regions": + value := ReadCloudRegionList(iterator) + object.regions = value + object.bitmap_ |= 32 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/cloud_region_builder.go b/arohcp/v1alpha1/cloud_region_builder.go new file mode 100644 index 000000000..7801455b1 --- /dev/null +++ b/arohcp/v1alpha1/cloud_region_builder.go @@ -0,0 +1,193 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import v1 "github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1" // CloudRegionBuilder contains the data and logic needed to build 'cloud_region' objects. +// Description of a region of a cloud provider. +type CloudRegionBuilder struct { + bitmap_ uint32 + id string + href string + kmsLocationID string + kmsLocationName string + cloudProvider *v1.CloudProviderBuilder + displayName string + name string + ccsOnly bool + enabled bool + govCloud bool + supportsHypershift bool + supportsMultiAZ bool +} + +// NewCloudRegion creates a new builder of 'cloud_region' objects. +func NewCloudRegion() *CloudRegionBuilder { + return &CloudRegionBuilder{} +} + +// Link sets the flag that indicates if this is a link. +func (b *CloudRegionBuilder) Link(value bool) *CloudRegionBuilder { + b.bitmap_ |= 1 + return b +} + +// ID sets the identifier of the object. +func (b *CloudRegionBuilder) ID(value string) *CloudRegionBuilder { + b.id = value + b.bitmap_ |= 2 + return b +} + +// HREF sets the link to the object. +func (b *CloudRegionBuilder) HREF(value string) *CloudRegionBuilder { + b.href = value + b.bitmap_ |= 4 + return b +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *CloudRegionBuilder) Empty() bool { + return b == nil || b.bitmap_&^1 == 0 +} + +// CCSOnly sets the value of the 'CCS_only' attribute to the given value. +func (b *CloudRegionBuilder) CCSOnly(value bool) *CloudRegionBuilder { + b.ccsOnly = value + b.bitmap_ |= 8 + return b +} + +// KMSLocationID sets the value of the 'KMS_location_ID' attribute to the given value. +func (b *CloudRegionBuilder) KMSLocationID(value string) *CloudRegionBuilder { + b.kmsLocationID = value + b.bitmap_ |= 16 + return b +} + +// KMSLocationName sets the value of the 'KMS_location_name' attribute to the given value. +func (b *CloudRegionBuilder) KMSLocationName(value string) *CloudRegionBuilder { + b.kmsLocationName = value + b.bitmap_ |= 32 + return b +} + +// CloudProvider sets the value of the 'cloud_provider' attribute to the given value. +// +// Cloud provider. +func (b *CloudRegionBuilder) CloudProvider(value *v1.CloudProviderBuilder) *CloudRegionBuilder { + b.cloudProvider = value + if value != nil { + b.bitmap_ |= 64 + } else { + b.bitmap_ &^= 64 + } + return b +} + +// DisplayName sets the value of the 'display_name' attribute to the given value. +func (b *CloudRegionBuilder) DisplayName(value string) *CloudRegionBuilder { + b.displayName = value + b.bitmap_ |= 128 + return b +} + +// Enabled sets the value of the 'enabled' attribute to the given value. +func (b *CloudRegionBuilder) Enabled(value bool) *CloudRegionBuilder { + b.enabled = value + b.bitmap_ |= 256 + return b +} + +// GovCloud sets the value of the 'gov_cloud' attribute to the given value. +func (b *CloudRegionBuilder) GovCloud(value bool) *CloudRegionBuilder { + b.govCloud = value + b.bitmap_ |= 512 + return b +} + +// Name sets the value of the 'name' attribute to the given value. +func (b *CloudRegionBuilder) Name(value string) *CloudRegionBuilder { + b.name = value + b.bitmap_ |= 1024 + return b +} + +// SupportsHypershift sets the value of the 'supports_hypershift' attribute to the given value. +func (b *CloudRegionBuilder) SupportsHypershift(value bool) *CloudRegionBuilder { + b.supportsHypershift = value + b.bitmap_ |= 2048 + return b +} + +// SupportsMultiAZ sets the value of the 'supports_multi_AZ' attribute to the given value. +func (b *CloudRegionBuilder) SupportsMultiAZ(value bool) *CloudRegionBuilder { + b.supportsMultiAZ = value + b.bitmap_ |= 4096 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *CloudRegionBuilder) Copy(object *CloudRegion) *CloudRegionBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.id = object.id + b.href = object.href + b.ccsOnly = object.ccsOnly + b.kmsLocationID = object.kmsLocationID + b.kmsLocationName = object.kmsLocationName + if object.cloudProvider != nil { + b.cloudProvider = v1.NewCloudProvider().Copy(object.cloudProvider) + } else { + b.cloudProvider = nil + } + b.displayName = object.displayName + b.enabled = object.enabled + b.govCloud = object.govCloud + b.name = object.name + b.supportsHypershift = object.supportsHypershift + b.supportsMultiAZ = object.supportsMultiAZ + return b +} + +// Build creates a 'cloud_region' object using the configuration stored in the builder. +func (b *CloudRegionBuilder) Build() (object *CloudRegion, err error) { + object = new(CloudRegion) + object.id = b.id + object.href = b.href + object.bitmap_ = b.bitmap_ + object.ccsOnly = b.ccsOnly + object.kmsLocationID = b.kmsLocationID + object.kmsLocationName = b.kmsLocationName + if b.cloudProvider != nil { + object.cloudProvider, err = b.cloudProvider.Build() + if err != nil { + return + } + } + object.displayName = b.displayName + object.enabled = b.enabled + object.govCloud = b.govCloud + object.name = b.name + object.supportsHypershift = b.supportsHypershift + object.supportsMultiAZ = b.supportsMultiAZ + return +} diff --git a/arohcp/v1alpha1/cloud_region_list_builder.go b/arohcp/v1alpha1/cloud_region_list_builder.go new file mode 100644 index 000000000..1dd9b6e6e --- /dev/null +++ b/arohcp/v1alpha1/cloud_region_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// CloudRegionListBuilder contains the data and logic needed to build +// 'cloud_region' objects. +type CloudRegionListBuilder struct { + items []*CloudRegionBuilder +} + +// NewCloudRegionList creates a new builder of 'cloud_region' objects. +func NewCloudRegionList() *CloudRegionListBuilder { + return new(CloudRegionListBuilder) +} + +// Items sets the items of the list. +func (b *CloudRegionListBuilder) Items(values ...*CloudRegionBuilder) *CloudRegionListBuilder { + b.items = make([]*CloudRegionBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *CloudRegionListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *CloudRegionListBuilder) Copy(list *CloudRegionList) *CloudRegionListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*CloudRegionBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewCloudRegion().Copy(v) + } + } + return b +} + +// Build creates a list of 'cloud_region' objects using the +// configuration stored in the builder. +func (b *CloudRegionListBuilder) Build() (list *CloudRegionList, err error) { + items := make([]*CloudRegion, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(CloudRegionList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/cloud_region_list_type_json.go b/arohcp/v1alpha1/cloud_region_list_type_json.go new file mode 100644 index 000000000..0da02c04f --- /dev/null +++ b/arohcp/v1alpha1/cloud_region_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalCloudRegionList writes a list of values of the 'cloud_region' type to +// the given writer. +func MarshalCloudRegionList(list []*CloudRegion, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteCloudRegionList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteCloudRegionList writes a list of value of the 'cloud_region' type to +// the given stream. +func WriteCloudRegionList(list []*CloudRegion, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteCloudRegion(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalCloudRegionList reads a list of values of the 'cloud_region' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalCloudRegionList(source interface{}) (items []*CloudRegion, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadCloudRegionList(iterator) + err = iterator.Error + return +} + +// ReadCloudRegionList reads list of values of the ”cloud_region' type from +// the given iterator. +func ReadCloudRegionList(iterator *jsoniter.Iterator) []*CloudRegion { + list := []*CloudRegion{} + for iterator.ReadArray() { + item := ReadCloudRegion(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/cloud_region_type.go b/arohcp/v1alpha1/cloud_region_type.go new file mode 100644 index 000000000..402a5e55c --- /dev/null +++ b/arohcp/v1alpha1/cloud_region_type.go @@ -0,0 +1,495 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import v1 "github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1" + +// CloudRegionKind is the name of the type used to represent objects +// of type 'cloud_region'. +const CloudRegionKind = "CloudRegion" + +// CloudRegionLinkKind is the name of the type used to represent links +// to objects of type 'cloud_region'. +const CloudRegionLinkKind = "CloudRegionLink" + +// CloudRegionNilKind is the name of the type used to nil references +// to objects of type 'cloud_region'. +const CloudRegionNilKind = "CloudRegionNil" + +// CloudRegion represents the values of the 'cloud_region' type. +// +// Description of a region of a cloud provider. +type CloudRegion struct { + bitmap_ uint32 + id string + href string + kmsLocationID string + kmsLocationName string + cloudProvider *v1.CloudProvider + displayName string + name string + ccsOnly bool + enabled bool + govCloud bool + supportsHypershift bool + supportsMultiAZ bool +} + +// Kind returns the name of the type of the object. +func (o *CloudRegion) Kind() string { + if o == nil { + return CloudRegionNilKind + } + if o.bitmap_&1 != 0 { + return CloudRegionLinkKind + } + return CloudRegionKind +} + +// Link returns true if this is a link. +func (o *CloudRegion) Link() bool { + return o != nil && o.bitmap_&1 != 0 +} + +// ID returns the identifier of the object. +func (o *CloudRegion) ID() string { + if o != nil && o.bitmap_&2 != 0 { + return o.id + } + return "" +} + +// GetID returns the identifier of the object and a flag indicating if the +// identifier has a value. +func (o *CloudRegion) GetID() (value string, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.id + } + return +} + +// HREF returns the link to the object. +func (o *CloudRegion) HREF() string { + if o != nil && o.bitmap_&4 != 0 { + return o.href + } + return "" +} + +// GetHREF returns the link of the object and a flag indicating if the +// link has a value. +func (o *CloudRegion) GetHREF() (value string, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.href + } + return +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *CloudRegion) Empty() bool { + return o == nil || o.bitmap_&^1 == 0 +} + +// CCSOnly returns the value of the 'CCS_only' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// 'true' if the region is supported only for CCS clusters, 'false' otherwise. +func (o *CloudRegion) CCSOnly() bool { + if o != nil && o.bitmap_&8 != 0 { + return o.ccsOnly + } + return false +} + +// GetCCSOnly returns the value of the 'CCS_only' attribute and +// a flag indicating if the attribute has a value. +// +// 'true' if the region is supported only for CCS clusters, 'false' otherwise. +func (o *CloudRegion) GetCCSOnly() (value bool, ok bool) { + ok = o != nil && o.bitmap_&8 != 0 + if ok { + value = o.ccsOnly + } + return +} + +// KMSLocationID returns the value of the 'KMS_location_ID' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// (GCP only) Comma-separated list of KMS location IDs that can be used with this region. +// E.g. "global,nam4,us". Order is not guaranteed. +func (o *CloudRegion) KMSLocationID() string { + if o != nil && o.bitmap_&16 != 0 { + return o.kmsLocationID + } + return "" +} + +// GetKMSLocationID returns the value of the 'KMS_location_ID' attribute and +// a flag indicating if the attribute has a value. +// +// (GCP only) Comma-separated list of KMS location IDs that can be used with this region. +// E.g. "global,nam4,us". Order is not guaranteed. +func (o *CloudRegion) GetKMSLocationID() (value string, ok bool) { + ok = o != nil && o.bitmap_&16 != 0 + if ok { + value = o.kmsLocationID + } + return +} + +// KMSLocationName returns the value of the 'KMS_location_name' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// (GCP only) Comma-separated list of display names corresponding to KMSLocationID. +// E.g. "Global,nam4 (Iowa, South Carolina, and Oklahoma),US". Order is not guaranteed but will match KMSLocationID. +// Unfortunately, this API doesn't allow robust splitting - Contact ocm-feedback@redhat.com if you want to rely on this. +func (o *CloudRegion) KMSLocationName() string { + if o != nil && o.bitmap_&32 != 0 { + return o.kmsLocationName + } + return "" +} + +// GetKMSLocationName returns the value of the 'KMS_location_name' attribute and +// a flag indicating if the attribute has a value. +// +// (GCP only) Comma-separated list of display names corresponding to KMSLocationID. +// E.g. "Global,nam4 (Iowa, South Carolina, and Oklahoma),US". Order is not guaranteed but will match KMSLocationID. +// Unfortunately, this API doesn't allow robust splitting - Contact ocm-feedback@redhat.com if you want to rely on this. +func (o *CloudRegion) GetKMSLocationName() (value string, ok bool) { + ok = o != nil && o.bitmap_&32 != 0 + if ok { + value = o.kmsLocationName + } + return +} + +// CloudProvider returns the value of the 'cloud_provider' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Link to the cloud provider that the region belongs to. +func (o *CloudRegion) CloudProvider() *v1.CloudProvider { + if o != nil && o.bitmap_&64 != 0 { + return o.cloudProvider + } + return nil +} + +// GetCloudProvider returns the value of the 'cloud_provider' attribute and +// a flag indicating if the attribute has a value. +// +// Link to the cloud provider that the region belongs to. +func (o *CloudRegion) GetCloudProvider() (value *v1.CloudProvider, ok bool) { + ok = o != nil && o.bitmap_&64 != 0 + if ok { + value = o.cloudProvider + } + return +} + +// DisplayName returns the value of the 'display_name' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Name of the region for display purposes, for example `N. Virginia`. +func (o *CloudRegion) DisplayName() string { + if o != nil && o.bitmap_&128 != 0 { + return o.displayName + } + return "" +} + +// GetDisplayName returns the value of the 'display_name' attribute and +// a flag indicating if the attribute has a value. +// +// Name of the region for display purposes, for example `N. Virginia`. +func (o *CloudRegion) GetDisplayName() (value string, ok bool) { + ok = o != nil && o.bitmap_&128 != 0 + if ok { + value = o.displayName + } + return +} + +// Enabled returns the value of the 'enabled' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Whether the region is enabled for deploying a managed cluster. +func (o *CloudRegion) Enabled() bool { + if o != nil && o.bitmap_&256 != 0 { + return o.enabled + } + return false +} + +// GetEnabled returns the value of the 'enabled' attribute and +// a flag indicating if the attribute has a value. +// +// Whether the region is enabled for deploying a managed cluster. +func (o *CloudRegion) GetEnabled() (value bool, ok bool) { + ok = o != nil && o.bitmap_&256 != 0 + if ok { + value = o.enabled + } + return +} + +// GovCloud returns the value of the 'gov_cloud' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Whether the region is an AWS GovCloud region. +func (o *CloudRegion) GovCloud() bool { + if o != nil && o.bitmap_&512 != 0 { + return o.govCloud + } + return false +} + +// GetGovCloud returns the value of the 'gov_cloud' attribute and +// a flag indicating if the attribute has a value. +// +// Whether the region is an AWS GovCloud region. +func (o *CloudRegion) GetGovCloud() (value bool, ok bool) { + ok = o != nil && o.bitmap_&512 != 0 + if ok { + value = o.govCloud + } + return +} + +// Name returns the value of the 'name' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Human friendly identifier of the region, for example `us-east-1`. +// +// NOTE: Currently for all cloud providers and all regions `id` and `name` have exactly +// the same values. +func (o *CloudRegion) Name() string { + if o != nil && o.bitmap_&1024 != 0 { + return o.name + } + return "" +} + +// GetName returns the value of the 'name' attribute and +// a flag indicating if the attribute has a value. +// +// Human friendly identifier of the region, for example `us-east-1`. +// +// NOTE: Currently for all cloud providers and all regions `id` and `name` have exactly +// the same values. +func (o *CloudRegion) GetName() (value string, ok bool) { + ok = o != nil && o.bitmap_&1024 != 0 + if ok { + value = o.name + } + return +} + +// SupportsHypershift returns the value of the 'supports_hypershift' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// 'true' if the region is supported for Hypershift deployments, 'false' otherwise. +func (o *CloudRegion) SupportsHypershift() bool { + if o != nil && o.bitmap_&2048 != 0 { + return o.supportsHypershift + } + return false +} + +// GetSupportsHypershift returns the value of the 'supports_hypershift' attribute and +// a flag indicating if the attribute has a value. +// +// 'true' if the region is supported for Hypershift deployments, 'false' otherwise. +func (o *CloudRegion) GetSupportsHypershift() (value bool, ok bool) { + ok = o != nil && o.bitmap_&2048 != 0 + if ok { + value = o.supportsHypershift + } + return +} + +// SupportsMultiAZ returns the value of the 'supports_multi_AZ' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Whether the region supports multiple availability zones. +func (o *CloudRegion) SupportsMultiAZ() bool { + if o != nil && o.bitmap_&4096 != 0 { + return o.supportsMultiAZ + } + return false +} + +// GetSupportsMultiAZ returns the value of the 'supports_multi_AZ' attribute and +// a flag indicating if the attribute has a value. +// +// Whether the region supports multiple availability zones. +func (o *CloudRegion) GetSupportsMultiAZ() (value bool, ok bool) { + ok = o != nil && o.bitmap_&4096 != 0 + if ok { + value = o.supportsMultiAZ + } + return +} + +// CloudRegionListKind is the name of the type used to represent list of objects of +// type 'cloud_region'. +const CloudRegionListKind = "CloudRegionList" + +// CloudRegionListLinkKind is the name of the type used to represent links to list +// of objects of type 'cloud_region'. +const CloudRegionListLinkKind = "CloudRegionListLink" + +// CloudRegionNilKind is the name of the type used to nil lists of objects of +// type 'cloud_region'. +const CloudRegionListNilKind = "CloudRegionListNil" + +// CloudRegionList is a list of values of the 'cloud_region' type. +type CloudRegionList struct { + href string + link bool + items []*CloudRegion +} + +// Kind returns the name of the type of the object. +func (l *CloudRegionList) Kind() string { + if l == nil { + return CloudRegionListNilKind + } + if l.link { + return CloudRegionListLinkKind + } + return CloudRegionListKind +} + +// Link returns true iif this is a link. +func (l *CloudRegionList) Link() bool { + return l != nil && l.link +} + +// HREF returns the link to the list. +func (l *CloudRegionList) HREF() string { + if l != nil { + return l.href + } + return "" +} + +// GetHREF returns the link of the list and a flag indicating if the +// link has a value. +func (l *CloudRegionList) GetHREF() (value string, ok bool) { + ok = l != nil && l.href != "" + if ok { + value = l.href + } + return +} + +// Len returns the length of the list. +func (l *CloudRegionList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *CloudRegionList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *CloudRegionList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *CloudRegionList) SetItems(items []*CloudRegion) { + l.items = items +} + +// Items returns the items of the list. +func (l *CloudRegionList) Items() []*CloudRegion { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *CloudRegionList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *CloudRegionList) Get(i int) *CloudRegion { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *CloudRegionList) Slice() []*CloudRegion { + var slice []*CloudRegion + if l == nil { + slice = make([]*CloudRegion, 0) + } else { + slice = make([]*CloudRegion, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *CloudRegionList) Each(f func(item *CloudRegion) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *CloudRegionList) Range(f func(index int, item *CloudRegion) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/cloud_region_type_json.go b/arohcp/v1alpha1/cloud_region_type_json.go new file mode 100644 index 000000000..1e5838e7d --- /dev/null +++ b/arohcp/v1alpha1/cloud_region_type_json.go @@ -0,0 +1,238 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + v1 "github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalCloudRegion writes a value of the 'cloud_region' type to the given writer. +func MarshalCloudRegion(object *CloudRegion, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteCloudRegion(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteCloudRegion writes a value of the 'cloud_region' type to the given stream. +func WriteCloudRegion(object *CloudRegion, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + stream.WriteObjectField("kind") + if object.bitmap_&1 != 0 { + stream.WriteString(CloudRegionLinkKind) + } else { + stream.WriteString(CloudRegionKind) + } + count++ + if object.bitmap_&2 != 0 { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("id") + stream.WriteString(object.id) + count++ + } + if object.bitmap_&4 != 0 { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("href") + stream.WriteString(object.href) + count++ + } + var present_ bool + present_ = object.bitmap_&8 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("ccs_only") + stream.WriteBool(object.ccsOnly) + count++ + } + present_ = object.bitmap_&16 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("kms_location_id") + stream.WriteString(object.kmsLocationID) + count++ + } + present_ = object.bitmap_&32 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("kms_location_name") + stream.WriteString(object.kmsLocationName) + count++ + } + present_ = object.bitmap_&64 != 0 && object.cloudProvider != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("cloud_provider") + v1.WriteCloudProvider(object.cloudProvider, stream) + count++ + } + present_ = object.bitmap_&128 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("display_name") + stream.WriteString(object.displayName) + count++ + } + present_ = object.bitmap_&256 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("enabled") + stream.WriteBool(object.enabled) + count++ + } + present_ = object.bitmap_&512 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("govcloud") + stream.WriteBool(object.govCloud) + count++ + } + present_ = object.bitmap_&1024 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("name") + stream.WriteString(object.name) + count++ + } + present_ = object.bitmap_&2048 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("supports_hypershift") + stream.WriteBool(object.supportsHypershift) + count++ + } + present_ = object.bitmap_&4096 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("supports_multi_az") + stream.WriteBool(object.supportsMultiAZ) + } + stream.WriteObjectEnd() +} + +// UnmarshalCloudRegion reads a value of the 'cloud_region' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalCloudRegion(source interface{}) (object *CloudRegion, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadCloudRegion(iterator) + err = iterator.Error + return +} + +// ReadCloudRegion reads a value of the 'cloud_region' type from the given iterator. +func ReadCloudRegion(iterator *jsoniter.Iterator) *CloudRegion { + object := &CloudRegion{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "kind": + value := iterator.ReadString() + if value == CloudRegionLinkKind { + object.bitmap_ |= 1 + } + case "id": + object.id = iterator.ReadString() + object.bitmap_ |= 2 + case "href": + object.href = iterator.ReadString() + object.bitmap_ |= 4 + case "ccs_only": + value := iterator.ReadBool() + object.ccsOnly = value + object.bitmap_ |= 8 + case "kms_location_id": + value := iterator.ReadString() + object.kmsLocationID = value + object.bitmap_ |= 16 + case "kms_location_name": + value := iterator.ReadString() + object.kmsLocationName = value + object.bitmap_ |= 32 + case "cloud_provider": + value := v1.ReadCloudProvider(iterator) + object.cloudProvider = value + object.bitmap_ |= 64 + case "display_name": + value := iterator.ReadString() + object.displayName = value + object.bitmap_ |= 128 + case "enabled": + value := iterator.ReadBool() + object.enabled = value + object.bitmap_ |= 256 + case "govcloud": + value := iterator.ReadBool() + object.govCloud = value + object.bitmap_ |= 512 + case "name": + value := iterator.ReadString() + object.name = value + object.bitmap_ |= 1024 + case "supports_hypershift": + value := iterator.ReadBool() + object.supportsHypershift = value + object.bitmap_ |= 2048 + case "supports_multi_az": + value := iterator.ReadBool() + object.supportsMultiAZ = value + object.bitmap_ |= 4096 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/cluster_api_builder.go b/arohcp/v1alpha1/cluster_api_builder.go new file mode 100644 index 000000000..02c9a06d9 --- /dev/null +++ b/arohcp/v1alpha1/cluster_api_builder.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ClusterAPIBuilder contains the data and logic needed to build 'cluster_API' objects. +// +// Information about the API of a cluster. +type ClusterAPIBuilder struct { + bitmap_ uint32 + url string + listening ListeningMethod +} + +// NewClusterAPI creates a new builder of 'cluster_API' objects. +func NewClusterAPI() *ClusterAPIBuilder { + return &ClusterAPIBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *ClusterAPIBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// URL sets the value of the 'URL' attribute to the given value. +func (b *ClusterAPIBuilder) URL(value string) *ClusterAPIBuilder { + b.url = value + b.bitmap_ |= 1 + return b +} + +// Listening sets the value of the 'listening' attribute to the given value. +// +// Cluster components listening method. +func (b *ClusterAPIBuilder) Listening(value ListeningMethod) *ClusterAPIBuilder { + b.listening = value + b.bitmap_ |= 2 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *ClusterAPIBuilder) Copy(object *ClusterAPI) *ClusterAPIBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.url = object.url + b.listening = object.listening + return b +} + +// Build creates a 'cluster_API' object using the configuration stored in the builder. +func (b *ClusterAPIBuilder) Build() (object *ClusterAPI, err error) { + object = new(ClusterAPI) + object.bitmap_ = b.bitmap_ + object.url = b.url + object.listening = b.listening + return +} diff --git a/arohcp/v1alpha1/cluster_api_list_builder.go b/arohcp/v1alpha1/cluster_api_list_builder.go new file mode 100644 index 000000000..d2efca299 --- /dev/null +++ b/arohcp/v1alpha1/cluster_api_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ClusterAPIListBuilder contains the data and logic needed to build +// 'cluster_API' objects. +type ClusterAPIListBuilder struct { + items []*ClusterAPIBuilder +} + +// NewClusterAPIList creates a new builder of 'cluster_API' objects. +func NewClusterAPIList() *ClusterAPIListBuilder { + return new(ClusterAPIListBuilder) +} + +// Items sets the items of the list. +func (b *ClusterAPIListBuilder) Items(values ...*ClusterAPIBuilder) *ClusterAPIListBuilder { + b.items = make([]*ClusterAPIBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *ClusterAPIListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *ClusterAPIListBuilder) Copy(list *ClusterAPIList) *ClusterAPIListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*ClusterAPIBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewClusterAPI().Copy(v) + } + } + return b +} + +// Build creates a list of 'cluster_API' objects using the +// configuration stored in the builder. +func (b *ClusterAPIListBuilder) Build() (list *ClusterAPIList, err error) { + items := make([]*ClusterAPI, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(ClusterAPIList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/cluster_api_list_type_json.go b/arohcp/v1alpha1/cluster_api_list_type_json.go new file mode 100644 index 000000000..10b63e998 --- /dev/null +++ b/arohcp/v1alpha1/cluster_api_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalClusterAPIList writes a list of values of the 'cluster_API' type to +// the given writer. +func MarshalClusterAPIList(list []*ClusterAPI, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteClusterAPIList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteClusterAPIList writes a list of value of the 'cluster_API' type to +// the given stream. +func WriteClusterAPIList(list []*ClusterAPI, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteClusterAPI(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalClusterAPIList reads a list of values of the 'cluster_API' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalClusterAPIList(source interface{}) (items []*ClusterAPI, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadClusterAPIList(iterator) + err = iterator.Error + return +} + +// ReadClusterAPIList reads list of values of the ”cluster_API' type from +// the given iterator. +func ReadClusterAPIList(iterator *jsoniter.Iterator) []*ClusterAPI { + list := []*ClusterAPI{} + for iterator.ReadArray() { + item := ReadClusterAPI(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/cluster_api_type.go b/arohcp/v1alpha1/cluster_api_type.go new file mode 100644 index 000000000..463c92445 --- /dev/null +++ b/arohcp/v1alpha1/cluster_api_type.go @@ -0,0 +1,189 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ClusterAPI represents the values of the 'cluster_API' type. +// +// Information about the API of a cluster. +type ClusterAPI struct { + bitmap_ uint32 + url string + listening ListeningMethod +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *ClusterAPI) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// URL returns the value of the 'URL' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The URL of the API server of the cluster. +func (o *ClusterAPI) URL() string { + if o != nil && o.bitmap_&1 != 0 { + return o.url + } + return "" +} + +// GetURL returns the value of the 'URL' attribute and +// a flag indicating if the attribute has a value. +// +// The URL of the API server of the cluster. +func (o *ClusterAPI) GetURL() (value string, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.url + } + return +} + +// Listening returns the value of the 'listening' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The listening method of the API server. +func (o *ClusterAPI) Listening() ListeningMethod { + if o != nil && o.bitmap_&2 != 0 { + return o.listening + } + return ListeningMethod("") +} + +// GetListening returns the value of the 'listening' attribute and +// a flag indicating if the attribute has a value. +// +// The listening method of the API server. +func (o *ClusterAPI) GetListening() (value ListeningMethod, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.listening + } + return +} + +// ClusterAPIListKind is the name of the type used to represent list of objects of +// type 'cluster_API'. +const ClusterAPIListKind = "ClusterAPIList" + +// ClusterAPIListLinkKind is the name of the type used to represent links to list +// of objects of type 'cluster_API'. +const ClusterAPIListLinkKind = "ClusterAPIListLink" + +// ClusterAPINilKind is the name of the type used to nil lists of objects of +// type 'cluster_API'. +const ClusterAPIListNilKind = "ClusterAPIListNil" + +// ClusterAPIList is a list of values of the 'cluster_API' type. +type ClusterAPIList struct { + href string + link bool + items []*ClusterAPI +} + +// Len returns the length of the list. +func (l *ClusterAPIList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *ClusterAPIList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterAPIList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterAPIList) SetItems(items []*ClusterAPI) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterAPIList) Items() []*ClusterAPI { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *ClusterAPIList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *ClusterAPIList) Get(i int) *ClusterAPI { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *ClusterAPIList) Slice() []*ClusterAPI { + var slice []*ClusterAPI + if l == nil { + slice = make([]*ClusterAPI, 0) + } else { + slice = make([]*ClusterAPI, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *ClusterAPIList) Each(f func(item *ClusterAPI) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *ClusterAPIList) Range(f func(index int, item *ClusterAPI) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/cluster_api_type_json.go b/arohcp/v1alpha1/cluster_api_type_json.go new file mode 100644 index 000000000..7f3d03a9c --- /dev/null +++ b/arohcp/v1alpha1/cluster_api_type_json.go @@ -0,0 +1,100 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalClusterAPI writes a value of the 'cluster_API' type to the given writer. +func MarshalClusterAPI(object *ClusterAPI, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteClusterAPI(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteClusterAPI writes a value of the 'cluster_API' type to the given stream. +func WriteClusterAPI(object *ClusterAPI, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("url") + stream.WriteString(object.url) + count++ + } + present_ = object.bitmap_&2 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("listening") + stream.WriteString(string(object.listening)) + } + stream.WriteObjectEnd() +} + +// UnmarshalClusterAPI reads a value of the 'cluster_API' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalClusterAPI(source interface{}) (object *ClusterAPI, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadClusterAPI(iterator) + err = iterator.Error + return +} + +// ReadClusterAPI reads a value of the 'cluster_API' type from the given iterator. +func ReadClusterAPI(iterator *jsoniter.Iterator) *ClusterAPI { + object := &ClusterAPI{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "url": + value := iterator.ReadString() + object.url = value + object.bitmap_ |= 1 + case "listening": + text := iterator.ReadString() + value := ListeningMethod(text) + object.listening = value + object.bitmap_ |= 2 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/cluster_builder.go b/arohcp/v1alpha1/cluster_builder.go new file mode 100644 index 000000000..0adccaa6c --- /dev/null +++ b/arohcp/v1alpha1/cluster_builder.go @@ -0,0 +1,1337 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + time "time" + + v1 "github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1" +) + +// ClusterBuilder contains the data and logic needed to build 'cluster' objects. +// +// Definition of an _OpenShift_ cluster. +// +// The `cloud_provider` attribute is a reference to the cloud provider. When a +// cluster is retrieved it will be a link to the cloud provider, containing only +// the kind, id and href attributes: +// +// ```json +// +// { +// "cloud_provider": { +// "kind": "CloudProviderLink", +// "id": "123", +// "href": "/api/clusters_mgmt/v1/cloud_providers/123" +// } +// } +// +// ``` +// +// When a cluster is created this is optional, and if used it should contain the +// identifier of the cloud provider to use: +// +// ```json +// +// { +// "cloud_provider": { +// "id": "123", +// } +// } +// +// ``` +// +// If not included, then the cluster will be created using the default cloud +// provider, which is currently Amazon Web Services. +// +// The region attribute is mandatory when a cluster is created. +// +// The `aws.access_key_id`, `aws.secret_access_key` and `dns.base_domain` +// attributes are mandatory when creation a cluster with your own Amazon Web +// Services account. +type ClusterBuilder struct { + bitmap_ uint64 + id string + href string + api *ClusterAPIBuilder + aws *AWSBuilder + awsInfrastructureAccessRoleGrants *v1.AWSInfrastructureAccessRoleGrantListBuilder + ccs *CCSBuilder + dns *DNSBuilder + gcp *GCPBuilder + gcpEncryptionKey *GCPEncryptionKeyBuilder + gcpNetwork *GCPNetworkBuilder + additionalTrustBundle string + addons *v1.AddOnInstallationListBuilder + autoscaler *v1.ClusterAutoscalerBuilder + azure *AzureBuilder + billingModel BillingModel + byoOidc *ByoOidcBuilder + cloudProvider *v1.CloudProviderBuilder + console *ClusterConsoleBuilder + creationTimestamp time.Time + deleteProtection *DeleteProtectionBuilder + domainPrefix string + expirationTimestamp time.Time + externalID string + externalAuthConfig *ExternalAuthConfigBuilder + externalConfiguration *ExternalConfigurationBuilder + flavour *v1.FlavourBuilder + groups *v1.GroupListBuilder + healthState ClusterHealthState + htpasswd *HTPasswdIdentityProviderBuilder + hypershift *HypershiftBuilder + identityProviders *v1.IdentityProviderListBuilder + inflightChecks *v1.InflightCheckListBuilder + infraID string + ingresses *v1.IngressListBuilder + kubeletConfig *KubeletConfigBuilder + loadBalancerQuota int + machinePools *v1.MachinePoolListBuilder + managedService *ManagedServiceBuilder + name string + network *NetworkBuilder + nodeDrainGracePeriod *ValueBuilder + nodePools *v1.NodePoolListBuilder + nodes *ClusterNodesBuilder + openshiftVersion string + product *v1.ProductBuilder + properties map[string]string + provisionShard *ProvisionShardBuilder + proxy *ProxyBuilder + region *v1.CloudRegionBuilder + registryConfig *ClusterRegistryConfigBuilder + state ClusterState + status *ClusterStatusBuilder + storageQuota *ValueBuilder + subscription *v1.SubscriptionBuilder + version *v1.VersionBuilder + fips bool + disableUserWorkloadMonitoring bool + etcdEncryption bool + managed bool + multiAZ bool + multiArchEnabled bool +} + +// NewCluster creates a new builder of 'cluster' objects. +func NewCluster() *ClusterBuilder { + return &ClusterBuilder{} +} + +// Link sets the flag that indicates if this is a link. +func (b *ClusterBuilder) Link(value bool) *ClusterBuilder { + b.bitmap_ |= 1 + return b +} + +// ID sets the identifier of the object. +func (b *ClusterBuilder) ID(value string) *ClusterBuilder { + b.id = value + b.bitmap_ |= 2 + return b +} + +// HREF sets the link to the object. +func (b *ClusterBuilder) HREF(value string) *ClusterBuilder { + b.href = value + b.bitmap_ |= 4 + return b +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *ClusterBuilder) Empty() bool { + return b == nil || b.bitmap_&^1 == 0 +} + +// API sets the value of the 'API' attribute to the given value. +// +// Information about the API of a cluster. +func (b *ClusterBuilder) API(value *ClusterAPIBuilder) *ClusterBuilder { + b.api = value + if value != nil { + b.bitmap_ |= 8 + } else { + b.bitmap_ &^= 8 + } + return b +} + +// AWS sets the value of the 'AWS' attribute to the given value. +// +// _Amazon Web Services_ specific settings of a cluster. +func (b *ClusterBuilder) AWS(value *AWSBuilder) *ClusterBuilder { + b.aws = value + if value != nil { + b.bitmap_ |= 16 + } else { + b.bitmap_ &^= 16 + } + return b +} + +// AWSInfrastructureAccessRoleGrants sets the value of the 'AWS_infrastructure_access_role_grants' attribute to the given values. +func (b *ClusterBuilder) AWSInfrastructureAccessRoleGrants(value *v1.AWSInfrastructureAccessRoleGrantListBuilder) *ClusterBuilder { + b.awsInfrastructureAccessRoleGrants = value + b.bitmap_ |= 32 + return b +} + +// CCS sets the value of the 'CCS' attribute to the given value. +func (b *ClusterBuilder) CCS(value *CCSBuilder) *ClusterBuilder { + b.ccs = value + if value != nil { + b.bitmap_ |= 64 + } else { + b.bitmap_ &^= 64 + } + return b +} + +// DNS sets the value of the 'DNS' attribute to the given value. +// +// DNS settings of the cluster. +func (b *ClusterBuilder) DNS(value *DNSBuilder) *ClusterBuilder { + b.dns = value + if value != nil { + b.bitmap_ |= 128 + } else { + b.bitmap_ &^= 128 + } + return b +} + +// FIPS sets the value of the 'FIPS' attribute to the given value. +func (b *ClusterBuilder) FIPS(value bool) *ClusterBuilder { + b.fips = value + b.bitmap_ |= 256 + return b +} + +// GCP sets the value of the 'GCP' attribute to the given value. +// +// Google cloud platform settings of a cluster. +func (b *ClusterBuilder) GCP(value *GCPBuilder) *ClusterBuilder { + b.gcp = value + if value != nil { + b.bitmap_ |= 512 + } else { + b.bitmap_ &^= 512 + } + return b +} + +// GCPEncryptionKey sets the value of the 'GCP_encryption_key' attribute to the given value. +// +// GCP Encryption Key for CCS clusters. +func (b *ClusterBuilder) GCPEncryptionKey(value *GCPEncryptionKeyBuilder) *ClusterBuilder { + b.gcpEncryptionKey = value + if value != nil { + b.bitmap_ |= 1024 + } else { + b.bitmap_ &^= 1024 + } + return b +} + +// GCPNetwork sets the value of the 'GCP_network' attribute to the given value. +// +// GCP Network configuration of a cluster. +func (b *ClusterBuilder) GCPNetwork(value *GCPNetworkBuilder) *ClusterBuilder { + b.gcpNetwork = value + if value != nil { + b.bitmap_ |= 2048 + } else { + b.bitmap_ &^= 2048 + } + return b +} + +// AdditionalTrustBundle sets the value of the 'additional_trust_bundle' attribute to the given value. +func (b *ClusterBuilder) AdditionalTrustBundle(value string) *ClusterBuilder { + b.additionalTrustBundle = value + b.bitmap_ |= 4096 + return b +} + +// Addons sets the value of the 'addons' attribute to the given values. +func (b *ClusterBuilder) Addons(value *v1.AddOnInstallationListBuilder) *ClusterBuilder { + b.addons = value + b.bitmap_ |= 8192 + return b +} + +// Autoscaler sets the value of the 'autoscaler' attribute to the given value. +// +// Cluster-wide autoscaling configuration. +func (b *ClusterBuilder) Autoscaler(value *v1.ClusterAutoscalerBuilder) *ClusterBuilder { + b.autoscaler = value + if value != nil { + b.bitmap_ |= 16384 + } else { + b.bitmap_ &^= 16384 + } + return b +} + +// Azure sets the value of the 'azure' attribute to the given value. +// +// Microsoft Azure settings of a cluster. +func (b *ClusterBuilder) Azure(value *AzureBuilder) *ClusterBuilder { + b.azure = value + if value != nil { + b.bitmap_ |= 32768 + } else { + b.bitmap_ &^= 32768 + } + return b +} + +// BillingModel sets the value of the 'billing_model' attribute to the given value. +// +// Billing model for cluster resources. +func (b *ClusterBuilder) BillingModel(value BillingModel) *ClusterBuilder { + b.billingModel = value + b.bitmap_ |= 65536 + return b +} + +// ByoOidc sets the value of the 'byo_oidc' attribute to the given value. +// +// ByoOidc configuration. +func (b *ClusterBuilder) ByoOidc(value *ByoOidcBuilder) *ClusterBuilder { + b.byoOidc = value + if value != nil { + b.bitmap_ |= 131072 + } else { + b.bitmap_ &^= 131072 + } + return b +} + +// CloudProvider sets the value of the 'cloud_provider' attribute to the given value. +// +// Cloud provider. +func (b *ClusterBuilder) CloudProvider(value *v1.CloudProviderBuilder) *ClusterBuilder { + b.cloudProvider = value + if value != nil { + b.bitmap_ |= 262144 + } else { + b.bitmap_ &^= 262144 + } + return b +} + +// Console sets the value of the 'console' attribute to the given value. +// +// Information about the console of a cluster. +func (b *ClusterBuilder) Console(value *ClusterConsoleBuilder) *ClusterBuilder { + b.console = value + if value != nil { + b.bitmap_ |= 524288 + } else { + b.bitmap_ &^= 524288 + } + return b +} + +// CreationTimestamp sets the value of the 'creation_timestamp' attribute to the given value. +func (b *ClusterBuilder) CreationTimestamp(value time.Time) *ClusterBuilder { + b.creationTimestamp = value + b.bitmap_ |= 1048576 + return b +} + +// DeleteProtection sets the value of the 'delete_protection' attribute to the given value. +// +// DeleteProtection configuration. +func (b *ClusterBuilder) DeleteProtection(value *DeleteProtectionBuilder) *ClusterBuilder { + b.deleteProtection = value + if value != nil { + b.bitmap_ |= 2097152 + } else { + b.bitmap_ &^= 2097152 + } + return b +} + +// DisableUserWorkloadMonitoring sets the value of the 'disable_user_workload_monitoring' attribute to the given value. +func (b *ClusterBuilder) DisableUserWorkloadMonitoring(value bool) *ClusterBuilder { + b.disableUserWorkloadMonitoring = value + b.bitmap_ |= 4194304 + return b +} + +// DomainPrefix sets the value of the 'domain_prefix' attribute to the given value. +func (b *ClusterBuilder) DomainPrefix(value string) *ClusterBuilder { + b.domainPrefix = value + b.bitmap_ |= 8388608 + return b +} + +// EtcdEncryption sets the value of the 'etcd_encryption' attribute to the given value. +func (b *ClusterBuilder) EtcdEncryption(value bool) *ClusterBuilder { + b.etcdEncryption = value + b.bitmap_ |= 16777216 + return b +} + +// ExpirationTimestamp sets the value of the 'expiration_timestamp' attribute to the given value. +func (b *ClusterBuilder) ExpirationTimestamp(value time.Time) *ClusterBuilder { + b.expirationTimestamp = value + b.bitmap_ |= 33554432 + return b +} + +// ExternalID sets the value of the 'external_ID' attribute to the given value. +func (b *ClusterBuilder) ExternalID(value string) *ClusterBuilder { + b.externalID = value + b.bitmap_ |= 67108864 + return b +} + +// ExternalAuthConfig sets the value of the 'external_auth_config' attribute to the given value. +// +// ExternalAuthConfig configuration +func (b *ClusterBuilder) ExternalAuthConfig(value *ExternalAuthConfigBuilder) *ClusterBuilder { + b.externalAuthConfig = value + if value != nil { + b.bitmap_ |= 134217728 + } else { + b.bitmap_ &^= 134217728 + } + return b +} + +// ExternalConfiguration sets the value of the 'external_configuration' attribute to the given value. +// +// Representation of cluster external configuration. +func (b *ClusterBuilder) ExternalConfiguration(value *ExternalConfigurationBuilder) *ClusterBuilder { + b.externalConfiguration = value + if value != nil { + b.bitmap_ |= 268435456 + } else { + b.bitmap_ &^= 268435456 + } + return b +} + +// Flavour sets the value of the 'flavour' attribute to the given value. +// +// Set of predefined properties of a cluster. For example, a _huge_ flavour can be a cluster +// with 10 infra nodes and 1000 compute nodes. +func (b *ClusterBuilder) Flavour(value *v1.FlavourBuilder) *ClusterBuilder { + b.flavour = value + if value != nil { + b.bitmap_ |= 536870912 + } else { + b.bitmap_ &^= 536870912 + } + return b +} + +// Groups sets the value of the 'groups' attribute to the given values. +func (b *ClusterBuilder) Groups(value *v1.GroupListBuilder) *ClusterBuilder { + b.groups = value + b.bitmap_ |= 1073741824 + return b +} + +// HealthState sets the value of the 'health_state' attribute to the given value. +// +// ClusterHealthState indicates the health of a cluster. +func (b *ClusterBuilder) HealthState(value ClusterHealthState) *ClusterBuilder { + b.healthState = value + b.bitmap_ |= 2147483648 + return b +} + +// Htpasswd sets the value of the 'htpasswd' attribute to the given value. +// +// Details for `htpasswd` identity providers. +func (b *ClusterBuilder) Htpasswd(value *HTPasswdIdentityProviderBuilder) *ClusterBuilder { + b.htpasswd = value + if value != nil { + b.bitmap_ |= 4294967296 + } else { + b.bitmap_ &^= 4294967296 + } + return b +} + +// Hypershift sets the value of the 'hypershift' attribute to the given value. +// +// Hypershift configuration. +func (b *ClusterBuilder) Hypershift(value *HypershiftBuilder) *ClusterBuilder { + b.hypershift = value + if value != nil { + b.bitmap_ |= 8589934592 + } else { + b.bitmap_ &^= 8589934592 + } + return b +} + +// IdentityProviders sets the value of the 'identity_providers' attribute to the given values. +func (b *ClusterBuilder) IdentityProviders(value *v1.IdentityProviderListBuilder) *ClusterBuilder { + b.identityProviders = value + b.bitmap_ |= 17179869184 + return b +} + +// InflightChecks sets the value of the 'inflight_checks' attribute to the given values. +func (b *ClusterBuilder) InflightChecks(value *v1.InflightCheckListBuilder) *ClusterBuilder { + b.inflightChecks = value + b.bitmap_ |= 34359738368 + return b +} + +// InfraID sets the value of the 'infra_ID' attribute to the given value. +func (b *ClusterBuilder) InfraID(value string) *ClusterBuilder { + b.infraID = value + b.bitmap_ |= 68719476736 + return b +} + +// Ingresses sets the value of the 'ingresses' attribute to the given values. +func (b *ClusterBuilder) Ingresses(value *v1.IngressListBuilder) *ClusterBuilder { + b.ingresses = value + b.bitmap_ |= 137438953472 + return b +} + +// KubeletConfig sets the value of the 'kubelet_config' attribute to the given value. +// +// OCM representation of KubeletConfig, exposing the fields of Kubernetes +// KubeletConfig that can be managed by users +func (b *ClusterBuilder) KubeletConfig(value *KubeletConfigBuilder) *ClusterBuilder { + b.kubeletConfig = value + if value != nil { + b.bitmap_ |= 274877906944 + } else { + b.bitmap_ &^= 274877906944 + } + return b +} + +// LoadBalancerQuota sets the value of the 'load_balancer_quota' attribute to the given value. +func (b *ClusterBuilder) LoadBalancerQuota(value int) *ClusterBuilder { + b.loadBalancerQuota = value + b.bitmap_ |= 549755813888 + return b +} + +// MachinePools sets the value of the 'machine_pools' attribute to the given values. +func (b *ClusterBuilder) MachinePools(value *v1.MachinePoolListBuilder) *ClusterBuilder { + b.machinePools = value + b.bitmap_ |= 1099511627776 + return b +} + +// Managed sets the value of the 'managed' attribute to the given value. +func (b *ClusterBuilder) Managed(value bool) *ClusterBuilder { + b.managed = value + b.bitmap_ |= 2199023255552 + return b +} + +// ManagedService sets the value of the 'managed_service' attribute to the given value. +// +// Contains the necessary attributes to support role-based authentication on AWS. +func (b *ClusterBuilder) ManagedService(value *ManagedServiceBuilder) *ClusterBuilder { + b.managedService = value + if value != nil { + b.bitmap_ |= 4398046511104 + } else { + b.bitmap_ &^= 4398046511104 + } + return b +} + +// MultiAZ sets the value of the 'multi_AZ' attribute to the given value. +func (b *ClusterBuilder) MultiAZ(value bool) *ClusterBuilder { + b.multiAZ = value + b.bitmap_ |= 8796093022208 + return b +} + +// MultiArchEnabled sets the value of the 'multi_arch_enabled' attribute to the given value. +func (b *ClusterBuilder) MultiArchEnabled(value bool) *ClusterBuilder { + b.multiArchEnabled = value + b.bitmap_ |= 17592186044416 + return b +} + +// Name sets the value of the 'name' attribute to the given value. +func (b *ClusterBuilder) Name(value string) *ClusterBuilder { + b.name = value + b.bitmap_ |= 35184372088832 + return b +} + +// Network sets the value of the 'network' attribute to the given value. +// +// Network configuration of a cluster. +func (b *ClusterBuilder) Network(value *NetworkBuilder) *ClusterBuilder { + b.network = value + if value != nil { + b.bitmap_ |= 70368744177664 + } else { + b.bitmap_ &^= 70368744177664 + } + return b +} + +// NodeDrainGracePeriod sets the value of the 'node_drain_grace_period' attribute to the given value. +// +// Numeric value and the unit used to measure it. +// +// Units are not mandatory, and they're not specified for some resources. For +// resources that use bytes, the accepted units are: +// +// - 1 B = 1 byte +// - 1 KB = 10^3 bytes +// - 1 MB = 10^6 bytes +// - 1 GB = 10^9 bytes +// - 1 TB = 10^12 bytes +// - 1 PB = 10^15 bytes +// +// - 1 B = 1 byte +// - 1 KiB = 2^10 bytes +// - 1 MiB = 2^20 bytes +// - 1 GiB = 2^30 bytes +// - 1 TiB = 2^40 bytes +// - 1 PiB = 2^50 bytes +func (b *ClusterBuilder) NodeDrainGracePeriod(value *ValueBuilder) *ClusterBuilder { + b.nodeDrainGracePeriod = value + if value != nil { + b.bitmap_ |= 140737488355328 + } else { + b.bitmap_ &^= 140737488355328 + } + return b +} + +// NodePools sets the value of the 'node_pools' attribute to the given values. +func (b *ClusterBuilder) NodePools(value *v1.NodePoolListBuilder) *ClusterBuilder { + b.nodePools = value + b.bitmap_ |= 281474976710656 + return b +} + +// Nodes sets the value of the 'nodes' attribute to the given value. +// +// Counts of different classes of nodes inside a cluster. +func (b *ClusterBuilder) Nodes(value *ClusterNodesBuilder) *ClusterBuilder { + b.nodes = value + if value != nil { + b.bitmap_ |= 562949953421312 + } else { + b.bitmap_ &^= 562949953421312 + } + return b +} + +// OpenshiftVersion sets the value of the 'openshift_version' attribute to the given value. +func (b *ClusterBuilder) OpenshiftVersion(value string) *ClusterBuilder { + b.openshiftVersion = value + b.bitmap_ |= 1125899906842624 + return b +} + +// Product sets the value of the 'product' attribute to the given value. +// +// Representation of an product that can be selected as a cluster type. +func (b *ClusterBuilder) Product(value *v1.ProductBuilder) *ClusterBuilder { + b.product = value + if value != nil { + b.bitmap_ |= 2251799813685248 + } else { + b.bitmap_ &^= 2251799813685248 + } + return b +} + +// Properties sets the value of the 'properties' attribute to the given value. +func (b *ClusterBuilder) Properties(value map[string]string) *ClusterBuilder { + b.properties = value + if value != nil { + b.bitmap_ |= 4503599627370496 + } else { + b.bitmap_ &^= 4503599627370496 + } + return b +} + +// ProvisionShard sets the value of the 'provision_shard' attribute to the given value. +// +// Contains the properties of the provision shard, including AWS and GCP related configurations +func (b *ClusterBuilder) ProvisionShard(value *ProvisionShardBuilder) *ClusterBuilder { + b.provisionShard = value + if value != nil { + b.bitmap_ |= 9007199254740992 + } else { + b.bitmap_ &^= 9007199254740992 + } + return b +} + +// Proxy sets the value of the 'proxy' attribute to the given value. +// +// Proxy configuration of a cluster. +func (b *ClusterBuilder) Proxy(value *ProxyBuilder) *ClusterBuilder { + b.proxy = value + if value != nil { + b.bitmap_ |= 18014398509481984 + } else { + b.bitmap_ &^= 18014398509481984 + } + return b +} + +// Region sets the value of the 'region' attribute to the given value. +// +// Description of a region of a cloud provider. +func (b *ClusterBuilder) Region(value *v1.CloudRegionBuilder) *ClusterBuilder { + b.region = value + if value != nil { + b.bitmap_ |= 36028797018963968 + } else { + b.bitmap_ &^= 36028797018963968 + } + return b +} + +// RegistryConfig sets the value of the 'registry_config' attribute to the given value. +// +// ClusterRegistryConfig describes the configuration of registries for the cluster. +// Its format reflects the OpenShift Image Configuration, for which docs are available on +// [docs.openshift.com](https://docs.openshift.com/container-platform/4.16/openshift_images/image-configuration.html) +// ```json +// +// { +// "registry_config": { +// "registry_sources": { +// "blocked_registries": [ +// "badregistry.io", +// "badregistry8.io" +// ] +// } +// } +// } +// +// ``` +func (b *ClusterBuilder) RegistryConfig(value *ClusterRegistryConfigBuilder) *ClusterBuilder { + b.registryConfig = value + if value != nil { + b.bitmap_ |= 72057594037927936 + } else { + b.bitmap_ &^= 72057594037927936 + } + return b +} + +// State sets the value of the 'state' attribute to the given value. +// +// Overall state of a cluster. +func (b *ClusterBuilder) State(value ClusterState) *ClusterBuilder { + b.state = value + b.bitmap_ |= 144115188075855872 + return b +} + +// Status sets the value of the 'status' attribute to the given value. +// +// Detailed status of a cluster. +func (b *ClusterBuilder) Status(value *ClusterStatusBuilder) *ClusterBuilder { + b.status = value + if value != nil { + b.bitmap_ |= 288230376151711744 + } else { + b.bitmap_ &^= 288230376151711744 + } + return b +} + +// StorageQuota sets the value of the 'storage_quota' attribute to the given value. +// +// Numeric value and the unit used to measure it. +// +// Units are not mandatory, and they're not specified for some resources. For +// resources that use bytes, the accepted units are: +// +// - 1 B = 1 byte +// - 1 KB = 10^3 bytes +// - 1 MB = 10^6 bytes +// - 1 GB = 10^9 bytes +// - 1 TB = 10^12 bytes +// - 1 PB = 10^15 bytes +// +// - 1 B = 1 byte +// - 1 KiB = 2^10 bytes +// - 1 MiB = 2^20 bytes +// - 1 GiB = 2^30 bytes +// - 1 TiB = 2^40 bytes +// - 1 PiB = 2^50 bytes +func (b *ClusterBuilder) StorageQuota(value *ValueBuilder) *ClusterBuilder { + b.storageQuota = value + if value != nil { + b.bitmap_ |= 576460752303423488 + } else { + b.bitmap_ &^= 576460752303423488 + } + return b +} + +// Subscription sets the value of the 'subscription' attribute to the given value. +// +// Definition of a subscription. +func (b *ClusterBuilder) Subscription(value *v1.SubscriptionBuilder) *ClusterBuilder { + b.subscription = value + if value != nil { + b.bitmap_ |= 1152921504606846976 + } else { + b.bitmap_ &^= 1152921504606846976 + } + return b +} + +// Version sets the value of the 'version' attribute to the given value. +// +// Representation of an _OpenShift_ version. +func (b *ClusterBuilder) Version(value *v1.VersionBuilder) *ClusterBuilder { + b.version = value + if value != nil { + b.bitmap_ |= 2305843009213693952 + } else { + b.bitmap_ &^= 2305843009213693952 + } + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *ClusterBuilder) Copy(object *Cluster) *ClusterBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.id = object.id + b.href = object.href + if object.api != nil { + b.api = NewClusterAPI().Copy(object.api) + } else { + b.api = nil + } + if object.aws != nil { + b.aws = NewAWS().Copy(object.aws) + } else { + b.aws = nil + } + if object.awsInfrastructureAccessRoleGrants != nil { + b.awsInfrastructureAccessRoleGrants = v1.NewAWSInfrastructureAccessRoleGrantList().Copy(object.awsInfrastructureAccessRoleGrants) + } else { + b.awsInfrastructureAccessRoleGrants = nil + } + if object.ccs != nil { + b.ccs = NewCCS().Copy(object.ccs) + } else { + b.ccs = nil + } + if object.dns != nil { + b.dns = NewDNS().Copy(object.dns) + } else { + b.dns = nil + } + b.fips = object.fips + if object.gcp != nil { + b.gcp = NewGCP().Copy(object.gcp) + } else { + b.gcp = nil + } + if object.gcpEncryptionKey != nil { + b.gcpEncryptionKey = NewGCPEncryptionKey().Copy(object.gcpEncryptionKey) + } else { + b.gcpEncryptionKey = nil + } + if object.gcpNetwork != nil { + b.gcpNetwork = NewGCPNetwork().Copy(object.gcpNetwork) + } else { + b.gcpNetwork = nil + } + b.additionalTrustBundle = object.additionalTrustBundle + if object.addons != nil { + b.addons = v1.NewAddOnInstallationList().Copy(object.addons) + } else { + b.addons = nil + } + if object.autoscaler != nil { + b.autoscaler = v1.NewClusterAutoscaler().Copy(object.autoscaler) + } else { + b.autoscaler = nil + } + if object.azure != nil { + b.azure = NewAzure().Copy(object.azure) + } else { + b.azure = nil + } + b.billingModel = object.billingModel + if object.byoOidc != nil { + b.byoOidc = NewByoOidc().Copy(object.byoOidc) + } else { + b.byoOidc = nil + } + if object.cloudProvider != nil { + b.cloudProvider = v1.NewCloudProvider().Copy(object.cloudProvider) + } else { + b.cloudProvider = nil + } + if object.console != nil { + b.console = NewClusterConsole().Copy(object.console) + } else { + b.console = nil + } + b.creationTimestamp = object.creationTimestamp + if object.deleteProtection != nil { + b.deleteProtection = NewDeleteProtection().Copy(object.deleteProtection) + } else { + b.deleteProtection = nil + } + b.disableUserWorkloadMonitoring = object.disableUserWorkloadMonitoring + b.domainPrefix = object.domainPrefix + b.etcdEncryption = object.etcdEncryption + b.expirationTimestamp = object.expirationTimestamp + b.externalID = object.externalID + if object.externalAuthConfig != nil { + b.externalAuthConfig = NewExternalAuthConfig().Copy(object.externalAuthConfig) + } else { + b.externalAuthConfig = nil + } + if object.externalConfiguration != nil { + b.externalConfiguration = NewExternalConfiguration().Copy(object.externalConfiguration) + } else { + b.externalConfiguration = nil + } + if object.flavour != nil { + b.flavour = v1.NewFlavour().Copy(object.flavour) + } else { + b.flavour = nil + } + if object.groups != nil { + b.groups = v1.NewGroupList().Copy(object.groups) + } else { + b.groups = nil + } + b.healthState = object.healthState + if object.htpasswd != nil { + b.htpasswd = NewHTPasswdIdentityProvider().Copy(object.htpasswd) + } else { + b.htpasswd = nil + } + if object.hypershift != nil { + b.hypershift = NewHypershift().Copy(object.hypershift) + } else { + b.hypershift = nil + } + if object.identityProviders != nil { + b.identityProviders = v1.NewIdentityProviderList().Copy(object.identityProviders) + } else { + b.identityProviders = nil + } + if object.inflightChecks != nil { + b.inflightChecks = v1.NewInflightCheckList().Copy(object.inflightChecks) + } else { + b.inflightChecks = nil + } + b.infraID = object.infraID + if object.ingresses != nil { + b.ingresses = v1.NewIngressList().Copy(object.ingresses) + } else { + b.ingresses = nil + } + if object.kubeletConfig != nil { + b.kubeletConfig = NewKubeletConfig().Copy(object.kubeletConfig) + } else { + b.kubeletConfig = nil + } + b.loadBalancerQuota = object.loadBalancerQuota + if object.machinePools != nil { + b.machinePools = v1.NewMachinePoolList().Copy(object.machinePools) + } else { + b.machinePools = nil + } + b.managed = object.managed + if object.managedService != nil { + b.managedService = NewManagedService().Copy(object.managedService) + } else { + b.managedService = nil + } + b.multiAZ = object.multiAZ + b.multiArchEnabled = object.multiArchEnabled + b.name = object.name + if object.network != nil { + b.network = NewNetwork().Copy(object.network) + } else { + b.network = nil + } + if object.nodeDrainGracePeriod != nil { + b.nodeDrainGracePeriod = NewValue().Copy(object.nodeDrainGracePeriod) + } else { + b.nodeDrainGracePeriod = nil + } + if object.nodePools != nil { + b.nodePools = v1.NewNodePoolList().Copy(object.nodePools) + } else { + b.nodePools = nil + } + if object.nodes != nil { + b.nodes = NewClusterNodes().Copy(object.nodes) + } else { + b.nodes = nil + } + b.openshiftVersion = object.openshiftVersion + if object.product != nil { + b.product = v1.NewProduct().Copy(object.product) + } else { + b.product = nil + } + if len(object.properties) > 0 { + b.properties = map[string]string{} + for k, v := range object.properties { + b.properties[k] = v + } + } else { + b.properties = nil + } + if object.provisionShard != nil { + b.provisionShard = NewProvisionShard().Copy(object.provisionShard) + } else { + b.provisionShard = nil + } + if object.proxy != nil { + b.proxy = NewProxy().Copy(object.proxy) + } else { + b.proxy = nil + } + if object.region != nil { + b.region = v1.NewCloudRegion().Copy(object.region) + } else { + b.region = nil + } + if object.registryConfig != nil { + b.registryConfig = NewClusterRegistryConfig().Copy(object.registryConfig) + } else { + b.registryConfig = nil + } + b.state = object.state + if object.status != nil { + b.status = NewClusterStatus().Copy(object.status) + } else { + b.status = nil + } + if object.storageQuota != nil { + b.storageQuota = NewValue().Copy(object.storageQuota) + } else { + b.storageQuota = nil + } + if object.subscription != nil { + b.subscription = v1.NewSubscription().Copy(object.subscription) + } else { + b.subscription = nil + } + if object.version != nil { + b.version = v1.NewVersion().Copy(object.version) + } else { + b.version = nil + } + return b +} + +// Build creates a 'cluster' object using the configuration stored in the builder. +func (b *ClusterBuilder) Build() (object *Cluster, err error) { + object = new(Cluster) + object.id = b.id + object.href = b.href + object.bitmap_ = b.bitmap_ + if b.api != nil { + object.api, err = b.api.Build() + if err != nil { + return + } + } + if b.aws != nil { + object.aws, err = b.aws.Build() + if err != nil { + return + } + } + if b.awsInfrastructureAccessRoleGrants != nil { + object.awsInfrastructureAccessRoleGrants, err = b.awsInfrastructureAccessRoleGrants.Build() + if err != nil { + return + } + } + if b.ccs != nil { + object.ccs, err = b.ccs.Build() + if err != nil { + return + } + } + if b.dns != nil { + object.dns, err = b.dns.Build() + if err != nil { + return + } + } + object.fips = b.fips + if b.gcp != nil { + object.gcp, err = b.gcp.Build() + if err != nil { + return + } + } + if b.gcpEncryptionKey != nil { + object.gcpEncryptionKey, err = b.gcpEncryptionKey.Build() + if err != nil { + return + } + } + if b.gcpNetwork != nil { + object.gcpNetwork, err = b.gcpNetwork.Build() + if err != nil { + return + } + } + object.additionalTrustBundle = b.additionalTrustBundle + if b.addons != nil { + object.addons, err = b.addons.Build() + if err != nil { + return + } + } + if b.autoscaler != nil { + object.autoscaler, err = b.autoscaler.Build() + if err != nil { + return + } + } + if b.azure != nil { + object.azure, err = b.azure.Build() + if err != nil { + return + } + } + object.billingModel = b.billingModel + if b.byoOidc != nil { + object.byoOidc, err = b.byoOidc.Build() + if err != nil { + return + } + } + if b.cloudProvider != nil { + object.cloudProvider, err = b.cloudProvider.Build() + if err != nil { + return + } + } + if b.console != nil { + object.console, err = b.console.Build() + if err != nil { + return + } + } + object.creationTimestamp = b.creationTimestamp + if b.deleteProtection != nil { + object.deleteProtection, err = b.deleteProtection.Build() + if err != nil { + return + } + } + object.disableUserWorkloadMonitoring = b.disableUserWorkloadMonitoring + object.domainPrefix = b.domainPrefix + object.etcdEncryption = b.etcdEncryption + object.expirationTimestamp = b.expirationTimestamp + object.externalID = b.externalID + if b.externalAuthConfig != nil { + object.externalAuthConfig, err = b.externalAuthConfig.Build() + if err != nil { + return + } + } + if b.externalConfiguration != nil { + object.externalConfiguration, err = b.externalConfiguration.Build() + if err != nil { + return + } + } + if b.flavour != nil { + object.flavour, err = b.flavour.Build() + if err != nil { + return + } + } + if b.groups != nil { + object.groups, err = b.groups.Build() + if err != nil { + return + } + } + object.healthState = b.healthState + if b.htpasswd != nil { + object.htpasswd, err = b.htpasswd.Build() + if err != nil { + return + } + } + if b.hypershift != nil { + object.hypershift, err = b.hypershift.Build() + if err != nil { + return + } + } + if b.identityProviders != nil { + object.identityProviders, err = b.identityProviders.Build() + if err != nil { + return + } + } + if b.inflightChecks != nil { + object.inflightChecks, err = b.inflightChecks.Build() + if err != nil { + return + } + } + object.infraID = b.infraID + if b.ingresses != nil { + object.ingresses, err = b.ingresses.Build() + if err != nil { + return + } + } + if b.kubeletConfig != nil { + object.kubeletConfig, err = b.kubeletConfig.Build() + if err != nil { + return + } + } + object.loadBalancerQuota = b.loadBalancerQuota + if b.machinePools != nil { + object.machinePools, err = b.machinePools.Build() + if err != nil { + return + } + } + object.managed = b.managed + if b.managedService != nil { + object.managedService, err = b.managedService.Build() + if err != nil { + return + } + } + object.multiAZ = b.multiAZ + object.multiArchEnabled = b.multiArchEnabled + object.name = b.name + if b.network != nil { + object.network, err = b.network.Build() + if err != nil { + return + } + } + if b.nodeDrainGracePeriod != nil { + object.nodeDrainGracePeriod, err = b.nodeDrainGracePeriod.Build() + if err != nil { + return + } + } + if b.nodePools != nil { + object.nodePools, err = b.nodePools.Build() + if err != nil { + return + } + } + if b.nodes != nil { + object.nodes, err = b.nodes.Build() + if err != nil { + return + } + } + object.openshiftVersion = b.openshiftVersion + if b.product != nil { + object.product, err = b.product.Build() + if err != nil { + return + } + } + if b.properties != nil { + object.properties = make(map[string]string) + for k, v := range b.properties { + object.properties[k] = v + } + } + if b.provisionShard != nil { + object.provisionShard, err = b.provisionShard.Build() + if err != nil { + return + } + } + if b.proxy != nil { + object.proxy, err = b.proxy.Build() + if err != nil { + return + } + } + if b.region != nil { + object.region, err = b.region.Build() + if err != nil { + return + } + } + if b.registryConfig != nil { + object.registryConfig, err = b.registryConfig.Build() + if err != nil { + return + } + } + object.state = b.state + if b.status != nil { + object.status, err = b.status.Build() + if err != nil { + return + } + } + if b.storageQuota != nil { + object.storageQuota, err = b.storageQuota.Build() + if err != nil { + return + } + } + if b.subscription != nil { + object.subscription, err = b.subscription.Build() + if err != nil { + return + } + } + if b.version != nil { + object.version, err = b.version.Build() + if err != nil { + return + } + } + return +} diff --git a/arohcp/v1alpha1/cluster_client.go b/arohcp/v1alpha1/cluster_client.go new file mode 100644 index 000000000..07c4c16c1 --- /dev/null +++ b/arohcp/v1alpha1/cluster_client.go @@ -0,0 +1,602 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "bufio" + "bytes" + "context" + "io" + "net/http" + "net/url" + "time" + + "github.com/openshift-online/ocm-sdk-go/errors" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// ClusterClient is the client of the 'cluster' resource. +// +// Manages a specific cluster. +type ClusterClient struct { + transport http.RoundTripper + path string +} + +// NewClusterClient creates a new client for the 'cluster' +// resource using the given transport to send the requests and receive the +// responses. +func NewClusterClient(transport http.RoundTripper, path string) *ClusterClient { + return &ClusterClient{ + transport: transport, + path: path, + } +} + +// Delete creates a request for the 'delete' method. +// +// Deletes the cluster. +func (c *ClusterClient) Delete() *ClusterDeleteRequest { + return &ClusterDeleteRequest{ + transport: c.transport, + path: c.path, + } +} + +// Get creates a request for the 'get' method. +// +// Retrieves the details of the cluster. +func (c *ClusterClient) Get() *ClusterGetRequest { + return &ClusterGetRequest{ + transport: c.transport, + path: c.path, + } +} + +// Update creates a request for the 'update' method. +// +// Updates the cluster. +func (c *ClusterClient) Update() *ClusterUpdateRequest { + return &ClusterUpdateRequest{ + transport: c.transport, + path: c.path, + } +} + +// ClusterPollRequest is the request for the Poll method. +type ClusterPollRequest struct { + request *ClusterGetRequest + interval time.Duration + statuses []int + predicates []func(interface{}) bool +} + +// Parameter adds a query parameter to all the requests that will be used to retrieve the object. +func (r *ClusterPollRequest) Parameter(name string, value interface{}) *ClusterPollRequest { + r.request.Parameter(name, value) + return r +} + +// Header adds a request header to all the requests that will be used to retrieve the object. +func (r *ClusterPollRequest) Header(name string, value interface{}) *ClusterPollRequest { + r.request.Header(name, value) + return r +} + +// Interval sets the polling interval. This parameter is mandatory and must be greater than zero. +func (r *ClusterPollRequest) Interval(value time.Duration) *ClusterPollRequest { + r.interval = value + return r +} + +// Status set the expected status of the response. Multiple values can be set calling this method +// multiple times. The response will be considered successful if the status is any of those values. +func (r *ClusterPollRequest) Status(value int) *ClusterPollRequest { + r.statuses = append(r.statuses, value) + return r +} + +// Predicate adds a predicate that the response should satisfy be considered successful. Multiple +// predicates can be set calling this method multiple times. The response will be considered successful +// if all the predicates are satisfied. +func (r *ClusterPollRequest) Predicate(value func(*ClusterGetResponse) bool) *ClusterPollRequest { + r.predicates = append(r.predicates, func(response interface{}) bool { + return value(response.(*ClusterGetResponse)) + }) + return r +} + +// StartContext starts the polling loop. Responses will be considered successful if the status is one of +// the values specified with the Status method and if all the predicates specified with the Predicate +// method return nil. +// +// The context must have a timeout or deadline, otherwise this method will immediately return an error. +func (r *ClusterPollRequest) StartContext(ctx context.Context) (response *ClusterPollResponse, err error) { + result, err := helpers.PollContext(ctx, r.interval, r.statuses, r.predicates, r.task) + if result != nil { + response = &ClusterPollResponse{ + response: result.(*ClusterGetResponse), + } + } + return +} + +// task adapts the types of the request/response types so that they can be used with the generic +// polling function from the helpers package. +func (r *ClusterPollRequest) task(ctx context.Context) (status int, result interface{}, err error) { + response, err := r.request.SendContext(ctx) + if response != nil { + status = response.Status() + result = response + } + return +} + +// ClusterPollResponse is the response for the Poll method. +type ClusterPollResponse struct { + response *ClusterGetResponse +} + +// Status returns the response status code. +func (r *ClusterPollResponse) Status() int { + if r == nil { + return 0 + } + return r.response.Status() +} + +// Header returns header of the response. +func (r *ClusterPollResponse) Header() http.Header { + if r == nil { + return nil + } + return r.response.Header() +} + +// Error returns the response error. +func (r *ClusterPollResponse) Error() *errors.Error { + if r == nil { + return nil + } + return r.response.Error() +} + +// Body returns the value of the 'body' parameter. +func (r *ClusterPollResponse) Body() *Cluster { + return r.response.Body() +} + +// GetBody returns the value of the 'body' parameter and +// a flag indicating if the parameter has a value. +func (r *ClusterPollResponse) GetBody() (value *Cluster, ok bool) { + return r.response.GetBody() +} + +// Poll creates a request to repeatedly retrieve the object till the response has one of a given set +// of states and satisfies a set of predicates. +func (c *ClusterClient) Poll() *ClusterPollRequest { + return &ClusterPollRequest{ + request: c.Get(), + } +} + +// ClusterDeleteRequest is the request for the 'delete' method. +type ClusterDeleteRequest struct { + transport http.RoundTripper + path string + query url.Values + header http.Header + bestEffort *bool + dryRun *bool +} + +// Parameter adds a query parameter. +func (r *ClusterDeleteRequest) Parameter(name string, value interface{}) *ClusterDeleteRequest { + helpers.AddValue(&r.query, name, value) + return r +} + +// Header adds a request header. +func (r *ClusterDeleteRequest) Header(name string, value interface{}) *ClusterDeleteRequest { + helpers.AddHeader(&r.header, name, value) + return r +} + +// Impersonate wraps requests on behalf of another user. +// Note: Services that do not support this feature may silently ignore this call. +func (r *ClusterDeleteRequest) Impersonate(user string) *ClusterDeleteRequest { + helpers.AddImpersonationHeader(&r.header, user) + return r +} + +// BestEffort sets the value of the 'best_effort' parameter. +// +// BestEffort flag is used to check if the cluster deletion should be best-effort mode or not. +func (r *ClusterDeleteRequest) BestEffort(value bool) *ClusterDeleteRequest { + r.bestEffort = &value + return r +} + +// DryRun sets the value of the 'dry_run' parameter. +// +// Dry run flag is used to check if the operation can be completed, but won't delete. +func (r *ClusterDeleteRequest) DryRun(value bool) *ClusterDeleteRequest { + r.dryRun = &value + return r +} + +// Send sends this request, waits for the response, and returns it. +// +// This is a potentially lengthy operation, as it requires network communication. +// Consider using a context and the SendContext method. +func (r *ClusterDeleteRequest) Send() (result *ClusterDeleteResponse, err error) { + return r.SendContext(context.Background()) +} + +// SendContext sends this request, waits for the response, and returns it. +func (r *ClusterDeleteRequest) SendContext(ctx context.Context) (result *ClusterDeleteResponse, err error) { + query := helpers.CopyQuery(r.query) + if r.bestEffort != nil { + helpers.AddValue(&query, "best_effort", *r.bestEffort) + } + if r.dryRun != nil { + helpers.AddValue(&query, "dry_run", *r.dryRun) + } + header := helpers.CopyHeader(r.header) + uri := &url.URL{ + Path: r.path, + RawQuery: query.Encode(), + } + request := &http.Request{ + Method: "DELETE", + URL: uri, + Header: header, + } + if ctx != nil { + request = request.WithContext(ctx) + } + response, err := r.transport.RoundTrip(request) + if err != nil { + return + } + defer response.Body.Close() + result = &ClusterDeleteResponse{} + result.status = response.StatusCode + result.header = response.Header + reader := bufio.NewReader(response.Body) + _, err = reader.Peek(1) + if err == io.EOF { + err = nil + return + } + if result.status >= 400 { + result.err, err = errors.UnmarshalErrorStatus(reader, result.status) + if err != nil { + return + } + err = result.err + return + } + return +} + +// ClusterDeleteResponse is the response for the 'delete' method. +type ClusterDeleteResponse struct { + status int + header http.Header + err *errors.Error +} + +// Status returns the response status code. +func (r *ClusterDeleteResponse) Status() int { + if r == nil { + return 0 + } + return r.status +} + +// Header returns header of the response. +func (r *ClusterDeleteResponse) Header() http.Header { + if r == nil { + return nil + } + return r.header +} + +// Error returns the response error. +func (r *ClusterDeleteResponse) Error() *errors.Error { + if r == nil { + return nil + } + return r.err +} + +// ClusterGetRequest is the request for the 'get' method. +type ClusterGetRequest struct { + transport http.RoundTripper + path string + query url.Values + header http.Header +} + +// Parameter adds a query parameter. +func (r *ClusterGetRequest) Parameter(name string, value interface{}) *ClusterGetRequest { + helpers.AddValue(&r.query, name, value) + return r +} + +// Header adds a request header. +func (r *ClusterGetRequest) Header(name string, value interface{}) *ClusterGetRequest { + helpers.AddHeader(&r.header, name, value) + return r +} + +// Impersonate wraps requests on behalf of another user. +// Note: Services that do not support this feature may silently ignore this call. +func (r *ClusterGetRequest) Impersonate(user string) *ClusterGetRequest { + helpers.AddImpersonationHeader(&r.header, user) + return r +} + +// Send sends this request, waits for the response, and returns it. +// +// This is a potentially lengthy operation, as it requires network communication. +// Consider using a context and the SendContext method. +func (r *ClusterGetRequest) Send() (result *ClusterGetResponse, err error) { + return r.SendContext(context.Background()) +} + +// SendContext sends this request, waits for the response, and returns it. +func (r *ClusterGetRequest) SendContext(ctx context.Context) (result *ClusterGetResponse, err error) { + query := helpers.CopyQuery(r.query) + header := helpers.CopyHeader(r.header) + uri := &url.URL{ + Path: r.path, + RawQuery: query.Encode(), + } + request := &http.Request{ + Method: "GET", + URL: uri, + Header: header, + } + if ctx != nil { + request = request.WithContext(ctx) + } + response, err := r.transport.RoundTrip(request) + if err != nil { + return + } + defer response.Body.Close() + result = &ClusterGetResponse{} + result.status = response.StatusCode + result.header = response.Header + reader := bufio.NewReader(response.Body) + _, err = reader.Peek(1) + if err == io.EOF { + err = nil + return + } + if result.status >= 400 { + result.err, err = errors.UnmarshalErrorStatus(reader, result.status) + if err != nil { + return + } + err = result.err + return + } + err = readClusterGetResponse(result, reader) + if err != nil { + return + } + return +} + +// ClusterGetResponse is the response for the 'get' method. +type ClusterGetResponse struct { + status int + header http.Header + err *errors.Error + body *Cluster +} + +// Status returns the response status code. +func (r *ClusterGetResponse) Status() int { + if r == nil { + return 0 + } + return r.status +} + +// Header returns header of the response. +func (r *ClusterGetResponse) Header() http.Header { + if r == nil { + return nil + } + return r.header +} + +// Error returns the response error. +func (r *ClusterGetResponse) Error() *errors.Error { + if r == nil { + return nil + } + return r.err +} + +// Body returns the value of the 'body' parameter. +func (r *ClusterGetResponse) Body() *Cluster { + if r == nil { + return nil + } + return r.body +} + +// GetBody returns the value of the 'body' parameter and +// a flag indicating if the parameter has a value. +func (r *ClusterGetResponse) GetBody() (value *Cluster, ok bool) { + ok = r != nil && r.body != nil + if ok { + value = r.body + } + return +} + +// ClusterUpdateRequest is the request for the 'update' method. +type ClusterUpdateRequest struct { + transport http.RoundTripper + path string + query url.Values + header http.Header + body *Cluster +} + +// Parameter adds a query parameter. +func (r *ClusterUpdateRequest) Parameter(name string, value interface{}) *ClusterUpdateRequest { + helpers.AddValue(&r.query, name, value) + return r +} + +// Header adds a request header. +func (r *ClusterUpdateRequest) Header(name string, value interface{}) *ClusterUpdateRequest { + helpers.AddHeader(&r.header, name, value) + return r +} + +// Impersonate wraps requests on behalf of another user. +// Note: Services that do not support this feature may silently ignore this call. +func (r *ClusterUpdateRequest) Impersonate(user string) *ClusterUpdateRequest { + helpers.AddImpersonationHeader(&r.header, user) + return r +} + +// Body sets the value of the 'body' parameter. +func (r *ClusterUpdateRequest) Body(value *Cluster) *ClusterUpdateRequest { + r.body = value + return r +} + +// Send sends this request, waits for the response, and returns it. +// +// This is a potentially lengthy operation, as it requires network communication. +// Consider using a context and the SendContext method. +func (r *ClusterUpdateRequest) Send() (result *ClusterUpdateResponse, err error) { + return r.SendContext(context.Background()) +} + +// SendContext sends this request, waits for the response, and returns it. +func (r *ClusterUpdateRequest) SendContext(ctx context.Context) (result *ClusterUpdateResponse, err error) { + query := helpers.CopyQuery(r.query) + header := helpers.CopyHeader(r.header) + buffer := &bytes.Buffer{} + err = writeClusterUpdateRequest(r, buffer) + if err != nil { + return + } + uri := &url.URL{ + Path: r.path, + RawQuery: query.Encode(), + } + request := &http.Request{ + Method: "PATCH", + URL: uri, + Header: header, + Body: io.NopCloser(buffer), + } + if ctx != nil { + request = request.WithContext(ctx) + } + response, err := r.transport.RoundTrip(request) + if err != nil { + return + } + defer response.Body.Close() + result = &ClusterUpdateResponse{} + result.status = response.StatusCode + result.header = response.Header + reader := bufio.NewReader(response.Body) + _, err = reader.Peek(1) + if err == io.EOF { + err = nil + return + } + if result.status >= 400 { + result.err, err = errors.UnmarshalErrorStatus(reader, result.status) + if err != nil { + return + } + err = result.err + return + } + err = readClusterUpdateResponse(result, reader) + if err != nil { + return + } + return +} + +// ClusterUpdateResponse is the response for the 'update' method. +type ClusterUpdateResponse struct { + status int + header http.Header + err *errors.Error + body *Cluster +} + +// Status returns the response status code. +func (r *ClusterUpdateResponse) Status() int { + if r == nil { + return 0 + } + return r.status +} + +// Header returns header of the response. +func (r *ClusterUpdateResponse) Header() http.Header { + if r == nil { + return nil + } + return r.header +} + +// Error returns the response error. +func (r *ClusterUpdateResponse) Error() *errors.Error { + if r == nil { + return nil + } + return r.err +} + +// Body returns the value of the 'body' parameter. +func (r *ClusterUpdateResponse) Body() *Cluster { + if r == nil { + return nil + } + return r.body +} + +// GetBody returns the value of the 'body' parameter and +// a flag indicating if the parameter has a value. +func (r *ClusterUpdateResponse) GetBody() (value *Cluster, ok bool) { + ok = r != nil && r.body != nil + if ok { + value = r.body + } + return +} diff --git a/arohcp/v1alpha1/cluster_configuration_mode_list_type_json.go b/arohcp/v1alpha1/cluster_configuration_mode_list_type_json.go new file mode 100644 index 000000000..2e87baa50 --- /dev/null +++ b/arohcp/v1alpha1/cluster_configuration_mode_list_type_json.go @@ -0,0 +1,76 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalClusterConfigurationModeList writes a list of values of the 'cluster_configuration_mode' type to +// the given writer. +func MarshalClusterConfigurationModeList(list []ClusterConfigurationMode, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteClusterConfigurationModeList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteClusterConfigurationModeList writes a list of value of the 'cluster_configuration_mode' type to +// the given stream. +func WriteClusterConfigurationModeList(list []ClusterConfigurationMode, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + stream.WriteString(string(value)) + } + stream.WriteArrayEnd() +} + +// UnmarshalClusterConfigurationModeList reads a list of values of the 'cluster_configuration_mode' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalClusterConfigurationModeList(source interface{}) (items []ClusterConfigurationMode, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadClusterConfigurationModeList(iterator) + err = iterator.Error + return +} + +// ReadClusterConfigurationModeList reads list of values of the ”cluster_configuration_mode' type from +// the given iterator. +func ReadClusterConfigurationModeList(iterator *jsoniter.Iterator) []ClusterConfigurationMode { + list := []ClusterConfigurationMode{} + for iterator.ReadArray() { + text := iterator.ReadString() + item := ClusterConfigurationMode(text) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/cluster_configuration_mode_type.go b/arohcp/v1alpha1/cluster_configuration_mode_type.go new file mode 100644 index 000000000..b02d64dc3 --- /dev/null +++ b/arohcp/v1alpha1/cluster_configuration_mode_type.go @@ -0,0 +1,31 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ClusterConfigurationMode represents the values of the 'cluster_configuration_mode' enumerated type. +type ClusterConfigurationMode string + +const ( + // Full configuration (default). + ClusterConfigurationModeFull ClusterConfigurationMode = "full" + // Only read configuration operations are supported. + // The cluster can't be deleted, reshaped, configure IDPs, add/remove users, etc. + ClusterConfigurationModeReadOnly ClusterConfigurationMode = "read_only" +) diff --git a/arohcp/v1alpha1/cluster_console_builder.go b/arohcp/v1alpha1/cluster_console_builder.go new file mode 100644 index 000000000..59b79efdc --- /dev/null +++ b/arohcp/v1alpha1/cluster_console_builder.go @@ -0,0 +1,63 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ClusterConsoleBuilder contains the data and logic needed to build 'cluster_console' objects. +// +// Information about the console of a cluster. +type ClusterConsoleBuilder struct { + bitmap_ uint32 + url string +} + +// NewClusterConsole creates a new builder of 'cluster_console' objects. +func NewClusterConsole() *ClusterConsoleBuilder { + return &ClusterConsoleBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *ClusterConsoleBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// URL sets the value of the 'URL' attribute to the given value. +func (b *ClusterConsoleBuilder) URL(value string) *ClusterConsoleBuilder { + b.url = value + b.bitmap_ |= 1 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *ClusterConsoleBuilder) Copy(object *ClusterConsole) *ClusterConsoleBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.url = object.url + return b +} + +// Build creates a 'cluster_console' object using the configuration stored in the builder. +func (b *ClusterConsoleBuilder) Build() (object *ClusterConsole, err error) { + object = new(ClusterConsole) + object.bitmap_ = b.bitmap_ + object.url = b.url + return +} diff --git a/arohcp/v1alpha1/cluster_console_list_builder.go b/arohcp/v1alpha1/cluster_console_list_builder.go new file mode 100644 index 000000000..c2b8a450c --- /dev/null +++ b/arohcp/v1alpha1/cluster_console_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ClusterConsoleListBuilder contains the data and logic needed to build +// 'cluster_console' objects. +type ClusterConsoleListBuilder struct { + items []*ClusterConsoleBuilder +} + +// NewClusterConsoleList creates a new builder of 'cluster_console' objects. +func NewClusterConsoleList() *ClusterConsoleListBuilder { + return new(ClusterConsoleListBuilder) +} + +// Items sets the items of the list. +func (b *ClusterConsoleListBuilder) Items(values ...*ClusterConsoleBuilder) *ClusterConsoleListBuilder { + b.items = make([]*ClusterConsoleBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *ClusterConsoleListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *ClusterConsoleListBuilder) Copy(list *ClusterConsoleList) *ClusterConsoleListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*ClusterConsoleBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewClusterConsole().Copy(v) + } + } + return b +} + +// Build creates a list of 'cluster_console' objects using the +// configuration stored in the builder. +func (b *ClusterConsoleListBuilder) Build() (list *ClusterConsoleList, err error) { + items := make([]*ClusterConsole, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(ClusterConsoleList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/cluster_console_list_type_json.go b/arohcp/v1alpha1/cluster_console_list_type_json.go new file mode 100644 index 000000000..e98c20042 --- /dev/null +++ b/arohcp/v1alpha1/cluster_console_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalClusterConsoleList writes a list of values of the 'cluster_console' type to +// the given writer. +func MarshalClusterConsoleList(list []*ClusterConsole, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteClusterConsoleList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteClusterConsoleList writes a list of value of the 'cluster_console' type to +// the given stream. +func WriteClusterConsoleList(list []*ClusterConsole, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteClusterConsole(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalClusterConsoleList reads a list of values of the 'cluster_console' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalClusterConsoleList(source interface{}) (items []*ClusterConsole, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadClusterConsoleList(iterator) + err = iterator.Error + return +} + +// ReadClusterConsoleList reads list of values of the ”cluster_console' type from +// the given iterator. +func ReadClusterConsoleList(iterator *jsoniter.Iterator) []*ClusterConsole { + list := []*ClusterConsole{} + for iterator.ReadArray() { + item := ReadClusterConsole(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/cluster_console_type.go b/arohcp/v1alpha1/cluster_console_type.go new file mode 100644 index 000000000..3e52145b1 --- /dev/null +++ b/arohcp/v1alpha1/cluster_console_type.go @@ -0,0 +1,165 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ClusterConsole represents the values of the 'cluster_console' type. +// +// Information about the console of a cluster. +type ClusterConsole struct { + bitmap_ uint32 + url string +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *ClusterConsole) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// URL returns the value of the 'URL' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The URL of the console of the cluster. +func (o *ClusterConsole) URL() string { + if o != nil && o.bitmap_&1 != 0 { + return o.url + } + return "" +} + +// GetURL returns the value of the 'URL' attribute and +// a flag indicating if the attribute has a value. +// +// The URL of the console of the cluster. +func (o *ClusterConsole) GetURL() (value string, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.url + } + return +} + +// ClusterConsoleListKind is the name of the type used to represent list of objects of +// type 'cluster_console'. +const ClusterConsoleListKind = "ClusterConsoleList" + +// ClusterConsoleListLinkKind is the name of the type used to represent links to list +// of objects of type 'cluster_console'. +const ClusterConsoleListLinkKind = "ClusterConsoleListLink" + +// ClusterConsoleNilKind is the name of the type used to nil lists of objects of +// type 'cluster_console'. +const ClusterConsoleListNilKind = "ClusterConsoleListNil" + +// ClusterConsoleList is a list of values of the 'cluster_console' type. +type ClusterConsoleList struct { + href string + link bool + items []*ClusterConsole +} + +// Len returns the length of the list. +func (l *ClusterConsoleList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *ClusterConsoleList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterConsoleList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterConsoleList) SetItems(items []*ClusterConsole) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterConsoleList) Items() []*ClusterConsole { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *ClusterConsoleList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *ClusterConsoleList) Get(i int) *ClusterConsole { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *ClusterConsoleList) Slice() []*ClusterConsole { + var slice []*ClusterConsole + if l == nil { + slice = make([]*ClusterConsole, 0) + } else { + slice = make([]*ClusterConsole, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *ClusterConsoleList) Each(f func(item *ClusterConsole) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *ClusterConsoleList) Range(f func(index int, item *ClusterConsole) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/cluster_console_type_json.go b/arohcp/v1alpha1/cluster_console_type_json.go new file mode 100644 index 000000000..4d877ddca --- /dev/null +++ b/arohcp/v1alpha1/cluster_console_type_json.go @@ -0,0 +1,86 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalClusterConsole writes a value of the 'cluster_console' type to the given writer. +func MarshalClusterConsole(object *ClusterConsole, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteClusterConsole(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteClusterConsole writes a value of the 'cluster_console' type to the given stream. +func WriteClusterConsole(object *ClusterConsole, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("url") + stream.WriteString(object.url) + } + stream.WriteObjectEnd() +} + +// UnmarshalClusterConsole reads a value of the 'cluster_console' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalClusterConsole(source interface{}) (object *ClusterConsole, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadClusterConsole(iterator) + err = iterator.Error + return +} + +// ReadClusterConsole reads a value of the 'cluster_console' type from the given iterator. +func ReadClusterConsole(iterator *jsoniter.Iterator) *ClusterConsole { + object := &ClusterConsole{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "url": + value := iterator.ReadString() + object.url = value + object.bitmap_ |= 1 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/cluster_health_state_list_type_json.go b/arohcp/v1alpha1/cluster_health_state_list_type_json.go new file mode 100644 index 000000000..e703a7307 --- /dev/null +++ b/arohcp/v1alpha1/cluster_health_state_list_type_json.go @@ -0,0 +1,76 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalClusterHealthStateList writes a list of values of the 'cluster_health_state' type to +// the given writer. +func MarshalClusterHealthStateList(list []ClusterHealthState, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteClusterHealthStateList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteClusterHealthStateList writes a list of value of the 'cluster_health_state' type to +// the given stream. +func WriteClusterHealthStateList(list []ClusterHealthState, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + stream.WriteString(string(value)) + } + stream.WriteArrayEnd() +} + +// UnmarshalClusterHealthStateList reads a list of values of the 'cluster_health_state' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalClusterHealthStateList(source interface{}) (items []ClusterHealthState, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadClusterHealthStateList(iterator) + err = iterator.Error + return +} + +// ReadClusterHealthStateList reads list of values of the ”cluster_health_state' type from +// the given iterator. +func ReadClusterHealthStateList(iterator *jsoniter.Iterator) []ClusterHealthState { + list := []ClusterHealthState{} + for iterator.ReadArray() { + text := iterator.ReadString() + item := ClusterHealthState(text) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/cluster_health_state_type.go b/arohcp/v1alpha1/cluster_health_state_type.go new file mode 100644 index 000000000..cd52a67e1 --- /dev/null +++ b/arohcp/v1alpha1/cluster_health_state_type.go @@ -0,0 +1,32 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ClusterHealthState represents the values of the 'cluster_health_state' enumerated type. +type ClusterHealthState string + +const ( + // Cluster is Ready and healthy. + ClusterHealthStateHealthy ClusterHealthState = "healthy" + // Cluster is Ready and unhealthy. + ClusterHealthStateUnhealthy ClusterHealthState = "unhealthy" + // Cluster health is unknown. + ClusterHealthStateUnknown ClusterHealthState = "unknown" +) diff --git a/arohcp/v1alpha1/cluster_list_builder.go b/arohcp/v1alpha1/cluster_list_builder.go new file mode 100644 index 000000000..934523bc7 --- /dev/null +++ b/arohcp/v1alpha1/cluster_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ClusterListBuilder contains the data and logic needed to build +// 'cluster' objects. +type ClusterListBuilder struct { + items []*ClusterBuilder +} + +// NewClusterList creates a new builder of 'cluster' objects. +func NewClusterList() *ClusterListBuilder { + return new(ClusterListBuilder) +} + +// Items sets the items of the list. +func (b *ClusterListBuilder) Items(values ...*ClusterBuilder) *ClusterListBuilder { + b.items = make([]*ClusterBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *ClusterListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *ClusterListBuilder) Copy(list *ClusterList) *ClusterListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*ClusterBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewCluster().Copy(v) + } + } + return b +} + +// Build creates a list of 'cluster' objects using the +// configuration stored in the builder. +func (b *ClusterListBuilder) Build() (list *ClusterList, err error) { + items := make([]*Cluster, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(ClusterList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/cluster_list_type_json.go b/arohcp/v1alpha1/cluster_list_type_json.go new file mode 100644 index 000000000..477972023 --- /dev/null +++ b/arohcp/v1alpha1/cluster_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalClusterList writes a list of values of the 'cluster' type to +// the given writer. +func MarshalClusterList(list []*Cluster, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteClusterList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteClusterList writes a list of value of the 'cluster' type to +// the given stream. +func WriteClusterList(list []*Cluster, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteCluster(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalClusterList reads a list of values of the 'cluster' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalClusterList(source interface{}) (items []*Cluster, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadClusterList(iterator) + err = iterator.Error + return +} + +// ReadClusterList reads list of values of the ”cluster' type from +// the given iterator. +func ReadClusterList(iterator *jsoniter.Iterator) []*Cluster { + list := []*Cluster{} + for iterator.ReadArray() { + item := ReadCluster(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/cluster_nodes_builder.go b/arohcp/v1alpha1/cluster_nodes_builder.go new file mode 100644 index 000000000..5a25f61f6 --- /dev/null +++ b/arohcp/v1alpha1/cluster_nodes_builder.go @@ -0,0 +1,289 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ClusterNodesBuilder contains the data and logic needed to build 'cluster_nodes' objects. +// +// Counts of different classes of nodes inside a cluster. +type ClusterNodesBuilder struct { + bitmap_ uint32 + autoscaleCompute *MachinePoolAutoscalingBuilder + availabilityZones []string + compute int + computeLabels map[string]string + computeMachineType *MachineTypeBuilder + computeRootVolume *RootVolumeBuilder + infra int + infraMachineType *MachineTypeBuilder + master int + masterMachineType *MachineTypeBuilder + securityGroupFilters []*MachinePoolSecurityGroupFilterBuilder + total int +} + +// NewClusterNodes creates a new builder of 'cluster_nodes' objects. +func NewClusterNodes() *ClusterNodesBuilder { + return &ClusterNodesBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *ClusterNodesBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// AutoscaleCompute sets the value of the 'autoscale_compute' attribute to the given value. +// +// Representation of a autoscaling in a machine pool. +func (b *ClusterNodesBuilder) AutoscaleCompute(value *MachinePoolAutoscalingBuilder) *ClusterNodesBuilder { + b.autoscaleCompute = value + if value != nil { + b.bitmap_ |= 1 + } else { + b.bitmap_ &^= 1 + } + return b +} + +// AvailabilityZones sets the value of the 'availability_zones' attribute to the given values. +func (b *ClusterNodesBuilder) AvailabilityZones(values ...string) *ClusterNodesBuilder { + b.availabilityZones = make([]string, len(values)) + copy(b.availabilityZones, values) + b.bitmap_ |= 2 + return b +} + +// Compute sets the value of the 'compute' attribute to the given value. +func (b *ClusterNodesBuilder) Compute(value int) *ClusterNodesBuilder { + b.compute = value + b.bitmap_ |= 4 + return b +} + +// ComputeLabels sets the value of the 'compute_labels' attribute to the given value. +func (b *ClusterNodesBuilder) ComputeLabels(value map[string]string) *ClusterNodesBuilder { + b.computeLabels = value + if value != nil { + b.bitmap_ |= 8 + } else { + b.bitmap_ &^= 8 + } + return b +} + +// ComputeMachineType sets the value of the 'compute_machine_type' attribute to the given value. +// +// Machine type. +func (b *ClusterNodesBuilder) ComputeMachineType(value *MachineTypeBuilder) *ClusterNodesBuilder { + b.computeMachineType = value + if value != nil { + b.bitmap_ |= 16 + } else { + b.bitmap_ &^= 16 + } + return b +} + +// ComputeRootVolume sets the value of the 'compute_root_volume' attribute to the given value. +// +// Root volume capabilities. +func (b *ClusterNodesBuilder) ComputeRootVolume(value *RootVolumeBuilder) *ClusterNodesBuilder { + b.computeRootVolume = value + if value != nil { + b.bitmap_ |= 32 + } else { + b.bitmap_ &^= 32 + } + return b +} + +// Infra sets the value of the 'infra' attribute to the given value. +func (b *ClusterNodesBuilder) Infra(value int) *ClusterNodesBuilder { + b.infra = value + b.bitmap_ |= 64 + return b +} + +// InfraMachineType sets the value of the 'infra_machine_type' attribute to the given value. +// +// Machine type. +func (b *ClusterNodesBuilder) InfraMachineType(value *MachineTypeBuilder) *ClusterNodesBuilder { + b.infraMachineType = value + if value != nil { + b.bitmap_ |= 128 + } else { + b.bitmap_ &^= 128 + } + return b +} + +// Master sets the value of the 'master' attribute to the given value. +func (b *ClusterNodesBuilder) Master(value int) *ClusterNodesBuilder { + b.master = value + b.bitmap_ |= 256 + return b +} + +// MasterMachineType sets the value of the 'master_machine_type' attribute to the given value. +// +// Machine type. +func (b *ClusterNodesBuilder) MasterMachineType(value *MachineTypeBuilder) *ClusterNodesBuilder { + b.masterMachineType = value + if value != nil { + b.bitmap_ |= 512 + } else { + b.bitmap_ &^= 512 + } + return b +} + +// SecurityGroupFilters sets the value of the 'security_group_filters' attribute to the given values. +func (b *ClusterNodesBuilder) SecurityGroupFilters(values ...*MachinePoolSecurityGroupFilterBuilder) *ClusterNodesBuilder { + b.securityGroupFilters = make([]*MachinePoolSecurityGroupFilterBuilder, len(values)) + copy(b.securityGroupFilters, values) + b.bitmap_ |= 1024 + return b +} + +// Total sets the value of the 'total' attribute to the given value. +func (b *ClusterNodesBuilder) Total(value int) *ClusterNodesBuilder { + b.total = value + b.bitmap_ |= 2048 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *ClusterNodesBuilder) Copy(object *ClusterNodes) *ClusterNodesBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + if object.autoscaleCompute != nil { + b.autoscaleCompute = NewMachinePoolAutoscaling().Copy(object.autoscaleCompute) + } else { + b.autoscaleCompute = nil + } + if object.availabilityZones != nil { + b.availabilityZones = make([]string, len(object.availabilityZones)) + copy(b.availabilityZones, object.availabilityZones) + } else { + b.availabilityZones = nil + } + b.compute = object.compute + if len(object.computeLabels) > 0 { + b.computeLabels = map[string]string{} + for k, v := range object.computeLabels { + b.computeLabels[k] = v + } + } else { + b.computeLabels = nil + } + if object.computeMachineType != nil { + b.computeMachineType = NewMachineType().Copy(object.computeMachineType) + } else { + b.computeMachineType = nil + } + if object.computeRootVolume != nil { + b.computeRootVolume = NewRootVolume().Copy(object.computeRootVolume) + } else { + b.computeRootVolume = nil + } + b.infra = object.infra + if object.infraMachineType != nil { + b.infraMachineType = NewMachineType().Copy(object.infraMachineType) + } else { + b.infraMachineType = nil + } + b.master = object.master + if object.masterMachineType != nil { + b.masterMachineType = NewMachineType().Copy(object.masterMachineType) + } else { + b.masterMachineType = nil + } + if object.securityGroupFilters != nil { + b.securityGroupFilters = make([]*MachinePoolSecurityGroupFilterBuilder, len(object.securityGroupFilters)) + for i, v := range object.securityGroupFilters { + b.securityGroupFilters[i] = NewMachinePoolSecurityGroupFilter().Copy(v) + } + } else { + b.securityGroupFilters = nil + } + b.total = object.total + return b +} + +// Build creates a 'cluster_nodes' object using the configuration stored in the builder. +func (b *ClusterNodesBuilder) Build() (object *ClusterNodes, err error) { + object = new(ClusterNodes) + object.bitmap_ = b.bitmap_ + if b.autoscaleCompute != nil { + object.autoscaleCompute, err = b.autoscaleCompute.Build() + if err != nil { + return + } + } + if b.availabilityZones != nil { + object.availabilityZones = make([]string, len(b.availabilityZones)) + copy(object.availabilityZones, b.availabilityZones) + } + object.compute = b.compute + if b.computeLabels != nil { + object.computeLabels = make(map[string]string) + for k, v := range b.computeLabels { + object.computeLabels[k] = v + } + } + if b.computeMachineType != nil { + object.computeMachineType, err = b.computeMachineType.Build() + if err != nil { + return + } + } + if b.computeRootVolume != nil { + object.computeRootVolume, err = b.computeRootVolume.Build() + if err != nil { + return + } + } + object.infra = b.infra + if b.infraMachineType != nil { + object.infraMachineType, err = b.infraMachineType.Build() + if err != nil { + return + } + } + object.master = b.master + if b.masterMachineType != nil { + object.masterMachineType, err = b.masterMachineType.Build() + if err != nil { + return + } + } + if b.securityGroupFilters != nil { + object.securityGroupFilters = make([]*MachinePoolSecurityGroupFilter, len(b.securityGroupFilters)) + for i, v := range b.securityGroupFilters { + object.securityGroupFilters[i], err = v.Build() + if err != nil { + return + } + } + } + object.total = b.total + return +} diff --git a/arohcp/v1alpha1/cluster_nodes_list_builder.go b/arohcp/v1alpha1/cluster_nodes_list_builder.go new file mode 100644 index 000000000..a24809c43 --- /dev/null +++ b/arohcp/v1alpha1/cluster_nodes_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ClusterNodesListBuilder contains the data and logic needed to build +// 'cluster_nodes' objects. +type ClusterNodesListBuilder struct { + items []*ClusterNodesBuilder +} + +// NewClusterNodesList creates a new builder of 'cluster_nodes' objects. +func NewClusterNodesList() *ClusterNodesListBuilder { + return new(ClusterNodesListBuilder) +} + +// Items sets the items of the list. +func (b *ClusterNodesListBuilder) Items(values ...*ClusterNodesBuilder) *ClusterNodesListBuilder { + b.items = make([]*ClusterNodesBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *ClusterNodesListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *ClusterNodesListBuilder) Copy(list *ClusterNodesList) *ClusterNodesListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*ClusterNodesBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewClusterNodes().Copy(v) + } + } + return b +} + +// Build creates a list of 'cluster_nodes' objects using the +// configuration stored in the builder. +func (b *ClusterNodesListBuilder) Build() (list *ClusterNodesList, err error) { + items := make([]*ClusterNodes, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(ClusterNodesList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/cluster_nodes_list_type_json.go b/arohcp/v1alpha1/cluster_nodes_list_type_json.go new file mode 100644 index 000000000..32b012e22 --- /dev/null +++ b/arohcp/v1alpha1/cluster_nodes_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalClusterNodesList writes a list of values of the 'cluster_nodes' type to +// the given writer. +func MarshalClusterNodesList(list []*ClusterNodes, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteClusterNodesList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteClusterNodesList writes a list of value of the 'cluster_nodes' type to +// the given stream. +func WriteClusterNodesList(list []*ClusterNodes, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteClusterNodes(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalClusterNodesList reads a list of values of the 'cluster_nodes' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalClusterNodesList(source interface{}) (items []*ClusterNodes, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadClusterNodesList(iterator) + err = iterator.Error + return +} + +// ReadClusterNodesList reads list of values of the ”cluster_nodes' type from +// the given iterator. +func ReadClusterNodesList(iterator *jsoniter.Iterator) []*ClusterNodes { + list := []*ClusterNodes{} + for iterator.ReadArray() { + item := ReadClusterNodes(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/cluster_nodes_type.go b/arohcp/v1alpha1/cluster_nodes_type.go new file mode 100644 index 000000000..53be42a09 --- /dev/null +++ b/arohcp/v1alpha1/cluster_nodes_type.go @@ -0,0 +1,433 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ClusterNodes represents the values of the 'cluster_nodes' type. +// +// Counts of different classes of nodes inside a cluster. +type ClusterNodes struct { + bitmap_ uint32 + autoscaleCompute *MachinePoolAutoscaling + availabilityZones []string + compute int + computeLabels map[string]string + computeMachineType *MachineType + computeRootVolume *RootVolume + infra int + infraMachineType *MachineType + master int + masterMachineType *MachineType + securityGroupFilters []*MachinePoolSecurityGroupFilter + total int +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *ClusterNodes) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// AutoscaleCompute returns the value of the 'autoscale_compute' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Details for auto-scaling the compute machine pool. +// Compute and AutoscaleCompute cannot be used together. +func (o *ClusterNodes) AutoscaleCompute() *MachinePoolAutoscaling { + if o != nil && o.bitmap_&1 != 0 { + return o.autoscaleCompute + } + return nil +} + +// GetAutoscaleCompute returns the value of the 'autoscale_compute' attribute and +// a flag indicating if the attribute has a value. +// +// Details for auto-scaling the compute machine pool. +// Compute and AutoscaleCompute cannot be used together. +func (o *ClusterNodes) GetAutoscaleCompute() (value *MachinePoolAutoscaling, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.autoscaleCompute + } + return +} + +// AvailabilityZones returns the value of the 'availability_zones' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The availability zones upon which the nodes are created. +func (o *ClusterNodes) AvailabilityZones() []string { + if o != nil && o.bitmap_&2 != 0 { + return o.availabilityZones + } + return nil +} + +// GetAvailabilityZones returns the value of the 'availability_zones' attribute and +// a flag indicating if the attribute has a value. +// +// The availability zones upon which the nodes are created. +func (o *ClusterNodes) GetAvailabilityZones() (value []string, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.availabilityZones + } + return +} + +// Compute returns the value of the 'compute' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Number of compute nodes of the cluster. +// Compute and AutoscaleCompute cannot be used together. +func (o *ClusterNodes) Compute() int { + if o != nil && o.bitmap_&4 != 0 { + return o.compute + } + return 0 +} + +// GetCompute returns the value of the 'compute' attribute and +// a flag indicating if the attribute has a value. +// +// Number of compute nodes of the cluster. +// Compute and AutoscaleCompute cannot be used together. +func (o *ClusterNodes) GetCompute() (value int, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.compute + } + return +} + +// ComputeLabels returns the value of the 'compute_labels' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The labels set on the "default" compute machine pool. +func (o *ClusterNodes) ComputeLabels() map[string]string { + if o != nil && o.bitmap_&8 != 0 { + return o.computeLabels + } + return nil +} + +// GetComputeLabels returns the value of the 'compute_labels' attribute and +// a flag indicating if the attribute has a value. +// +// The labels set on the "default" compute machine pool. +func (o *ClusterNodes) GetComputeLabels() (value map[string]string, ok bool) { + ok = o != nil && o.bitmap_&8 != 0 + if ok { + value = o.computeLabels + } + return +} + +// ComputeMachineType returns the value of the 'compute_machine_type' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The compute machine type to use, for example `r5.xlarge`. +func (o *ClusterNodes) ComputeMachineType() *MachineType { + if o != nil && o.bitmap_&16 != 0 { + return o.computeMachineType + } + return nil +} + +// GetComputeMachineType returns the value of the 'compute_machine_type' attribute and +// a flag indicating if the attribute has a value. +// +// The compute machine type to use, for example `r5.xlarge`. +func (o *ClusterNodes) GetComputeMachineType() (value *MachineType, ok bool) { + ok = o != nil && o.bitmap_&16 != 0 + if ok { + value = o.computeMachineType + } + return +} + +// ComputeRootVolume returns the value of the 'compute_root_volume' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The compute machine root volume capabilities. +func (o *ClusterNodes) ComputeRootVolume() *RootVolume { + if o != nil && o.bitmap_&32 != 0 { + return o.computeRootVolume + } + return nil +} + +// GetComputeRootVolume returns the value of the 'compute_root_volume' attribute and +// a flag indicating if the attribute has a value. +// +// The compute machine root volume capabilities. +func (o *ClusterNodes) GetComputeRootVolume() (value *RootVolume, ok bool) { + ok = o != nil && o.bitmap_&32 != 0 + if ok { + value = o.computeRootVolume + } + return +} + +// Infra returns the value of the 'infra' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Number of infrastructure nodes of the cluster. +func (o *ClusterNodes) Infra() int { + if o != nil && o.bitmap_&64 != 0 { + return o.infra + } + return 0 +} + +// GetInfra returns the value of the 'infra' attribute and +// a flag indicating if the attribute has a value. +// +// Number of infrastructure nodes of the cluster. +func (o *ClusterNodes) GetInfra() (value int, ok bool) { + ok = o != nil && o.bitmap_&64 != 0 + if ok { + value = o.infra + } + return +} + +// InfraMachineType returns the value of the 'infra_machine_type' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The infra machine type to use, for example `r5.xlarge` (Optional). +func (o *ClusterNodes) InfraMachineType() *MachineType { + if o != nil && o.bitmap_&128 != 0 { + return o.infraMachineType + } + return nil +} + +// GetInfraMachineType returns the value of the 'infra_machine_type' attribute and +// a flag indicating if the attribute has a value. +// +// The infra machine type to use, for example `r5.xlarge` (Optional). +func (o *ClusterNodes) GetInfraMachineType() (value *MachineType, ok bool) { + ok = o != nil && o.bitmap_&128 != 0 + if ok { + value = o.infraMachineType + } + return +} + +// Master returns the value of the 'master' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Number of master nodes of the cluster. +func (o *ClusterNodes) Master() int { + if o != nil && o.bitmap_&256 != 0 { + return o.master + } + return 0 +} + +// GetMaster returns the value of the 'master' attribute and +// a flag indicating if the attribute has a value. +// +// Number of master nodes of the cluster. +func (o *ClusterNodes) GetMaster() (value int, ok bool) { + ok = o != nil && o.bitmap_&256 != 0 + if ok { + value = o.master + } + return +} + +// MasterMachineType returns the value of the 'master_machine_type' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The master machine type to use, for example `r5.xlarge` (Optional). +func (o *ClusterNodes) MasterMachineType() *MachineType { + if o != nil && o.bitmap_&512 != 0 { + return o.masterMachineType + } + return nil +} + +// GetMasterMachineType returns the value of the 'master_machine_type' attribute and +// a flag indicating if the attribute has a value. +// +// The master machine type to use, for example `r5.xlarge` (Optional). +func (o *ClusterNodes) GetMasterMachineType() (value *MachineType, ok bool) { + ok = o != nil && o.bitmap_&512 != 0 + if ok { + value = o.masterMachineType + } + return +} + +// SecurityGroupFilters returns the value of the 'security_group_filters' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// List of security groups to be applied to nodes (Optional). +func (o *ClusterNodes) SecurityGroupFilters() []*MachinePoolSecurityGroupFilter { + if o != nil && o.bitmap_&1024 != 0 { + return o.securityGroupFilters + } + return nil +} + +// GetSecurityGroupFilters returns the value of the 'security_group_filters' attribute and +// a flag indicating if the attribute has a value. +// +// List of security groups to be applied to nodes (Optional). +func (o *ClusterNodes) GetSecurityGroupFilters() (value []*MachinePoolSecurityGroupFilter, ok bool) { + ok = o != nil && o.bitmap_&1024 != 0 + if ok { + value = o.securityGroupFilters + } + return +} + +// Total returns the value of the 'total' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Total number of nodes of the cluster. +func (o *ClusterNodes) Total() int { + if o != nil && o.bitmap_&2048 != 0 { + return o.total + } + return 0 +} + +// GetTotal returns the value of the 'total' attribute and +// a flag indicating if the attribute has a value. +// +// Total number of nodes of the cluster. +func (o *ClusterNodes) GetTotal() (value int, ok bool) { + ok = o != nil && o.bitmap_&2048 != 0 + if ok { + value = o.total + } + return +} + +// ClusterNodesListKind is the name of the type used to represent list of objects of +// type 'cluster_nodes'. +const ClusterNodesListKind = "ClusterNodesList" + +// ClusterNodesListLinkKind is the name of the type used to represent links to list +// of objects of type 'cluster_nodes'. +const ClusterNodesListLinkKind = "ClusterNodesListLink" + +// ClusterNodesNilKind is the name of the type used to nil lists of objects of +// type 'cluster_nodes'. +const ClusterNodesListNilKind = "ClusterNodesListNil" + +// ClusterNodesList is a list of values of the 'cluster_nodes' type. +type ClusterNodesList struct { + href string + link bool + items []*ClusterNodes +} + +// Len returns the length of the list. +func (l *ClusterNodesList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *ClusterNodesList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterNodesList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterNodesList) SetItems(items []*ClusterNodes) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterNodesList) Items() []*ClusterNodes { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *ClusterNodesList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *ClusterNodesList) Get(i int) *ClusterNodes { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *ClusterNodesList) Slice() []*ClusterNodes { + var slice []*ClusterNodes + if l == nil { + slice = make([]*ClusterNodes, 0) + } else { + slice = make([]*ClusterNodes, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *ClusterNodesList) Each(f func(item *ClusterNodes) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *ClusterNodesList) Range(f func(index int, item *ClusterNodes) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/cluster_nodes_type_json.go b/arohcp/v1alpha1/cluster_nodes_type_json.go new file mode 100644 index 000000000..7fff7bac1 --- /dev/null +++ b/arohcp/v1alpha1/cluster_nodes_type_json.go @@ -0,0 +1,258 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + "sort" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalClusterNodes writes a value of the 'cluster_nodes' type to the given writer. +func MarshalClusterNodes(object *ClusterNodes, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteClusterNodes(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteClusterNodes writes a value of the 'cluster_nodes' type to the given stream. +func WriteClusterNodes(object *ClusterNodes, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 && object.autoscaleCompute != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("autoscale_compute") + WriteMachinePoolAutoscaling(object.autoscaleCompute, stream) + count++ + } + present_ = object.bitmap_&2 != 0 && object.availabilityZones != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("availability_zones") + WriteStringList(object.availabilityZones, stream) + count++ + } + present_ = object.bitmap_&4 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("compute") + stream.WriteInt(object.compute) + count++ + } + present_ = object.bitmap_&8 != 0 && object.computeLabels != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("compute_labels") + if object.computeLabels != nil { + stream.WriteObjectStart() + keys := make([]string, len(object.computeLabels)) + i := 0 + for key := range object.computeLabels { + keys[i] = key + i++ + } + sort.Strings(keys) + for i, key := range keys { + if i > 0 { + stream.WriteMore() + } + item := object.computeLabels[key] + stream.WriteObjectField(key) + stream.WriteString(item) + } + stream.WriteObjectEnd() + } else { + stream.WriteNil() + } + count++ + } + present_ = object.bitmap_&16 != 0 && object.computeMachineType != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("compute_machine_type") + WriteMachineType(object.computeMachineType, stream) + count++ + } + present_ = object.bitmap_&32 != 0 && object.computeRootVolume != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("compute_root_volume") + WriteRootVolume(object.computeRootVolume, stream) + count++ + } + present_ = object.bitmap_&64 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("infra") + stream.WriteInt(object.infra) + count++ + } + present_ = object.bitmap_&128 != 0 && object.infraMachineType != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("infra_machine_type") + WriteMachineType(object.infraMachineType, stream) + count++ + } + present_ = object.bitmap_&256 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("master") + stream.WriteInt(object.master) + count++ + } + present_ = object.bitmap_&512 != 0 && object.masterMachineType != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("master_machine_type") + WriteMachineType(object.masterMachineType, stream) + count++ + } + present_ = object.bitmap_&1024 != 0 && object.securityGroupFilters != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("security_group_filters") + WriteMachinePoolSecurityGroupFilterList(object.securityGroupFilters, stream) + count++ + } + present_ = object.bitmap_&2048 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("total") + stream.WriteInt(object.total) + } + stream.WriteObjectEnd() +} + +// UnmarshalClusterNodes reads a value of the 'cluster_nodes' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalClusterNodes(source interface{}) (object *ClusterNodes, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadClusterNodes(iterator) + err = iterator.Error + return +} + +// ReadClusterNodes reads a value of the 'cluster_nodes' type from the given iterator. +func ReadClusterNodes(iterator *jsoniter.Iterator) *ClusterNodes { + object := &ClusterNodes{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "autoscale_compute": + value := ReadMachinePoolAutoscaling(iterator) + object.autoscaleCompute = value + object.bitmap_ |= 1 + case "availability_zones": + value := ReadStringList(iterator) + object.availabilityZones = value + object.bitmap_ |= 2 + case "compute": + value := iterator.ReadInt() + object.compute = value + object.bitmap_ |= 4 + case "compute_labels": + value := map[string]string{} + for { + key := iterator.ReadObject() + if key == "" { + break + } + item := iterator.ReadString() + value[key] = item + } + object.computeLabels = value + object.bitmap_ |= 8 + case "compute_machine_type": + value := ReadMachineType(iterator) + object.computeMachineType = value + object.bitmap_ |= 16 + case "compute_root_volume": + value := ReadRootVolume(iterator) + object.computeRootVolume = value + object.bitmap_ |= 32 + case "infra": + value := iterator.ReadInt() + object.infra = value + object.bitmap_ |= 64 + case "infra_machine_type": + value := ReadMachineType(iterator) + object.infraMachineType = value + object.bitmap_ |= 128 + case "master": + value := iterator.ReadInt() + object.master = value + object.bitmap_ |= 256 + case "master_machine_type": + value := ReadMachineType(iterator) + object.masterMachineType = value + object.bitmap_ |= 512 + case "security_group_filters": + value := ReadMachinePoolSecurityGroupFilterList(iterator) + object.securityGroupFilters = value + object.bitmap_ |= 1024 + case "total": + value := iterator.ReadInt() + object.total = value + object.bitmap_ |= 2048 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/cluster_registry_config_builder.go b/arohcp/v1alpha1/cluster_registry_config_builder.go new file mode 100644 index 000000000..515737838 --- /dev/null +++ b/arohcp/v1alpha1/cluster_registry_config_builder.go @@ -0,0 +1,173 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ClusterRegistryConfigBuilder contains the data and logic needed to build 'cluster_registry_config' objects. +// +// ClusterRegistryConfig describes the configuration of registries for the cluster. +// Its format reflects the OpenShift Image Configuration, for which docs are available on +// [docs.openshift.com](https://docs.openshift.com/container-platform/4.16/openshift_images/image-configuration.html) +// ```json +// +// { +// "registry_config": { +// "registry_sources": { +// "blocked_registries": [ +// "badregistry.io", +// "badregistry8.io" +// ] +// } +// } +// } +// +// ``` +type ClusterRegistryConfigBuilder struct { + bitmap_ uint32 + additionalTrustedCa map[string]string + allowedRegistriesForImport []*RegistryLocationBuilder + platformAllowlist *RegistryAllowlistBuilder + registrySources *RegistrySourcesBuilder +} + +// NewClusterRegistryConfig creates a new builder of 'cluster_registry_config' objects. +func NewClusterRegistryConfig() *ClusterRegistryConfigBuilder { + return &ClusterRegistryConfigBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *ClusterRegistryConfigBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// AdditionalTrustedCa sets the value of the 'additional_trusted_ca' attribute to the given value. +func (b *ClusterRegistryConfigBuilder) AdditionalTrustedCa(value map[string]string) *ClusterRegistryConfigBuilder { + b.additionalTrustedCa = value + if value != nil { + b.bitmap_ |= 1 + } else { + b.bitmap_ &^= 1 + } + return b +} + +// AllowedRegistriesForImport sets the value of the 'allowed_registries_for_import' attribute to the given values. +func (b *ClusterRegistryConfigBuilder) AllowedRegistriesForImport(values ...*RegistryLocationBuilder) *ClusterRegistryConfigBuilder { + b.allowedRegistriesForImport = make([]*RegistryLocationBuilder, len(values)) + copy(b.allowedRegistriesForImport, values) + b.bitmap_ |= 2 + return b +} + +// PlatformAllowlist sets the value of the 'platform_allowlist' attribute to the given value. +// +// RegistryAllowlist represents a single registry allowlist. +func (b *ClusterRegistryConfigBuilder) PlatformAllowlist(value *RegistryAllowlistBuilder) *ClusterRegistryConfigBuilder { + b.platformAllowlist = value + if value != nil { + b.bitmap_ |= 4 + } else { + b.bitmap_ &^= 4 + } + return b +} + +// RegistrySources sets the value of the 'registry_sources' attribute to the given value. +// +// RegistrySources contains configuration that determines how the container runtime should treat individual +// registries when accessing images for builds and pods. For instance, whether or not to allow insecure access. +// It does not contain configuration for the internal cluster registry. +func (b *ClusterRegistryConfigBuilder) RegistrySources(value *RegistrySourcesBuilder) *ClusterRegistryConfigBuilder { + b.registrySources = value + if value != nil { + b.bitmap_ |= 8 + } else { + b.bitmap_ &^= 8 + } + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *ClusterRegistryConfigBuilder) Copy(object *ClusterRegistryConfig) *ClusterRegistryConfigBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + if len(object.additionalTrustedCa) > 0 { + b.additionalTrustedCa = map[string]string{} + for k, v := range object.additionalTrustedCa { + b.additionalTrustedCa[k] = v + } + } else { + b.additionalTrustedCa = nil + } + if object.allowedRegistriesForImport != nil { + b.allowedRegistriesForImport = make([]*RegistryLocationBuilder, len(object.allowedRegistriesForImport)) + for i, v := range object.allowedRegistriesForImport { + b.allowedRegistriesForImport[i] = NewRegistryLocation().Copy(v) + } + } else { + b.allowedRegistriesForImport = nil + } + if object.platformAllowlist != nil { + b.platformAllowlist = NewRegistryAllowlist().Copy(object.platformAllowlist) + } else { + b.platformAllowlist = nil + } + if object.registrySources != nil { + b.registrySources = NewRegistrySources().Copy(object.registrySources) + } else { + b.registrySources = nil + } + return b +} + +// Build creates a 'cluster_registry_config' object using the configuration stored in the builder. +func (b *ClusterRegistryConfigBuilder) Build() (object *ClusterRegistryConfig, err error) { + object = new(ClusterRegistryConfig) + object.bitmap_ = b.bitmap_ + if b.additionalTrustedCa != nil { + object.additionalTrustedCa = make(map[string]string) + for k, v := range b.additionalTrustedCa { + object.additionalTrustedCa[k] = v + } + } + if b.allowedRegistriesForImport != nil { + object.allowedRegistriesForImport = make([]*RegistryLocation, len(b.allowedRegistriesForImport)) + for i, v := range b.allowedRegistriesForImport { + object.allowedRegistriesForImport[i], err = v.Build() + if err != nil { + return + } + } + } + if b.platformAllowlist != nil { + object.platformAllowlist, err = b.platformAllowlist.Build() + if err != nil { + return + } + } + if b.registrySources != nil { + object.registrySources, err = b.registrySources.Build() + if err != nil { + return + } + } + return +} diff --git a/arohcp/v1alpha1/cluster_registry_config_list_builder.go b/arohcp/v1alpha1/cluster_registry_config_list_builder.go new file mode 100644 index 000000000..261afce50 --- /dev/null +++ b/arohcp/v1alpha1/cluster_registry_config_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ClusterRegistryConfigListBuilder contains the data and logic needed to build +// 'cluster_registry_config' objects. +type ClusterRegistryConfigListBuilder struct { + items []*ClusterRegistryConfigBuilder +} + +// NewClusterRegistryConfigList creates a new builder of 'cluster_registry_config' objects. +func NewClusterRegistryConfigList() *ClusterRegistryConfigListBuilder { + return new(ClusterRegistryConfigListBuilder) +} + +// Items sets the items of the list. +func (b *ClusterRegistryConfigListBuilder) Items(values ...*ClusterRegistryConfigBuilder) *ClusterRegistryConfigListBuilder { + b.items = make([]*ClusterRegistryConfigBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *ClusterRegistryConfigListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *ClusterRegistryConfigListBuilder) Copy(list *ClusterRegistryConfigList) *ClusterRegistryConfigListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*ClusterRegistryConfigBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewClusterRegistryConfig().Copy(v) + } + } + return b +} + +// Build creates a list of 'cluster_registry_config' objects using the +// configuration stored in the builder. +func (b *ClusterRegistryConfigListBuilder) Build() (list *ClusterRegistryConfigList, err error) { + items := make([]*ClusterRegistryConfig, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(ClusterRegistryConfigList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/cluster_registry_config_list_type_json.go b/arohcp/v1alpha1/cluster_registry_config_list_type_json.go new file mode 100644 index 000000000..b5e9fbeed --- /dev/null +++ b/arohcp/v1alpha1/cluster_registry_config_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalClusterRegistryConfigList writes a list of values of the 'cluster_registry_config' type to +// the given writer. +func MarshalClusterRegistryConfigList(list []*ClusterRegistryConfig, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteClusterRegistryConfigList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteClusterRegistryConfigList writes a list of value of the 'cluster_registry_config' type to +// the given stream. +func WriteClusterRegistryConfigList(list []*ClusterRegistryConfig, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteClusterRegistryConfig(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalClusterRegistryConfigList reads a list of values of the 'cluster_registry_config' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalClusterRegistryConfigList(source interface{}) (items []*ClusterRegistryConfig, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadClusterRegistryConfigList(iterator) + err = iterator.Error + return +} + +// ReadClusterRegistryConfigList reads list of values of the ”cluster_registry_config' type from +// the given iterator. +func ReadClusterRegistryConfigList(iterator *jsoniter.Iterator) []*ClusterRegistryConfig { + list := []*ClusterRegistryConfig{} + for iterator.ReadArray() { + item := ReadClusterRegistryConfig(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/cluster_registry_config_type.go b/arohcp/v1alpha1/cluster_registry_config_type.go new file mode 100644 index 000000000..acb956f60 --- /dev/null +++ b/arohcp/v1alpha1/cluster_registry_config_type.go @@ -0,0 +1,275 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ClusterRegistryConfig represents the values of the 'cluster_registry_config' type. +// +// ClusterRegistryConfig describes the configuration of registries for the cluster. +// Its format reflects the OpenShift Image Configuration, for which docs are available on +// [docs.openshift.com](https://docs.openshift.com/container-platform/4.16/openshift_images/image-configuration.html) +// ```json +// +// { +// "registry_config": { +// "registry_sources": { +// "blocked_registries": [ +// "badregistry.io", +// "badregistry8.io" +// ] +// } +// } +// } +// +// ``` +type ClusterRegistryConfig struct { + bitmap_ uint32 + additionalTrustedCa map[string]string + allowedRegistriesForImport []*RegistryLocation + platformAllowlist *RegistryAllowlist + registrySources *RegistrySources +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *ClusterRegistryConfig) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// AdditionalTrustedCa returns the value of the 'additional_trusted_ca' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// A map containing the registry hostname as the key, and the PEM-encoded certificate as the value, +// for each additional registry CA to trust. +func (o *ClusterRegistryConfig) AdditionalTrustedCa() map[string]string { + if o != nil && o.bitmap_&1 != 0 { + return o.additionalTrustedCa + } + return nil +} + +// GetAdditionalTrustedCa returns the value of the 'additional_trusted_ca' attribute and +// a flag indicating if the attribute has a value. +// +// A map containing the registry hostname as the key, and the PEM-encoded certificate as the value, +// for each additional registry CA to trust. +func (o *ClusterRegistryConfig) GetAdditionalTrustedCa() (value map[string]string, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.additionalTrustedCa + } + return +} + +// AllowedRegistriesForImport returns the value of the 'allowed_registries_for_import' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// AllowedRegistriesForImport limits the container image registries that normal users may import +// images from. Set this list to the registries that you trust to contain valid Docker +// images and that you want applications to be able to import from. Users with +// permission to create Images or ImageStreamMappings via the API are not affected by +// this policy - typically only administrators or system integrations will have those +// permissions. +func (o *ClusterRegistryConfig) AllowedRegistriesForImport() []*RegistryLocation { + if o != nil && o.bitmap_&2 != 0 { + return o.allowedRegistriesForImport + } + return nil +} + +// GetAllowedRegistriesForImport returns the value of the 'allowed_registries_for_import' attribute and +// a flag indicating if the attribute has a value. +// +// AllowedRegistriesForImport limits the container image registries that normal users may import +// images from. Set this list to the registries that you trust to contain valid Docker +// images and that you want applications to be able to import from. Users with +// permission to create Images or ImageStreamMappings via the API are not affected by +// this policy - typically only administrators or system integrations will have those +// permissions. +func (o *ClusterRegistryConfig) GetAllowedRegistriesForImport() (value []*RegistryLocation, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.allowedRegistriesForImport + } + return +} + +// PlatformAllowlist returns the value of the 'platform_allowlist' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// PlatformAllowlist contains a reference to a RegistryAllowlist which is a list of internal registries +// which needs to be whitelisted for the platform to work. It can be omitted at creation and +// updating and its lifecycle can be managed separately if needed. +func (o *ClusterRegistryConfig) PlatformAllowlist() *RegistryAllowlist { + if o != nil && o.bitmap_&4 != 0 { + return o.platformAllowlist + } + return nil +} + +// GetPlatformAllowlist returns the value of the 'platform_allowlist' attribute and +// a flag indicating if the attribute has a value. +// +// PlatformAllowlist contains a reference to a RegistryAllowlist which is a list of internal registries +// which needs to be whitelisted for the platform to work. It can be omitted at creation and +// updating and its lifecycle can be managed separately if needed. +func (o *ClusterRegistryConfig) GetPlatformAllowlist() (value *RegistryAllowlist, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.platformAllowlist + } + return +} + +// RegistrySources returns the value of the 'registry_sources' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// RegistrySources contains configuration that determines how the container runtime +// should treat individual registries when accessing images for builds+pods. (e.g. +// whether or not to allow insecure access). It does not contain configuration for the +// internal cluster registry. +func (o *ClusterRegistryConfig) RegistrySources() *RegistrySources { + if o != nil && o.bitmap_&8 != 0 { + return o.registrySources + } + return nil +} + +// GetRegistrySources returns the value of the 'registry_sources' attribute and +// a flag indicating if the attribute has a value. +// +// RegistrySources contains configuration that determines how the container runtime +// should treat individual registries when accessing images for builds+pods. (e.g. +// whether or not to allow insecure access). It does not contain configuration for the +// internal cluster registry. +func (o *ClusterRegistryConfig) GetRegistrySources() (value *RegistrySources, ok bool) { + ok = o != nil && o.bitmap_&8 != 0 + if ok { + value = o.registrySources + } + return +} + +// ClusterRegistryConfigListKind is the name of the type used to represent list of objects of +// type 'cluster_registry_config'. +const ClusterRegistryConfigListKind = "ClusterRegistryConfigList" + +// ClusterRegistryConfigListLinkKind is the name of the type used to represent links to list +// of objects of type 'cluster_registry_config'. +const ClusterRegistryConfigListLinkKind = "ClusterRegistryConfigListLink" + +// ClusterRegistryConfigNilKind is the name of the type used to nil lists of objects of +// type 'cluster_registry_config'. +const ClusterRegistryConfigListNilKind = "ClusterRegistryConfigListNil" + +// ClusterRegistryConfigList is a list of values of the 'cluster_registry_config' type. +type ClusterRegistryConfigList struct { + href string + link bool + items []*ClusterRegistryConfig +} + +// Len returns the length of the list. +func (l *ClusterRegistryConfigList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *ClusterRegistryConfigList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterRegistryConfigList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterRegistryConfigList) SetItems(items []*ClusterRegistryConfig) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterRegistryConfigList) Items() []*ClusterRegistryConfig { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *ClusterRegistryConfigList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *ClusterRegistryConfigList) Get(i int) *ClusterRegistryConfig { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *ClusterRegistryConfigList) Slice() []*ClusterRegistryConfig { + var slice []*ClusterRegistryConfig + if l == nil { + slice = make([]*ClusterRegistryConfig, 0) + } else { + slice = make([]*ClusterRegistryConfig, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *ClusterRegistryConfigList) Each(f func(item *ClusterRegistryConfig) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *ClusterRegistryConfigList) Range(f func(index int, item *ClusterRegistryConfig) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/cluster_registry_config_type_json.go b/arohcp/v1alpha1/cluster_registry_config_type_json.go new file mode 100644 index 000000000..b132c19d7 --- /dev/null +++ b/arohcp/v1alpha1/cluster_registry_config_type_json.go @@ -0,0 +1,154 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + "sort" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalClusterRegistryConfig writes a value of the 'cluster_registry_config' type to the given writer. +func MarshalClusterRegistryConfig(object *ClusterRegistryConfig, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteClusterRegistryConfig(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteClusterRegistryConfig writes a value of the 'cluster_registry_config' type to the given stream. +func WriteClusterRegistryConfig(object *ClusterRegistryConfig, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 && object.additionalTrustedCa != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("additional_trusted_ca") + if object.additionalTrustedCa != nil { + stream.WriteObjectStart() + keys := make([]string, len(object.additionalTrustedCa)) + i := 0 + for key := range object.additionalTrustedCa { + keys[i] = key + i++ + } + sort.Strings(keys) + for i, key := range keys { + if i > 0 { + stream.WriteMore() + } + item := object.additionalTrustedCa[key] + stream.WriteObjectField(key) + stream.WriteString(item) + } + stream.WriteObjectEnd() + } else { + stream.WriteNil() + } + count++ + } + present_ = object.bitmap_&2 != 0 && object.allowedRegistriesForImport != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("allowed_registries_for_import") + WriteRegistryLocationList(object.allowedRegistriesForImport, stream) + count++ + } + present_ = object.bitmap_&4 != 0 && object.platformAllowlist != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("platform_allowlist") + WriteRegistryAllowlist(object.platformAllowlist, stream) + count++ + } + present_ = object.bitmap_&8 != 0 && object.registrySources != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("registry_sources") + WriteRegistrySources(object.registrySources, stream) + } + stream.WriteObjectEnd() +} + +// UnmarshalClusterRegistryConfig reads a value of the 'cluster_registry_config' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalClusterRegistryConfig(source interface{}) (object *ClusterRegistryConfig, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadClusterRegistryConfig(iterator) + err = iterator.Error + return +} + +// ReadClusterRegistryConfig reads a value of the 'cluster_registry_config' type from the given iterator. +func ReadClusterRegistryConfig(iterator *jsoniter.Iterator) *ClusterRegistryConfig { + object := &ClusterRegistryConfig{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "additional_trusted_ca": + value := map[string]string{} + for { + key := iterator.ReadObject() + if key == "" { + break + } + item := iterator.ReadString() + value[key] = item + } + object.additionalTrustedCa = value + object.bitmap_ |= 1 + case "allowed_registries_for_import": + value := ReadRegistryLocationList(iterator) + object.allowedRegistriesForImport = value + object.bitmap_ |= 2 + case "platform_allowlist": + value := ReadRegistryAllowlist(iterator) + object.platformAllowlist = value + object.bitmap_ |= 4 + case "registry_sources": + value := ReadRegistrySources(iterator) + object.registrySources = value + object.bitmap_ |= 8 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/cluster_resource_json.go b/arohcp/v1alpha1/cluster_resource_json.go new file mode 100644 index 000000000..60c06d1b3 --- /dev/null +++ b/arohcp/v1alpha1/cluster_resource_json.go @@ -0,0 +1,45 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import "io" + +func writeClusterDeleteRequest(request *ClusterDeleteRequest, writer io.Writer) error { + return nil +} +func readClusterDeleteResponse(response *ClusterDeleteResponse, reader io.Reader) error { + return nil +} +func writeClusterGetRequest(request *ClusterGetRequest, writer io.Writer) error { + return nil +} +func readClusterGetResponse(response *ClusterGetResponse, reader io.Reader) error { + var err error + response.body, err = UnmarshalCluster(reader) + return err +} +func writeClusterUpdateRequest(request *ClusterUpdateRequest, writer io.Writer) error { + return MarshalCluster(request.body, writer) +} +func readClusterUpdateResponse(response *ClusterUpdateResponse, reader io.Reader) error { + var err error + response.body, err = UnmarshalCluster(reader) + return err +} diff --git a/arohcp/v1alpha1/cluster_state_list_type_json.go b/arohcp/v1alpha1/cluster_state_list_type_json.go new file mode 100644 index 000000000..dde6105c5 --- /dev/null +++ b/arohcp/v1alpha1/cluster_state_list_type_json.go @@ -0,0 +1,76 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalClusterStateList writes a list of values of the 'cluster_state' type to +// the given writer. +func MarshalClusterStateList(list []ClusterState, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteClusterStateList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteClusterStateList writes a list of value of the 'cluster_state' type to +// the given stream. +func WriteClusterStateList(list []ClusterState, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + stream.WriteString(string(value)) + } + stream.WriteArrayEnd() +} + +// UnmarshalClusterStateList reads a list of values of the 'cluster_state' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalClusterStateList(source interface{}) (items []ClusterState, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadClusterStateList(iterator) + err = iterator.Error + return +} + +// ReadClusterStateList reads list of values of the ”cluster_state' type from +// the given iterator. +func ReadClusterStateList(iterator *jsoniter.Iterator) []ClusterState { + list := []ClusterState{} + for iterator.ReadArray() { + text := iterator.ReadString() + item := ClusterState(text) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/cluster_state_type.go b/arohcp/v1alpha1/cluster_state_type.go new file mode 100644 index 000000000..c353fcd7f --- /dev/null +++ b/arohcp/v1alpha1/cluster_state_type.go @@ -0,0 +1,48 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ClusterState represents the values of the 'cluster_state' enumerated type. +type ClusterState string + +const ( + // Error during installation. + ClusterStateError ClusterState = "error" + // The cluster will consume marginal cloud provider infrastructure but will be counted for quota. + ClusterStateHibernating ClusterState = "hibernating" + // The cluster is still being installed. + ClusterStateInstalling ClusterState = "installing" + // The cluster is pending resources before being provisioned. + ClusterStatePending ClusterState = "pending" + // The cluster is moving from 'Ready' state to 'Hibernating'. + ClusterStatePoweringDown ClusterState = "powering_down" + // The cluster is ready to use. + ClusterStateReady ClusterState = "ready" + // The cluster is moving from 'Hibernating' state to 'Ready'. + ClusterStateResuming ClusterState = "resuming" + // The cluster is being uninstalled. + ClusterStateUninstalling ClusterState = "uninstalling" + // The state of the cluster is unknown. + ClusterStateUnknown ClusterState = "unknown" + // The cluster is validating user input. + ClusterStateValidating ClusterState = "validating" + // The cluster is waiting for user action. + ClusterStateWaiting ClusterState = "waiting" +) diff --git a/arohcp/v1alpha1/cluster_status_builder.go b/arohcp/v1alpha1/cluster_status_builder.go new file mode 100644 index 000000000..77f957676 --- /dev/null +++ b/arohcp/v1alpha1/cluster_status_builder.go @@ -0,0 +1,173 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ClusterStatusBuilder contains the data and logic needed to build 'cluster_status' objects. +// +// Detailed status of a cluster. +type ClusterStatusBuilder struct { + bitmap_ uint32 + id string + href string + configurationMode ClusterConfigurationMode + currentCompute int + description string + limitedSupportReasonCount int + provisionErrorCode string + provisionErrorMessage string + state ClusterState + dnsReady bool + oidcReady bool +} + +// NewClusterStatus creates a new builder of 'cluster_status' objects. +func NewClusterStatus() *ClusterStatusBuilder { + return &ClusterStatusBuilder{} +} + +// Link sets the flag that indicates if this is a link. +func (b *ClusterStatusBuilder) Link(value bool) *ClusterStatusBuilder { + b.bitmap_ |= 1 + return b +} + +// ID sets the identifier of the object. +func (b *ClusterStatusBuilder) ID(value string) *ClusterStatusBuilder { + b.id = value + b.bitmap_ |= 2 + return b +} + +// HREF sets the link to the object. +func (b *ClusterStatusBuilder) HREF(value string) *ClusterStatusBuilder { + b.href = value + b.bitmap_ |= 4 + return b +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *ClusterStatusBuilder) Empty() bool { + return b == nil || b.bitmap_&^1 == 0 +} + +// DNSReady sets the value of the 'DNS_ready' attribute to the given value. +func (b *ClusterStatusBuilder) DNSReady(value bool) *ClusterStatusBuilder { + b.dnsReady = value + b.bitmap_ |= 8 + return b +} + +// OIDCReady sets the value of the 'OIDC_ready' attribute to the given value. +func (b *ClusterStatusBuilder) OIDCReady(value bool) *ClusterStatusBuilder { + b.oidcReady = value + b.bitmap_ |= 16 + return b +} + +// ConfigurationMode sets the value of the 'configuration_mode' attribute to the given value. +// +// Configuration mode of a cluster. +func (b *ClusterStatusBuilder) ConfigurationMode(value ClusterConfigurationMode) *ClusterStatusBuilder { + b.configurationMode = value + b.bitmap_ |= 32 + return b +} + +// CurrentCompute sets the value of the 'current_compute' attribute to the given value. +func (b *ClusterStatusBuilder) CurrentCompute(value int) *ClusterStatusBuilder { + b.currentCompute = value + b.bitmap_ |= 64 + return b +} + +// Description sets the value of the 'description' attribute to the given value. +func (b *ClusterStatusBuilder) Description(value string) *ClusterStatusBuilder { + b.description = value + b.bitmap_ |= 128 + return b +} + +// LimitedSupportReasonCount sets the value of the 'limited_support_reason_count' attribute to the given value. +func (b *ClusterStatusBuilder) LimitedSupportReasonCount(value int) *ClusterStatusBuilder { + b.limitedSupportReasonCount = value + b.bitmap_ |= 256 + return b +} + +// ProvisionErrorCode sets the value of the 'provision_error_code' attribute to the given value. +func (b *ClusterStatusBuilder) ProvisionErrorCode(value string) *ClusterStatusBuilder { + b.provisionErrorCode = value + b.bitmap_ |= 512 + return b +} + +// ProvisionErrorMessage sets the value of the 'provision_error_message' attribute to the given value. +func (b *ClusterStatusBuilder) ProvisionErrorMessage(value string) *ClusterStatusBuilder { + b.provisionErrorMessage = value + b.bitmap_ |= 1024 + return b +} + +// State sets the value of the 'state' attribute to the given value. +// +// Overall state of a cluster. +func (b *ClusterStatusBuilder) State(value ClusterState) *ClusterStatusBuilder { + b.state = value + b.bitmap_ |= 2048 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *ClusterStatusBuilder) Copy(object *ClusterStatus) *ClusterStatusBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.id = object.id + b.href = object.href + b.dnsReady = object.dnsReady + b.oidcReady = object.oidcReady + b.configurationMode = object.configurationMode + b.currentCompute = object.currentCompute + b.description = object.description + b.limitedSupportReasonCount = object.limitedSupportReasonCount + b.provisionErrorCode = object.provisionErrorCode + b.provisionErrorMessage = object.provisionErrorMessage + b.state = object.state + return b +} + +// Build creates a 'cluster_status' object using the configuration stored in the builder. +func (b *ClusterStatusBuilder) Build() (object *ClusterStatus, err error) { + object = new(ClusterStatus) + object.id = b.id + object.href = b.href + object.bitmap_ = b.bitmap_ + object.dnsReady = b.dnsReady + object.oidcReady = b.oidcReady + object.configurationMode = b.configurationMode + object.currentCompute = b.currentCompute + object.description = b.description + object.limitedSupportReasonCount = b.limitedSupportReasonCount + object.provisionErrorCode = b.provisionErrorCode + object.provisionErrorMessage = b.provisionErrorMessage + object.state = b.state + return +} diff --git a/arohcp/v1alpha1/cluster_status_list_builder.go b/arohcp/v1alpha1/cluster_status_list_builder.go new file mode 100644 index 000000000..d58821355 --- /dev/null +++ b/arohcp/v1alpha1/cluster_status_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ClusterStatusListBuilder contains the data and logic needed to build +// 'cluster_status' objects. +type ClusterStatusListBuilder struct { + items []*ClusterStatusBuilder +} + +// NewClusterStatusList creates a new builder of 'cluster_status' objects. +func NewClusterStatusList() *ClusterStatusListBuilder { + return new(ClusterStatusListBuilder) +} + +// Items sets the items of the list. +func (b *ClusterStatusListBuilder) Items(values ...*ClusterStatusBuilder) *ClusterStatusListBuilder { + b.items = make([]*ClusterStatusBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *ClusterStatusListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *ClusterStatusListBuilder) Copy(list *ClusterStatusList) *ClusterStatusListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*ClusterStatusBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewClusterStatus().Copy(v) + } + } + return b +} + +// Build creates a list of 'cluster_status' objects using the +// configuration stored in the builder. +func (b *ClusterStatusListBuilder) Build() (list *ClusterStatusList, err error) { + items := make([]*ClusterStatus, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(ClusterStatusList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/cluster_status_list_type_json.go b/arohcp/v1alpha1/cluster_status_list_type_json.go new file mode 100644 index 000000000..e5e95170d --- /dev/null +++ b/arohcp/v1alpha1/cluster_status_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalClusterStatusList writes a list of values of the 'cluster_status' type to +// the given writer. +func MarshalClusterStatusList(list []*ClusterStatus, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteClusterStatusList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteClusterStatusList writes a list of value of the 'cluster_status' type to +// the given stream. +func WriteClusterStatusList(list []*ClusterStatus, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteClusterStatus(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalClusterStatusList reads a list of values of the 'cluster_status' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalClusterStatusList(source interface{}) (items []*ClusterStatus, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadClusterStatusList(iterator) + err = iterator.Error + return +} + +// ReadClusterStatusList reads list of values of the ”cluster_status' type from +// the given iterator. +func ReadClusterStatusList(iterator *jsoniter.Iterator) []*ClusterStatus { + list := []*ClusterStatus{} + for iterator.ReadArray() { + item := ReadClusterStatus(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/cluster_status_type.go b/arohcp/v1alpha1/cluster_status_type.go new file mode 100644 index 000000000..8140b082d --- /dev/null +++ b/arohcp/v1alpha1/cluster_status_type.go @@ -0,0 +1,457 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ClusterStatusKind is the name of the type used to represent objects +// of type 'cluster_status'. +const ClusterStatusKind = "ClusterStatus" + +// ClusterStatusLinkKind is the name of the type used to represent links +// to objects of type 'cluster_status'. +const ClusterStatusLinkKind = "ClusterStatusLink" + +// ClusterStatusNilKind is the name of the type used to nil references +// to objects of type 'cluster_status'. +const ClusterStatusNilKind = "ClusterStatusNil" + +// ClusterStatus represents the values of the 'cluster_status' type. +// +// Detailed status of a cluster. +type ClusterStatus struct { + bitmap_ uint32 + id string + href string + configurationMode ClusterConfigurationMode + currentCompute int + description string + limitedSupportReasonCount int + provisionErrorCode string + provisionErrorMessage string + state ClusterState + dnsReady bool + oidcReady bool +} + +// Kind returns the name of the type of the object. +func (o *ClusterStatus) Kind() string { + if o == nil { + return ClusterStatusNilKind + } + if o.bitmap_&1 != 0 { + return ClusterStatusLinkKind + } + return ClusterStatusKind +} + +// Link returns true if this is a link. +func (o *ClusterStatus) Link() bool { + return o != nil && o.bitmap_&1 != 0 +} + +// ID returns the identifier of the object. +func (o *ClusterStatus) ID() string { + if o != nil && o.bitmap_&2 != 0 { + return o.id + } + return "" +} + +// GetID returns the identifier of the object and a flag indicating if the +// identifier has a value. +func (o *ClusterStatus) GetID() (value string, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.id + } + return +} + +// HREF returns the link to the object. +func (o *ClusterStatus) HREF() string { + if o != nil && o.bitmap_&4 != 0 { + return o.href + } + return "" +} + +// GetHREF returns the link of the object and a flag indicating if the +// link has a value. +func (o *ClusterStatus) GetHREF() (value string, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.href + } + return +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *ClusterStatus) Empty() bool { + return o == nil || o.bitmap_&^1 == 0 +} + +// DNSReady returns the value of the 'DNS_ready' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// DNSReady from Provisioner +func (o *ClusterStatus) DNSReady() bool { + if o != nil && o.bitmap_&8 != 0 { + return o.dnsReady + } + return false +} + +// GetDNSReady returns the value of the 'DNS_ready' attribute and +// a flag indicating if the attribute has a value. +// +// DNSReady from Provisioner +func (o *ClusterStatus) GetDNSReady() (value bool, ok bool) { + ok = o != nil && o.bitmap_&8 != 0 + if ok { + value = o.dnsReady + } + return +} + +// OIDCReady returns the value of the 'OIDC_ready' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// OIDCReady from user configuration. +func (o *ClusterStatus) OIDCReady() bool { + if o != nil && o.bitmap_&16 != 0 { + return o.oidcReady + } + return false +} + +// GetOIDCReady returns the value of the 'OIDC_ready' attribute and +// a flag indicating if the attribute has a value. +// +// OIDCReady from user configuration. +func (o *ClusterStatus) GetOIDCReady() (value bool, ok bool) { + ok = o != nil && o.bitmap_&16 != 0 + if ok { + value = o.oidcReady + } + return +} + +// ConfigurationMode returns the value of the 'configuration_mode' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Configuration mode +func (o *ClusterStatus) ConfigurationMode() ClusterConfigurationMode { + if o != nil && o.bitmap_&32 != 0 { + return o.configurationMode + } + return ClusterConfigurationMode("") +} + +// GetConfigurationMode returns the value of the 'configuration_mode' attribute and +// a flag indicating if the attribute has a value. +// +// Configuration mode +func (o *ClusterStatus) GetConfigurationMode() (value ClusterConfigurationMode, ok bool) { + ok = o != nil && o.bitmap_&32 != 0 + if ok { + value = o.configurationMode + } + return +} + +// CurrentCompute returns the value of the 'current_compute' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Current Replicas available for a Hosted Cluster +func (o *ClusterStatus) CurrentCompute() int { + if o != nil && o.bitmap_&64 != 0 { + return o.currentCompute + } + return 0 +} + +// GetCurrentCompute returns the value of the 'current_compute' attribute and +// a flag indicating if the attribute has a value. +// +// Current Replicas available for a Hosted Cluster +func (o *ClusterStatus) GetCurrentCompute() (value int, ok bool) { + ok = o != nil && o.bitmap_&64 != 0 + if ok { + value = o.currentCompute + } + return +} + +// Description returns the value of the 'description' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Detailed description of the cluster status. +func (o *ClusterStatus) Description() string { + if o != nil && o.bitmap_&128 != 0 { + return o.description + } + return "" +} + +// GetDescription returns the value of the 'description' attribute and +// a flag indicating if the attribute has a value. +// +// Detailed description of the cluster status. +func (o *ClusterStatus) GetDescription() (value string, ok bool) { + ok = o != nil && o.bitmap_&128 != 0 + if ok { + value = o.description + } + return +} + +// LimitedSupportReasonCount returns the value of the 'limited_support_reason_count' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Limited Support Reason Count +func (o *ClusterStatus) LimitedSupportReasonCount() int { + if o != nil && o.bitmap_&256 != 0 { + return o.limitedSupportReasonCount + } + return 0 +} + +// GetLimitedSupportReasonCount returns the value of the 'limited_support_reason_count' attribute and +// a flag indicating if the attribute has a value. +// +// Limited Support Reason Count +func (o *ClusterStatus) GetLimitedSupportReasonCount() (value int, ok bool) { + ok = o != nil && o.bitmap_&256 != 0 + if ok { + value = o.limitedSupportReasonCount + } + return +} + +// ProvisionErrorCode returns the value of the 'provision_error_code' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Provisioning Error Code +func (o *ClusterStatus) ProvisionErrorCode() string { + if o != nil && o.bitmap_&512 != 0 { + return o.provisionErrorCode + } + return "" +} + +// GetProvisionErrorCode returns the value of the 'provision_error_code' attribute and +// a flag indicating if the attribute has a value. +// +// Provisioning Error Code +func (o *ClusterStatus) GetProvisionErrorCode() (value string, ok bool) { + ok = o != nil && o.bitmap_&512 != 0 + if ok { + value = o.provisionErrorCode + } + return +} + +// ProvisionErrorMessage returns the value of the 'provision_error_message' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Provisioning Error Message +func (o *ClusterStatus) ProvisionErrorMessage() string { + if o != nil && o.bitmap_&1024 != 0 { + return o.provisionErrorMessage + } + return "" +} + +// GetProvisionErrorMessage returns the value of the 'provision_error_message' attribute and +// a flag indicating if the attribute has a value. +// +// Provisioning Error Message +func (o *ClusterStatus) GetProvisionErrorMessage() (value string, ok bool) { + ok = o != nil && o.bitmap_&1024 != 0 + if ok { + value = o.provisionErrorMessage + } + return +} + +// State returns the value of the 'state' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The overall state of the cluster. +func (o *ClusterStatus) State() ClusterState { + if o != nil && o.bitmap_&2048 != 0 { + return o.state + } + return ClusterState("") +} + +// GetState returns the value of the 'state' attribute and +// a flag indicating if the attribute has a value. +// +// The overall state of the cluster. +func (o *ClusterStatus) GetState() (value ClusterState, ok bool) { + ok = o != nil && o.bitmap_&2048 != 0 + if ok { + value = o.state + } + return +} + +// ClusterStatusListKind is the name of the type used to represent list of objects of +// type 'cluster_status'. +const ClusterStatusListKind = "ClusterStatusList" + +// ClusterStatusListLinkKind is the name of the type used to represent links to list +// of objects of type 'cluster_status'. +const ClusterStatusListLinkKind = "ClusterStatusListLink" + +// ClusterStatusNilKind is the name of the type used to nil lists of objects of +// type 'cluster_status'. +const ClusterStatusListNilKind = "ClusterStatusListNil" + +// ClusterStatusList is a list of values of the 'cluster_status' type. +type ClusterStatusList struct { + href string + link bool + items []*ClusterStatus +} + +// Kind returns the name of the type of the object. +func (l *ClusterStatusList) Kind() string { + if l == nil { + return ClusterStatusListNilKind + } + if l.link { + return ClusterStatusListLinkKind + } + return ClusterStatusListKind +} + +// Link returns true iif this is a link. +func (l *ClusterStatusList) Link() bool { + return l != nil && l.link +} + +// HREF returns the link to the list. +func (l *ClusterStatusList) HREF() string { + if l != nil { + return l.href + } + return "" +} + +// GetHREF returns the link of the list and a flag indicating if the +// link has a value. +func (l *ClusterStatusList) GetHREF() (value string, ok bool) { + ok = l != nil && l.href != "" + if ok { + value = l.href + } + return +} + +// Len returns the length of the list. +func (l *ClusterStatusList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *ClusterStatusList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterStatusList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterStatusList) SetItems(items []*ClusterStatus) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterStatusList) Items() []*ClusterStatus { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *ClusterStatusList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *ClusterStatusList) Get(i int) *ClusterStatus { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *ClusterStatusList) Slice() []*ClusterStatus { + var slice []*ClusterStatus + if l == nil { + slice = make([]*ClusterStatus, 0) + } else { + slice = make([]*ClusterStatus, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *ClusterStatusList) Each(f func(item *ClusterStatus) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *ClusterStatusList) Range(f func(index int, item *ClusterStatus) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/cluster_status_type_json.go b/arohcp/v1alpha1/cluster_status_type_json.go new file mode 100644 index 000000000..ab1506b9c --- /dev/null +++ b/arohcp/v1alpha1/cluster_status_type_json.go @@ -0,0 +1,226 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalClusterStatus writes a value of the 'cluster_status' type to the given writer. +func MarshalClusterStatus(object *ClusterStatus, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteClusterStatus(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteClusterStatus writes a value of the 'cluster_status' type to the given stream. +func WriteClusterStatus(object *ClusterStatus, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + stream.WriteObjectField("kind") + if object.bitmap_&1 != 0 { + stream.WriteString(ClusterStatusLinkKind) + } else { + stream.WriteString(ClusterStatusKind) + } + count++ + if object.bitmap_&2 != 0 { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("id") + stream.WriteString(object.id) + count++ + } + if object.bitmap_&4 != 0 { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("href") + stream.WriteString(object.href) + count++ + } + var present_ bool + present_ = object.bitmap_&8 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("dns_ready") + stream.WriteBool(object.dnsReady) + count++ + } + present_ = object.bitmap_&16 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("oidc_ready") + stream.WriteBool(object.oidcReady) + count++ + } + present_ = object.bitmap_&32 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("configuration_mode") + stream.WriteString(string(object.configurationMode)) + count++ + } + present_ = object.bitmap_&64 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("current_compute") + stream.WriteInt(object.currentCompute) + count++ + } + present_ = object.bitmap_&128 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("description") + stream.WriteString(object.description) + count++ + } + present_ = object.bitmap_&256 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("limited_support_reason_count") + stream.WriteInt(object.limitedSupportReasonCount) + count++ + } + present_ = object.bitmap_&512 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("provision_error_code") + stream.WriteString(object.provisionErrorCode) + count++ + } + present_ = object.bitmap_&1024 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("provision_error_message") + stream.WriteString(object.provisionErrorMessage) + count++ + } + present_ = object.bitmap_&2048 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("state") + stream.WriteString(string(object.state)) + } + stream.WriteObjectEnd() +} + +// UnmarshalClusterStatus reads a value of the 'cluster_status' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalClusterStatus(source interface{}) (object *ClusterStatus, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadClusterStatus(iterator) + err = iterator.Error + return +} + +// ReadClusterStatus reads a value of the 'cluster_status' type from the given iterator. +func ReadClusterStatus(iterator *jsoniter.Iterator) *ClusterStatus { + object := &ClusterStatus{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "kind": + value := iterator.ReadString() + if value == ClusterStatusLinkKind { + object.bitmap_ |= 1 + } + case "id": + object.id = iterator.ReadString() + object.bitmap_ |= 2 + case "href": + object.href = iterator.ReadString() + object.bitmap_ |= 4 + case "dns_ready": + value := iterator.ReadBool() + object.dnsReady = value + object.bitmap_ |= 8 + case "oidc_ready": + value := iterator.ReadBool() + object.oidcReady = value + object.bitmap_ |= 16 + case "configuration_mode": + text := iterator.ReadString() + value := ClusterConfigurationMode(text) + object.configurationMode = value + object.bitmap_ |= 32 + case "current_compute": + value := iterator.ReadInt() + object.currentCompute = value + object.bitmap_ |= 64 + case "description": + value := iterator.ReadString() + object.description = value + object.bitmap_ |= 128 + case "limited_support_reason_count": + value := iterator.ReadInt() + object.limitedSupportReasonCount = value + object.bitmap_ |= 256 + case "provision_error_code": + value := iterator.ReadString() + object.provisionErrorCode = value + object.bitmap_ |= 512 + case "provision_error_message": + value := iterator.ReadString() + object.provisionErrorMessage = value + object.bitmap_ |= 1024 + case "state": + text := iterator.ReadString() + value := ClusterState(text) + object.state = value + object.bitmap_ |= 2048 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/cluster_type.go b/arohcp/v1alpha1/cluster_type.go new file mode 100644 index 000000000..65577f7cc --- /dev/null +++ b/arohcp/v1alpha1/cluster_type.go @@ -0,0 +1,1739 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + time "time" + + v1 "github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1" +) + +// ClusterKind is the name of the type used to represent objects +// of type 'cluster'. +const ClusterKind = "Cluster" + +// ClusterLinkKind is the name of the type used to represent links +// to objects of type 'cluster'. +const ClusterLinkKind = "ClusterLink" + +// ClusterNilKind is the name of the type used to nil references +// to objects of type 'cluster'. +const ClusterNilKind = "ClusterNil" + +// Cluster represents the values of the 'cluster' type. +// +// Definition of an _OpenShift_ cluster. +// +// The `cloud_provider` attribute is a reference to the cloud provider. When a +// cluster is retrieved it will be a link to the cloud provider, containing only +// the kind, id and href attributes: +// +// ```json +// +// { +// "cloud_provider": { +// "kind": "CloudProviderLink", +// "id": "123", +// "href": "/api/clusters_mgmt/v1/cloud_providers/123" +// } +// } +// +// ``` +// +// When a cluster is created this is optional, and if used it should contain the +// identifier of the cloud provider to use: +// +// ```json +// +// { +// "cloud_provider": { +// "id": "123", +// } +// } +// +// ``` +// +// If not included, then the cluster will be created using the default cloud +// provider, which is currently Amazon Web Services. +// +// The region attribute is mandatory when a cluster is created. +// +// The `aws.access_key_id`, `aws.secret_access_key` and `dns.base_domain` +// attributes are mandatory when creation a cluster with your own Amazon Web +// Services account. +type Cluster struct { + bitmap_ uint64 + id string + href string + api *ClusterAPI + aws *AWS + awsInfrastructureAccessRoleGrants *v1.AWSInfrastructureAccessRoleGrantList + ccs *CCS + dns *DNS + gcp *GCP + gcpEncryptionKey *GCPEncryptionKey + gcpNetwork *GCPNetwork + additionalTrustBundle string + addons *v1.AddOnInstallationList + autoscaler *v1.ClusterAutoscaler + azure *Azure + billingModel BillingModel + byoOidc *ByoOidc + cloudProvider *v1.CloudProvider + console *ClusterConsole + creationTimestamp time.Time + deleteProtection *DeleteProtection + domainPrefix string + expirationTimestamp time.Time + externalID string + externalAuthConfig *ExternalAuthConfig + externalConfiguration *ExternalConfiguration + flavour *v1.Flavour + groups *v1.GroupList + healthState ClusterHealthState + htpasswd *HTPasswdIdentityProvider + hypershift *Hypershift + identityProviders *v1.IdentityProviderList + inflightChecks *v1.InflightCheckList + infraID string + ingresses *v1.IngressList + kubeletConfig *KubeletConfig + loadBalancerQuota int + machinePools *v1.MachinePoolList + managedService *ManagedService + name string + network *Network + nodeDrainGracePeriod *Value + nodePools *v1.NodePoolList + nodes *ClusterNodes + openshiftVersion string + product *v1.Product + properties map[string]string + provisionShard *ProvisionShard + proxy *Proxy + region *v1.CloudRegion + registryConfig *ClusterRegistryConfig + state ClusterState + status *ClusterStatus + storageQuota *Value + subscription *v1.Subscription + version *v1.Version + fips bool + disableUserWorkloadMonitoring bool + etcdEncryption bool + managed bool + multiAZ bool + multiArchEnabled bool +} + +// Kind returns the name of the type of the object. +func (o *Cluster) Kind() string { + if o == nil { + return ClusterNilKind + } + if o.bitmap_&1 != 0 { + return ClusterLinkKind + } + return ClusterKind +} + +// Link returns true if this is a link. +func (o *Cluster) Link() bool { + return o != nil && o.bitmap_&1 != 0 +} + +// ID returns the identifier of the object. +func (o *Cluster) ID() string { + if o != nil && o.bitmap_&2 != 0 { + return o.id + } + return "" +} + +// GetID returns the identifier of the object and a flag indicating if the +// identifier has a value. +func (o *Cluster) GetID() (value string, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.id + } + return +} + +// HREF returns the link to the object. +func (o *Cluster) HREF() string { + if o != nil && o.bitmap_&4 != 0 { + return o.href + } + return "" +} + +// GetHREF returns the link of the object and a flag indicating if the +// link has a value. +func (o *Cluster) GetHREF() (value string, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.href + } + return +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *Cluster) Empty() bool { + return o == nil || o.bitmap_&^1 == 0 +} + +// API returns the value of the 'API' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Information about the API of the cluster. +func (o *Cluster) API() *ClusterAPI { + if o != nil && o.bitmap_&8 != 0 { + return o.api + } + return nil +} + +// GetAPI returns the value of the 'API' attribute and +// a flag indicating if the attribute has a value. +// +// Information about the API of the cluster. +func (o *Cluster) GetAPI() (value *ClusterAPI, ok bool) { + ok = o != nil && o.bitmap_&8 != 0 + if ok { + value = o.api + } + return +} + +// AWS returns the value of the 'AWS' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Amazon Web Services settings of the cluster. +func (o *Cluster) AWS() *AWS { + if o != nil && o.bitmap_&16 != 0 { + return o.aws + } + return nil +} + +// GetAWS returns the value of the 'AWS' attribute and +// a flag indicating if the attribute has a value. +// +// Amazon Web Services settings of the cluster. +func (o *Cluster) GetAWS() (value *AWS, ok bool) { + ok = o != nil && o.bitmap_&16 != 0 + if ok { + value = o.aws + } + return +} + +// AWSInfrastructureAccessRoleGrants returns the value of the 'AWS_infrastructure_access_role_grants' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// List of AWS infrastructure access role grants on this cluster. +func (o *Cluster) AWSInfrastructureAccessRoleGrants() *v1.AWSInfrastructureAccessRoleGrantList { + if o != nil && o.bitmap_&32 != 0 { + return o.awsInfrastructureAccessRoleGrants + } + return nil +} + +// GetAWSInfrastructureAccessRoleGrants returns the value of the 'AWS_infrastructure_access_role_grants' attribute and +// a flag indicating if the attribute has a value. +// +// List of AWS infrastructure access role grants on this cluster. +func (o *Cluster) GetAWSInfrastructureAccessRoleGrants() (value *v1.AWSInfrastructureAccessRoleGrantList, ok bool) { + ok = o != nil && o.bitmap_&32 != 0 + if ok { + value = o.awsInfrastructureAccessRoleGrants + } + return +} + +// CCS returns the value of the 'CCS' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Contains configuration of a Customer Cloud Subscription cluster. +func (o *Cluster) CCS() *CCS { + if o != nil && o.bitmap_&64 != 0 { + return o.ccs + } + return nil +} + +// GetCCS returns the value of the 'CCS' attribute and +// a flag indicating if the attribute has a value. +// +// Contains configuration of a Customer Cloud Subscription cluster. +func (o *Cluster) GetCCS() (value *CCS, ok bool) { + ok = o != nil && o.bitmap_&64 != 0 + if ok { + value = o.ccs + } + return +} + +// DNS returns the value of the 'DNS' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// DNS settings of the cluster. +func (o *Cluster) DNS() *DNS { + if o != nil && o.bitmap_&128 != 0 { + return o.dns + } + return nil +} + +// GetDNS returns the value of the 'DNS' attribute and +// a flag indicating if the attribute has a value. +// +// DNS settings of the cluster. +func (o *Cluster) GetDNS() (value *DNS, ok bool) { + ok = o != nil && o.bitmap_&128 != 0 + if ok { + value = o.dns + } + return +} + +// FIPS returns the value of the 'FIPS' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Create cluster that uses FIPS Validated / Modules in Process cryptographic libraries. +func (o *Cluster) FIPS() bool { + if o != nil && o.bitmap_&256 != 0 { + return o.fips + } + return false +} + +// GetFIPS returns the value of the 'FIPS' attribute and +// a flag indicating if the attribute has a value. +// +// Create cluster that uses FIPS Validated / Modules in Process cryptographic libraries. +func (o *Cluster) GetFIPS() (value bool, ok bool) { + ok = o != nil && o.bitmap_&256 != 0 + if ok { + value = o.fips + } + return +} + +// GCP returns the value of the 'GCP' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Google cloud platform settings of the cluster. +func (o *Cluster) GCP() *GCP { + if o != nil && o.bitmap_&512 != 0 { + return o.gcp + } + return nil +} + +// GetGCP returns the value of the 'GCP' attribute and +// a flag indicating if the attribute has a value. +// +// Google cloud platform settings of the cluster. +func (o *Cluster) GetGCP() (value *GCP, ok bool) { + ok = o != nil && o.bitmap_&512 != 0 + if ok { + value = o.gcp + } + return +} + +// GCPEncryptionKey returns the value of the 'GCP_encryption_key' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Key used for encryption of GCP cluster nodes. +func (o *Cluster) GCPEncryptionKey() *GCPEncryptionKey { + if o != nil && o.bitmap_&1024 != 0 { + return o.gcpEncryptionKey + } + return nil +} + +// GetGCPEncryptionKey returns the value of the 'GCP_encryption_key' attribute and +// a flag indicating if the attribute has a value. +// +// Key used for encryption of GCP cluster nodes. +func (o *Cluster) GetGCPEncryptionKey() (value *GCPEncryptionKey, ok bool) { + ok = o != nil && o.bitmap_&1024 != 0 + if ok { + value = o.gcpEncryptionKey + } + return +} + +// GCPNetwork returns the value of the 'GCP_network' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// GCP Network. +func (o *Cluster) GCPNetwork() *GCPNetwork { + if o != nil && o.bitmap_&2048 != 0 { + return o.gcpNetwork + } + return nil +} + +// GetGCPNetwork returns the value of the 'GCP_network' attribute and +// a flag indicating if the attribute has a value. +// +// GCP Network. +func (o *Cluster) GetGCPNetwork() (value *GCPNetwork, ok bool) { + ok = o != nil && o.bitmap_&2048 != 0 + if ok { + value = o.gcpNetwork + } + return +} + +// AdditionalTrustBundle returns the value of the 'additional_trust_bundle' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Additional trust bundle. +func (o *Cluster) AdditionalTrustBundle() string { + if o != nil && o.bitmap_&4096 != 0 { + return o.additionalTrustBundle + } + return "" +} + +// GetAdditionalTrustBundle returns the value of the 'additional_trust_bundle' attribute and +// a flag indicating if the attribute has a value. +// +// Additional trust bundle. +func (o *Cluster) GetAdditionalTrustBundle() (value string, ok bool) { + ok = o != nil && o.bitmap_&4096 != 0 + if ok { + value = o.additionalTrustBundle + } + return +} + +// Addons returns the value of the 'addons' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// List of add-ons on this cluster. +func (o *Cluster) Addons() *v1.AddOnInstallationList { + if o != nil && o.bitmap_&8192 != 0 { + return o.addons + } + return nil +} + +// GetAddons returns the value of the 'addons' attribute and +// a flag indicating if the attribute has a value. +// +// List of add-ons on this cluster. +func (o *Cluster) GetAddons() (value *v1.AddOnInstallationList, ok bool) { + ok = o != nil && o.bitmap_&8192 != 0 + if ok { + value = o.addons + } + return +} + +// Autoscaler returns the value of the 'autoscaler' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Link to an optional _ClusterAutoscaler_ that is coupled with the cluster. +func (o *Cluster) Autoscaler() *v1.ClusterAutoscaler { + if o != nil && o.bitmap_&16384 != 0 { + return o.autoscaler + } + return nil +} + +// GetAutoscaler returns the value of the 'autoscaler' attribute and +// a flag indicating if the attribute has a value. +// +// Link to an optional _ClusterAutoscaler_ that is coupled with the cluster. +func (o *Cluster) GetAutoscaler() (value *v1.ClusterAutoscaler, ok bool) { + ok = o != nil && o.bitmap_&16384 != 0 + if ok { + value = o.autoscaler + } + return +} + +// Azure returns the value of the 'azure' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Microsoft Azure settings of the cluster. +func (o *Cluster) Azure() *Azure { + if o != nil && o.bitmap_&32768 != 0 { + return o.azure + } + return nil +} + +// GetAzure returns the value of the 'azure' attribute and +// a flag indicating if the attribute has a value. +// +// Microsoft Azure settings of the cluster. +func (o *Cluster) GetAzure() (value *Azure, ok bool) { + ok = o != nil && o.bitmap_&32768 != 0 + if ok { + value = o.azure + } + return +} + +// BillingModel returns the value of the 'billing_model' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Billing model for cluster resources. +func (o *Cluster) BillingModel() BillingModel { + if o != nil && o.bitmap_&65536 != 0 { + return o.billingModel + } + return BillingModel("") +} + +// GetBillingModel returns the value of the 'billing_model' attribute and +// a flag indicating if the attribute has a value. +// +// Billing model for cluster resources. +func (o *Cluster) GetBillingModel() (value BillingModel, ok bool) { + ok = o != nil && o.bitmap_&65536 != 0 + if ok { + value = o.billingModel + } + return +} + +// ByoOidc returns the value of the 'byo_oidc' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Contains information about BYO OIDC. +func (o *Cluster) ByoOidc() *ByoOidc { + if o != nil && o.bitmap_&131072 != 0 { + return o.byoOidc + } + return nil +} + +// GetByoOidc returns the value of the 'byo_oidc' attribute and +// a flag indicating if the attribute has a value. +// +// Contains information about BYO OIDC. +func (o *Cluster) GetByoOidc() (value *ByoOidc, ok bool) { + ok = o != nil && o.bitmap_&131072 != 0 + if ok { + value = o.byoOidc + } + return +} + +// CloudProvider returns the value of the 'cloud_provider' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Link to the cloud provider where the cluster is installed. +func (o *Cluster) CloudProvider() *v1.CloudProvider { + if o != nil && o.bitmap_&262144 != 0 { + return o.cloudProvider + } + return nil +} + +// GetCloudProvider returns the value of the 'cloud_provider' attribute and +// a flag indicating if the attribute has a value. +// +// Link to the cloud provider where the cluster is installed. +func (o *Cluster) GetCloudProvider() (value *v1.CloudProvider, ok bool) { + ok = o != nil && o.bitmap_&262144 != 0 + if ok { + value = o.cloudProvider + } + return +} + +// Console returns the value of the 'console' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Information about the console of the cluster. +func (o *Cluster) Console() *ClusterConsole { + if o != nil && o.bitmap_&524288 != 0 { + return o.console + } + return nil +} + +// GetConsole returns the value of the 'console' attribute and +// a flag indicating if the attribute has a value. +// +// Information about the console of the cluster. +func (o *Cluster) GetConsole() (value *ClusterConsole, ok bool) { + ok = o != nil && o.bitmap_&524288 != 0 + if ok { + value = o.console + } + return +} + +// CreationTimestamp returns the value of the 'creation_timestamp' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Date and time when the cluster was initially created, using the +// format defined in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt). +func (o *Cluster) CreationTimestamp() time.Time { + if o != nil && o.bitmap_&1048576 != 0 { + return o.creationTimestamp + } + return time.Time{} +} + +// GetCreationTimestamp returns the value of the 'creation_timestamp' attribute and +// a flag indicating if the attribute has a value. +// +// Date and time when the cluster was initially created, using the +// format defined in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt). +func (o *Cluster) GetCreationTimestamp() (value time.Time, ok bool) { + ok = o != nil && o.bitmap_&1048576 != 0 + if ok { + value = o.creationTimestamp + } + return +} + +// DeleteProtection returns the value of the 'delete_protection' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Delete protection +func (o *Cluster) DeleteProtection() *DeleteProtection { + if o != nil && o.bitmap_&2097152 != 0 { + return o.deleteProtection + } + return nil +} + +// GetDeleteProtection returns the value of the 'delete_protection' attribute and +// a flag indicating if the attribute has a value. +// +// Delete protection +func (o *Cluster) GetDeleteProtection() (value *DeleteProtection, ok bool) { + ok = o != nil && o.bitmap_&2097152 != 0 + if ok { + value = o.deleteProtection + } + return +} + +// DisableUserWorkloadMonitoring returns the value of the 'disable_user_workload_monitoring' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Indicates whether the User workload monitoring is enabled or not +// It is enabled by default +func (o *Cluster) DisableUserWorkloadMonitoring() bool { + if o != nil && o.bitmap_&4194304 != 0 { + return o.disableUserWorkloadMonitoring + } + return false +} + +// GetDisableUserWorkloadMonitoring returns the value of the 'disable_user_workload_monitoring' attribute and +// a flag indicating if the attribute has a value. +// +// Indicates whether the User workload monitoring is enabled or not +// It is enabled by default +func (o *Cluster) GetDisableUserWorkloadMonitoring() (value bool, ok bool) { + ok = o != nil && o.bitmap_&4194304 != 0 + if ok { + value = o.disableUserWorkloadMonitoring + } + return +} + +// DomainPrefix returns the value of the 'domain_prefix' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// DomainPrefix of the cluster. This prefix is optionally assigned by the user when the +// cluster is created. It will appear in the Cluster's domain when the cluster is provisioned. +func (o *Cluster) DomainPrefix() string { + if o != nil && o.bitmap_&8388608 != 0 { + return o.domainPrefix + } + return "" +} + +// GetDomainPrefix returns the value of the 'domain_prefix' attribute and +// a flag indicating if the attribute has a value. +// +// DomainPrefix of the cluster. This prefix is optionally assigned by the user when the +// cluster is created. It will appear in the Cluster's domain when the cluster is provisioned. +func (o *Cluster) GetDomainPrefix() (value string, ok bool) { + ok = o != nil && o.bitmap_&8388608 != 0 + if ok { + value = o.domainPrefix + } + return +} + +// EtcdEncryption returns the value of the 'etcd_encryption' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Indicates whether that etcd is encrypted or not. +// This is set only during cluster creation. +func (o *Cluster) EtcdEncryption() bool { + if o != nil && o.bitmap_&16777216 != 0 { + return o.etcdEncryption + } + return false +} + +// GetEtcdEncryption returns the value of the 'etcd_encryption' attribute and +// a flag indicating if the attribute has a value. +// +// Indicates whether that etcd is encrypted or not. +// This is set only during cluster creation. +func (o *Cluster) GetEtcdEncryption() (value bool, ok bool) { + ok = o != nil && o.bitmap_&16777216 != 0 + if ok { + value = o.etcdEncryption + } + return +} + +// ExpirationTimestamp returns the value of the 'expiration_timestamp' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Date and time when the cluster will be automatically deleted, using the format defined in +// [RFC3339](https://www.ietf.org/rfc/rfc3339.txt). If no timestamp is provided, the cluster +// will never expire. +// +// This option is unsupported. +func (o *Cluster) ExpirationTimestamp() time.Time { + if o != nil && o.bitmap_&33554432 != 0 { + return o.expirationTimestamp + } + return time.Time{} +} + +// GetExpirationTimestamp returns the value of the 'expiration_timestamp' attribute and +// a flag indicating if the attribute has a value. +// +// Date and time when the cluster will be automatically deleted, using the format defined in +// [RFC3339](https://www.ietf.org/rfc/rfc3339.txt). If no timestamp is provided, the cluster +// will never expire. +// +// This option is unsupported. +func (o *Cluster) GetExpirationTimestamp() (value time.Time, ok bool) { + ok = o != nil && o.bitmap_&33554432 != 0 + if ok { + value = o.expirationTimestamp + } + return +} + +// ExternalID returns the value of the 'external_ID' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// External identifier of the cluster, generated by the installer. +func (o *Cluster) ExternalID() string { + if o != nil && o.bitmap_&67108864 != 0 { + return o.externalID + } + return "" +} + +// GetExternalID returns the value of the 'external_ID' attribute and +// a flag indicating if the attribute has a value. +// +// External identifier of the cluster, generated by the installer. +func (o *Cluster) GetExternalID() (value string, ok bool) { + ok = o != nil && o.bitmap_&67108864 != 0 + if ok { + value = o.externalID + } + return +} + +// ExternalAuthConfig returns the value of the 'external_auth_config' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// External authentication configuration +func (o *Cluster) ExternalAuthConfig() *ExternalAuthConfig { + if o != nil && o.bitmap_&134217728 != 0 { + return o.externalAuthConfig + } + return nil +} + +// GetExternalAuthConfig returns the value of the 'external_auth_config' attribute and +// a flag indicating if the attribute has a value. +// +// External authentication configuration +func (o *Cluster) GetExternalAuthConfig() (value *ExternalAuthConfig, ok bool) { + ok = o != nil && o.bitmap_&134217728 != 0 + if ok { + value = o.externalAuthConfig + } + return +} + +// ExternalConfiguration returns the value of the 'external_configuration' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// ExternalConfiguration shows external configuration on the cluster. +func (o *Cluster) ExternalConfiguration() *ExternalConfiguration { + if o != nil && o.bitmap_&268435456 != 0 { + return o.externalConfiguration + } + return nil +} + +// GetExternalConfiguration returns the value of the 'external_configuration' attribute and +// a flag indicating if the attribute has a value. +// +// ExternalConfiguration shows external configuration on the cluster. +func (o *Cluster) GetExternalConfiguration() (value *ExternalConfiguration, ok bool) { + ok = o != nil && o.bitmap_&268435456 != 0 + if ok { + value = o.externalConfiguration + } + return +} + +// Flavour returns the value of the 'flavour' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Link to the _flavour_ that was used to create the cluster. +func (o *Cluster) Flavour() *v1.Flavour { + if o != nil && o.bitmap_&536870912 != 0 { + return o.flavour + } + return nil +} + +// GetFlavour returns the value of the 'flavour' attribute and +// a flag indicating if the attribute has a value. +// +// Link to the _flavour_ that was used to create the cluster. +func (o *Cluster) GetFlavour() (value *v1.Flavour, ok bool) { + ok = o != nil && o.bitmap_&536870912 != 0 + if ok { + value = o.flavour + } + return +} + +// Groups returns the value of the 'groups' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Link to the collection of groups of user of the cluster. +func (o *Cluster) Groups() *v1.GroupList { + if o != nil && o.bitmap_&1073741824 != 0 { + return o.groups + } + return nil +} + +// GetGroups returns the value of the 'groups' attribute and +// a flag indicating if the attribute has a value. +// +// Link to the collection of groups of user of the cluster. +func (o *Cluster) GetGroups() (value *v1.GroupList, ok bool) { + ok = o != nil && o.bitmap_&1073741824 != 0 + if ok { + value = o.groups + } + return +} + +// HealthState returns the value of the 'health_state' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// HealthState indicates the overall health state of the cluster. +func (o *Cluster) HealthState() ClusterHealthState { + if o != nil && o.bitmap_&2147483648 != 0 { + return o.healthState + } + return ClusterHealthState("") +} + +// GetHealthState returns the value of the 'health_state' attribute and +// a flag indicating if the attribute has a value. +// +// HealthState indicates the overall health state of the cluster. +func (o *Cluster) GetHealthState() (value ClusterHealthState, ok bool) { + ok = o != nil && o.bitmap_&2147483648 != 0 + if ok { + value = o.healthState + } + return +} + +// Htpasswd returns the value of the 'htpasswd' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Details for `htpasswd` identity provider. +func (o *Cluster) Htpasswd() *HTPasswdIdentityProvider { + if o != nil && o.bitmap_&4294967296 != 0 { + return o.htpasswd + } + return nil +} + +// GetHtpasswd returns the value of the 'htpasswd' attribute and +// a flag indicating if the attribute has a value. +// +// Details for `htpasswd` identity provider. +func (o *Cluster) GetHtpasswd() (value *HTPasswdIdentityProvider, ok bool) { + ok = o != nil && o.bitmap_&4294967296 != 0 + if ok { + value = o.htpasswd + } + return +} + +// Hypershift returns the value of the 'hypershift' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Hypershift configuration. +func (o *Cluster) Hypershift() *Hypershift { + if o != nil && o.bitmap_&8589934592 != 0 { + return o.hypershift + } + return nil +} + +// GetHypershift returns the value of the 'hypershift' attribute and +// a flag indicating if the attribute has a value. +// +// Hypershift configuration. +func (o *Cluster) GetHypershift() (value *Hypershift, ok bool) { + ok = o != nil && o.bitmap_&8589934592 != 0 + if ok { + value = o.hypershift + } + return +} + +// IdentityProviders returns the value of the 'identity_providers' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Link to the collection of identity providers of the cluster. +func (o *Cluster) IdentityProviders() *v1.IdentityProviderList { + if o != nil && o.bitmap_&17179869184 != 0 { + return o.identityProviders + } + return nil +} + +// GetIdentityProviders returns the value of the 'identity_providers' attribute and +// a flag indicating if the attribute has a value. +// +// Link to the collection of identity providers of the cluster. +func (o *Cluster) GetIdentityProviders() (value *v1.IdentityProviderList, ok bool) { + ok = o != nil && o.bitmap_&17179869184 != 0 + if ok { + value = o.identityProviders + } + return +} + +// InflightChecks returns the value of the 'inflight_checks' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// List of inflight checks on this cluster. +func (o *Cluster) InflightChecks() *v1.InflightCheckList { + if o != nil && o.bitmap_&34359738368 != 0 { + return o.inflightChecks + } + return nil +} + +// GetInflightChecks returns the value of the 'inflight_checks' attribute and +// a flag indicating if the attribute has a value. +// +// List of inflight checks on this cluster. +func (o *Cluster) GetInflightChecks() (value *v1.InflightCheckList, ok bool) { + ok = o != nil && o.bitmap_&34359738368 != 0 + if ok { + value = o.inflightChecks + } + return +} + +// InfraID returns the value of the 'infra_ID' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// InfraID is used for example to name the VPCs. +func (o *Cluster) InfraID() string { + if o != nil && o.bitmap_&68719476736 != 0 { + return o.infraID + } + return "" +} + +// GetInfraID returns the value of the 'infra_ID' attribute and +// a flag indicating if the attribute has a value. +// +// InfraID is used for example to name the VPCs. +func (o *Cluster) GetInfraID() (value string, ok bool) { + ok = o != nil && o.bitmap_&68719476736 != 0 + if ok { + value = o.infraID + } + return +} + +// Ingresses returns the value of the 'ingresses' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// List of ingresses on this cluster. +func (o *Cluster) Ingresses() *v1.IngressList { + if o != nil && o.bitmap_&137438953472 != 0 { + return o.ingresses + } + return nil +} + +// GetIngresses returns the value of the 'ingresses' attribute and +// a flag indicating if the attribute has a value. +// +// List of ingresses on this cluster. +func (o *Cluster) GetIngresses() (value *v1.IngressList, ok bool) { + ok = o != nil && o.bitmap_&137438953472 != 0 + if ok { + value = o.ingresses + } + return +} + +// KubeletConfig returns the value of the 'kubelet_config' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Details of cluster-wide KubeletConfig +func (o *Cluster) KubeletConfig() *KubeletConfig { + if o != nil && o.bitmap_&274877906944 != 0 { + return o.kubeletConfig + } + return nil +} + +// GetKubeletConfig returns the value of the 'kubelet_config' attribute and +// a flag indicating if the attribute has a value. +// +// Details of cluster-wide KubeletConfig +func (o *Cluster) GetKubeletConfig() (value *KubeletConfig, ok bool) { + ok = o != nil && o.bitmap_&274877906944 != 0 + if ok { + value = o.kubeletConfig + } + return +} + +// LoadBalancerQuota returns the value of the 'load_balancer_quota' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Load Balancer quota to be assigned to the cluster. +func (o *Cluster) LoadBalancerQuota() int { + if o != nil && o.bitmap_&549755813888 != 0 { + return o.loadBalancerQuota + } + return 0 +} + +// GetLoadBalancerQuota returns the value of the 'load_balancer_quota' attribute and +// a flag indicating if the attribute has a value. +// +// Load Balancer quota to be assigned to the cluster. +func (o *Cluster) GetLoadBalancerQuota() (value int, ok bool) { + ok = o != nil && o.bitmap_&549755813888 != 0 + if ok { + value = o.loadBalancerQuota + } + return +} + +// MachinePools returns the value of the 'machine_pools' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// List of machine pools on this cluster. +func (o *Cluster) MachinePools() *v1.MachinePoolList { + if o != nil && o.bitmap_&1099511627776 != 0 { + return o.machinePools + } + return nil +} + +// GetMachinePools returns the value of the 'machine_pools' attribute and +// a flag indicating if the attribute has a value. +// +// List of machine pools on this cluster. +func (o *Cluster) GetMachinePools() (value *v1.MachinePoolList, ok bool) { + ok = o != nil && o.bitmap_&1099511627776 != 0 + if ok { + value = o.machinePools + } + return +} + +// Managed returns the value of the 'managed' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Flag indicating if the cluster is managed (by Red Hat) or +// self-managed by the user. +func (o *Cluster) Managed() bool { + if o != nil && o.bitmap_&2199023255552 != 0 { + return o.managed + } + return false +} + +// GetManaged returns the value of the 'managed' attribute and +// a flag indicating if the attribute has a value. +// +// Flag indicating if the cluster is managed (by Red Hat) or +// self-managed by the user. +func (o *Cluster) GetManaged() (value bool, ok bool) { + ok = o != nil && o.bitmap_&2199023255552 != 0 + if ok { + value = o.managed + } + return +} + +// ManagedService returns the value of the 'managed_service' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Contains information about Managed Service +func (o *Cluster) ManagedService() *ManagedService { + if o != nil && o.bitmap_&4398046511104 != 0 { + return o.managedService + } + return nil +} + +// GetManagedService returns the value of the 'managed_service' attribute and +// a flag indicating if the attribute has a value. +// +// Contains information about Managed Service +func (o *Cluster) GetManagedService() (value *ManagedService, ok bool) { + ok = o != nil && o.bitmap_&4398046511104 != 0 + if ok { + value = o.managedService + } + return +} + +// MultiAZ returns the value of the 'multi_AZ' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Flag indicating if the cluster should be created with nodes in +// different availability zones or all the nodes in a single one +// randomly selected. +func (o *Cluster) MultiAZ() bool { + if o != nil && o.bitmap_&8796093022208 != 0 { + return o.multiAZ + } + return false +} + +// GetMultiAZ returns the value of the 'multi_AZ' attribute and +// a flag indicating if the attribute has a value. +// +// Flag indicating if the cluster should be created with nodes in +// different availability zones or all the nodes in a single one +// randomly selected. +func (o *Cluster) GetMultiAZ() (value bool, ok bool) { + ok = o != nil && o.bitmap_&8796093022208 != 0 + if ok { + value = o.multiAZ + } + return +} + +// MultiArchEnabled returns the value of the 'multi_arch_enabled' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Indicate whether the cluster is enabled for multi arch workers +func (o *Cluster) MultiArchEnabled() bool { + if o != nil && o.bitmap_&17592186044416 != 0 { + return o.multiArchEnabled + } + return false +} + +// GetMultiArchEnabled returns the value of the 'multi_arch_enabled' attribute and +// a flag indicating if the attribute has a value. +// +// Indicate whether the cluster is enabled for multi arch workers +func (o *Cluster) GetMultiArchEnabled() (value bool, ok bool) { + ok = o != nil && o.bitmap_&17592186044416 != 0 + if ok { + value = o.multiArchEnabled + } + return +} + +// Name returns the value of the 'name' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Name of the cluster. This name is assigned by the user when the +// cluster is created. This is used to uniquely identify the cluster +func (o *Cluster) Name() string { + if o != nil && o.bitmap_&35184372088832 != 0 { + return o.name + } + return "" +} + +// GetName returns the value of the 'name' attribute and +// a flag indicating if the attribute has a value. +// +// Name of the cluster. This name is assigned by the user when the +// cluster is created. This is used to uniquely identify the cluster +func (o *Cluster) GetName() (value string, ok bool) { + ok = o != nil && o.bitmap_&35184372088832 != 0 + if ok { + value = o.name + } + return +} + +// Network returns the value of the 'network' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Network settings of the cluster. +func (o *Cluster) Network() *Network { + if o != nil && o.bitmap_&70368744177664 != 0 { + return o.network + } + return nil +} + +// GetNetwork returns the value of the 'network' attribute and +// a flag indicating if the attribute has a value. +// +// Network settings of the cluster. +func (o *Cluster) GetNetwork() (value *Network, ok bool) { + ok = o != nil && o.bitmap_&70368744177664 != 0 + if ok { + value = o.network + } + return +} + +// NodeDrainGracePeriod returns the value of the 'node_drain_grace_period' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Node drain grace period. +func (o *Cluster) NodeDrainGracePeriod() *Value { + if o != nil && o.bitmap_&140737488355328 != 0 { + return o.nodeDrainGracePeriod + } + return nil +} + +// GetNodeDrainGracePeriod returns the value of the 'node_drain_grace_period' attribute and +// a flag indicating if the attribute has a value. +// +// Node drain grace period. +func (o *Cluster) GetNodeDrainGracePeriod() (value *Value, ok bool) { + ok = o != nil && o.bitmap_&140737488355328 != 0 + if ok { + value = o.nodeDrainGracePeriod + } + return +} + +// NodePools returns the value of the 'node_pools' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// List of node pools on this cluster. +// NodePool is a scalable set of worker nodes attached to a hosted cluster. +func (o *Cluster) NodePools() *v1.NodePoolList { + if o != nil && o.bitmap_&281474976710656 != 0 { + return o.nodePools + } + return nil +} + +// GetNodePools returns the value of the 'node_pools' attribute and +// a flag indicating if the attribute has a value. +// +// List of node pools on this cluster. +// NodePool is a scalable set of worker nodes attached to a hosted cluster. +func (o *Cluster) GetNodePools() (value *v1.NodePoolList, ok bool) { + ok = o != nil && o.bitmap_&281474976710656 != 0 + if ok { + value = o.nodePools + } + return +} + +// Nodes returns the value of the 'nodes' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Information about the nodes of the cluster. +func (o *Cluster) Nodes() *ClusterNodes { + if o != nil && o.bitmap_&562949953421312 != 0 { + return o.nodes + } + return nil +} + +// GetNodes returns the value of the 'nodes' attribute and +// a flag indicating if the attribute has a value. +// +// Information about the nodes of the cluster. +func (o *Cluster) GetNodes() (value *ClusterNodes, ok bool) { + ok = o != nil && o.bitmap_&562949953421312 != 0 + if ok { + value = o.nodes + } + return +} + +// OpenshiftVersion returns the value of the 'openshift_version' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Version of _OpenShift_ installed in the cluster, for example `4.0.0-0.2`. +// +// When retrieving a cluster this will always be reported. +// +// When provisioning a cluster this will be ignored, as the version to +// deploy will be determined internally. +func (o *Cluster) OpenshiftVersion() string { + if o != nil && o.bitmap_&1125899906842624 != 0 { + return o.openshiftVersion + } + return "" +} + +// GetOpenshiftVersion returns the value of the 'openshift_version' attribute and +// a flag indicating if the attribute has a value. +// +// Version of _OpenShift_ installed in the cluster, for example `4.0.0-0.2`. +// +// When retrieving a cluster this will always be reported. +// +// When provisioning a cluster this will be ignored, as the version to +// deploy will be determined internally. +func (o *Cluster) GetOpenshiftVersion() (value string, ok bool) { + ok = o != nil && o.bitmap_&1125899906842624 != 0 + if ok { + value = o.openshiftVersion + } + return +} + +// Product returns the value of the 'product' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Link to the product type of this cluster. +func (o *Cluster) Product() *v1.Product { + if o != nil && o.bitmap_&2251799813685248 != 0 { + return o.product + } + return nil +} + +// GetProduct returns the value of the 'product' attribute and +// a flag indicating if the attribute has a value. +// +// Link to the product type of this cluster. +func (o *Cluster) GetProduct() (value *v1.Product, ok bool) { + ok = o != nil && o.bitmap_&2251799813685248 != 0 + if ok { + value = o.product + } + return +} + +// Properties returns the value of the 'properties' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// User defined properties for tagging and querying. +func (o *Cluster) Properties() map[string]string { + if o != nil && o.bitmap_&4503599627370496 != 0 { + return o.properties + } + return nil +} + +// GetProperties returns the value of the 'properties' attribute and +// a flag indicating if the attribute has a value. +// +// User defined properties for tagging and querying. +func (o *Cluster) GetProperties() (value map[string]string, ok bool) { + ok = o != nil && o.bitmap_&4503599627370496 != 0 + if ok { + value = o.properties + } + return +} + +// ProvisionShard returns the value of the 'provision_shard' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// ProvisionShard contains the properties of the provision shard, including AWS and GCP related configurations +func (o *Cluster) ProvisionShard() *ProvisionShard { + if o != nil && o.bitmap_&9007199254740992 != 0 { + return o.provisionShard + } + return nil +} + +// GetProvisionShard returns the value of the 'provision_shard' attribute and +// a flag indicating if the attribute has a value. +// +// ProvisionShard contains the properties of the provision shard, including AWS and GCP related configurations +func (o *Cluster) GetProvisionShard() (value *ProvisionShard, ok bool) { + ok = o != nil && o.bitmap_&9007199254740992 != 0 + if ok { + value = o.provisionShard + } + return +} + +// Proxy returns the value of the 'proxy' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Proxy. +func (o *Cluster) Proxy() *Proxy { + if o != nil && o.bitmap_&18014398509481984 != 0 { + return o.proxy + } + return nil +} + +// GetProxy returns the value of the 'proxy' attribute and +// a flag indicating if the attribute has a value. +// +// Proxy. +func (o *Cluster) GetProxy() (value *Proxy, ok bool) { + ok = o != nil && o.bitmap_&18014398509481984 != 0 + if ok { + value = o.proxy + } + return +} + +// Region returns the value of the 'region' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Link to the cloud provider region where the cluster is installed. +func (o *Cluster) Region() *v1.CloudRegion { + if o != nil && o.bitmap_&36028797018963968 != 0 { + return o.region + } + return nil +} + +// GetRegion returns the value of the 'region' attribute and +// a flag indicating if the attribute has a value. +// +// Link to the cloud provider region where the cluster is installed. +func (o *Cluster) GetRegion() (value *v1.CloudRegion, ok bool) { + ok = o != nil && o.bitmap_&36028797018963968 != 0 + if ok { + value = o.region + } + return +} + +// RegistryConfig returns the value of the 'registry_config' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Registry configuration for the cluster +func (o *Cluster) RegistryConfig() *ClusterRegistryConfig { + if o != nil && o.bitmap_&72057594037927936 != 0 { + return o.registryConfig + } + return nil +} + +// GetRegistryConfig returns the value of the 'registry_config' attribute and +// a flag indicating if the attribute has a value. +// +// Registry configuration for the cluster +func (o *Cluster) GetRegistryConfig() (value *ClusterRegistryConfig, ok bool) { + ok = o != nil && o.bitmap_&72057594037927936 != 0 + if ok { + value = o.registryConfig + } + return +} + +// State returns the value of the 'state' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Overall state of the cluster. +func (o *Cluster) State() ClusterState { + if o != nil && o.bitmap_&144115188075855872 != 0 { + return o.state + } + return ClusterState("") +} + +// GetState returns the value of the 'state' attribute and +// a flag indicating if the attribute has a value. +// +// Overall state of the cluster. +func (o *Cluster) GetState() (value ClusterState, ok bool) { + ok = o != nil && o.bitmap_&144115188075855872 != 0 + if ok { + value = o.state + } + return +} + +// Status returns the value of the 'status' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Status of cluster +func (o *Cluster) Status() *ClusterStatus { + if o != nil && o.bitmap_&288230376151711744 != 0 { + return o.status + } + return nil +} + +// GetStatus returns the value of the 'status' attribute and +// a flag indicating if the attribute has a value. +// +// Status of cluster +func (o *Cluster) GetStatus() (value *ClusterStatus, ok bool) { + ok = o != nil && o.bitmap_&288230376151711744 != 0 + if ok { + value = o.status + } + return +} + +// StorageQuota returns the value of the 'storage_quota' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Storage quota to be assigned to the cluster. +func (o *Cluster) StorageQuota() *Value { + if o != nil && o.bitmap_&576460752303423488 != 0 { + return o.storageQuota + } + return nil +} + +// GetStorageQuota returns the value of the 'storage_quota' attribute and +// a flag indicating if the attribute has a value. +// +// Storage quota to be assigned to the cluster. +func (o *Cluster) GetStorageQuota() (value *Value, ok bool) { + ok = o != nil && o.bitmap_&576460752303423488 != 0 + if ok { + value = o.storageQuota + } + return +} + +// Subscription returns the value of the 'subscription' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Link to the subscription that comes from the account management service when the cluster +// is registered. +func (o *Cluster) Subscription() *v1.Subscription { + if o != nil && o.bitmap_&1152921504606846976 != 0 { + return o.subscription + } + return nil +} + +// GetSubscription returns the value of the 'subscription' attribute and +// a flag indicating if the attribute has a value. +// +// Link to the subscription that comes from the account management service when the cluster +// is registered. +func (o *Cluster) GetSubscription() (value *v1.Subscription, ok bool) { + ok = o != nil && o.bitmap_&1152921504606846976 != 0 + if ok { + value = o.subscription + } + return +} + +// Version returns the value of the 'version' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Link to the version of _OpenShift_ that will be used to install the cluster. +func (o *Cluster) Version() *v1.Version { + if o != nil && o.bitmap_&2305843009213693952 != 0 { + return o.version + } + return nil +} + +// GetVersion returns the value of the 'version' attribute and +// a flag indicating if the attribute has a value. +// +// Link to the version of _OpenShift_ that will be used to install the cluster. +func (o *Cluster) GetVersion() (value *v1.Version, ok bool) { + ok = o != nil && o.bitmap_&2305843009213693952 != 0 + if ok { + value = o.version + } + return +} + +// ClusterListKind is the name of the type used to represent list of objects of +// type 'cluster'. +const ClusterListKind = "ClusterList" + +// ClusterListLinkKind is the name of the type used to represent links to list +// of objects of type 'cluster'. +const ClusterListLinkKind = "ClusterListLink" + +// ClusterNilKind is the name of the type used to nil lists of objects of +// type 'cluster'. +const ClusterListNilKind = "ClusterListNil" + +// ClusterList is a list of values of the 'cluster' type. +type ClusterList struct { + href string + link bool + items []*Cluster +} + +// Kind returns the name of the type of the object. +func (l *ClusterList) Kind() string { + if l == nil { + return ClusterListNilKind + } + if l.link { + return ClusterListLinkKind + } + return ClusterListKind +} + +// Link returns true iif this is a link. +func (l *ClusterList) Link() bool { + return l != nil && l.link +} + +// HREF returns the link to the list. +func (l *ClusterList) HREF() string { + if l != nil { + return l.href + } + return "" +} + +// GetHREF returns the link of the list and a flag indicating if the +// link has a value. +func (l *ClusterList) GetHREF() (value string, ok bool) { + ok = l != nil && l.href != "" + if ok { + value = l.href + } + return +} + +// Len returns the length of the list. +func (l *ClusterList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *ClusterList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterList) SetItems(items []*Cluster) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterList) Items() []*Cluster { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *ClusterList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *ClusterList) Get(i int) *Cluster { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *ClusterList) Slice() []*Cluster { + var slice []*Cluster + if l == nil { + slice = make([]*Cluster, 0) + } else { + slice = make([]*Cluster, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *ClusterList) Each(f func(item *Cluster) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *ClusterList) Range(f func(index int, item *Cluster) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/cluster_type_json.go b/arohcp/v1alpha1/cluster_type_json.go new file mode 100644 index 000000000..4ddfb89e8 --- /dev/null +++ b/arohcp/v1alpha1/cluster_type_json.go @@ -0,0 +1,1076 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + "sort" + "time" + + jsoniter "github.com/json-iterator/go" + v1 "github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalCluster writes a value of the 'cluster' type to the given writer. +func MarshalCluster(object *Cluster, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteCluster(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteCluster writes a value of the 'cluster' type to the given stream. +func WriteCluster(object *Cluster, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + stream.WriteObjectField("kind") + if object.bitmap_&1 != 0 { + stream.WriteString(ClusterLinkKind) + } else { + stream.WriteString(ClusterKind) + } + count++ + if object.bitmap_&2 != 0 { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("id") + stream.WriteString(object.id) + count++ + } + if object.bitmap_&4 != 0 { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("href") + stream.WriteString(object.href) + count++ + } + var present_ bool + present_ = object.bitmap_&8 != 0 && object.api != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("api") + WriteClusterAPI(object.api, stream) + count++ + } + present_ = object.bitmap_&16 != 0 && object.aws != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("aws") + WriteAWS(object.aws, stream) + count++ + } + present_ = object.bitmap_&32 != 0 && object.awsInfrastructureAccessRoleGrants != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("aws_infrastructure_access_role_grants") + stream.WriteObjectStart() + stream.WriteObjectField("items") + v1.WriteAWSInfrastructureAccessRoleGrantList(object.awsInfrastructureAccessRoleGrants.Items(), stream) + stream.WriteObjectEnd() + count++ + } + present_ = object.bitmap_&64 != 0 && object.ccs != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("ccs") + WriteCCS(object.ccs, stream) + count++ + } + present_ = object.bitmap_&128 != 0 && object.dns != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("dns") + WriteDNS(object.dns, stream) + count++ + } + present_ = object.bitmap_&256 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("fips") + stream.WriteBool(object.fips) + count++ + } + present_ = object.bitmap_&512 != 0 && object.gcp != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("gcp") + WriteGCP(object.gcp, stream) + count++ + } + present_ = object.bitmap_&1024 != 0 && object.gcpEncryptionKey != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("gcp_encryption_key") + WriteGCPEncryptionKey(object.gcpEncryptionKey, stream) + count++ + } + present_ = object.bitmap_&2048 != 0 && object.gcpNetwork != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("gcp_network") + WriteGCPNetwork(object.gcpNetwork, stream) + count++ + } + present_ = object.bitmap_&4096 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("additional_trust_bundle") + stream.WriteString(object.additionalTrustBundle) + count++ + } + present_ = object.bitmap_&8192 != 0 && object.addons != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("addons") + stream.WriteObjectStart() + stream.WriteObjectField("items") + v1.WriteAddOnInstallationList(object.addons.Items(), stream) + stream.WriteObjectEnd() + count++ + } + present_ = object.bitmap_&16384 != 0 && object.autoscaler != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("autoscaler") + v1.WriteClusterAutoscaler(object.autoscaler, stream) + count++ + } + present_ = object.bitmap_&32768 != 0 && object.azure != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("azure") + WriteAzure(object.azure, stream) + count++ + } + present_ = object.bitmap_&65536 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("billing_model") + stream.WriteString(string(object.billingModel)) + count++ + } + present_ = object.bitmap_&131072 != 0 && object.byoOidc != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("byo_oidc") + WriteByoOidc(object.byoOidc, stream) + count++ + } + present_ = object.bitmap_&262144 != 0 && object.cloudProvider != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("cloud_provider") + v1.WriteCloudProvider(object.cloudProvider, stream) + count++ + } + present_ = object.bitmap_&524288 != 0 && object.console != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("console") + WriteClusterConsole(object.console, stream) + count++ + } + present_ = object.bitmap_&1048576 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("creation_timestamp") + stream.WriteString((object.creationTimestamp).Format(time.RFC3339)) + count++ + } + present_ = object.bitmap_&2097152 != 0 && object.deleteProtection != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("delete_protection") + WriteDeleteProtection(object.deleteProtection, stream) + count++ + } + present_ = object.bitmap_&4194304 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("disable_user_workload_monitoring") + stream.WriteBool(object.disableUserWorkloadMonitoring) + count++ + } + present_ = object.bitmap_&8388608 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("domain_prefix") + stream.WriteString(object.domainPrefix) + count++ + } + present_ = object.bitmap_&16777216 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("etcd_encryption") + stream.WriteBool(object.etcdEncryption) + count++ + } + present_ = object.bitmap_&33554432 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("expiration_timestamp") + stream.WriteString((object.expirationTimestamp).Format(time.RFC3339)) + count++ + } + present_ = object.bitmap_&67108864 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("external_id") + stream.WriteString(object.externalID) + count++ + } + present_ = object.bitmap_&134217728 != 0 && object.externalAuthConfig != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("external_auth_config") + WriteExternalAuthConfig(object.externalAuthConfig, stream) + count++ + } + present_ = object.bitmap_&268435456 != 0 && object.externalConfiguration != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("external_configuration") + WriteExternalConfiguration(object.externalConfiguration, stream) + count++ + } + present_ = object.bitmap_&536870912 != 0 && object.flavour != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("flavour") + v1.WriteFlavour(object.flavour, stream) + count++ + } + present_ = object.bitmap_&1073741824 != 0 && object.groups != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("groups") + stream.WriteObjectStart() + stream.WriteObjectField("items") + v1.WriteGroupList(object.groups.Items(), stream) + stream.WriteObjectEnd() + count++ + } + present_ = object.bitmap_&2147483648 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("health_state") + stream.WriteString(string(object.healthState)) + count++ + } + present_ = object.bitmap_&4294967296 != 0 && object.htpasswd != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("htpasswd") + WriteHTPasswdIdentityProvider(object.htpasswd, stream) + count++ + } + present_ = object.bitmap_&8589934592 != 0 && object.hypershift != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("hypershift") + WriteHypershift(object.hypershift, stream) + count++ + } + present_ = object.bitmap_&17179869184 != 0 && object.identityProviders != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("identity_providers") + stream.WriteObjectStart() + stream.WriteObjectField("items") + v1.WriteIdentityProviderList(object.identityProviders.Items(), stream) + stream.WriteObjectEnd() + count++ + } + present_ = object.bitmap_&34359738368 != 0 && object.inflightChecks != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("inflight_checks") + stream.WriteObjectStart() + stream.WriteObjectField("items") + v1.WriteInflightCheckList(object.inflightChecks.Items(), stream) + stream.WriteObjectEnd() + count++ + } + present_ = object.bitmap_&68719476736 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("infra_id") + stream.WriteString(object.infraID) + count++ + } + present_ = object.bitmap_&137438953472 != 0 && object.ingresses != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("ingresses") + stream.WriteObjectStart() + stream.WriteObjectField("items") + v1.WriteIngressList(object.ingresses.Items(), stream) + stream.WriteObjectEnd() + count++ + } + present_ = object.bitmap_&274877906944 != 0 && object.kubeletConfig != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("kubelet_config") + WriteKubeletConfig(object.kubeletConfig, stream) + count++ + } + present_ = object.bitmap_&549755813888 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("load_balancer_quota") + stream.WriteInt(object.loadBalancerQuota) + count++ + } + present_ = object.bitmap_&1099511627776 != 0 && object.machinePools != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("machine_pools") + stream.WriteObjectStart() + stream.WriteObjectField("items") + v1.WriteMachinePoolList(object.machinePools.Items(), stream) + stream.WriteObjectEnd() + count++ + } + present_ = object.bitmap_&2199023255552 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("managed") + stream.WriteBool(object.managed) + count++ + } + present_ = object.bitmap_&4398046511104 != 0 && object.managedService != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("managed_service") + WriteManagedService(object.managedService, stream) + count++ + } + present_ = object.bitmap_&8796093022208 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("multi_az") + stream.WriteBool(object.multiAZ) + count++ + } + present_ = object.bitmap_&17592186044416 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("multi_arch_enabled") + stream.WriteBool(object.multiArchEnabled) + count++ + } + present_ = object.bitmap_&35184372088832 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("name") + stream.WriteString(object.name) + count++ + } + present_ = object.bitmap_&70368744177664 != 0 && object.network != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("network") + WriteNetwork(object.network, stream) + count++ + } + present_ = object.bitmap_&140737488355328 != 0 && object.nodeDrainGracePeriod != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("node_drain_grace_period") + WriteValue(object.nodeDrainGracePeriod, stream) + count++ + } + present_ = object.bitmap_&281474976710656 != 0 && object.nodePools != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("node_pools") + stream.WriteObjectStart() + stream.WriteObjectField("items") + v1.WriteNodePoolList(object.nodePools.Items(), stream) + stream.WriteObjectEnd() + count++ + } + present_ = object.bitmap_&562949953421312 != 0 && object.nodes != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("nodes") + WriteClusterNodes(object.nodes, stream) + count++ + } + present_ = object.bitmap_&1125899906842624 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("openshift_version") + stream.WriteString(object.openshiftVersion) + count++ + } + present_ = object.bitmap_&2251799813685248 != 0 && object.product != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("product") + v1.WriteProduct(object.product, stream) + count++ + } + present_ = object.bitmap_&4503599627370496 != 0 && object.properties != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("properties") + if object.properties != nil { + stream.WriteObjectStart() + keys := make([]string, len(object.properties)) + i := 0 + for key := range object.properties { + keys[i] = key + i++ + } + sort.Strings(keys) + for i, key := range keys { + if i > 0 { + stream.WriteMore() + } + item := object.properties[key] + stream.WriteObjectField(key) + stream.WriteString(item) + } + stream.WriteObjectEnd() + } else { + stream.WriteNil() + } + count++ + } + present_ = object.bitmap_&9007199254740992 != 0 && object.provisionShard != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("provision_shard") + WriteProvisionShard(object.provisionShard, stream) + count++ + } + present_ = object.bitmap_&18014398509481984 != 0 && object.proxy != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("proxy") + WriteProxy(object.proxy, stream) + count++ + } + present_ = object.bitmap_&36028797018963968 != 0 && object.region != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("region") + v1.WriteCloudRegion(object.region, stream) + count++ + } + present_ = object.bitmap_&72057594037927936 != 0 && object.registryConfig != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("registry_config") + WriteClusterRegistryConfig(object.registryConfig, stream) + count++ + } + present_ = object.bitmap_&144115188075855872 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("state") + stream.WriteString(string(object.state)) + count++ + } + present_ = object.bitmap_&288230376151711744 != 0 && object.status != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("status") + WriteClusterStatus(object.status, stream) + count++ + } + present_ = object.bitmap_&576460752303423488 != 0 && object.storageQuota != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("storage_quota") + WriteValue(object.storageQuota, stream) + count++ + } + present_ = object.bitmap_&1152921504606846976 != 0 && object.subscription != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("subscription") + v1.WriteSubscription(object.subscription, stream) + count++ + } + present_ = object.bitmap_&2305843009213693952 != 0 && object.version != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("version") + v1.WriteVersion(object.version, stream) + } + stream.WriteObjectEnd() +} + +// UnmarshalCluster reads a value of the 'cluster' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalCluster(source interface{}) (object *Cluster, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadCluster(iterator) + err = iterator.Error + return +} + +// ReadCluster reads a value of the 'cluster' type from the given iterator. +func ReadCluster(iterator *jsoniter.Iterator) *Cluster { + object := &Cluster{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "kind": + value := iterator.ReadString() + if value == ClusterLinkKind { + object.bitmap_ |= 1 + } + case "id": + object.id = iterator.ReadString() + object.bitmap_ |= 2 + case "href": + object.href = iterator.ReadString() + object.bitmap_ |= 4 + case "api": + value := ReadClusterAPI(iterator) + object.api = value + object.bitmap_ |= 8 + case "aws": + value := ReadAWS(iterator) + object.aws = value + object.bitmap_ |= 16 + case "aws_infrastructure_access_role_grants": + value := &v1.AWSInfrastructureAccessRoleGrantList{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "kind": + text := iterator.ReadString() + value.SetLink(text == v1.AWSInfrastructureAccessRoleGrantListLinkKind) + case "href": + value.SetHREF(iterator.ReadString()) + case "items": + value.SetItems(v1.ReadAWSInfrastructureAccessRoleGrantList(iterator)) + default: + iterator.ReadAny() + } + } + object.awsInfrastructureAccessRoleGrants = value + object.bitmap_ |= 32 + case "ccs": + value := ReadCCS(iterator) + object.ccs = value + object.bitmap_ |= 64 + case "dns": + value := ReadDNS(iterator) + object.dns = value + object.bitmap_ |= 128 + case "fips": + value := iterator.ReadBool() + object.fips = value + object.bitmap_ |= 256 + case "gcp": + value := ReadGCP(iterator) + object.gcp = value + object.bitmap_ |= 512 + case "gcp_encryption_key": + value := ReadGCPEncryptionKey(iterator) + object.gcpEncryptionKey = value + object.bitmap_ |= 1024 + case "gcp_network": + value := ReadGCPNetwork(iterator) + object.gcpNetwork = value + object.bitmap_ |= 2048 + case "additional_trust_bundle": + value := iterator.ReadString() + object.additionalTrustBundle = value + object.bitmap_ |= 4096 + case "addons": + value := &v1.AddOnInstallationList{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "kind": + text := iterator.ReadString() + value.SetLink(text == v1.AddOnInstallationListLinkKind) + case "href": + value.SetHREF(iterator.ReadString()) + case "items": + value.SetItems(v1.ReadAddOnInstallationList(iterator)) + default: + iterator.ReadAny() + } + } + object.addons = value + object.bitmap_ |= 8192 + case "autoscaler": + value := v1.ReadClusterAutoscaler(iterator) + object.autoscaler = value + object.bitmap_ |= 16384 + case "azure": + value := ReadAzure(iterator) + object.azure = value + object.bitmap_ |= 32768 + case "billing_model": + text := iterator.ReadString() + value := BillingModel(text) + object.billingModel = value + object.bitmap_ |= 65536 + case "byo_oidc": + value := ReadByoOidc(iterator) + object.byoOidc = value + object.bitmap_ |= 131072 + case "cloud_provider": + value := v1.ReadCloudProvider(iterator) + object.cloudProvider = value + object.bitmap_ |= 262144 + case "console": + value := ReadClusterConsole(iterator) + object.console = value + object.bitmap_ |= 524288 + case "creation_timestamp": + text := iterator.ReadString() + value, err := time.Parse(time.RFC3339, text) + if err != nil { + iterator.ReportError("", err.Error()) + } + object.creationTimestamp = value + object.bitmap_ |= 1048576 + case "delete_protection": + value := ReadDeleteProtection(iterator) + object.deleteProtection = value + object.bitmap_ |= 2097152 + case "disable_user_workload_monitoring": + value := iterator.ReadBool() + object.disableUserWorkloadMonitoring = value + object.bitmap_ |= 4194304 + case "domain_prefix": + value := iterator.ReadString() + object.domainPrefix = value + object.bitmap_ |= 8388608 + case "etcd_encryption": + value := iterator.ReadBool() + object.etcdEncryption = value + object.bitmap_ |= 16777216 + case "expiration_timestamp": + text := iterator.ReadString() + value, err := time.Parse(time.RFC3339, text) + if err != nil { + iterator.ReportError("", err.Error()) + } + object.expirationTimestamp = value + object.bitmap_ |= 33554432 + case "external_id": + value := iterator.ReadString() + object.externalID = value + object.bitmap_ |= 67108864 + case "external_auth_config": + value := ReadExternalAuthConfig(iterator) + object.externalAuthConfig = value + object.bitmap_ |= 134217728 + case "external_configuration": + value := ReadExternalConfiguration(iterator) + object.externalConfiguration = value + object.bitmap_ |= 268435456 + case "flavour": + value := v1.ReadFlavour(iterator) + object.flavour = value + object.bitmap_ |= 536870912 + case "groups": + value := &v1.GroupList{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "kind": + text := iterator.ReadString() + value.SetLink(text == v1.GroupListLinkKind) + case "href": + value.SetHREF(iterator.ReadString()) + case "items": + value.SetItems(v1.ReadGroupList(iterator)) + default: + iterator.ReadAny() + } + } + object.groups = value + object.bitmap_ |= 1073741824 + case "health_state": + text := iterator.ReadString() + value := ClusterHealthState(text) + object.healthState = value + object.bitmap_ |= 2147483648 + case "htpasswd": + value := ReadHTPasswdIdentityProvider(iterator) + object.htpasswd = value + object.bitmap_ |= 4294967296 + case "hypershift": + value := ReadHypershift(iterator) + object.hypershift = value + object.bitmap_ |= 8589934592 + case "identity_providers": + value := &v1.IdentityProviderList{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "kind": + text := iterator.ReadString() + value.SetLink(text == v1.IdentityProviderListLinkKind) + case "href": + value.SetHREF(iterator.ReadString()) + case "items": + value.SetItems(v1.ReadIdentityProviderList(iterator)) + default: + iterator.ReadAny() + } + } + object.identityProviders = value + object.bitmap_ |= 17179869184 + case "inflight_checks": + value := &v1.InflightCheckList{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "kind": + text := iterator.ReadString() + value.SetLink(text == v1.InflightCheckListLinkKind) + case "href": + value.SetHREF(iterator.ReadString()) + case "items": + value.SetItems(v1.ReadInflightCheckList(iterator)) + default: + iterator.ReadAny() + } + } + object.inflightChecks = value + object.bitmap_ |= 34359738368 + case "infra_id": + value := iterator.ReadString() + object.infraID = value + object.bitmap_ |= 68719476736 + case "ingresses": + value := &v1.IngressList{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "kind": + text := iterator.ReadString() + value.SetLink(text == v1.IngressListLinkKind) + case "href": + value.SetHREF(iterator.ReadString()) + case "items": + value.SetItems(v1.ReadIngressList(iterator)) + default: + iterator.ReadAny() + } + } + object.ingresses = value + object.bitmap_ |= 137438953472 + case "kubelet_config": + value := ReadKubeletConfig(iterator) + object.kubeletConfig = value + object.bitmap_ |= 274877906944 + case "load_balancer_quota": + value := iterator.ReadInt() + object.loadBalancerQuota = value + object.bitmap_ |= 549755813888 + case "machine_pools": + value := &v1.MachinePoolList{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "kind": + text := iterator.ReadString() + value.SetLink(text == v1.MachinePoolListLinkKind) + case "href": + value.SetHREF(iterator.ReadString()) + case "items": + value.SetItems(v1.ReadMachinePoolList(iterator)) + default: + iterator.ReadAny() + } + } + object.machinePools = value + object.bitmap_ |= 1099511627776 + case "managed": + value := iterator.ReadBool() + object.managed = value + object.bitmap_ |= 2199023255552 + case "managed_service": + value := ReadManagedService(iterator) + object.managedService = value + object.bitmap_ |= 4398046511104 + case "multi_az": + value := iterator.ReadBool() + object.multiAZ = value + object.bitmap_ |= 8796093022208 + case "multi_arch_enabled": + value := iterator.ReadBool() + object.multiArchEnabled = value + object.bitmap_ |= 17592186044416 + case "name": + value := iterator.ReadString() + object.name = value + object.bitmap_ |= 35184372088832 + case "network": + value := ReadNetwork(iterator) + object.network = value + object.bitmap_ |= 70368744177664 + case "node_drain_grace_period": + value := ReadValue(iterator) + object.nodeDrainGracePeriod = value + object.bitmap_ |= 140737488355328 + case "node_pools": + value := &v1.NodePoolList{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "kind": + text := iterator.ReadString() + value.SetLink(text == v1.NodePoolListLinkKind) + case "href": + value.SetHREF(iterator.ReadString()) + case "items": + value.SetItems(v1.ReadNodePoolList(iterator)) + default: + iterator.ReadAny() + } + } + object.nodePools = value + object.bitmap_ |= 281474976710656 + case "nodes": + value := ReadClusterNodes(iterator) + object.nodes = value + object.bitmap_ |= 562949953421312 + case "openshift_version": + value := iterator.ReadString() + object.openshiftVersion = value + object.bitmap_ |= 1125899906842624 + case "product": + value := v1.ReadProduct(iterator) + object.product = value + object.bitmap_ |= 2251799813685248 + case "properties": + value := map[string]string{} + for { + key := iterator.ReadObject() + if key == "" { + break + } + item := iterator.ReadString() + value[key] = item + } + object.properties = value + object.bitmap_ |= 4503599627370496 + case "provision_shard": + value := ReadProvisionShard(iterator) + object.provisionShard = value + object.bitmap_ |= 9007199254740992 + case "proxy": + value := ReadProxy(iterator) + object.proxy = value + object.bitmap_ |= 18014398509481984 + case "region": + value := v1.ReadCloudRegion(iterator) + object.region = value + object.bitmap_ |= 36028797018963968 + case "registry_config": + value := ReadClusterRegistryConfig(iterator) + object.registryConfig = value + object.bitmap_ |= 72057594037927936 + case "state": + text := iterator.ReadString() + value := ClusterState(text) + object.state = value + object.bitmap_ |= 144115188075855872 + case "status": + value := ReadClusterStatus(iterator) + object.status = value + object.bitmap_ |= 288230376151711744 + case "storage_quota": + value := ReadValue(iterator) + object.storageQuota = value + object.bitmap_ |= 576460752303423488 + case "subscription": + value := v1.ReadSubscription(iterator) + object.subscription = value + object.bitmap_ |= 1152921504606846976 + case "version": + value := v1.ReadVersion(iterator) + object.version = value + object.bitmap_ |= 2305843009213693952 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/clusters_client.go b/arohcp/v1alpha1/clusters_client.go new file mode 100644 index 000000000..a66166866 --- /dev/null +++ b/arohcp/v1alpha1/clusters_client.go @@ -0,0 +1,510 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "bufio" + "bytes" + "context" + "io" + "net/http" + "net/url" + "path" + + "github.com/openshift-online/ocm-sdk-go/errors" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// ClustersClient is the client of the 'clusters' resource. +// +// Manages the collection of aro_hcp clusters. +type ClustersClient struct { + transport http.RoundTripper + path string +} + +// NewClustersClient creates a new client for the 'clusters' +// resource using the given transport to send the requests and receive the +// responses. +func NewClustersClient(transport http.RoundTripper, path string) *ClustersClient { + return &ClustersClient{ + transport: transport, + path: path, + } +} + +// Add creates a request for the 'add' method. +// +// Provision a new cluster and add it to the collection of clusters. +// +// See the `register_cluster` method for adding an existing cluster. +func (c *ClustersClient) Add() *ClustersAddRequest { + return &ClustersAddRequest{ + transport: c.transport, + path: c.path, + } +} + +// List creates a request for the 'list' method. +// +// Retrieves the list of clusters. +func (c *ClustersClient) List() *ClustersListRequest { + return &ClustersListRequest{ + transport: c.transport, + path: c.path, + } +} + +// Cluster returns the target 'cluster' resource for the given identifier. +// +// Returns a reference to the service that manages an specific cluster. +func (c *ClustersClient) Cluster(id string) *ClusterClient { + return NewClusterClient( + c.transport, + path.Join(c.path, id), + ) +} + +// ClustersAddRequest is the request for the 'add' method. +type ClustersAddRequest struct { + transport http.RoundTripper + path string + query url.Values + header http.Header + body *Cluster +} + +// Parameter adds a query parameter. +func (r *ClustersAddRequest) Parameter(name string, value interface{}) *ClustersAddRequest { + helpers.AddValue(&r.query, name, value) + return r +} + +// Header adds a request header. +func (r *ClustersAddRequest) Header(name string, value interface{}) *ClustersAddRequest { + helpers.AddHeader(&r.header, name, value) + return r +} + +// Impersonate wraps requests on behalf of another user. +// Note: Services that do not support this feature may silently ignore this call. +func (r *ClustersAddRequest) Impersonate(user string) *ClustersAddRequest { + helpers.AddImpersonationHeader(&r.header, user) + return r +} + +// Body sets the value of the 'body' parameter. +// +// Description of the cluster. +func (r *ClustersAddRequest) Body(value *Cluster) *ClustersAddRequest { + r.body = value + return r +} + +// Send sends this request, waits for the response, and returns it. +// +// This is a potentially lengthy operation, as it requires network communication. +// Consider using a context and the SendContext method. +func (r *ClustersAddRequest) Send() (result *ClustersAddResponse, err error) { + return r.SendContext(context.Background()) +} + +// SendContext sends this request, waits for the response, and returns it. +func (r *ClustersAddRequest) SendContext(ctx context.Context) (result *ClustersAddResponse, err error) { + query := helpers.CopyQuery(r.query) + header := helpers.CopyHeader(r.header) + buffer := &bytes.Buffer{} + err = writeClustersAddRequest(r, buffer) + if err != nil { + return + } + uri := &url.URL{ + Path: r.path, + RawQuery: query.Encode(), + } + request := &http.Request{ + Method: "POST", + URL: uri, + Header: header, + Body: io.NopCloser(buffer), + } + if ctx != nil { + request = request.WithContext(ctx) + } + response, err := r.transport.RoundTrip(request) + if err != nil { + return + } + defer response.Body.Close() + result = &ClustersAddResponse{} + result.status = response.StatusCode + result.header = response.Header + reader := bufio.NewReader(response.Body) + _, err = reader.Peek(1) + if err == io.EOF { + err = nil + return + } + if result.status >= 400 { + result.err, err = errors.UnmarshalErrorStatus(reader, result.status) + if err != nil { + return + } + err = result.err + return + } + err = readClustersAddResponse(result, reader) + if err != nil { + return + } + return +} + +// ClustersAddResponse is the response for the 'add' method. +type ClustersAddResponse struct { + status int + header http.Header + err *errors.Error + body *Cluster +} + +// Status returns the response status code. +func (r *ClustersAddResponse) Status() int { + if r == nil { + return 0 + } + return r.status +} + +// Header returns header of the response. +func (r *ClustersAddResponse) Header() http.Header { + if r == nil { + return nil + } + return r.header +} + +// Error returns the response error. +func (r *ClustersAddResponse) Error() *errors.Error { + if r == nil { + return nil + } + return r.err +} + +// Body returns the value of the 'body' parameter. +// +// Description of the cluster. +func (r *ClustersAddResponse) Body() *Cluster { + if r == nil { + return nil + } + return r.body +} + +// GetBody returns the value of the 'body' parameter and +// a flag indicating if the parameter has a value. +// +// Description of the cluster. +func (r *ClustersAddResponse) GetBody() (value *Cluster, ok bool) { + ok = r != nil && r.body != nil + if ok { + value = r.body + } + return +} + +// ClustersListRequest is the request for the 'list' method. +type ClustersListRequest struct { + transport http.RoundTripper + path string + query url.Values + header http.Header + order *string + page *int + search *string + size *int +} + +// Parameter adds a query parameter. +func (r *ClustersListRequest) Parameter(name string, value interface{}) *ClustersListRequest { + helpers.AddValue(&r.query, name, value) + return r +} + +// Header adds a request header. +func (r *ClustersListRequest) Header(name string, value interface{}) *ClustersListRequest { + helpers.AddHeader(&r.header, name, value) + return r +} + +// Impersonate wraps requests on behalf of another user. +// Note: Services that do not support this feature may silently ignore this call. +func (r *ClustersListRequest) Impersonate(user string) *ClustersListRequest { + helpers.AddImpersonationHeader(&r.header, user) + return r +} + +// Order sets the value of the 'order' parameter. +// +// Order criteria. +// +// The syntax of this parameter is similar to the syntax of the _order by_ clause of +// a SQL statement, but using the names of the attributes of the cluster instead of +// the names of the columns of a table. For example, in order to sort the clusters +// descending by region identifier the value should be: +// +// ```sql +// region.id desc +// ``` +// +// If the parameter isn't provided, or if the value is empty, then the order of the +// results is undefined. +func (r *ClustersListRequest) Order(value string) *ClustersListRequest { + r.order = &value + return r +} + +// Page sets the value of the 'page' parameter. +// +// Index of the requested page, where one corresponds to the first page. +func (r *ClustersListRequest) Page(value int) *ClustersListRequest { + r.page = &value + return r +} + +// Search sets the value of the 'search' parameter. +// +// Search criteria. +// +// The syntax of this parameter is similar to the syntax of the _where_ clause of a +// SQL statement, but using the names of the attributes of the cluster instead of +// the names of the columns of a table. For example, in order to retrieve all the +// clusters with a name starting with `my` in the `us-east-1` region the value +// should be: +// +// ```sql +// name like 'my%' and region.id = 'us-east-1' +// ``` +// +// If the parameter isn't provided, or if the value is empty, then all the +// clusters that the user has permission to see will be returned. +func (r *ClustersListRequest) Search(value string) *ClustersListRequest { + r.search = &value + return r +} + +// Size sets the value of the 'size' parameter. +// +// Maximum number of items that will be contained in the returned page. +func (r *ClustersListRequest) Size(value int) *ClustersListRequest { + r.size = &value + return r +} + +// Send sends this request, waits for the response, and returns it. +// +// This is a potentially lengthy operation, as it requires network communication. +// Consider using a context and the SendContext method. +func (r *ClustersListRequest) Send() (result *ClustersListResponse, err error) { + return r.SendContext(context.Background()) +} + +// SendContext sends this request, waits for the response, and returns it. +func (r *ClustersListRequest) SendContext(ctx context.Context) (result *ClustersListResponse, err error) { + query := helpers.CopyQuery(r.query) + if r.order != nil { + helpers.AddValue(&query, "order", *r.order) + } + if r.page != nil { + helpers.AddValue(&query, "page", *r.page) + } + if r.search != nil { + helpers.AddValue(&query, "search", *r.search) + } + if r.size != nil { + helpers.AddValue(&query, "size", *r.size) + } + header := helpers.CopyHeader(r.header) + uri := &url.URL{ + Path: r.path, + RawQuery: query.Encode(), + } + request := &http.Request{ + Method: "GET", + URL: uri, + Header: header, + } + if ctx != nil { + request = request.WithContext(ctx) + } + response, err := r.transport.RoundTrip(request) + if err != nil { + return + } + defer response.Body.Close() + result = &ClustersListResponse{} + result.status = response.StatusCode + result.header = response.Header + reader := bufio.NewReader(response.Body) + _, err = reader.Peek(1) + if err == io.EOF { + err = nil + return + } + if result.status >= 400 { + result.err, err = errors.UnmarshalErrorStatus(reader, result.status) + if err != nil { + return + } + err = result.err + return + } + err = readClustersListResponse(result, reader) + if err != nil { + return + } + return +} + +// ClustersListResponse is the response for the 'list' method. +type ClustersListResponse struct { + status int + header http.Header + err *errors.Error + items *ClusterList + page *int + size *int + total *int +} + +// Status returns the response status code. +func (r *ClustersListResponse) Status() int { + if r == nil { + return 0 + } + return r.status +} + +// Header returns header of the response. +func (r *ClustersListResponse) Header() http.Header { + if r == nil { + return nil + } + return r.header +} + +// Error returns the response error. +func (r *ClustersListResponse) Error() *errors.Error { + if r == nil { + return nil + } + return r.err +} + +// Items returns the value of the 'items' parameter. +// +// Retrieved list of clusters. +func (r *ClustersListResponse) Items() *ClusterList { + if r == nil { + return nil + } + return r.items +} + +// GetItems returns the value of the 'items' parameter and +// a flag indicating if the parameter has a value. +// +// Retrieved list of clusters. +func (r *ClustersListResponse) GetItems() (value *ClusterList, ok bool) { + ok = r != nil && r.items != nil + if ok { + value = r.items + } + return +} + +// Page returns the value of the 'page' parameter. +// +// Index of the requested page, where one corresponds to the first page. +func (r *ClustersListResponse) Page() int { + if r != nil && r.page != nil { + return *r.page + } + return 0 +} + +// GetPage returns the value of the 'page' parameter and +// a flag indicating if the parameter has a value. +// +// Index of the requested page, where one corresponds to the first page. +func (r *ClustersListResponse) GetPage() (value int, ok bool) { + ok = r != nil && r.page != nil + if ok { + value = *r.page + } + return +} + +// Size returns the value of the 'size' parameter. +// +// Maximum number of items that will be contained in the returned page. +func (r *ClustersListResponse) Size() int { + if r != nil && r.size != nil { + return *r.size + } + return 0 +} + +// GetSize returns the value of the 'size' parameter and +// a flag indicating if the parameter has a value. +// +// Maximum number of items that will be contained in the returned page. +func (r *ClustersListResponse) GetSize() (value int, ok bool) { + ok = r != nil && r.size != nil + if ok { + value = *r.size + } + return +} + +// Total returns the value of the 'total' parameter. +// +// Total number of items of the collection that match the search criteria, +// regardless of the size of the page. +func (r *ClustersListResponse) Total() int { + if r != nil && r.total != nil { + return *r.total + } + return 0 +} + +// GetTotal returns the value of the 'total' parameter and +// a flag indicating if the parameter has a value. +// +// Total number of items of the collection that match the search criteria, +// regardless of the size of the page. +func (r *ClustersListResponse) GetTotal() (value int, ok bool) { + ok = r != nil && r.total != nil + if ok { + value = *r.total + } + return +} diff --git a/arohcp/v1alpha1/clusters_resource_json.go b/arohcp/v1alpha1/clusters_resource_json.go new file mode 100644 index 000000000..08346d89e --- /dev/null +++ b/arohcp/v1alpha1/clusters_resource_json.go @@ -0,0 +1,69 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +func writeClustersAddRequest(request *ClustersAddRequest, writer io.Writer) error { + return MarshalCluster(request.body, writer) +} +func readClustersAddResponse(response *ClustersAddResponse, reader io.Reader) error { + var err error + response.body, err = UnmarshalCluster(reader) + return err +} +func writeClustersListRequest(request *ClustersListRequest, writer io.Writer) error { + return nil +} +func readClustersListResponse(response *ClustersListResponse, reader io.Reader) error { + iterator, err := helpers.NewIterator(reader) + if err != nil { + return err + } + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "page": + value := iterator.ReadInt() + response.page = &value + case "size": + value := iterator.ReadInt() + response.size = &value + case "total": + value := iterator.ReadInt() + response.total = &value + case "items": + items := ReadClusterList(iterator) + response.items = &ClusterList{ + items: items, + } + default: + iterator.ReadAny() + } + } + return iterator.Error +} diff --git a/arohcp/v1alpha1/date_list_type_json.go b/arohcp/v1alpha1/date_list_type_json.go new file mode 100644 index 000000000..b62e139b4 --- /dev/null +++ b/arohcp/v1alpha1/date_list_type_json.go @@ -0,0 +1,80 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + "time" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalDateList writes a list of values of the 'date' type to +// the given writer. +func MarshalDateList(list []time.Time, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteDateList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteDateList writes a list of value of the 'date' type to +// the given stream. +func WriteDateList(list []time.Time, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + stream.WriteString((value).Format(time.RFC3339)) + } + stream.WriteArrayEnd() +} + +// UnmarshalDateList reads a list of values of the 'date' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalDateList(source interface{}) (items []time.Time, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadDateList(iterator) + err = iterator.Error + return +} + +// ReadDateList reads list of values of the ”date' type from +// the given iterator. +func ReadDateList(iterator *jsoniter.Iterator) []time.Time { + list := []time.Time{} + for iterator.ReadArray() { + text := iterator.ReadString() + item, err := time.Parse(time.RFC3339, text) + if err != nil { + iterator.ReportError("", err.Error()) + } + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/delete_protection_builder.go b/arohcp/v1alpha1/delete_protection_builder.go new file mode 100644 index 000000000..085637bdb --- /dev/null +++ b/arohcp/v1alpha1/delete_protection_builder.go @@ -0,0 +1,63 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// DeleteProtectionBuilder contains the data and logic needed to build 'delete_protection' objects. +// +// DeleteProtection configuration. +type DeleteProtectionBuilder struct { + bitmap_ uint32 + enabled bool +} + +// NewDeleteProtection creates a new builder of 'delete_protection' objects. +func NewDeleteProtection() *DeleteProtectionBuilder { + return &DeleteProtectionBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *DeleteProtectionBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// Enabled sets the value of the 'enabled' attribute to the given value. +func (b *DeleteProtectionBuilder) Enabled(value bool) *DeleteProtectionBuilder { + b.enabled = value + b.bitmap_ |= 1 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *DeleteProtectionBuilder) Copy(object *DeleteProtection) *DeleteProtectionBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.enabled = object.enabled + return b +} + +// Build creates a 'delete_protection' object using the configuration stored in the builder. +func (b *DeleteProtectionBuilder) Build() (object *DeleteProtection, err error) { + object = new(DeleteProtection) + object.bitmap_ = b.bitmap_ + object.enabled = b.enabled + return +} diff --git a/arohcp/v1alpha1/delete_protection_list_builder.go b/arohcp/v1alpha1/delete_protection_list_builder.go new file mode 100644 index 000000000..9daa84924 --- /dev/null +++ b/arohcp/v1alpha1/delete_protection_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// DeleteProtectionListBuilder contains the data and logic needed to build +// 'delete_protection' objects. +type DeleteProtectionListBuilder struct { + items []*DeleteProtectionBuilder +} + +// NewDeleteProtectionList creates a new builder of 'delete_protection' objects. +func NewDeleteProtectionList() *DeleteProtectionListBuilder { + return new(DeleteProtectionListBuilder) +} + +// Items sets the items of the list. +func (b *DeleteProtectionListBuilder) Items(values ...*DeleteProtectionBuilder) *DeleteProtectionListBuilder { + b.items = make([]*DeleteProtectionBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *DeleteProtectionListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *DeleteProtectionListBuilder) Copy(list *DeleteProtectionList) *DeleteProtectionListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*DeleteProtectionBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewDeleteProtection().Copy(v) + } + } + return b +} + +// Build creates a list of 'delete_protection' objects using the +// configuration stored in the builder. +func (b *DeleteProtectionListBuilder) Build() (list *DeleteProtectionList, err error) { + items := make([]*DeleteProtection, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(DeleteProtectionList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/delete_protection_list_type_json.go b/arohcp/v1alpha1/delete_protection_list_type_json.go new file mode 100644 index 000000000..a59dab83f --- /dev/null +++ b/arohcp/v1alpha1/delete_protection_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalDeleteProtectionList writes a list of values of the 'delete_protection' type to +// the given writer. +func MarshalDeleteProtectionList(list []*DeleteProtection, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteDeleteProtectionList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteDeleteProtectionList writes a list of value of the 'delete_protection' type to +// the given stream. +func WriteDeleteProtectionList(list []*DeleteProtection, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteDeleteProtection(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalDeleteProtectionList reads a list of values of the 'delete_protection' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalDeleteProtectionList(source interface{}) (items []*DeleteProtection, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadDeleteProtectionList(iterator) + err = iterator.Error + return +} + +// ReadDeleteProtectionList reads list of values of the ”delete_protection' type from +// the given iterator. +func ReadDeleteProtectionList(iterator *jsoniter.Iterator) []*DeleteProtection { + list := []*DeleteProtection{} + for iterator.ReadArray() { + item := ReadDeleteProtection(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/delete_protection_type.go b/arohcp/v1alpha1/delete_protection_type.go new file mode 100644 index 000000000..44d7b8a6a --- /dev/null +++ b/arohcp/v1alpha1/delete_protection_type.go @@ -0,0 +1,173 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// DeleteProtection represents the values of the 'delete_protection' type. +// +// DeleteProtection configuration. +type DeleteProtection struct { + bitmap_ uint32 + enabled bool +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *DeleteProtection) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// Enabled returns the value of the 'enabled' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Boolean flag indicating if the cluster should be be using _DeleteProtection_. +// +// By default this is `false`. +// +// To enable it a SREP needs to patch the value through OCM API +func (o *DeleteProtection) Enabled() bool { + if o != nil && o.bitmap_&1 != 0 { + return o.enabled + } + return false +} + +// GetEnabled returns the value of the 'enabled' attribute and +// a flag indicating if the attribute has a value. +// +// Boolean flag indicating if the cluster should be be using _DeleteProtection_. +// +// By default this is `false`. +// +// To enable it a SREP needs to patch the value through OCM API +func (o *DeleteProtection) GetEnabled() (value bool, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.enabled + } + return +} + +// DeleteProtectionListKind is the name of the type used to represent list of objects of +// type 'delete_protection'. +const DeleteProtectionListKind = "DeleteProtectionList" + +// DeleteProtectionListLinkKind is the name of the type used to represent links to list +// of objects of type 'delete_protection'. +const DeleteProtectionListLinkKind = "DeleteProtectionListLink" + +// DeleteProtectionNilKind is the name of the type used to nil lists of objects of +// type 'delete_protection'. +const DeleteProtectionListNilKind = "DeleteProtectionListNil" + +// DeleteProtectionList is a list of values of the 'delete_protection' type. +type DeleteProtectionList struct { + href string + link bool + items []*DeleteProtection +} + +// Len returns the length of the list. +func (l *DeleteProtectionList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *DeleteProtectionList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *DeleteProtectionList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *DeleteProtectionList) SetItems(items []*DeleteProtection) { + l.items = items +} + +// Items returns the items of the list. +func (l *DeleteProtectionList) Items() []*DeleteProtection { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *DeleteProtectionList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *DeleteProtectionList) Get(i int) *DeleteProtection { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *DeleteProtectionList) Slice() []*DeleteProtection { + var slice []*DeleteProtection + if l == nil { + slice = make([]*DeleteProtection, 0) + } else { + slice = make([]*DeleteProtection, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *DeleteProtectionList) Each(f func(item *DeleteProtection) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *DeleteProtectionList) Range(f func(index int, item *DeleteProtection) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/delete_protection_type_json.go b/arohcp/v1alpha1/delete_protection_type_json.go new file mode 100644 index 000000000..607e019b0 --- /dev/null +++ b/arohcp/v1alpha1/delete_protection_type_json.go @@ -0,0 +1,86 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalDeleteProtection writes a value of the 'delete_protection' type to the given writer. +func MarshalDeleteProtection(object *DeleteProtection, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteDeleteProtection(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteDeleteProtection writes a value of the 'delete_protection' type to the given stream. +func WriteDeleteProtection(object *DeleteProtection, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("enabled") + stream.WriteBool(object.enabled) + } + stream.WriteObjectEnd() +} + +// UnmarshalDeleteProtection reads a value of the 'delete_protection' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalDeleteProtection(source interface{}) (object *DeleteProtection, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadDeleteProtection(iterator) + err = iterator.Error + return +} + +// ReadDeleteProtection reads a value of the 'delete_protection' type from the given iterator. +func ReadDeleteProtection(iterator *jsoniter.Iterator) *DeleteProtection { + object := &DeleteProtection{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "enabled": + value := iterator.ReadBool() + object.enabled = value + object.bitmap_ |= 1 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/dns_builder.go b/arohcp/v1alpha1/dns_builder.go new file mode 100644 index 000000000..cadad6679 --- /dev/null +++ b/arohcp/v1alpha1/dns_builder.go @@ -0,0 +1,63 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// DNSBuilder contains the data and logic needed to build 'DNS' objects. +// +// DNS settings of the cluster. +type DNSBuilder struct { + bitmap_ uint32 + baseDomain string +} + +// NewDNS creates a new builder of 'DNS' objects. +func NewDNS() *DNSBuilder { + return &DNSBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *DNSBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// BaseDomain sets the value of the 'base_domain' attribute to the given value. +func (b *DNSBuilder) BaseDomain(value string) *DNSBuilder { + b.baseDomain = value + b.bitmap_ |= 1 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *DNSBuilder) Copy(object *DNS) *DNSBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.baseDomain = object.baseDomain + return b +} + +// Build creates a 'DNS' object using the configuration stored in the builder. +func (b *DNSBuilder) Build() (object *DNS, err error) { + object = new(DNS) + object.bitmap_ = b.bitmap_ + object.baseDomain = b.baseDomain + return +} diff --git a/arohcp/v1alpha1/dns_list_builder.go b/arohcp/v1alpha1/dns_list_builder.go new file mode 100644 index 000000000..a34e1a4b7 --- /dev/null +++ b/arohcp/v1alpha1/dns_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// DNSListBuilder contains the data and logic needed to build +// 'DNS' objects. +type DNSListBuilder struct { + items []*DNSBuilder +} + +// NewDNSList creates a new builder of 'DNS' objects. +func NewDNSList() *DNSListBuilder { + return new(DNSListBuilder) +} + +// Items sets the items of the list. +func (b *DNSListBuilder) Items(values ...*DNSBuilder) *DNSListBuilder { + b.items = make([]*DNSBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *DNSListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *DNSListBuilder) Copy(list *DNSList) *DNSListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*DNSBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewDNS().Copy(v) + } + } + return b +} + +// Build creates a list of 'DNS' objects using the +// configuration stored in the builder. +func (b *DNSListBuilder) Build() (list *DNSList, err error) { + items := make([]*DNS, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(DNSList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/dns_list_type_json.go b/arohcp/v1alpha1/dns_list_type_json.go new file mode 100644 index 000000000..6443cf2c8 --- /dev/null +++ b/arohcp/v1alpha1/dns_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalDNSList writes a list of values of the 'DNS' type to +// the given writer. +func MarshalDNSList(list []*DNS, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteDNSList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteDNSList writes a list of value of the 'DNS' type to +// the given stream. +func WriteDNSList(list []*DNS, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteDNS(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalDNSList reads a list of values of the 'DNS' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalDNSList(source interface{}) (items []*DNS, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadDNSList(iterator) + err = iterator.Error + return +} + +// ReadDNSList reads list of values of the ”DNS' type from +// the given iterator. +func ReadDNSList(iterator *jsoniter.Iterator) []*DNS { + list := []*DNS{} + for iterator.ReadArray() { + item := ReadDNS(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/dns_type.go b/arohcp/v1alpha1/dns_type.go new file mode 100644 index 000000000..93b37ed6a --- /dev/null +++ b/arohcp/v1alpha1/dns_type.go @@ -0,0 +1,251 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// DNS represents the values of the 'DNS' type. +// +// DNS settings of the cluster. +type DNS struct { + bitmap_ uint32 + baseDomain string +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *DNS) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// BaseDomain returns the value of the 'base_domain' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Base DNS domain of the cluster. +// +// During the installation of the cluster it is necessary to create multiple DNS records. +// They will be created as sub-domains of this domain. For example, if the domain_prefix of the +// cluster is `mycluster` and the base domain is `example.com` then the following DNS +// records will be created: +// +// ``` +// mycluster-api.example.com +// mycluster-etcd-0.example.com +// mycluster-etcd-1.example.com +// mycluster-etcd-3.example.com +// ``` +// +// The exact number, type and names of the created DNS record depends on the characteristics +// of the cluster, and may be different for different versions of _OpenShift_. Please don't +// rely on them. For example, to find what is the URL of the Kubernetes API server of the +// cluster don't assume that it will be `mycluster-api.example.com`. Instead of that use +// this API to retrieve the description of the cluster, and get it from the `api.url` +// attribute. For example, if the identifier of the cluster is `123` send a request like +// this: +// +// ```http +// GET /api/clusters_mgmt/v1/clusters/123 HTTP/1.1 +// ``` +// +// That will return a response like this, including the `api.url` attribute: +// +// ```json +// +// { +// "kind": "Cluster", +// "id": "123", +// "href": "/api/clusters_mgmt/v1/clusters/123", +// "api": { +// "url": "https://mycluster-api.example.com:6443" +// }, +// ... +// } +// +// ``` +// +// When the cluster is created in Amazon Web Services it is necessary to create this base +// DNS domain in advance, using AWS Route53 (https://console.aws.amazon.com/route53). +func (o *DNS) BaseDomain() string { + if o != nil && o.bitmap_&1 != 0 { + return o.baseDomain + } + return "" +} + +// GetBaseDomain returns the value of the 'base_domain' attribute and +// a flag indicating if the attribute has a value. +// +// Base DNS domain of the cluster. +// +// During the installation of the cluster it is necessary to create multiple DNS records. +// They will be created as sub-domains of this domain. For example, if the domain_prefix of the +// cluster is `mycluster` and the base domain is `example.com` then the following DNS +// records will be created: +// +// ``` +// mycluster-api.example.com +// mycluster-etcd-0.example.com +// mycluster-etcd-1.example.com +// mycluster-etcd-3.example.com +// ``` +// +// The exact number, type and names of the created DNS record depends on the characteristics +// of the cluster, and may be different for different versions of _OpenShift_. Please don't +// rely on them. For example, to find what is the URL of the Kubernetes API server of the +// cluster don't assume that it will be `mycluster-api.example.com`. Instead of that use +// this API to retrieve the description of the cluster, and get it from the `api.url` +// attribute. For example, if the identifier of the cluster is `123` send a request like +// this: +// +// ```http +// GET /api/clusters_mgmt/v1/clusters/123 HTTP/1.1 +// ``` +// +// That will return a response like this, including the `api.url` attribute: +// +// ```json +// +// { +// "kind": "Cluster", +// "id": "123", +// "href": "/api/clusters_mgmt/v1/clusters/123", +// "api": { +// "url": "https://mycluster-api.example.com:6443" +// }, +// ... +// } +// +// ``` +// +// When the cluster is created in Amazon Web Services it is necessary to create this base +// DNS domain in advance, using AWS Route53 (https://console.aws.amazon.com/route53). +func (o *DNS) GetBaseDomain() (value string, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.baseDomain + } + return +} + +// DNSListKind is the name of the type used to represent list of objects of +// type 'DNS'. +const DNSListKind = "DNSList" + +// DNSListLinkKind is the name of the type used to represent links to list +// of objects of type 'DNS'. +const DNSListLinkKind = "DNSListLink" + +// DNSNilKind is the name of the type used to nil lists of objects of +// type 'DNS'. +const DNSListNilKind = "DNSListNil" + +// DNSList is a list of values of the 'DNS' type. +type DNSList struct { + href string + link bool + items []*DNS +} + +// Len returns the length of the list. +func (l *DNSList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *DNSList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *DNSList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *DNSList) SetItems(items []*DNS) { + l.items = items +} + +// Items returns the items of the list. +func (l *DNSList) Items() []*DNS { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *DNSList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *DNSList) Get(i int) *DNS { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *DNSList) Slice() []*DNS { + var slice []*DNS + if l == nil { + slice = make([]*DNS, 0) + } else { + slice = make([]*DNS, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *DNSList) Each(f func(item *DNS) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *DNSList) Range(f func(index int, item *DNS) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/dns_type_json.go b/arohcp/v1alpha1/dns_type_json.go new file mode 100644 index 000000000..e20241a88 --- /dev/null +++ b/arohcp/v1alpha1/dns_type_json.go @@ -0,0 +1,86 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalDNS writes a value of the 'DNS' type to the given writer. +func MarshalDNS(object *DNS, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteDNS(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteDNS writes a value of the 'DNS' type to the given stream. +func WriteDNS(object *DNS, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("base_domain") + stream.WriteString(object.baseDomain) + } + stream.WriteObjectEnd() +} + +// UnmarshalDNS reads a value of the 'DNS' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalDNS(source interface{}) (object *DNS, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadDNS(iterator) + err = iterator.Error + return +} + +// ReadDNS reads a value of the 'DNS' type from the given iterator. +func ReadDNS(iterator *jsoniter.Iterator) *DNS { + object := &DNS{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "base_domain": + value := iterator.ReadString() + object.baseDomain = value + object.bitmap_ |= 1 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/ec_2_metadata_http_tokens_list_type_json.go b/arohcp/v1alpha1/ec_2_metadata_http_tokens_list_type_json.go new file mode 100644 index 000000000..546cd542f --- /dev/null +++ b/arohcp/v1alpha1/ec_2_metadata_http_tokens_list_type_json.go @@ -0,0 +1,76 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalEc2MetadataHttpTokensList writes a list of values of the 'ec_2_metadata_http_tokens' type to +// the given writer. +func MarshalEc2MetadataHttpTokensList(list []Ec2MetadataHttpTokens, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteEc2MetadataHttpTokensList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteEc2MetadataHttpTokensList writes a list of value of the 'ec_2_metadata_http_tokens' type to +// the given stream. +func WriteEc2MetadataHttpTokensList(list []Ec2MetadataHttpTokens, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + stream.WriteString(string(value)) + } + stream.WriteArrayEnd() +} + +// UnmarshalEc2MetadataHttpTokensList reads a list of values of the 'ec_2_metadata_http_tokens' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalEc2MetadataHttpTokensList(source interface{}) (items []Ec2MetadataHttpTokens, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadEc2MetadataHttpTokensList(iterator) + err = iterator.Error + return +} + +// ReadEc2MetadataHttpTokensList reads list of values of the ”ec_2_metadata_http_tokens' type from +// the given iterator. +func ReadEc2MetadataHttpTokensList(iterator *jsoniter.Iterator) []Ec2MetadataHttpTokens { + list := []Ec2MetadataHttpTokens{} + for iterator.ReadArray() { + text := iterator.ReadString() + item := Ec2MetadataHttpTokens(text) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/ec_2_metadata_http_tokens_type.go b/arohcp/v1alpha1/ec_2_metadata_http_tokens_type.go new file mode 100644 index 000000000..79c834a0a --- /dev/null +++ b/arohcp/v1alpha1/ec_2_metadata_http_tokens_type.go @@ -0,0 +1,30 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// Ec2MetadataHttpTokens represents the values of the 'ec_2_metadata_http_tokens' enumerated type. +type Ec2MetadataHttpTokens string + +const ( + // imdsv2 is optional + Ec2MetadataHttpTokensOptional Ec2MetadataHttpTokens = "optional" + // imdsv2 is required + Ec2MetadataHttpTokensRequired Ec2MetadataHttpTokens = "required" +) diff --git a/arohcp/v1alpha1/errors.go b/arohcp/v1alpha1/errors.go new file mode 100644 index 000000000..152493615 --- /dev/null +++ b/arohcp/v1alpha1/errors.go @@ -0,0 +1,20 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 diff --git a/arohcp/v1alpha1/external_auth_config_builder.go b/arohcp/v1alpha1/external_auth_config_builder.go new file mode 100644 index 000000000..2ae8cc996 --- /dev/null +++ b/arohcp/v1alpha1/external_auth_config_builder.go @@ -0,0 +1,86 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + v1 "github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1" +) + +// ExternalAuthConfigBuilder contains the data and logic needed to build 'external_auth_config' objects. +// +// ExternalAuthConfig configuration +type ExternalAuthConfigBuilder struct { + bitmap_ uint32 + externalAuths *v1.ExternalAuthListBuilder + enabled bool +} + +// NewExternalAuthConfig creates a new builder of 'external_auth_config' objects. +func NewExternalAuthConfig() *ExternalAuthConfigBuilder { + return &ExternalAuthConfigBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *ExternalAuthConfigBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// Enabled sets the value of the 'enabled' attribute to the given value. +func (b *ExternalAuthConfigBuilder) Enabled(value bool) *ExternalAuthConfigBuilder { + b.enabled = value + b.bitmap_ |= 1 + return b +} + +// ExternalAuths sets the value of the 'external_auths' attribute to the given values. +func (b *ExternalAuthConfigBuilder) ExternalAuths(value *v1.ExternalAuthListBuilder) *ExternalAuthConfigBuilder { + b.externalAuths = value + b.bitmap_ |= 2 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *ExternalAuthConfigBuilder) Copy(object *ExternalAuthConfig) *ExternalAuthConfigBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.enabled = object.enabled + if object.externalAuths != nil { + b.externalAuths = v1.NewExternalAuthList().Copy(object.externalAuths) + } else { + b.externalAuths = nil + } + return b +} + +// Build creates a 'external_auth_config' object using the configuration stored in the builder. +func (b *ExternalAuthConfigBuilder) Build() (object *ExternalAuthConfig, err error) { + object = new(ExternalAuthConfig) + object.bitmap_ = b.bitmap_ + object.enabled = b.enabled + if b.externalAuths != nil { + object.externalAuths, err = b.externalAuths.Build() + if err != nil { + return + } + } + return +} diff --git a/arohcp/v1alpha1/external_auth_config_list_builder.go b/arohcp/v1alpha1/external_auth_config_list_builder.go new file mode 100644 index 000000000..0dea02bd6 --- /dev/null +++ b/arohcp/v1alpha1/external_auth_config_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ExternalAuthConfigListBuilder contains the data and logic needed to build +// 'external_auth_config' objects. +type ExternalAuthConfigListBuilder struct { + items []*ExternalAuthConfigBuilder +} + +// NewExternalAuthConfigList creates a new builder of 'external_auth_config' objects. +func NewExternalAuthConfigList() *ExternalAuthConfigListBuilder { + return new(ExternalAuthConfigListBuilder) +} + +// Items sets the items of the list. +func (b *ExternalAuthConfigListBuilder) Items(values ...*ExternalAuthConfigBuilder) *ExternalAuthConfigListBuilder { + b.items = make([]*ExternalAuthConfigBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *ExternalAuthConfigListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *ExternalAuthConfigListBuilder) Copy(list *ExternalAuthConfigList) *ExternalAuthConfigListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*ExternalAuthConfigBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewExternalAuthConfig().Copy(v) + } + } + return b +} + +// Build creates a list of 'external_auth_config' objects using the +// configuration stored in the builder. +func (b *ExternalAuthConfigListBuilder) Build() (list *ExternalAuthConfigList, err error) { + items := make([]*ExternalAuthConfig, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(ExternalAuthConfigList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/external_auth_config_list_type_json.go b/arohcp/v1alpha1/external_auth_config_list_type_json.go new file mode 100644 index 000000000..289b68f0b --- /dev/null +++ b/arohcp/v1alpha1/external_auth_config_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalExternalAuthConfigList writes a list of values of the 'external_auth_config' type to +// the given writer. +func MarshalExternalAuthConfigList(list []*ExternalAuthConfig, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteExternalAuthConfigList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteExternalAuthConfigList writes a list of value of the 'external_auth_config' type to +// the given stream. +func WriteExternalAuthConfigList(list []*ExternalAuthConfig, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteExternalAuthConfig(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalExternalAuthConfigList reads a list of values of the 'external_auth_config' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalExternalAuthConfigList(source interface{}) (items []*ExternalAuthConfig, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadExternalAuthConfigList(iterator) + err = iterator.Error + return +} + +// ReadExternalAuthConfigList reads list of values of the ”external_auth_config' type from +// the given iterator. +func ReadExternalAuthConfigList(iterator *jsoniter.Iterator) []*ExternalAuthConfig { + list := []*ExternalAuthConfig{} + for iterator.ReadArray() { + item := ReadExternalAuthConfig(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/external_auth_config_type.go b/arohcp/v1alpha1/external_auth_config_type.go new file mode 100644 index 000000000..f1b01bfed --- /dev/null +++ b/arohcp/v1alpha1/external_auth_config_type.go @@ -0,0 +1,199 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + v1 "github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1" +) + +// ExternalAuthConfig represents the values of the 'external_auth_config' type. +// +// ExternalAuthConfig configuration +type ExternalAuthConfig struct { + bitmap_ uint32 + externalAuths *v1.ExternalAuthList + enabled bool +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *ExternalAuthConfig) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// Enabled returns the value of the 'enabled' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Boolean flag indicating if the cluster should use an external authentication configuration. +// +// By default this is false. +// +// To enable it the cluster needs to be ROSA HCP cluster and the organization of the user needs +// to have the `external-authentication` feature toggle enabled. +func (o *ExternalAuthConfig) Enabled() bool { + if o != nil && o.bitmap_&1 != 0 { + return o.enabled + } + return false +} + +// GetEnabled returns the value of the 'enabled' attribute and +// a flag indicating if the attribute has a value. +// +// Boolean flag indicating if the cluster should use an external authentication configuration. +// +// By default this is false. +// +// To enable it the cluster needs to be ROSA HCP cluster and the organization of the user needs +// to have the `external-authentication` feature toggle enabled. +func (o *ExternalAuthConfig) GetEnabled() (value bool, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.enabled + } + return +} + +// ExternalAuths returns the value of the 'external_auths' attribute, or +// the zero value of the type if the attribute doesn't have a value. +func (o *ExternalAuthConfig) ExternalAuths() *v1.ExternalAuthList { + if o != nil && o.bitmap_&2 != 0 { + return o.externalAuths + } + return nil +} + +// GetExternalAuths returns the value of the 'external_auths' attribute and +// a flag indicating if the attribute has a value. +func (o *ExternalAuthConfig) GetExternalAuths() (value *v1.ExternalAuthList, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.externalAuths + } + return +} + +// ExternalAuthConfigListKind is the name of the type used to represent list of objects of +// type 'external_auth_config'. +const ExternalAuthConfigListKind = "ExternalAuthConfigList" + +// ExternalAuthConfigListLinkKind is the name of the type used to represent links to list +// of objects of type 'external_auth_config'. +const ExternalAuthConfigListLinkKind = "ExternalAuthConfigListLink" + +// ExternalAuthConfigNilKind is the name of the type used to nil lists of objects of +// type 'external_auth_config'. +const ExternalAuthConfigListNilKind = "ExternalAuthConfigListNil" + +// ExternalAuthConfigList is a list of values of the 'external_auth_config' type. +type ExternalAuthConfigList struct { + href string + link bool + items []*ExternalAuthConfig +} + +// Len returns the length of the list. +func (l *ExternalAuthConfigList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *ExternalAuthConfigList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ExternalAuthConfigList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ExternalAuthConfigList) SetItems(items []*ExternalAuthConfig) { + l.items = items +} + +// Items returns the items of the list. +func (l *ExternalAuthConfigList) Items() []*ExternalAuthConfig { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *ExternalAuthConfigList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *ExternalAuthConfigList) Get(i int) *ExternalAuthConfig { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *ExternalAuthConfigList) Slice() []*ExternalAuthConfig { + var slice []*ExternalAuthConfig + if l == nil { + slice = make([]*ExternalAuthConfig, 0) + } else { + slice = make([]*ExternalAuthConfig, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *ExternalAuthConfigList) Each(f func(item *ExternalAuthConfig) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *ExternalAuthConfigList) Range(f func(index int, item *ExternalAuthConfig) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/external_auth_config_type_json.go b/arohcp/v1alpha1/external_auth_config_type_json.go new file mode 100644 index 000000000..3e5d86d62 --- /dev/null +++ b/arohcp/v1alpha1/external_auth_config_type_json.go @@ -0,0 +1,120 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + v1 "github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalExternalAuthConfig writes a value of the 'external_auth_config' type to the given writer. +func MarshalExternalAuthConfig(object *ExternalAuthConfig, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteExternalAuthConfig(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteExternalAuthConfig writes a value of the 'external_auth_config' type to the given stream. +func WriteExternalAuthConfig(object *ExternalAuthConfig, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("enabled") + stream.WriteBool(object.enabled) + count++ + } + present_ = object.bitmap_&2 != 0 && object.externalAuths != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("external_auths") + stream.WriteObjectStart() + stream.WriteObjectField("items") + v1.WriteExternalAuthList(object.externalAuths.Items(), stream) + stream.WriteObjectEnd() + } + stream.WriteObjectEnd() +} + +// UnmarshalExternalAuthConfig reads a value of the 'external_auth_config' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalExternalAuthConfig(source interface{}) (object *ExternalAuthConfig, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadExternalAuthConfig(iterator) + err = iterator.Error + return +} + +// ReadExternalAuthConfig reads a value of the 'external_auth_config' type from the given iterator. +func ReadExternalAuthConfig(iterator *jsoniter.Iterator) *ExternalAuthConfig { + object := &ExternalAuthConfig{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "enabled": + value := iterator.ReadBool() + object.enabled = value + object.bitmap_ |= 1 + case "external_auths": + value := &v1.ExternalAuthList{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "kind": + text := iterator.ReadString() + value.SetLink(text == v1.ExternalAuthListLinkKind) + case "href": + value.SetHREF(iterator.ReadString()) + case "items": + value.SetItems(v1.ReadExternalAuthList(iterator)) + default: + iterator.ReadAny() + } + } + object.externalAuths = value + object.bitmap_ |= 2 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/external_configuration_builder.go b/arohcp/v1alpha1/external_configuration_builder.go new file mode 100644 index 000000000..55ec728c6 --- /dev/null +++ b/arohcp/v1alpha1/external_configuration_builder.go @@ -0,0 +1,114 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + v1 "github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1" +) + +// ExternalConfigurationBuilder contains the data and logic needed to build 'external_configuration' objects. +// +// Representation of cluster external configuration. +type ExternalConfigurationBuilder struct { + bitmap_ uint32 + labels *v1.LabelListBuilder + manifests *v1.ManifestListBuilder + syncsets *v1.SyncsetListBuilder +} + +// NewExternalConfiguration creates a new builder of 'external_configuration' objects. +func NewExternalConfiguration() *ExternalConfigurationBuilder { + return &ExternalConfigurationBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *ExternalConfigurationBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// Labels sets the value of the 'labels' attribute to the given values. +func (b *ExternalConfigurationBuilder) Labels(value *v1.LabelListBuilder) *ExternalConfigurationBuilder { + b.labels = value + b.bitmap_ |= 1 + return b +} + +// Manifests sets the value of the 'manifests' attribute to the given values. +func (b *ExternalConfigurationBuilder) Manifests(value *v1.ManifestListBuilder) *ExternalConfigurationBuilder { + b.manifests = value + b.bitmap_ |= 2 + return b +} + +// Syncsets sets the value of the 'syncsets' attribute to the given values. +func (b *ExternalConfigurationBuilder) Syncsets(value *v1.SyncsetListBuilder) *ExternalConfigurationBuilder { + b.syncsets = value + b.bitmap_ |= 4 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *ExternalConfigurationBuilder) Copy(object *ExternalConfiguration) *ExternalConfigurationBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + if object.labels != nil { + b.labels = v1.NewLabelList().Copy(object.labels) + } else { + b.labels = nil + } + if object.manifests != nil { + b.manifests = v1.NewManifestList().Copy(object.manifests) + } else { + b.manifests = nil + } + if object.syncsets != nil { + b.syncsets = v1.NewSyncsetList().Copy(object.syncsets) + } else { + b.syncsets = nil + } + return b +} + +// Build creates a 'external_configuration' object using the configuration stored in the builder. +func (b *ExternalConfigurationBuilder) Build() (object *ExternalConfiguration, err error) { + object = new(ExternalConfiguration) + object.bitmap_ = b.bitmap_ + if b.labels != nil { + object.labels, err = b.labels.Build() + if err != nil { + return + } + } + if b.manifests != nil { + object.manifests, err = b.manifests.Build() + if err != nil { + return + } + } + if b.syncsets != nil { + object.syncsets, err = b.syncsets.Build() + if err != nil { + return + } + } + return +} diff --git a/arohcp/v1alpha1/external_configuration_list_builder.go b/arohcp/v1alpha1/external_configuration_list_builder.go new file mode 100644 index 000000000..5d6dfec74 --- /dev/null +++ b/arohcp/v1alpha1/external_configuration_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ExternalConfigurationListBuilder contains the data and logic needed to build +// 'external_configuration' objects. +type ExternalConfigurationListBuilder struct { + items []*ExternalConfigurationBuilder +} + +// NewExternalConfigurationList creates a new builder of 'external_configuration' objects. +func NewExternalConfigurationList() *ExternalConfigurationListBuilder { + return new(ExternalConfigurationListBuilder) +} + +// Items sets the items of the list. +func (b *ExternalConfigurationListBuilder) Items(values ...*ExternalConfigurationBuilder) *ExternalConfigurationListBuilder { + b.items = make([]*ExternalConfigurationBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *ExternalConfigurationListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *ExternalConfigurationListBuilder) Copy(list *ExternalConfigurationList) *ExternalConfigurationListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*ExternalConfigurationBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewExternalConfiguration().Copy(v) + } + } + return b +} + +// Build creates a list of 'external_configuration' objects using the +// configuration stored in the builder. +func (b *ExternalConfigurationListBuilder) Build() (list *ExternalConfigurationList, err error) { + items := make([]*ExternalConfiguration, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(ExternalConfigurationList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/external_configuration_list_type_json.go b/arohcp/v1alpha1/external_configuration_list_type_json.go new file mode 100644 index 000000000..ee71feb85 --- /dev/null +++ b/arohcp/v1alpha1/external_configuration_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalExternalConfigurationList writes a list of values of the 'external_configuration' type to +// the given writer. +func MarshalExternalConfigurationList(list []*ExternalConfiguration, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteExternalConfigurationList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteExternalConfigurationList writes a list of value of the 'external_configuration' type to +// the given stream. +func WriteExternalConfigurationList(list []*ExternalConfiguration, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteExternalConfiguration(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalExternalConfigurationList reads a list of values of the 'external_configuration' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalExternalConfigurationList(source interface{}) (items []*ExternalConfiguration, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadExternalConfigurationList(iterator) + err = iterator.Error + return +} + +// ReadExternalConfigurationList reads list of values of the ”external_configuration' type from +// the given iterator. +func ReadExternalConfigurationList(iterator *jsoniter.Iterator) []*ExternalConfiguration { + list := []*ExternalConfiguration{} + for iterator.ReadArray() { + item := ReadExternalConfiguration(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/external_configuration_type.go b/arohcp/v1alpha1/external_configuration_type.go new file mode 100644 index 000000000..2f2aaf486 --- /dev/null +++ b/arohcp/v1alpha1/external_configuration_type.go @@ -0,0 +1,217 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + v1 "github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1" +) + +// ExternalConfiguration represents the values of the 'external_configuration' type. +// +// Representation of cluster external configuration. +type ExternalConfiguration struct { + bitmap_ uint32 + labels *v1.LabelList + manifests *v1.ManifestList + syncsets *v1.SyncsetList +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *ExternalConfiguration) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// Labels returns the value of the 'labels' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// list of labels externally configured on the clusterdeployment. +func (o *ExternalConfiguration) Labels() *v1.LabelList { + if o != nil && o.bitmap_&1 != 0 { + return o.labels + } + return nil +} + +// GetLabels returns the value of the 'labels' attribute and +// a flag indicating if the attribute has a value. +// +// list of labels externally configured on the clusterdeployment. +func (o *ExternalConfiguration) GetLabels() (value *v1.LabelList, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.labels + } + return +} + +// Manifests returns the value of the 'manifests' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// list of manifest externally configured for a hosted cluster. +func (o *ExternalConfiguration) Manifests() *v1.ManifestList { + if o != nil && o.bitmap_&2 != 0 { + return o.manifests + } + return nil +} + +// GetManifests returns the value of the 'manifests' attribute and +// a flag indicating if the attribute has a value. +// +// list of manifest externally configured for a hosted cluster. +func (o *ExternalConfiguration) GetManifests() (value *v1.ManifestList, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.manifests + } + return +} + +// Syncsets returns the value of the 'syncsets' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// list of syncsets externally configured on the cluster. +func (o *ExternalConfiguration) Syncsets() *v1.SyncsetList { + if o != nil && o.bitmap_&4 != 0 { + return o.syncsets + } + return nil +} + +// GetSyncsets returns the value of the 'syncsets' attribute and +// a flag indicating if the attribute has a value. +// +// list of syncsets externally configured on the cluster. +func (o *ExternalConfiguration) GetSyncsets() (value *v1.SyncsetList, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.syncsets + } + return +} + +// ExternalConfigurationListKind is the name of the type used to represent list of objects of +// type 'external_configuration'. +const ExternalConfigurationListKind = "ExternalConfigurationList" + +// ExternalConfigurationListLinkKind is the name of the type used to represent links to list +// of objects of type 'external_configuration'. +const ExternalConfigurationListLinkKind = "ExternalConfigurationListLink" + +// ExternalConfigurationNilKind is the name of the type used to nil lists of objects of +// type 'external_configuration'. +const ExternalConfigurationListNilKind = "ExternalConfigurationListNil" + +// ExternalConfigurationList is a list of values of the 'external_configuration' type. +type ExternalConfigurationList struct { + href string + link bool + items []*ExternalConfiguration +} + +// Len returns the length of the list. +func (l *ExternalConfigurationList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *ExternalConfigurationList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ExternalConfigurationList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ExternalConfigurationList) SetItems(items []*ExternalConfiguration) { + l.items = items +} + +// Items returns the items of the list. +func (l *ExternalConfigurationList) Items() []*ExternalConfiguration { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *ExternalConfigurationList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *ExternalConfigurationList) Get(i int) *ExternalConfiguration { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *ExternalConfigurationList) Slice() []*ExternalConfiguration { + var slice []*ExternalConfiguration + if l == nil { + slice = make([]*ExternalConfiguration, 0) + } else { + slice = make([]*ExternalConfiguration, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *ExternalConfigurationList) Each(f func(item *ExternalConfiguration) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *ExternalConfigurationList) Range(f func(index int, item *ExternalConfiguration) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/external_configuration_type_json.go b/arohcp/v1alpha1/external_configuration_type_json.go new file mode 100644 index 000000000..ce4d58727 --- /dev/null +++ b/arohcp/v1alpha1/external_configuration_type_json.go @@ -0,0 +1,173 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + v1 "github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalExternalConfiguration writes a value of the 'external_configuration' type to the given writer. +func MarshalExternalConfiguration(object *ExternalConfiguration, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteExternalConfiguration(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteExternalConfiguration writes a value of the 'external_configuration' type to the given stream. +func WriteExternalConfiguration(object *ExternalConfiguration, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 && object.labels != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("labels") + stream.WriteObjectStart() + stream.WriteObjectField("items") + v1.WriteLabelList(object.labels.Items(), stream) + stream.WriteObjectEnd() + count++ + } + present_ = object.bitmap_&2 != 0 && object.manifests != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("manifests") + stream.WriteObjectStart() + stream.WriteObjectField("items") + v1.WriteManifestList(object.manifests.Items(), stream) + stream.WriteObjectEnd() + count++ + } + present_ = object.bitmap_&4 != 0 && object.syncsets != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("syncsets") + stream.WriteObjectStart() + stream.WriteObjectField("items") + v1.WriteSyncsetList(object.syncsets.Items(), stream) + stream.WriteObjectEnd() + } + stream.WriteObjectEnd() +} + +// UnmarshalExternalConfiguration reads a value of the 'external_configuration' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalExternalConfiguration(source interface{}) (object *ExternalConfiguration, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadExternalConfiguration(iterator) + err = iterator.Error + return +} + +// ReadExternalConfiguration reads a value of the 'external_configuration' type from the given iterator. +func ReadExternalConfiguration(iterator *jsoniter.Iterator) *ExternalConfiguration { + object := &ExternalConfiguration{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "labels": + value := &v1.LabelList{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "kind": + text := iterator.ReadString() + value.SetLink(text == v1.LabelListLinkKind) + case "href": + value.SetHREF(iterator.ReadString()) + case "items": + value.SetItems(v1.ReadLabelList(iterator)) + default: + iterator.ReadAny() + } + } + object.labels = value + object.bitmap_ |= 1 + case "manifests": + value := &v1.ManifestList{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "kind": + text := iterator.ReadString() + value.SetLink(text == v1.ManifestListLinkKind) + case "href": + value.SetHREF(iterator.ReadString()) + case "items": + value.SetItems(v1.ReadManifestList(iterator)) + default: + iterator.ReadAny() + } + } + object.manifests = value + object.bitmap_ |= 2 + case "syncsets": + value := &v1.SyncsetList{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "kind": + text := iterator.ReadString() + value.SetLink(text == v1.SyncsetListLinkKind) + case "href": + value.SetHREF(iterator.ReadString()) + case "items": + value.SetItems(v1.ReadSyncsetList(iterator)) + default: + iterator.ReadAny() + } + } + object.syncsets = value + object.bitmap_ |= 4 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/float_list_type_json.go b/arohcp/v1alpha1/float_list_type_json.go new file mode 100644 index 000000000..759f5e17b --- /dev/null +++ b/arohcp/v1alpha1/float_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalFloatList writes a list of values of the 'float' type to +// the given writer. +func MarshalFloatList(list []float64, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteFloatList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteFloatList writes a list of value of the 'float' type to +// the given stream. +func WriteFloatList(list []float64, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + stream.WriteFloat64(value) + } + stream.WriteArrayEnd() +} + +// UnmarshalFloatList reads a list of values of the 'float' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalFloatList(source interface{}) (items []float64, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadFloatList(iterator) + err = iterator.Error + return +} + +// ReadFloatList reads list of values of the ”float' type from +// the given iterator. +func ReadFloatList(iterator *jsoniter.Iterator) []float64 { + list := []float64{} + for iterator.ReadArray() { + item := iterator.ReadFloat64() + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/gcp_authentication_builder.go b/arohcp/v1alpha1/gcp_authentication_builder.go new file mode 100644 index 000000000..9b19fae0d --- /dev/null +++ b/arohcp/v1alpha1/gcp_authentication_builder.go @@ -0,0 +1,83 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// GcpAuthenticationBuilder contains the data and logic needed to build 'gcp_authentication' objects. +// +// Google cloud platform authentication method of a cluster. +type GcpAuthenticationBuilder struct { + bitmap_ uint32 + href string + id string + kind string +} + +// NewGcpAuthentication creates a new builder of 'gcp_authentication' objects. +func NewGcpAuthentication() *GcpAuthenticationBuilder { + return &GcpAuthenticationBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *GcpAuthenticationBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// Href sets the value of the 'href' attribute to the given value. +func (b *GcpAuthenticationBuilder) Href(value string) *GcpAuthenticationBuilder { + b.href = value + b.bitmap_ |= 1 + return b +} + +// Id sets the value of the 'id' attribute to the given value. +func (b *GcpAuthenticationBuilder) Id(value string) *GcpAuthenticationBuilder { + b.id = value + b.bitmap_ |= 2 + return b +} + +// Kind sets the value of the 'kind' attribute to the given value. +func (b *GcpAuthenticationBuilder) Kind(value string) *GcpAuthenticationBuilder { + b.kind = value + b.bitmap_ |= 4 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *GcpAuthenticationBuilder) Copy(object *GcpAuthentication) *GcpAuthenticationBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.href = object.href + b.id = object.id + b.kind = object.kind + return b +} + +// Build creates a 'gcp_authentication' object using the configuration stored in the builder. +func (b *GcpAuthenticationBuilder) Build() (object *GcpAuthentication, err error) { + object = new(GcpAuthentication) + object.bitmap_ = b.bitmap_ + object.href = b.href + object.id = b.id + object.kind = b.kind + return +} diff --git a/arohcp/v1alpha1/gcp_authentication_list_builder.go b/arohcp/v1alpha1/gcp_authentication_list_builder.go new file mode 100644 index 000000000..4735f3b13 --- /dev/null +++ b/arohcp/v1alpha1/gcp_authentication_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// GcpAuthenticationListBuilder contains the data and logic needed to build +// 'gcp_authentication' objects. +type GcpAuthenticationListBuilder struct { + items []*GcpAuthenticationBuilder +} + +// NewGcpAuthenticationList creates a new builder of 'gcp_authentication' objects. +func NewGcpAuthenticationList() *GcpAuthenticationListBuilder { + return new(GcpAuthenticationListBuilder) +} + +// Items sets the items of the list. +func (b *GcpAuthenticationListBuilder) Items(values ...*GcpAuthenticationBuilder) *GcpAuthenticationListBuilder { + b.items = make([]*GcpAuthenticationBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *GcpAuthenticationListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *GcpAuthenticationListBuilder) Copy(list *GcpAuthenticationList) *GcpAuthenticationListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*GcpAuthenticationBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewGcpAuthentication().Copy(v) + } + } + return b +} + +// Build creates a list of 'gcp_authentication' objects using the +// configuration stored in the builder. +func (b *GcpAuthenticationListBuilder) Build() (list *GcpAuthenticationList, err error) { + items := make([]*GcpAuthentication, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(GcpAuthenticationList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/gcp_authentication_list_type_json.go b/arohcp/v1alpha1/gcp_authentication_list_type_json.go new file mode 100644 index 000000000..5be3d7a34 --- /dev/null +++ b/arohcp/v1alpha1/gcp_authentication_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalGcpAuthenticationList writes a list of values of the 'gcp_authentication' type to +// the given writer. +func MarshalGcpAuthenticationList(list []*GcpAuthentication, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteGcpAuthenticationList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteGcpAuthenticationList writes a list of value of the 'gcp_authentication' type to +// the given stream. +func WriteGcpAuthenticationList(list []*GcpAuthentication, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteGcpAuthentication(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalGcpAuthenticationList reads a list of values of the 'gcp_authentication' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalGcpAuthenticationList(source interface{}) (items []*GcpAuthentication, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadGcpAuthenticationList(iterator) + err = iterator.Error + return +} + +// ReadGcpAuthenticationList reads list of values of the ”gcp_authentication' type from +// the given iterator. +func ReadGcpAuthenticationList(iterator *jsoniter.Iterator) []*GcpAuthentication { + list := []*GcpAuthentication{} + for iterator.ReadArray() { + item := ReadGcpAuthentication(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/gcp_authentication_type.go b/arohcp/v1alpha1/gcp_authentication_type.go new file mode 100644 index 000000000..202bfe3aa --- /dev/null +++ b/arohcp/v1alpha1/gcp_authentication_type.go @@ -0,0 +1,213 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// GcpAuthentication represents the values of the 'gcp_authentication' type. +// +// Google cloud platform authentication method of a cluster. +type GcpAuthentication struct { + bitmap_ uint32 + href string + id string + kind string +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *GcpAuthentication) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// Href returns the value of the 'href' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Self link +func (o *GcpAuthentication) Href() string { + if o != nil && o.bitmap_&1 != 0 { + return o.href + } + return "" +} + +// GetHref returns the value of the 'href' attribute and +// a flag indicating if the attribute has a value. +// +// Self link +func (o *GcpAuthentication) GetHref() (value string, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.href + } + return +} + +// Id returns the value of the 'id' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Unique identifier of the object +func (o *GcpAuthentication) Id() string { + if o != nil && o.bitmap_&2 != 0 { + return o.id + } + return "" +} + +// GetId returns the value of the 'id' attribute and +// a flag indicating if the attribute has a value. +// +// Unique identifier of the object +func (o *GcpAuthentication) GetId() (value string, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.id + } + return +} + +// Kind returns the value of the 'kind' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Indicates the type of this object +func (o *GcpAuthentication) Kind() string { + if o != nil && o.bitmap_&4 != 0 { + return o.kind + } + return "" +} + +// GetKind returns the value of the 'kind' attribute and +// a flag indicating if the attribute has a value. +// +// Indicates the type of this object +func (o *GcpAuthentication) GetKind() (value string, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.kind + } + return +} + +// GcpAuthenticationListKind is the name of the type used to represent list of objects of +// type 'gcp_authentication'. +const GcpAuthenticationListKind = "GcpAuthenticationList" + +// GcpAuthenticationListLinkKind is the name of the type used to represent links to list +// of objects of type 'gcp_authentication'. +const GcpAuthenticationListLinkKind = "GcpAuthenticationListLink" + +// GcpAuthenticationNilKind is the name of the type used to nil lists of objects of +// type 'gcp_authentication'. +const GcpAuthenticationListNilKind = "GcpAuthenticationListNil" + +// GcpAuthenticationList is a list of values of the 'gcp_authentication' type. +type GcpAuthenticationList struct { + href string + link bool + items []*GcpAuthentication +} + +// Len returns the length of the list. +func (l *GcpAuthenticationList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *GcpAuthenticationList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *GcpAuthenticationList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *GcpAuthenticationList) SetItems(items []*GcpAuthentication) { + l.items = items +} + +// Items returns the items of the list. +func (l *GcpAuthenticationList) Items() []*GcpAuthentication { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *GcpAuthenticationList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *GcpAuthenticationList) Get(i int) *GcpAuthentication { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *GcpAuthenticationList) Slice() []*GcpAuthentication { + var slice []*GcpAuthentication + if l == nil { + slice = make([]*GcpAuthentication, 0) + } else { + slice = make([]*GcpAuthentication, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *GcpAuthenticationList) Each(f func(item *GcpAuthentication) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *GcpAuthenticationList) Range(f func(index int, item *GcpAuthentication) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/gcp_authentication_type_json.go b/arohcp/v1alpha1/gcp_authentication_type_json.go new file mode 100644 index 000000000..0aedf6f7d --- /dev/null +++ b/arohcp/v1alpha1/gcp_authentication_type_json.go @@ -0,0 +1,112 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalGcpAuthentication writes a value of the 'gcp_authentication' type to the given writer. +func MarshalGcpAuthentication(object *GcpAuthentication, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteGcpAuthentication(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteGcpAuthentication writes a value of the 'gcp_authentication' type to the given stream. +func WriteGcpAuthentication(object *GcpAuthentication, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("href") + stream.WriteString(object.href) + count++ + } + present_ = object.bitmap_&2 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("id") + stream.WriteString(object.id) + count++ + } + present_ = object.bitmap_&4 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("kind") + stream.WriteString(object.kind) + } + stream.WriteObjectEnd() +} + +// UnmarshalGcpAuthentication reads a value of the 'gcp_authentication' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalGcpAuthentication(source interface{}) (object *GcpAuthentication, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadGcpAuthentication(iterator) + err = iterator.Error + return +} + +// ReadGcpAuthentication reads a value of the 'gcp_authentication' type from the given iterator. +func ReadGcpAuthentication(iterator *jsoniter.Iterator) *GcpAuthentication { + object := &GcpAuthentication{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "href": + value := iterator.ReadString() + object.href = value + object.bitmap_ |= 1 + case "id": + value := iterator.ReadString() + object.id = value + object.bitmap_ |= 2 + case "kind": + value := iterator.ReadString() + object.kind = value + object.bitmap_ |= 4 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/gcp_builder.go b/arohcp/v1alpha1/gcp_builder.go new file mode 100644 index 000000000..927d7c01e --- /dev/null +++ b/arohcp/v1alpha1/gcp_builder.go @@ -0,0 +1,228 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// GCPBuilder contains the data and logic needed to build 'GCP' objects. +// +// Google cloud platform settings of a cluster. +type GCPBuilder struct { + bitmap_ uint32 + authURI string + authProviderX509CertURL string + authentication *GcpAuthenticationBuilder + clientID string + clientX509CertURL string + clientEmail string + privateKey string + privateKeyID string + privateServiceConnect *GcpPrivateServiceConnectBuilder + projectID string + security *GcpSecurityBuilder + tokenURI string + type_ string +} + +// NewGCP creates a new builder of 'GCP' objects. +func NewGCP() *GCPBuilder { + return &GCPBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *GCPBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// AuthURI sets the value of the 'auth_URI' attribute to the given value. +func (b *GCPBuilder) AuthURI(value string) *GCPBuilder { + b.authURI = value + b.bitmap_ |= 1 + return b +} + +// AuthProviderX509CertURL sets the value of the 'auth_provider_X509_cert_URL' attribute to the given value. +func (b *GCPBuilder) AuthProviderX509CertURL(value string) *GCPBuilder { + b.authProviderX509CertURL = value + b.bitmap_ |= 2 + return b +} + +// Authentication sets the value of the 'authentication' attribute to the given value. +// +// Google cloud platform authentication method of a cluster. +func (b *GCPBuilder) Authentication(value *GcpAuthenticationBuilder) *GCPBuilder { + b.authentication = value + if value != nil { + b.bitmap_ |= 4 + } else { + b.bitmap_ &^= 4 + } + return b +} + +// ClientID sets the value of the 'client_ID' attribute to the given value. +func (b *GCPBuilder) ClientID(value string) *GCPBuilder { + b.clientID = value + b.bitmap_ |= 8 + return b +} + +// ClientX509CertURL sets the value of the 'client_X509_cert_URL' attribute to the given value. +func (b *GCPBuilder) ClientX509CertURL(value string) *GCPBuilder { + b.clientX509CertURL = value + b.bitmap_ |= 16 + return b +} + +// ClientEmail sets the value of the 'client_email' attribute to the given value. +func (b *GCPBuilder) ClientEmail(value string) *GCPBuilder { + b.clientEmail = value + b.bitmap_ |= 32 + return b +} + +// PrivateKey sets the value of the 'private_key' attribute to the given value. +func (b *GCPBuilder) PrivateKey(value string) *GCPBuilder { + b.privateKey = value + b.bitmap_ |= 64 + return b +} + +// PrivateKeyID sets the value of the 'private_key_ID' attribute to the given value. +func (b *GCPBuilder) PrivateKeyID(value string) *GCPBuilder { + b.privateKeyID = value + b.bitmap_ |= 128 + return b +} + +// PrivateServiceConnect sets the value of the 'private_service_connect' attribute to the given value. +// +// Google cloud platform private service connect configuration of a cluster. +func (b *GCPBuilder) PrivateServiceConnect(value *GcpPrivateServiceConnectBuilder) *GCPBuilder { + b.privateServiceConnect = value + if value != nil { + b.bitmap_ |= 256 + } else { + b.bitmap_ &^= 256 + } + return b +} + +// ProjectID sets the value of the 'project_ID' attribute to the given value. +func (b *GCPBuilder) ProjectID(value string) *GCPBuilder { + b.projectID = value + b.bitmap_ |= 512 + return b +} + +// Security sets the value of the 'security' attribute to the given value. +// +// Google cloud platform security settings of a cluster. +func (b *GCPBuilder) Security(value *GcpSecurityBuilder) *GCPBuilder { + b.security = value + if value != nil { + b.bitmap_ |= 1024 + } else { + b.bitmap_ &^= 1024 + } + return b +} + +// TokenURI sets the value of the 'token_URI' attribute to the given value. +func (b *GCPBuilder) TokenURI(value string) *GCPBuilder { + b.tokenURI = value + b.bitmap_ |= 2048 + return b +} + +// Type sets the value of the 'type' attribute to the given value. +func (b *GCPBuilder) Type(value string) *GCPBuilder { + b.type_ = value + b.bitmap_ |= 4096 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *GCPBuilder) Copy(object *GCP) *GCPBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.authURI = object.authURI + b.authProviderX509CertURL = object.authProviderX509CertURL + if object.authentication != nil { + b.authentication = NewGcpAuthentication().Copy(object.authentication) + } else { + b.authentication = nil + } + b.clientID = object.clientID + b.clientX509CertURL = object.clientX509CertURL + b.clientEmail = object.clientEmail + b.privateKey = object.privateKey + b.privateKeyID = object.privateKeyID + if object.privateServiceConnect != nil { + b.privateServiceConnect = NewGcpPrivateServiceConnect().Copy(object.privateServiceConnect) + } else { + b.privateServiceConnect = nil + } + b.projectID = object.projectID + if object.security != nil { + b.security = NewGcpSecurity().Copy(object.security) + } else { + b.security = nil + } + b.tokenURI = object.tokenURI + b.type_ = object.type_ + return b +} + +// Build creates a 'GCP' object using the configuration stored in the builder. +func (b *GCPBuilder) Build() (object *GCP, err error) { + object = new(GCP) + object.bitmap_ = b.bitmap_ + object.authURI = b.authURI + object.authProviderX509CertURL = b.authProviderX509CertURL + if b.authentication != nil { + object.authentication, err = b.authentication.Build() + if err != nil { + return + } + } + object.clientID = b.clientID + object.clientX509CertURL = b.clientX509CertURL + object.clientEmail = b.clientEmail + object.privateKey = b.privateKey + object.privateKeyID = b.privateKeyID + if b.privateServiceConnect != nil { + object.privateServiceConnect, err = b.privateServiceConnect.Build() + if err != nil { + return + } + } + object.projectID = b.projectID + if b.security != nil { + object.security, err = b.security.Build() + if err != nil { + return + } + } + object.tokenURI = b.tokenURI + object.type_ = b.type_ + return +} diff --git a/arohcp/v1alpha1/gcp_encryption_key_builder.go b/arohcp/v1alpha1/gcp_encryption_key_builder.go new file mode 100644 index 000000000..2f58c869d --- /dev/null +++ b/arohcp/v1alpha1/gcp_encryption_key_builder.go @@ -0,0 +1,93 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// GCPEncryptionKeyBuilder contains the data and logic needed to build 'GCP_encryption_key' objects. +// +// GCP Encryption Key for CCS clusters. +type GCPEncryptionKeyBuilder struct { + bitmap_ uint32 + kmsKeyServiceAccount string + keyLocation string + keyName string + keyRing string +} + +// NewGCPEncryptionKey creates a new builder of 'GCP_encryption_key' objects. +func NewGCPEncryptionKey() *GCPEncryptionKeyBuilder { + return &GCPEncryptionKeyBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *GCPEncryptionKeyBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// KMSKeyServiceAccount sets the value of the 'KMS_key_service_account' attribute to the given value. +func (b *GCPEncryptionKeyBuilder) KMSKeyServiceAccount(value string) *GCPEncryptionKeyBuilder { + b.kmsKeyServiceAccount = value + b.bitmap_ |= 1 + return b +} + +// KeyLocation sets the value of the 'key_location' attribute to the given value. +func (b *GCPEncryptionKeyBuilder) KeyLocation(value string) *GCPEncryptionKeyBuilder { + b.keyLocation = value + b.bitmap_ |= 2 + return b +} + +// KeyName sets the value of the 'key_name' attribute to the given value. +func (b *GCPEncryptionKeyBuilder) KeyName(value string) *GCPEncryptionKeyBuilder { + b.keyName = value + b.bitmap_ |= 4 + return b +} + +// KeyRing sets the value of the 'key_ring' attribute to the given value. +func (b *GCPEncryptionKeyBuilder) KeyRing(value string) *GCPEncryptionKeyBuilder { + b.keyRing = value + b.bitmap_ |= 8 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *GCPEncryptionKeyBuilder) Copy(object *GCPEncryptionKey) *GCPEncryptionKeyBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.kmsKeyServiceAccount = object.kmsKeyServiceAccount + b.keyLocation = object.keyLocation + b.keyName = object.keyName + b.keyRing = object.keyRing + return b +} + +// Build creates a 'GCP_encryption_key' object using the configuration stored in the builder. +func (b *GCPEncryptionKeyBuilder) Build() (object *GCPEncryptionKey, err error) { + object = new(GCPEncryptionKey) + object.bitmap_ = b.bitmap_ + object.kmsKeyServiceAccount = b.kmsKeyServiceAccount + object.keyLocation = b.keyLocation + object.keyName = b.keyName + object.keyRing = b.keyRing + return +} diff --git a/arohcp/v1alpha1/gcp_encryption_key_list_builder.go b/arohcp/v1alpha1/gcp_encryption_key_list_builder.go new file mode 100644 index 000000000..d19660bca --- /dev/null +++ b/arohcp/v1alpha1/gcp_encryption_key_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// GCPEncryptionKeyListBuilder contains the data and logic needed to build +// 'GCP_encryption_key' objects. +type GCPEncryptionKeyListBuilder struct { + items []*GCPEncryptionKeyBuilder +} + +// NewGCPEncryptionKeyList creates a new builder of 'GCP_encryption_key' objects. +func NewGCPEncryptionKeyList() *GCPEncryptionKeyListBuilder { + return new(GCPEncryptionKeyListBuilder) +} + +// Items sets the items of the list. +func (b *GCPEncryptionKeyListBuilder) Items(values ...*GCPEncryptionKeyBuilder) *GCPEncryptionKeyListBuilder { + b.items = make([]*GCPEncryptionKeyBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *GCPEncryptionKeyListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *GCPEncryptionKeyListBuilder) Copy(list *GCPEncryptionKeyList) *GCPEncryptionKeyListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*GCPEncryptionKeyBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewGCPEncryptionKey().Copy(v) + } + } + return b +} + +// Build creates a list of 'GCP_encryption_key' objects using the +// configuration stored in the builder. +func (b *GCPEncryptionKeyListBuilder) Build() (list *GCPEncryptionKeyList, err error) { + items := make([]*GCPEncryptionKey, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(GCPEncryptionKeyList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/gcp_encryption_key_list_type_json.go b/arohcp/v1alpha1/gcp_encryption_key_list_type_json.go new file mode 100644 index 000000000..1e8c0bae3 --- /dev/null +++ b/arohcp/v1alpha1/gcp_encryption_key_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalGCPEncryptionKeyList writes a list of values of the 'GCP_encryption_key' type to +// the given writer. +func MarshalGCPEncryptionKeyList(list []*GCPEncryptionKey, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteGCPEncryptionKeyList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteGCPEncryptionKeyList writes a list of value of the 'GCP_encryption_key' type to +// the given stream. +func WriteGCPEncryptionKeyList(list []*GCPEncryptionKey, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteGCPEncryptionKey(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalGCPEncryptionKeyList reads a list of values of the 'GCP_encryption_key' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalGCPEncryptionKeyList(source interface{}) (items []*GCPEncryptionKey, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadGCPEncryptionKeyList(iterator) + err = iterator.Error + return +} + +// ReadGCPEncryptionKeyList reads list of values of the ”GCP_encryption_key' type from +// the given iterator. +func ReadGCPEncryptionKeyList(iterator *jsoniter.Iterator) []*GCPEncryptionKey { + list := []*GCPEncryptionKey{} + for iterator.ReadArray() { + item := ReadGCPEncryptionKey(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/gcp_encryption_key_type.go b/arohcp/v1alpha1/gcp_encryption_key_type.go new file mode 100644 index 000000000..95291fb8a --- /dev/null +++ b/arohcp/v1alpha1/gcp_encryption_key_type.go @@ -0,0 +1,237 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// GCPEncryptionKey represents the values of the 'GCP_encryption_key' type. +// +// GCP Encryption Key for CCS clusters. +type GCPEncryptionKey struct { + bitmap_ uint32 + kmsKeyServiceAccount string + keyLocation string + keyName string + keyRing string +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *GCPEncryptionKey) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// KMSKeyServiceAccount returns the value of the 'KMS_key_service_account' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Service account used to access the KMS key +func (o *GCPEncryptionKey) KMSKeyServiceAccount() string { + if o != nil && o.bitmap_&1 != 0 { + return o.kmsKeyServiceAccount + } + return "" +} + +// GetKMSKeyServiceAccount returns the value of the 'KMS_key_service_account' attribute and +// a flag indicating if the attribute has a value. +// +// Service account used to access the KMS key +func (o *GCPEncryptionKey) GetKMSKeyServiceAccount() (value string, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.kmsKeyServiceAccount + } + return +} + +// KeyLocation returns the value of the 'key_location' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Location of the encryption key ring +func (o *GCPEncryptionKey) KeyLocation() string { + if o != nil && o.bitmap_&2 != 0 { + return o.keyLocation + } + return "" +} + +// GetKeyLocation returns the value of the 'key_location' attribute and +// a flag indicating if the attribute has a value. +// +// Location of the encryption key ring +func (o *GCPEncryptionKey) GetKeyLocation() (value string, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.keyLocation + } + return +} + +// KeyName returns the value of the 'key_name' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Name of the encryption key +func (o *GCPEncryptionKey) KeyName() string { + if o != nil && o.bitmap_&4 != 0 { + return o.keyName + } + return "" +} + +// GetKeyName returns the value of the 'key_name' attribute and +// a flag indicating if the attribute has a value. +// +// Name of the encryption key +func (o *GCPEncryptionKey) GetKeyName() (value string, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.keyName + } + return +} + +// KeyRing returns the value of the 'key_ring' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Name of the key ring the encryption key is located on +func (o *GCPEncryptionKey) KeyRing() string { + if o != nil && o.bitmap_&8 != 0 { + return o.keyRing + } + return "" +} + +// GetKeyRing returns the value of the 'key_ring' attribute and +// a flag indicating if the attribute has a value. +// +// Name of the key ring the encryption key is located on +func (o *GCPEncryptionKey) GetKeyRing() (value string, ok bool) { + ok = o != nil && o.bitmap_&8 != 0 + if ok { + value = o.keyRing + } + return +} + +// GCPEncryptionKeyListKind is the name of the type used to represent list of objects of +// type 'GCP_encryption_key'. +const GCPEncryptionKeyListKind = "GCPEncryptionKeyList" + +// GCPEncryptionKeyListLinkKind is the name of the type used to represent links to list +// of objects of type 'GCP_encryption_key'. +const GCPEncryptionKeyListLinkKind = "GCPEncryptionKeyListLink" + +// GCPEncryptionKeyNilKind is the name of the type used to nil lists of objects of +// type 'GCP_encryption_key'. +const GCPEncryptionKeyListNilKind = "GCPEncryptionKeyListNil" + +// GCPEncryptionKeyList is a list of values of the 'GCP_encryption_key' type. +type GCPEncryptionKeyList struct { + href string + link bool + items []*GCPEncryptionKey +} + +// Len returns the length of the list. +func (l *GCPEncryptionKeyList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *GCPEncryptionKeyList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *GCPEncryptionKeyList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *GCPEncryptionKeyList) SetItems(items []*GCPEncryptionKey) { + l.items = items +} + +// Items returns the items of the list. +func (l *GCPEncryptionKeyList) Items() []*GCPEncryptionKey { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *GCPEncryptionKeyList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *GCPEncryptionKeyList) Get(i int) *GCPEncryptionKey { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *GCPEncryptionKeyList) Slice() []*GCPEncryptionKey { + var slice []*GCPEncryptionKey + if l == nil { + slice = make([]*GCPEncryptionKey, 0) + } else { + slice = make([]*GCPEncryptionKey, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *GCPEncryptionKeyList) Each(f func(item *GCPEncryptionKey) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *GCPEncryptionKeyList) Range(f func(index int, item *GCPEncryptionKey) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/gcp_encryption_key_type_json.go b/arohcp/v1alpha1/gcp_encryption_key_type_json.go new file mode 100644 index 000000000..cbdacb439 --- /dev/null +++ b/arohcp/v1alpha1/gcp_encryption_key_type_json.go @@ -0,0 +1,125 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalGCPEncryptionKey writes a value of the 'GCP_encryption_key' type to the given writer. +func MarshalGCPEncryptionKey(object *GCPEncryptionKey, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteGCPEncryptionKey(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteGCPEncryptionKey writes a value of the 'GCP_encryption_key' type to the given stream. +func WriteGCPEncryptionKey(object *GCPEncryptionKey, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("kms_key_service_account") + stream.WriteString(object.kmsKeyServiceAccount) + count++ + } + present_ = object.bitmap_&2 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("key_location") + stream.WriteString(object.keyLocation) + count++ + } + present_ = object.bitmap_&4 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("key_name") + stream.WriteString(object.keyName) + count++ + } + present_ = object.bitmap_&8 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("key_ring") + stream.WriteString(object.keyRing) + } + stream.WriteObjectEnd() +} + +// UnmarshalGCPEncryptionKey reads a value of the 'GCP_encryption_key' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalGCPEncryptionKey(source interface{}) (object *GCPEncryptionKey, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadGCPEncryptionKey(iterator) + err = iterator.Error + return +} + +// ReadGCPEncryptionKey reads a value of the 'GCP_encryption_key' type from the given iterator. +func ReadGCPEncryptionKey(iterator *jsoniter.Iterator) *GCPEncryptionKey { + object := &GCPEncryptionKey{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "kms_key_service_account": + value := iterator.ReadString() + object.kmsKeyServiceAccount = value + object.bitmap_ |= 1 + case "key_location": + value := iterator.ReadString() + object.keyLocation = value + object.bitmap_ |= 2 + case "key_name": + value := iterator.ReadString() + object.keyName = value + object.bitmap_ |= 4 + case "key_ring": + value := iterator.ReadString() + object.keyRing = value + object.bitmap_ |= 8 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/gcp_list_builder.go b/arohcp/v1alpha1/gcp_list_builder.go new file mode 100644 index 000000000..820bd7b85 --- /dev/null +++ b/arohcp/v1alpha1/gcp_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// GCPListBuilder contains the data and logic needed to build +// 'GCP' objects. +type GCPListBuilder struct { + items []*GCPBuilder +} + +// NewGCPList creates a new builder of 'GCP' objects. +func NewGCPList() *GCPListBuilder { + return new(GCPListBuilder) +} + +// Items sets the items of the list. +func (b *GCPListBuilder) Items(values ...*GCPBuilder) *GCPListBuilder { + b.items = make([]*GCPBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *GCPListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *GCPListBuilder) Copy(list *GCPList) *GCPListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*GCPBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewGCP().Copy(v) + } + } + return b +} + +// Build creates a list of 'GCP' objects using the +// configuration stored in the builder. +func (b *GCPListBuilder) Build() (list *GCPList, err error) { + items := make([]*GCP, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(GCPList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/gcp_list_type_json.go b/arohcp/v1alpha1/gcp_list_type_json.go new file mode 100644 index 000000000..b2178b0db --- /dev/null +++ b/arohcp/v1alpha1/gcp_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalGCPList writes a list of values of the 'GCP' type to +// the given writer. +func MarshalGCPList(list []*GCP, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteGCPList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteGCPList writes a list of value of the 'GCP' type to +// the given stream. +func WriteGCPList(list []*GCP, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteGCP(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalGCPList reads a list of values of the 'GCP' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalGCPList(source interface{}) (items []*GCP, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadGCPList(iterator) + err = iterator.Error + return +} + +// ReadGCPList reads list of values of the ”GCP' type from +// the given iterator. +func ReadGCPList(iterator *jsoniter.Iterator) []*GCP { + list := []*GCP{} + for iterator.ReadArray() { + item := ReadGCP(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/gcp_network_builder.go b/arohcp/v1alpha1/gcp_network_builder.go new file mode 100644 index 000000000..05129f80e --- /dev/null +++ b/arohcp/v1alpha1/gcp_network_builder.go @@ -0,0 +1,93 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// GCPNetworkBuilder contains the data and logic needed to build 'GCP_network' objects. +// +// GCP Network configuration of a cluster. +type GCPNetworkBuilder struct { + bitmap_ uint32 + vpcName string + vpcProjectID string + computeSubnet string + controlPlaneSubnet string +} + +// NewGCPNetwork creates a new builder of 'GCP_network' objects. +func NewGCPNetwork() *GCPNetworkBuilder { + return &GCPNetworkBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *GCPNetworkBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// VPCName sets the value of the 'VPC_name' attribute to the given value. +func (b *GCPNetworkBuilder) VPCName(value string) *GCPNetworkBuilder { + b.vpcName = value + b.bitmap_ |= 1 + return b +} + +// VPCProjectID sets the value of the 'VPC_project_ID' attribute to the given value. +func (b *GCPNetworkBuilder) VPCProjectID(value string) *GCPNetworkBuilder { + b.vpcProjectID = value + b.bitmap_ |= 2 + return b +} + +// ComputeSubnet sets the value of the 'compute_subnet' attribute to the given value. +func (b *GCPNetworkBuilder) ComputeSubnet(value string) *GCPNetworkBuilder { + b.computeSubnet = value + b.bitmap_ |= 4 + return b +} + +// ControlPlaneSubnet sets the value of the 'control_plane_subnet' attribute to the given value. +func (b *GCPNetworkBuilder) ControlPlaneSubnet(value string) *GCPNetworkBuilder { + b.controlPlaneSubnet = value + b.bitmap_ |= 8 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *GCPNetworkBuilder) Copy(object *GCPNetwork) *GCPNetworkBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.vpcName = object.vpcName + b.vpcProjectID = object.vpcProjectID + b.computeSubnet = object.computeSubnet + b.controlPlaneSubnet = object.controlPlaneSubnet + return b +} + +// Build creates a 'GCP_network' object using the configuration stored in the builder. +func (b *GCPNetworkBuilder) Build() (object *GCPNetwork, err error) { + object = new(GCPNetwork) + object.bitmap_ = b.bitmap_ + object.vpcName = b.vpcName + object.vpcProjectID = b.vpcProjectID + object.computeSubnet = b.computeSubnet + object.controlPlaneSubnet = b.controlPlaneSubnet + return +} diff --git a/arohcp/v1alpha1/gcp_network_list_builder.go b/arohcp/v1alpha1/gcp_network_list_builder.go new file mode 100644 index 000000000..c716cb6a2 --- /dev/null +++ b/arohcp/v1alpha1/gcp_network_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// GCPNetworkListBuilder contains the data and logic needed to build +// 'GCP_network' objects. +type GCPNetworkListBuilder struct { + items []*GCPNetworkBuilder +} + +// NewGCPNetworkList creates a new builder of 'GCP_network' objects. +func NewGCPNetworkList() *GCPNetworkListBuilder { + return new(GCPNetworkListBuilder) +} + +// Items sets the items of the list. +func (b *GCPNetworkListBuilder) Items(values ...*GCPNetworkBuilder) *GCPNetworkListBuilder { + b.items = make([]*GCPNetworkBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *GCPNetworkListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *GCPNetworkListBuilder) Copy(list *GCPNetworkList) *GCPNetworkListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*GCPNetworkBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewGCPNetwork().Copy(v) + } + } + return b +} + +// Build creates a list of 'GCP_network' objects using the +// configuration stored in the builder. +func (b *GCPNetworkListBuilder) Build() (list *GCPNetworkList, err error) { + items := make([]*GCPNetwork, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(GCPNetworkList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/gcp_network_list_type_json.go b/arohcp/v1alpha1/gcp_network_list_type_json.go new file mode 100644 index 000000000..6c7ec47a8 --- /dev/null +++ b/arohcp/v1alpha1/gcp_network_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalGCPNetworkList writes a list of values of the 'GCP_network' type to +// the given writer. +func MarshalGCPNetworkList(list []*GCPNetwork, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteGCPNetworkList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteGCPNetworkList writes a list of value of the 'GCP_network' type to +// the given stream. +func WriteGCPNetworkList(list []*GCPNetwork, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteGCPNetwork(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalGCPNetworkList reads a list of values of the 'GCP_network' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalGCPNetworkList(source interface{}) (items []*GCPNetwork, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadGCPNetworkList(iterator) + err = iterator.Error + return +} + +// ReadGCPNetworkList reads list of values of the ”GCP_network' type from +// the given iterator. +func ReadGCPNetworkList(iterator *jsoniter.Iterator) []*GCPNetwork { + list := []*GCPNetwork{} + for iterator.ReadArray() { + item := ReadGCPNetwork(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/gcp_network_type.go b/arohcp/v1alpha1/gcp_network_type.go new file mode 100644 index 000000000..9ffdd35c0 --- /dev/null +++ b/arohcp/v1alpha1/gcp_network_type.go @@ -0,0 +1,237 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// GCPNetwork represents the values of the 'GCP_network' type. +// +// GCP Network configuration of a cluster. +type GCPNetwork struct { + bitmap_ uint32 + vpcName string + vpcProjectID string + computeSubnet string + controlPlaneSubnet string +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *GCPNetwork) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// VPCName returns the value of the 'VPC_name' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// VPC mame used by the cluster. +func (o *GCPNetwork) VPCName() string { + if o != nil && o.bitmap_&1 != 0 { + return o.vpcName + } + return "" +} + +// GetVPCName returns the value of the 'VPC_name' attribute and +// a flag indicating if the attribute has a value. +// +// VPC mame used by the cluster. +func (o *GCPNetwork) GetVPCName() (value string, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.vpcName + } + return +} + +// VPCProjectID returns the value of the 'VPC_project_ID' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The name of the host project where the shared VPC exists. +func (o *GCPNetwork) VPCProjectID() string { + if o != nil && o.bitmap_&2 != 0 { + return o.vpcProjectID + } + return "" +} + +// GetVPCProjectID returns the value of the 'VPC_project_ID' attribute and +// a flag indicating if the attribute has a value. +// +// The name of the host project where the shared VPC exists. +func (o *GCPNetwork) GetVPCProjectID() (value string, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.vpcProjectID + } + return +} + +// ComputeSubnet returns the value of the 'compute_subnet' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Compute subnet used by the cluster. +func (o *GCPNetwork) ComputeSubnet() string { + if o != nil && o.bitmap_&4 != 0 { + return o.computeSubnet + } + return "" +} + +// GetComputeSubnet returns the value of the 'compute_subnet' attribute and +// a flag indicating if the attribute has a value. +// +// Compute subnet used by the cluster. +func (o *GCPNetwork) GetComputeSubnet() (value string, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.computeSubnet + } + return +} + +// ControlPlaneSubnet returns the value of the 'control_plane_subnet' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Control plane subnet used by the cluster. +func (o *GCPNetwork) ControlPlaneSubnet() string { + if o != nil && o.bitmap_&8 != 0 { + return o.controlPlaneSubnet + } + return "" +} + +// GetControlPlaneSubnet returns the value of the 'control_plane_subnet' attribute and +// a flag indicating if the attribute has a value. +// +// Control plane subnet used by the cluster. +func (o *GCPNetwork) GetControlPlaneSubnet() (value string, ok bool) { + ok = o != nil && o.bitmap_&8 != 0 + if ok { + value = o.controlPlaneSubnet + } + return +} + +// GCPNetworkListKind is the name of the type used to represent list of objects of +// type 'GCP_network'. +const GCPNetworkListKind = "GCPNetworkList" + +// GCPNetworkListLinkKind is the name of the type used to represent links to list +// of objects of type 'GCP_network'. +const GCPNetworkListLinkKind = "GCPNetworkListLink" + +// GCPNetworkNilKind is the name of the type used to nil lists of objects of +// type 'GCP_network'. +const GCPNetworkListNilKind = "GCPNetworkListNil" + +// GCPNetworkList is a list of values of the 'GCP_network' type. +type GCPNetworkList struct { + href string + link bool + items []*GCPNetwork +} + +// Len returns the length of the list. +func (l *GCPNetworkList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *GCPNetworkList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *GCPNetworkList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *GCPNetworkList) SetItems(items []*GCPNetwork) { + l.items = items +} + +// Items returns the items of the list. +func (l *GCPNetworkList) Items() []*GCPNetwork { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *GCPNetworkList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *GCPNetworkList) Get(i int) *GCPNetwork { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *GCPNetworkList) Slice() []*GCPNetwork { + var slice []*GCPNetwork + if l == nil { + slice = make([]*GCPNetwork, 0) + } else { + slice = make([]*GCPNetwork, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *GCPNetworkList) Each(f func(item *GCPNetwork) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *GCPNetworkList) Range(f func(index int, item *GCPNetwork) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/gcp_network_type_json.go b/arohcp/v1alpha1/gcp_network_type_json.go new file mode 100644 index 000000000..a4b84e7fd --- /dev/null +++ b/arohcp/v1alpha1/gcp_network_type_json.go @@ -0,0 +1,125 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalGCPNetwork writes a value of the 'GCP_network' type to the given writer. +func MarshalGCPNetwork(object *GCPNetwork, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteGCPNetwork(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteGCPNetwork writes a value of the 'GCP_network' type to the given stream. +func WriteGCPNetwork(object *GCPNetwork, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("vpc_name") + stream.WriteString(object.vpcName) + count++ + } + present_ = object.bitmap_&2 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("vpc_project_id") + stream.WriteString(object.vpcProjectID) + count++ + } + present_ = object.bitmap_&4 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("compute_subnet") + stream.WriteString(object.computeSubnet) + count++ + } + present_ = object.bitmap_&8 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("control_plane_subnet") + stream.WriteString(object.controlPlaneSubnet) + } + stream.WriteObjectEnd() +} + +// UnmarshalGCPNetwork reads a value of the 'GCP_network' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalGCPNetwork(source interface{}) (object *GCPNetwork, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadGCPNetwork(iterator) + err = iterator.Error + return +} + +// ReadGCPNetwork reads a value of the 'GCP_network' type from the given iterator. +func ReadGCPNetwork(iterator *jsoniter.Iterator) *GCPNetwork { + object := &GCPNetwork{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "vpc_name": + value := iterator.ReadString() + object.vpcName = value + object.bitmap_ |= 1 + case "vpc_project_id": + value := iterator.ReadString() + object.vpcProjectID = value + object.bitmap_ |= 2 + case "compute_subnet": + value := iterator.ReadString() + object.computeSubnet = value + object.bitmap_ |= 4 + case "control_plane_subnet": + value := iterator.ReadString() + object.controlPlaneSubnet = value + object.bitmap_ |= 8 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/gcp_private_service_connect_builder.go b/arohcp/v1alpha1/gcp_private_service_connect_builder.go new file mode 100644 index 000000000..86d2d5bcc --- /dev/null +++ b/arohcp/v1alpha1/gcp_private_service_connect_builder.go @@ -0,0 +1,63 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// GcpPrivateServiceConnectBuilder contains the data and logic needed to build 'gcp_private_service_connect' objects. +// +// Google cloud platform private service connect configuration of a cluster. +type GcpPrivateServiceConnectBuilder struct { + bitmap_ uint32 + serviceAttachmentSubnet string +} + +// NewGcpPrivateServiceConnect creates a new builder of 'gcp_private_service_connect' objects. +func NewGcpPrivateServiceConnect() *GcpPrivateServiceConnectBuilder { + return &GcpPrivateServiceConnectBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *GcpPrivateServiceConnectBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// ServiceAttachmentSubnet sets the value of the 'service_attachment_subnet' attribute to the given value. +func (b *GcpPrivateServiceConnectBuilder) ServiceAttachmentSubnet(value string) *GcpPrivateServiceConnectBuilder { + b.serviceAttachmentSubnet = value + b.bitmap_ |= 1 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *GcpPrivateServiceConnectBuilder) Copy(object *GcpPrivateServiceConnect) *GcpPrivateServiceConnectBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.serviceAttachmentSubnet = object.serviceAttachmentSubnet + return b +} + +// Build creates a 'gcp_private_service_connect' object using the configuration stored in the builder. +func (b *GcpPrivateServiceConnectBuilder) Build() (object *GcpPrivateServiceConnect, err error) { + object = new(GcpPrivateServiceConnect) + object.bitmap_ = b.bitmap_ + object.serviceAttachmentSubnet = b.serviceAttachmentSubnet + return +} diff --git a/arohcp/v1alpha1/gcp_private_service_connect_list_builder.go b/arohcp/v1alpha1/gcp_private_service_connect_list_builder.go new file mode 100644 index 000000000..64bce5877 --- /dev/null +++ b/arohcp/v1alpha1/gcp_private_service_connect_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// GcpPrivateServiceConnectListBuilder contains the data and logic needed to build +// 'gcp_private_service_connect' objects. +type GcpPrivateServiceConnectListBuilder struct { + items []*GcpPrivateServiceConnectBuilder +} + +// NewGcpPrivateServiceConnectList creates a new builder of 'gcp_private_service_connect' objects. +func NewGcpPrivateServiceConnectList() *GcpPrivateServiceConnectListBuilder { + return new(GcpPrivateServiceConnectListBuilder) +} + +// Items sets the items of the list. +func (b *GcpPrivateServiceConnectListBuilder) Items(values ...*GcpPrivateServiceConnectBuilder) *GcpPrivateServiceConnectListBuilder { + b.items = make([]*GcpPrivateServiceConnectBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *GcpPrivateServiceConnectListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *GcpPrivateServiceConnectListBuilder) Copy(list *GcpPrivateServiceConnectList) *GcpPrivateServiceConnectListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*GcpPrivateServiceConnectBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewGcpPrivateServiceConnect().Copy(v) + } + } + return b +} + +// Build creates a list of 'gcp_private_service_connect' objects using the +// configuration stored in the builder. +func (b *GcpPrivateServiceConnectListBuilder) Build() (list *GcpPrivateServiceConnectList, err error) { + items := make([]*GcpPrivateServiceConnect, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(GcpPrivateServiceConnectList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/gcp_private_service_connect_list_type_json.go b/arohcp/v1alpha1/gcp_private_service_connect_list_type_json.go new file mode 100644 index 000000000..514865f3b --- /dev/null +++ b/arohcp/v1alpha1/gcp_private_service_connect_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalGcpPrivateServiceConnectList writes a list of values of the 'gcp_private_service_connect' type to +// the given writer. +func MarshalGcpPrivateServiceConnectList(list []*GcpPrivateServiceConnect, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteGcpPrivateServiceConnectList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteGcpPrivateServiceConnectList writes a list of value of the 'gcp_private_service_connect' type to +// the given stream. +func WriteGcpPrivateServiceConnectList(list []*GcpPrivateServiceConnect, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteGcpPrivateServiceConnect(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalGcpPrivateServiceConnectList reads a list of values of the 'gcp_private_service_connect' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalGcpPrivateServiceConnectList(source interface{}) (items []*GcpPrivateServiceConnect, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadGcpPrivateServiceConnectList(iterator) + err = iterator.Error + return +} + +// ReadGcpPrivateServiceConnectList reads list of values of the ”gcp_private_service_connect' type from +// the given iterator. +func ReadGcpPrivateServiceConnectList(iterator *jsoniter.Iterator) []*GcpPrivateServiceConnect { + list := []*GcpPrivateServiceConnect{} + for iterator.ReadArray() { + item := ReadGcpPrivateServiceConnect(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/gcp_private_service_connect_type.go b/arohcp/v1alpha1/gcp_private_service_connect_type.go new file mode 100644 index 000000000..086f8cc8b --- /dev/null +++ b/arohcp/v1alpha1/gcp_private_service_connect_type.go @@ -0,0 +1,165 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// GcpPrivateServiceConnect represents the values of the 'gcp_private_service_connect' type. +// +// Google cloud platform private service connect configuration of a cluster. +type GcpPrivateServiceConnect struct { + bitmap_ uint32 + serviceAttachmentSubnet string +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *GcpPrivateServiceConnect) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// ServiceAttachmentSubnet returns the value of the 'service_attachment_subnet' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The name of the subnet where the PSC service attachment is created +func (o *GcpPrivateServiceConnect) ServiceAttachmentSubnet() string { + if o != nil && o.bitmap_&1 != 0 { + return o.serviceAttachmentSubnet + } + return "" +} + +// GetServiceAttachmentSubnet returns the value of the 'service_attachment_subnet' attribute and +// a flag indicating if the attribute has a value. +// +// The name of the subnet where the PSC service attachment is created +func (o *GcpPrivateServiceConnect) GetServiceAttachmentSubnet() (value string, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.serviceAttachmentSubnet + } + return +} + +// GcpPrivateServiceConnectListKind is the name of the type used to represent list of objects of +// type 'gcp_private_service_connect'. +const GcpPrivateServiceConnectListKind = "GcpPrivateServiceConnectList" + +// GcpPrivateServiceConnectListLinkKind is the name of the type used to represent links to list +// of objects of type 'gcp_private_service_connect'. +const GcpPrivateServiceConnectListLinkKind = "GcpPrivateServiceConnectListLink" + +// GcpPrivateServiceConnectNilKind is the name of the type used to nil lists of objects of +// type 'gcp_private_service_connect'. +const GcpPrivateServiceConnectListNilKind = "GcpPrivateServiceConnectListNil" + +// GcpPrivateServiceConnectList is a list of values of the 'gcp_private_service_connect' type. +type GcpPrivateServiceConnectList struct { + href string + link bool + items []*GcpPrivateServiceConnect +} + +// Len returns the length of the list. +func (l *GcpPrivateServiceConnectList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *GcpPrivateServiceConnectList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *GcpPrivateServiceConnectList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *GcpPrivateServiceConnectList) SetItems(items []*GcpPrivateServiceConnect) { + l.items = items +} + +// Items returns the items of the list. +func (l *GcpPrivateServiceConnectList) Items() []*GcpPrivateServiceConnect { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *GcpPrivateServiceConnectList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *GcpPrivateServiceConnectList) Get(i int) *GcpPrivateServiceConnect { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *GcpPrivateServiceConnectList) Slice() []*GcpPrivateServiceConnect { + var slice []*GcpPrivateServiceConnect + if l == nil { + slice = make([]*GcpPrivateServiceConnect, 0) + } else { + slice = make([]*GcpPrivateServiceConnect, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *GcpPrivateServiceConnectList) Each(f func(item *GcpPrivateServiceConnect) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *GcpPrivateServiceConnectList) Range(f func(index int, item *GcpPrivateServiceConnect) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/gcp_private_service_connect_type_json.go b/arohcp/v1alpha1/gcp_private_service_connect_type_json.go new file mode 100644 index 000000000..e9a4fb3a1 --- /dev/null +++ b/arohcp/v1alpha1/gcp_private_service_connect_type_json.go @@ -0,0 +1,86 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalGcpPrivateServiceConnect writes a value of the 'gcp_private_service_connect' type to the given writer. +func MarshalGcpPrivateServiceConnect(object *GcpPrivateServiceConnect, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteGcpPrivateServiceConnect(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteGcpPrivateServiceConnect writes a value of the 'gcp_private_service_connect' type to the given stream. +func WriteGcpPrivateServiceConnect(object *GcpPrivateServiceConnect, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("service_attachment_subnet") + stream.WriteString(object.serviceAttachmentSubnet) + } + stream.WriteObjectEnd() +} + +// UnmarshalGcpPrivateServiceConnect reads a value of the 'gcp_private_service_connect' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalGcpPrivateServiceConnect(source interface{}) (object *GcpPrivateServiceConnect, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadGcpPrivateServiceConnect(iterator) + err = iterator.Error + return +} + +// ReadGcpPrivateServiceConnect reads a value of the 'gcp_private_service_connect' type from the given iterator. +func ReadGcpPrivateServiceConnect(iterator *jsoniter.Iterator) *GcpPrivateServiceConnect { + object := &GcpPrivateServiceConnect{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "service_attachment_subnet": + value := iterator.ReadString() + object.serviceAttachmentSubnet = value + object.bitmap_ |= 1 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/gcp_security_builder.go b/arohcp/v1alpha1/gcp_security_builder.go new file mode 100644 index 000000000..22e17bf58 --- /dev/null +++ b/arohcp/v1alpha1/gcp_security_builder.go @@ -0,0 +1,63 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// GcpSecurityBuilder contains the data and logic needed to build 'gcp_security' objects. +// +// Google cloud platform security settings of a cluster. +type GcpSecurityBuilder struct { + bitmap_ uint32 + secureBoot bool +} + +// NewGcpSecurity creates a new builder of 'gcp_security' objects. +func NewGcpSecurity() *GcpSecurityBuilder { + return &GcpSecurityBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *GcpSecurityBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// SecureBoot sets the value of the 'secure_boot' attribute to the given value. +func (b *GcpSecurityBuilder) SecureBoot(value bool) *GcpSecurityBuilder { + b.secureBoot = value + b.bitmap_ |= 1 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *GcpSecurityBuilder) Copy(object *GcpSecurity) *GcpSecurityBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.secureBoot = object.secureBoot + return b +} + +// Build creates a 'gcp_security' object using the configuration stored in the builder. +func (b *GcpSecurityBuilder) Build() (object *GcpSecurity, err error) { + object = new(GcpSecurity) + object.bitmap_ = b.bitmap_ + object.secureBoot = b.secureBoot + return +} diff --git a/arohcp/v1alpha1/gcp_security_list_builder.go b/arohcp/v1alpha1/gcp_security_list_builder.go new file mode 100644 index 000000000..53415a169 --- /dev/null +++ b/arohcp/v1alpha1/gcp_security_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// GcpSecurityListBuilder contains the data and logic needed to build +// 'gcp_security' objects. +type GcpSecurityListBuilder struct { + items []*GcpSecurityBuilder +} + +// NewGcpSecurityList creates a new builder of 'gcp_security' objects. +func NewGcpSecurityList() *GcpSecurityListBuilder { + return new(GcpSecurityListBuilder) +} + +// Items sets the items of the list. +func (b *GcpSecurityListBuilder) Items(values ...*GcpSecurityBuilder) *GcpSecurityListBuilder { + b.items = make([]*GcpSecurityBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *GcpSecurityListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *GcpSecurityListBuilder) Copy(list *GcpSecurityList) *GcpSecurityListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*GcpSecurityBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewGcpSecurity().Copy(v) + } + } + return b +} + +// Build creates a list of 'gcp_security' objects using the +// configuration stored in the builder. +func (b *GcpSecurityListBuilder) Build() (list *GcpSecurityList, err error) { + items := make([]*GcpSecurity, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(GcpSecurityList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/gcp_security_list_type_json.go b/arohcp/v1alpha1/gcp_security_list_type_json.go new file mode 100644 index 000000000..933561d43 --- /dev/null +++ b/arohcp/v1alpha1/gcp_security_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalGcpSecurityList writes a list of values of the 'gcp_security' type to +// the given writer. +func MarshalGcpSecurityList(list []*GcpSecurity, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteGcpSecurityList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteGcpSecurityList writes a list of value of the 'gcp_security' type to +// the given stream. +func WriteGcpSecurityList(list []*GcpSecurity, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteGcpSecurity(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalGcpSecurityList reads a list of values of the 'gcp_security' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalGcpSecurityList(source interface{}) (items []*GcpSecurity, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadGcpSecurityList(iterator) + err = iterator.Error + return +} + +// ReadGcpSecurityList reads list of values of the ”gcp_security' type from +// the given iterator. +func ReadGcpSecurityList(iterator *jsoniter.Iterator) []*GcpSecurity { + list := []*GcpSecurity{} + for iterator.ReadArray() { + item := ReadGcpSecurity(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/gcp_security_type.go b/arohcp/v1alpha1/gcp_security_type.go new file mode 100644 index 000000000..1b2b14e20 --- /dev/null +++ b/arohcp/v1alpha1/gcp_security_type.go @@ -0,0 +1,165 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// GcpSecurity represents the values of the 'gcp_security' type. +// +// Google cloud platform security settings of a cluster. +type GcpSecurity struct { + bitmap_ uint32 + secureBoot bool +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *GcpSecurity) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// SecureBoot returns the value of the 'secure_boot' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Determines if Shielded VM feature "Secure Boot" should be set for the nodes of the cluster. +func (o *GcpSecurity) SecureBoot() bool { + if o != nil && o.bitmap_&1 != 0 { + return o.secureBoot + } + return false +} + +// GetSecureBoot returns the value of the 'secure_boot' attribute and +// a flag indicating if the attribute has a value. +// +// Determines if Shielded VM feature "Secure Boot" should be set for the nodes of the cluster. +func (o *GcpSecurity) GetSecureBoot() (value bool, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.secureBoot + } + return +} + +// GcpSecurityListKind is the name of the type used to represent list of objects of +// type 'gcp_security'. +const GcpSecurityListKind = "GcpSecurityList" + +// GcpSecurityListLinkKind is the name of the type used to represent links to list +// of objects of type 'gcp_security'. +const GcpSecurityListLinkKind = "GcpSecurityListLink" + +// GcpSecurityNilKind is the name of the type used to nil lists of objects of +// type 'gcp_security'. +const GcpSecurityListNilKind = "GcpSecurityListNil" + +// GcpSecurityList is a list of values of the 'gcp_security' type. +type GcpSecurityList struct { + href string + link bool + items []*GcpSecurity +} + +// Len returns the length of the list. +func (l *GcpSecurityList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *GcpSecurityList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *GcpSecurityList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *GcpSecurityList) SetItems(items []*GcpSecurity) { + l.items = items +} + +// Items returns the items of the list. +func (l *GcpSecurityList) Items() []*GcpSecurity { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *GcpSecurityList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *GcpSecurityList) Get(i int) *GcpSecurity { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *GcpSecurityList) Slice() []*GcpSecurity { + var slice []*GcpSecurity + if l == nil { + slice = make([]*GcpSecurity, 0) + } else { + slice = make([]*GcpSecurity, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *GcpSecurityList) Each(f func(item *GcpSecurity) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *GcpSecurityList) Range(f func(index int, item *GcpSecurity) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/gcp_security_type_json.go b/arohcp/v1alpha1/gcp_security_type_json.go new file mode 100644 index 000000000..2555916bd --- /dev/null +++ b/arohcp/v1alpha1/gcp_security_type_json.go @@ -0,0 +1,86 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalGcpSecurity writes a value of the 'gcp_security' type to the given writer. +func MarshalGcpSecurity(object *GcpSecurity, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteGcpSecurity(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteGcpSecurity writes a value of the 'gcp_security' type to the given stream. +func WriteGcpSecurity(object *GcpSecurity, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("secure_boot") + stream.WriteBool(object.secureBoot) + } + stream.WriteObjectEnd() +} + +// UnmarshalGcpSecurity reads a value of the 'gcp_security' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalGcpSecurity(source interface{}) (object *GcpSecurity, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadGcpSecurity(iterator) + err = iterator.Error + return +} + +// ReadGcpSecurity reads a value of the 'gcp_security' type from the given iterator. +func ReadGcpSecurity(iterator *jsoniter.Iterator) *GcpSecurity { + object := &GcpSecurity{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "secure_boot": + value := iterator.ReadBool() + object.secureBoot = value + object.bitmap_ |= 1 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/gcp_type.go b/arohcp/v1alpha1/gcp_type.go new file mode 100644 index 000000000..1edcb5624 --- /dev/null +++ b/arohcp/v1alpha1/gcp_type.go @@ -0,0 +1,453 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// GCP represents the values of the 'GCP' type. +// +// Google cloud platform settings of a cluster. +type GCP struct { + bitmap_ uint32 + authURI string + authProviderX509CertURL string + authentication *GcpAuthentication + clientID string + clientX509CertURL string + clientEmail string + privateKey string + privateKeyID string + privateServiceConnect *GcpPrivateServiceConnect + projectID string + security *GcpSecurity + tokenURI string + type_ string +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *GCP) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// AuthURI returns the value of the 'auth_URI' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// GCP authentication uri +func (o *GCP) AuthURI() string { + if o != nil && o.bitmap_&1 != 0 { + return o.authURI + } + return "" +} + +// GetAuthURI returns the value of the 'auth_URI' attribute and +// a flag indicating if the attribute has a value. +// +// GCP authentication uri +func (o *GCP) GetAuthURI() (value string, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.authURI + } + return +} + +// AuthProviderX509CertURL returns the value of the 'auth_provider_X509_cert_URL' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// GCP Authentication provider x509 certificate url +func (o *GCP) AuthProviderX509CertURL() string { + if o != nil && o.bitmap_&2 != 0 { + return o.authProviderX509CertURL + } + return "" +} + +// GetAuthProviderX509CertURL returns the value of the 'auth_provider_X509_cert_URL' attribute and +// a flag indicating if the attribute has a value. +// +// GCP Authentication provider x509 certificate url +func (o *GCP) GetAuthProviderX509CertURL() (value string, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.authProviderX509CertURL + } + return +} + +// Authentication returns the value of the 'authentication' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// GCP Authentication Method +func (o *GCP) Authentication() *GcpAuthentication { + if o != nil && o.bitmap_&4 != 0 { + return o.authentication + } + return nil +} + +// GetAuthentication returns the value of the 'authentication' attribute and +// a flag indicating if the attribute has a value. +// +// GCP Authentication Method +func (o *GCP) GetAuthentication() (value *GcpAuthentication, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.authentication + } + return +} + +// ClientID returns the value of the 'client_ID' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// GCP client identifier +func (o *GCP) ClientID() string { + if o != nil && o.bitmap_&8 != 0 { + return o.clientID + } + return "" +} + +// GetClientID returns the value of the 'client_ID' attribute and +// a flag indicating if the attribute has a value. +// +// GCP client identifier +func (o *GCP) GetClientID() (value string, ok bool) { + ok = o != nil && o.bitmap_&8 != 0 + if ok { + value = o.clientID + } + return +} + +// ClientX509CertURL returns the value of the 'client_X509_cert_URL' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// GCP client x509 certificate url +func (o *GCP) ClientX509CertURL() string { + if o != nil && o.bitmap_&16 != 0 { + return o.clientX509CertURL + } + return "" +} + +// GetClientX509CertURL returns the value of the 'client_X509_cert_URL' attribute and +// a flag indicating if the attribute has a value. +// +// GCP client x509 certificate url +func (o *GCP) GetClientX509CertURL() (value string, ok bool) { + ok = o != nil && o.bitmap_&16 != 0 + if ok { + value = o.clientX509CertURL + } + return +} + +// ClientEmail returns the value of the 'client_email' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// GCP client email +func (o *GCP) ClientEmail() string { + if o != nil && o.bitmap_&32 != 0 { + return o.clientEmail + } + return "" +} + +// GetClientEmail returns the value of the 'client_email' attribute and +// a flag indicating if the attribute has a value. +// +// GCP client email +func (o *GCP) GetClientEmail() (value string, ok bool) { + ok = o != nil && o.bitmap_&32 != 0 + if ok { + value = o.clientEmail + } + return +} + +// PrivateKey returns the value of the 'private_key' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// GCP private key +func (o *GCP) PrivateKey() string { + if o != nil && o.bitmap_&64 != 0 { + return o.privateKey + } + return "" +} + +// GetPrivateKey returns the value of the 'private_key' attribute and +// a flag indicating if the attribute has a value. +// +// GCP private key +func (o *GCP) GetPrivateKey() (value string, ok bool) { + ok = o != nil && o.bitmap_&64 != 0 + if ok { + value = o.privateKey + } + return +} + +// PrivateKeyID returns the value of the 'private_key_ID' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// GCP private key identifier +func (o *GCP) PrivateKeyID() string { + if o != nil && o.bitmap_&128 != 0 { + return o.privateKeyID + } + return "" +} + +// GetPrivateKeyID returns the value of the 'private_key_ID' attribute and +// a flag indicating if the attribute has a value. +// +// GCP private key identifier +func (o *GCP) GetPrivateKeyID() (value string, ok bool) { + ok = o != nil && o.bitmap_&128 != 0 + if ok { + value = o.privateKeyID + } + return +} + +// PrivateServiceConnect returns the value of the 'private_service_connect' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// GCP PrivateServiceConnect configuration +func (o *GCP) PrivateServiceConnect() *GcpPrivateServiceConnect { + if o != nil && o.bitmap_&256 != 0 { + return o.privateServiceConnect + } + return nil +} + +// GetPrivateServiceConnect returns the value of the 'private_service_connect' attribute and +// a flag indicating if the attribute has a value. +// +// GCP PrivateServiceConnect configuration +func (o *GCP) GetPrivateServiceConnect() (value *GcpPrivateServiceConnect, ok bool) { + ok = o != nil && o.bitmap_&256 != 0 + if ok { + value = o.privateServiceConnect + } + return +} + +// ProjectID returns the value of the 'project_ID' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// GCP project identifier. +func (o *GCP) ProjectID() string { + if o != nil && o.bitmap_&512 != 0 { + return o.projectID + } + return "" +} + +// GetProjectID returns the value of the 'project_ID' attribute and +// a flag indicating if the attribute has a value. +// +// GCP project identifier. +func (o *GCP) GetProjectID() (value string, ok bool) { + ok = o != nil && o.bitmap_&512 != 0 + if ok { + value = o.projectID + } + return +} + +// Security returns the value of the 'security' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// GCP Security Settings +func (o *GCP) Security() *GcpSecurity { + if o != nil && o.bitmap_&1024 != 0 { + return o.security + } + return nil +} + +// GetSecurity returns the value of the 'security' attribute and +// a flag indicating if the attribute has a value. +// +// GCP Security Settings +func (o *GCP) GetSecurity() (value *GcpSecurity, ok bool) { + ok = o != nil && o.bitmap_&1024 != 0 + if ok { + value = o.security + } + return +} + +// TokenURI returns the value of the 'token_URI' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// GCP token uri +func (o *GCP) TokenURI() string { + if o != nil && o.bitmap_&2048 != 0 { + return o.tokenURI + } + return "" +} + +// GetTokenURI returns the value of the 'token_URI' attribute and +// a flag indicating if the attribute has a value. +// +// GCP token uri +func (o *GCP) GetTokenURI() (value string, ok bool) { + ok = o != nil && o.bitmap_&2048 != 0 + if ok { + value = o.tokenURI + } + return +} + +// Type returns the value of the 'type' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// GCP the type of the service the key belongs to +func (o *GCP) Type() string { + if o != nil && o.bitmap_&4096 != 0 { + return o.type_ + } + return "" +} + +// GetType returns the value of the 'type' attribute and +// a flag indicating if the attribute has a value. +// +// GCP the type of the service the key belongs to +func (o *GCP) GetType() (value string, ok bool) { + ok = o != nil && o.bitmap_&4096 != 0 + if ok { + value = o.type_ + } + return +} + +// GCPListKind is the name of the type used to represent list of objects of +// type 'GCP'. +const GCPListKind = "GCPList" + +// GCPListLinkKind is the name of the type used to represent links to list +// of objects of type 'GCP'. +const GCPListLinkKind = "GCPListLink" + +// GCPNilKind is the name of the type used to nil lists of objects of +// type 'GCP'. +const GCPListNilKind = "GCPListNil" + +// GCPList is a list of values of the 'GCP' type. +type GCPList struct { + href string + link bool + items []*GCP +} + +// Len returns the length of the list. +func (l *GCPList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *GCPList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *GCPList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *GCPList) SetItems(items []*GCP) { + l.items = items +} + +// Items returns the items of the list. +func (l *GCPList) Items() []*GCP { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *GCPList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *GCPList) Get(i int) *GCP { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *GCPList) Slice() []*GCP { + var slice []*GCP + if l == nil { + slice = make([]*GCP, 0) + } else { + slice = make([]*GCP, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *GCPList) Each(f func(item *GCP) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *GCPList) Range(f func(index int, item *GCP) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/gcp_type_json.go b/arohcp/v1alpha1/gcp_type_json.go new file mode 100644 index 000000000..a4b330449 --- /dev/null +++ b/arohcp/v1alpha1/gcp_type_json.go @@ -0,0 +1,242 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalGCP writes a value of the 'GCP' type to the given writer. +func MarshalGCP(object *GCP, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteGCP(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteGCP writes a value of the 'GCP' type to the given stream. +func WriteGCP(object *GCP, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("auth_uri") + stream.WriteString(object.authURI) + count++ + } + present_ = object.bitmap_&2 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("auth_provider_x509_cert_url") + stream.WriteString(object.authProviderX509CertURL) + count++ + } + present_ = object.bitmap_&4 != 0 && object.authentication != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("authentication") + WriteGcpAuthentication(object.authentication, stream) + count++ + } + present_ = object.bitmap_&8 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("client_id") + stream.WriteString(object.clientID) + count++ + } + present_ = object.bitmap_&16 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("client_x509_cert_url") + stream.WriteString(object.clientX509CertURL) + count++ + } + present_ = object.bitmap_&32 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("client_email") + stream.WriteString(object.clientEmail) + count++ + } + present_ = object.bitmap_&64 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("private_key") + stream.WriteString(object.privateKey) + count++ + } + present_ = object.bitmap_&128 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("private_key_id") + stream.WriteString(object.privateKeyID) + count++ + } + present_ = object.bitmap_&256 != 0 && object.privateServiceConnect != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("private_service_connect") + WriteGcpPrivateServiceConnect(object.privateServiceConnect, stream) + count++ + } + present_ = object.bitmap_&512 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("project_id") + stream.WriteString(object.projectID) + count++ + } + present_ = object.bitmap_&1024 != 0 && object.security != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("security") + WriteGcpSecurity(object.security, stream) + count++ + } + present_ = object.bitmap_&2048 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("token_uri") + stream.WriteString(object.tokenURI) + count++ + } + present_ = object.bitmap_&4096 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("type") + stream.WriteString(object.type_) + } + stream.WriteObjectEnd() +} + +// UnmarshalGCP reads a value of the 'GCP' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalGCP(source interface{}) (object *GCP, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadGCP(iterator) + err = iterator.Error + return +} + +// ReadGCP reads a value of the 'GCP' type from the given iterator. +func ReadGCP(iterator *jsoniter.Iterator) *GCP { + object := &GCP{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "auth_uri": + value := iterator.ReadString() + object.authURI = value + object.bitmap_ |= 1 + case "auth_provider_x509_cert_url": + value := iterator.ReadString() + object.authProviderX509CertURL = value + object.bitmap_ |= 2 + case "authentication": + value := ReadGcpAuthentication(iterator) + object.authentication = value + object.bitmap_ |= 4 + case "client_id": + value := iterator.ReadString() + object.clientID = value + object.bitmap_ |= 8 + case "client_x509_cert_url": + value := iterator.ReadString() + object.clientX509CertURL = value + object.bitmap_ |= 16 + case "client_email": + value := iterator.ReadString() + object.clientEmail = value + object.bitmap_ |= 32 + case "private_key": + value := iterator.ReadString() + object.privateKey = value + object.bitmap_ |= 64 + case "private_key_id": + value := iterator.ReadString() + object.privateKeyID = value + object.bitmap_ |= 128 + case "private_service_connect": + value := ReadGcpPrivateServiceConnect(iterator) + object.privateServiceConnect = value + object.bitmap_ |= 256 + case "project_id": + value := iterator.ReadString() + object.projectID = value + object.bitmap_ |= 512 + case "security": + value := ReadGcpSecurity(iterator) + object.security = value + object.bitmap_ |= 1024 + case "token_uri": + value := iterator.ReadString() + object.tokenURI = value + object.bitmap_ |= 2048 + case "type": + value := iterator.ReadString() + object.type_ = value + object.bitmap_ |= 4096 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/gcp_volume_builder.go b/arohcp/v1alpha1/gcp_volume_builder.go new file mode 100644 index 000000000..fd58c8df7 --- /dev/null +++ b/arohcp/v1alpha1/gcp_volume_builder.go @@ -0,0 +1,63 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// GCPVolumeBuilder contains the data and logic needed to build 'GCP_volume' objects. +// +// Holds settings for an GCP storage volume. +type GCPVolumeBuilder struct { + bitmap_ uint32 + size int +} + +// NewGCPVolume creates a new builder of 'GCP_volume' objects. +func NewGCPVolume() *GCPVolumeBuilder { + return &GCPVolumeBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *GCPVolumeBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// Size sets the value of the 'size' attribute to the given value. +func (b *GCPVolumeBuilder) Size(value int) *GCPVolumeBuilder { + b.size = value + b.bitmap_ |= 1 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *GCPVolumeBuilder) Copy(object *GCPVolume) *GCPVolumeBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.size = object.size + return b +} + +// Build creates a 'GCP_volume' object using the configuration stored in the builder. +func (b *GCPVolumeBuilder) Build() (object *GCPVolume, err error) { + object = new(GCPVolume) + object.bitmap_ = b.bitmap_ + object.size = b.size + return +} diff --git a/arohcp/v1alpha1/gcp_volume_list_builder.go b/arohcp/v1alpha1/gcp_volume_list_builder.go new file mode 100644 index 000000000..c7c6c44df --- /dev/null +++ b/arohcp/v1alpha1/gcp_volume_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// GCPVolumeListBuilder contains the data and logic needed to build +// 'GCP_volume' objects. +type GCPVolumeListBuilder struct { + items []*GCPVolumeBuilder +} + +// NewGCPVolumeList creates a new builder of 'GCP_volume' objects. +func NewGCPVolumeList() *GCPVolumeListBuilder { + return new(GCPVolumeListBuilder) +} + +// Items sets the items of the list. +func (b *GCPVolumeListBuilder) Items(values ...*GCPVolumeBuilder) *GCPVolumeListBuilder { + b.items = make([]*GCPVolumeBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *GCPVolumeListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *GCPVolumeListBuilder) Copy(list *GCPVolumeList) *GCPVolumeListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*GCPVolumeBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewGCPVolume().Copy(v) + } + } + return b +} + +// Build creates a list of 'GCP_volume' objects using the +// configuration stored in the builder. +func (b *GCPVolumeListBuilder) Build() (list *GCPVolumeList, err error) { + items := make([]*GCPVolume, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(GCPVolumeList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/gcp_volume_list_type_json.go b/arohcp/v1alpha1/gcp_volume_list_type_json.go new file mode 100644 index 000000000..29aab8404 --- /dev/null +++ b/arohcp/v1alpha1/gcp_volume_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalGCPVolumeList writes a list of values of the 'GCP_volume' type to +// the given writer. +func MarshalGCPVolumeList(list []*GCPVolume, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteGCPVolumeList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteGCPVolumeList writes a list of value of the 'GCP_volume' type to +// the given stream. +func WriteGCPVolumeList(list []*GCPVolume, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteGCPVolume(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalGCPVolumeList reads a list of values of the 'GCP_volume' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalGCPVolumeList(source interface{}) (items []*GCPVolume, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadGCPVolumeList(iterator) + err = iterator.Error + return +} + +// ReadGCPVolumeList reads list of values of the ”GCP_volume' type from +// the given iterator. +func ReadGCPVolumeList(iterator *jsoniter.Iterator) []*GCPVolume { + list := []*GCPVolume{} + for iterator.ReadArray() { + item := ReadGCPVolume(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/gcp_volume_type.go b/arohcp/v1alpha1/gcp_volume_type.go new file mode 100644 index 000000000..481e5b70f --- /dev/null +++ b/arohcp/v1alpha1/gcp_volume_type.go @@ -0,0 +1,165 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// GCPVolume represents the values of the 'GCP_volume' type. +// +// Holds settings for an GCP storage volume. +type GCPVolume struct { + bitmap_ uint32 + size int +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *GCPVolume) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// Size returns the value of the 'size' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Volume size in Gib. +func (o *GCPVolume) Size() int { + if o != nil && o.bitmap_&1 != 0 { + return o.size + } + return 0 +} + +// GetSize returns the value of the 'size' attribute and +// a flag indicating if the attribute has a value. +// +// Volume size in Gib. +func (o *GCPVolume) GetSize() (value int, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.size + } + return +} + +// GCPVolumeListKind is the name of the type used to represent list of objects of +// type 'GCP_volume'. +const GCPVolumeListKind = "GCPVolumeList" + +// GCPVolumeListLinkKind is the name of the type used to represent links to list +// of objects of type 'GCP_volume'. +const GCPVolumeListLinkKind = "GCPVolumeListLink" + +// GCPVolumeNilKind is the name of the type used to nil lists of objects of +// type 'GCP_volume'. +const GCPVolumeListNilKind = "GCPVolumeListNil" + +// GCPVolumeList is a list of values of the 'GCP_volume' type. +type GCPVolumeList struct { + href string + link bool + items []*GCPVolume +} + +// Len returns the length of the list. +func (l *GCPVolumeList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *GCPVolumeList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *GCPVolumeList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *GCPVolumeList) SetItems(items []*GCPVolume) { + l.items = items +} + +// Items returns the items of the list. +func (l *GCPVolumeList) Items() []*GCPVolume { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *GCPVolumeList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *GCPVolumeList) Get(i int) *GCPVolume { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *GCPVolumeList) Slice() []*GCPVolume { + var slice []*GCPVolume + if l == nil { + slice = make([]*GCPVolume, 0) + } else { + slice = make([]*GCPVolume, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *GCPVolumeList) Each(f func(item *GCPVolume) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *GCPVolumeList) Range(f func(index int, item *GCPVolume) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/gcp_volume_type_json.go b/arohcp/v1alpha1/gcp_volume_type_json.go new file mode 100644 index 000000000..264cdd220 --- /dev/null +++ b/arohcp/v1alpha1/gcp_volume_type_json.go @@ -0,0 +1,86 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalGCPVolume writes a value of the 'GCP_volume' type to the given writer. +func MarshalGCPVolume(object *GCPVolume, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteGCPVolume(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteGCPVolume writes a value of the 'GCP_volume' type to the given stream. +func WriteGCPVolume(object *GCPVolume, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("size") + stream.WriteInt(object.size) + } + stream.WriteObjectEnd() +} + +// UnmarshalGCPVolume reads a value of the 'GCP_volume' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalGCPVolume(source interface{}) (object *GCPVolume, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadGCPVolume(iterator) + err = iterator.Error + return +} + +// ReadGCPVolume reads a value of the 'GCP_volume' type from the given iterator. +func ReadGCPVolume(iterator *jsoniter.Iterator) *GCPVolume { + object := &GCPVolume{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "size": + value := iterator.ReadInt() + object.size = value + object.bitmap_ |= 1 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/ht_passwd_identity_provider_builder.go b/arohcp/v1alpha1/ht_passwd_identity_provider_builder.go new file mode 100644 index 000000000..7089c6d74 --- /dev/null +++ b/arohcp/v1alpha1/ht_passwd_identity_provider_builder.go @@ -0,0 +1,96 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + v1 "github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1" +) + +// HTPasswdIdentityProviderBuilder contains the data and logic needed to build 'HT_passwd_identity_provider' objects. +// +// Details for `htpasswd` identity providers. +type HTPasswdIdentityProviderBuilder struct { + bitmap_ uint32 + password string + username string + users *v1.HTPasswdUserListBuilder +} + +// NewHTPasswdIdentityProvider creates a new builder of 'HT_passwd_identity_provider' objects. +func NewHTPasswdIdentityProvider() *HTPasswdIdentityProviderBuilder { + return &HTPasswdIdentityProviderBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *HTPasswdIdentityProviderBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// Password sets the value of the 'password' attribute to the given value. +func (b *HTPasswdIdentityProviderBuilder) Password(value string) *HTPasswdIdentityProviderBuilder { + b.password = value + b.bitmap_ |= 1 + return b +} + +// Username sets the value of the 'username' attribute to the given value. +func (b *HTPasswdIdentityProviderBuilder) Username(value string) *HTPasswdIdentityProviderBuilder { + b.username = value + b.bitmap_ |= 2 + return b +} + +// Users sets the value of the 'users' attribute to the given values. +func (b *HTPasswdIdentityProviderBuilder) Users(value *v1.HTPasswdUserListBuilder) *HTPasswdIdentityProviderBuilder { + b.users = value + b.bitmap_ |= 4 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *HTPasswdIdentityProviderBuilder) Copy(object *HTPasswdIdentityProvider) *HTPasswdIdentityProviderBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.password = object.password + b.username = object.username + if object.users != nil { + b.users = v1.NewHTPasswdUserList().Copy(object.users) + } else { + b.users = nil + } + return b +} + +// Build creates a 'HT_passwd_identity_provider' object using the configuration stored in the builder. +func (b *HTPasswdIdentityProviderBuilder) Build() (object *HTPasswdIdentityProvider, err error) { + object = new(HTPasswdIdentityProvider) + object.bitmap_ = b.bitmap_ + object.password = b.password + object.username = b.username + if b.users != nil { + object.users, err = b.users.Build() + if err != nil { + return + } + } + return +} diff --git a/arohcp/v1alpha1/ht_passwd_identity_provider_list_builder.go b/arohcp/v1alpha1/ht_passwd_identity_provider_list_builder.go new file mode 100644 index 000000000..d7016f508 --- /dev/null +++ b/arohcp/v1alpha1/ht_passwd_identity_provider_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// HTPasswdIdentityProviderListBuilder contains the data and logic needed to build +// 'HT_passwd_identity_provider' objects. +type HTPasswdIdentityProviderListBuilder struct { + items []*HTPasswdIdentityProviderBuilder +} + +// NewHTPasswdIdentityProviderList creates a new builder of 'HT_passwd_identity_provider' objects. +func NewHTPasswdIdentityProviderList() *HTPasswdIdentityProviderListBuilder { + return new(HTPasswdIdentityProviderListBuilder) +} + +// Items sets the items of the list. +func (b *HTPasswdIdentityProviderListBuilder) Items(values ...*HTPasswdIdentityProviderBuilder) *HTPasswdIdentityProviderListBuilder { + b.items = make([]*HTPasswdIdentityProviderBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *HTPasswdIdentityProviderListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *HTPasswdIdentityProviderListBuilder) Copy(list *HTPasswdIdentityProviderList) *HTPasswdIdentityProviderListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*HTPasswdIdentityProviderBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewHTPasswdIdentityProvider().Copy(v) + } + } + return b +} + +// Build creates a list of 'HT_passwd_identity_provider' objects using the +// configuration stored in the builder. +func (b *HTPasswdIdentityProviderListBuilder) Build() (list *HTPasswdIdentityProviderList, err error) { + items := make([]*HTPasswdIdentityProvider, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(HTPasswdIdentityProviderList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/ht_passwd_identity_provider_list_type_json.go b/arohcp/v1alpha1/ht_passwd_identity_provider_list_type_json.go new file mode 100644 index 000000000..ded5005e4 --- /dev/null +++ b/arohcp/v1alpha1/ht_passwd_identity_provider_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalHTPasswdIdentityProviderList writes a list of values of the 'HT_passwd_identity_provider' type to +// the given writer. +func MarshalHTPasswdIdentityProviderList(list []*HTPasswdIdentityProvider, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteHTPasswdIdentityProviderList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteHTPasswdIdentityProviderList writes a list of value of the 'HT_passwd_identity_provider' type to +// the given stream. +func WriteHTPasswdIdentityProviderList(list []*HTPasswdIdentityProvider, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteHTPasswdIdentityProvider(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalHTPasswdIdentityProviderList reads a list of values of the 'HT_passwd_identity_provider' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalHTPasswdIdentityProviderList(source interface{}) (items []*HTPasswdIdentityProvider, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadHTPasswdIdentityProviderList(iterator) + err = iterator.Error + return +} + +// ReadHTPasswdIdentityProviderList reads list of values of the ”HT_passwd_identity_provider' type from +// the given iterator. +func ReadHTPasswdIdentityProviderList(iterator *jsoniter.Iterator) []*HTPasswdIdentityProvider { + list := []*HTPasswdIdentityProvider{} + for iterator.ReadArray() { + item := ReadHTPasswdIdentityProvider(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/ht_passwd_identity_provider_type.go b/arohcp/v1alpha1/ht_passwd_identity_provider_type.go new file mode 100644 index 000000000..054c64008 --- /dev/null +++ b/arohcp/v1alpha1/ht_passwd_identity_provider_type.go @@ -0,0 +1,217 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + v1 "github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1" +) + +// HTPasswdIdentityProvider represents the values of the 'HT_passwd_identity_provider' type. +// +// Details for `htpasswd` identity providers. +type HTPasswdIdentityProvider struct { + bitmap_ uint32 + password string + username string + users *v1.HTPasswdUserList +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *HTPasswdIdentityProvider) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// Password returns the value of the 'password' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Password to be used in the _HTPasswd_ data file. +func (o *HTPasswdIdentityProvider) Password() string { + if o != nil && o.bitmap_&1 != 0 { + return o.password + } + return "" +} + +// GetPassword returns the value of the 'password' attribute and +// a flag indicating if the attribute has a value. +// +// Password to be used in the _HTPasswd_ data file. +func (o *HTPasswdIdentityProvider) GetPassword() (value string, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.password + } + return +} + +// Username returns the value of the 'username' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Username to be used in the _HTPasswd_ data file. +func (o *HTPasswdIdentityProvider) Username() string { + if o != nil && o.bitmap_&2 != 0 { + return o.username + } + return "" +} + +// GetUsername returns the value of the 'username' attribute and +// a flag indicating if the attribute has a value. +// +// Username to be used in the _HTPasswd_ data file. +func (o *HTPasswdIdentityProvider) GetUsername() (value string, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.username + } + return +} + +// Users returns the value of the 'users' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Link to the collection of _HTPasswd_ users. +func (o *HTPasswdIdentityProvider) Users() *v1.HTPasswdUserList { + if o != nil && o.bitmap_&4 != 0 { + return o.users + } + return nil +} + +// GetUsers returns the value of the 'users' attribute and +// a flag indicating if the attribute has a value. +// +// Link to the collection of _HTPasswd_ users. +func (o *HTPasswdIdentityProvider) GetUsers() (value *v1.HTPasswdUserList, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.users + } + return +} + +// HTPasswdIdentityProviderListKind is the name of the type used to represent list of objects of +// type 'HT_passwd_identity_provider'. +const HTPasswdIdentityProviderListKind = "HTPasswdIdentityProviderList" + +// HTPasswdIdentityProviderListLinkKind is the name of the type used to represent links to list +// of objects of type 'HT_passwd_identity_provider'. +const HTPasswdIdentityProviderListLinkKind = "HTPasswdIdentityProviderListLink" + +// HTPasswdIdentityProviderNilKind is the name of the type used to nil lists of objects of +// type 'HT_passwd_identity_provider'. +const HTPasswdIdentityProviderListNilKind = "HTPasswdIdentityProviderListNil" + +// HTPasswdIdentityProviderList is a list of values of the 'HT_passwd_identity_provider' type. +type HTPasswdIdentityProviderList struct { + href string + link bool + items []*HTPasswdIdentityProvider +} + +// Len returns the length of the list. +func (l *HTPasswdIdentityProviderList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *HTPasswdIdentityProviderList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *HTPasswdIdentityProviderList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *HTPasswdIdentityProviderList) SetItems(items []*HTPasswdIdentityProvider) { + l.items = items +} + +// Items returns the items of the list. +func (l *HTPasswdIdentityProviderList) Items() []*HTPasswdIdentityProvider { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *HTPasswdIdentityProviderList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *HTPasswdIdentityProviderList) Get(i int) *HTPasswdIdentityProvider { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *HTPasswdIdentityProviderList) Slice() []*HTPasswdIdentityProvider { + var slice []*HTPasswdIdentityProvider + if l == nil { + slice = make([]*HTPasswdIdentityProvider, 0) + } else { + slice = make([]*HTPasswdIdentityProvider, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *HTPasswdIdentityProviderList) Each(f func(item *HTPasswdIdentityProvider) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *HTPasswdIdentityProviderList) Range(f func(index int, item *HTPasswdIdentityProvider) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/ht_passwd_identity_provider_type_json.go b/arohcp/v1alpha1/ht_passwd_identity_provider_type_json.go new file mode 100644 index 000000000..c84f8669a --- /dev/null +++ b/arohcp/v1alpha1/ht_passwd_identity_provider_type_json.go @@ -0,0 +1,133 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + v1 "github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalHTPasswdIdentityProvider writes a value of the 'HT_passwd_identity_provider' type to the given writer. +func MarshalHTPasswdIdentityProvider(object *HTPasswdIdentityProvider, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteHTPasswdIdentityProvider(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteHTPasswdIdentityProvider writes a value of the 'HT_passwd_identity_provider' type to the given stream. +func WriteHTPasswdIdentityProvider(object *HTPasswdIdentityProvider, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("password") + stream.WriteString(object.password) + count++ + } + present_ = object.bitmap_&2 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("username") + stream.WriteString(object.username) + count++ + } + present_ = object.bitmap_&4 != 0 && object.users != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("users") + stream.WriteObjectStart() + stream.WriteObjectField("items") + v1.WriteHTPasswdUserList(object.users.Items(), stream) + stream.WriteObjectEnd() + } + stream.WriteObjectEnd() +} + +// UnmarshalHTPasswdIdentityProvider reads a value of the 'HT_passwd_identity_provider' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalHTPasswdIdentityProvider(source interface{}) (object *HTPasswdIdentityProvider, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadHTPasswdIdentityProvider(iterator) + err = iterator.Error + return +} + +// ReadHTPasswdIdentityProvider reads a value of the 'HT_passwd_identity_provider' type from the given iterator. +func ReadHTPasswdIdentityProvider(iterator *jsoniter.Iterator) *HTPasswdIdentityProvider { + object := &HTPasswdIdentityProvider{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "password": + value := iterator.ReadString() + object.password = value + object.bitmap_ |= 1 + case "username": + value := iterator.ReadString() + object.username = value + object.bitmap_ |= 2 + case "users": + value := &v1.HTPasswdUserList{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "kind": + text := iterator.ReadString() + value.SetLink(text == v1.HTPasswdUserListLinkKind) + case "href": + value.SetHREF(iterator.ReadString()) + case "items": + value.SetItems(v1.ReadHTPasswdUserList(iterator)) + default: + iterator.ReadAny() + } + } + object.users = value + object.bitmap_ |= 4 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/hypershift_builder.go b/arohcp/v1alpha1/hypershift_builder.go new file mode 100644 index 000000000..49dce950b --- /dev/null +++ b/arohcp/v1alpha1/hypershift_builder.go @@ -0,0 +1,63 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// HypershiftBuilder contains the data and logic needed to build 'hypershift' objects. +// +// Hypershift configuration. +type HypershiftBuilder struct { + bitmap_ uint32 + enabled bool +} + +// NewHypershift creates a new builder of 'hypershift' objects. +func NewHypershift() *HypershiftBuilder { + return &HypershiftBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *HypershiftBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// Enabled sets the value of the 'enabled' attribute to the given value. +func (b *HypershiftBuilder) Enabled(value bool) *HypershiftBuilder { + b.enabled = value + b.bitmap_ |= 1 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *HypershiftBuilder) Copy(object *Hypershift) *HypershiftBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.enabled = object.enabled + return b +} + +// Build creates a 'hypershift' object using the configuration stored in the builder. +func (b *HypershiftBuilder) Build() (object *Hypershift, err error) { + object = new(Hypershift) + object.bitmap_ = b.bitmap_ + object.enabled = b.enabled + return +} diff --git a/arohcp/v1alpha1/hypershift_list_builder.go b/arohcp/v1alpha1/hypershift_list_builder.go new file mode 100644 index 000000000..52a00a7c0 --- /dev/null +++ b/arohcp/v1alpha1/hypershift_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// HypershiftListBuilder contains the data and logic needed to build +// 'hypershift' objects. +type HypershiftListBuilder struct { + items []*HypershiftBuilder +} + +// NewHypershiftList creates a new builder of 'hypershift' objects. +func NewHypershiftList() *HypershiftListBuilder { + return new(HypershiftListBuilder) +} + +// Items sets the items of the list. +func (b *HypershiftListBuilder) Items(values ...*HypershiftBuilder) *HypershiftListBuilder { + b.items = make([]*HypershiftBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *HypershiftListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *HypershiftListBuilder) Copy(list *HypershiftList) *HypershiftListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*HypershiftBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewHypershift().Copy(v) + } + } + return b +} + +// Build creates a list of 'hypershift' objects using the +// configuration stored in the builder. +func (b *HypershiftListBuilder) Build() (list *HypershiftList, err error) { + items := make([]*Hypershift, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(HypershiftList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/hypershift_list_type_json.go b/arohcp/v1alpha1/hypershift_list_type_json.go new file mode 100644 index 000000000..17ff4cac2 --- /dev/null +++ b/arohcp/v1alpha1/hypershift_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalHypershiftList writes a list of values of the 'hypershift' type to +// the given writer. +func MarshalHypershiftList(list []*Hypershift, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteHypershiftList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteHypershiftList writes a list of value of the 'hypershift' type to +// the given stream. +func WriteHypershiftList(list []*Hypershift, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteHypershift(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalHypershiftList reads a list of values of the 'hypershift' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalHypershiftList(source interface{}) (items []*Hypershift, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadHypershiftList(iterator) + err = iterator.Error + return +} + +// ReadHypershiftList reads list of values of the ”hypershift' type from +// the given iterator. +func ReadHypershiftList(iterator *jsoniter.Iterator) []*Hypershift { + list := []*Hypershift{} + for iterator.ReadArray() { + item := ReadHypershift(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/hypershift_type.go b/arohcp/v1alpha1/hypershift_type.go new file mode 100644 index 000000000..ece054507 --- /dev/null +++ b/arohcp/v1alpha1/hypershift_type.go @@ -0,0 +1,175 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// Hypershift represents the values of the 'hypershift' type. +// +// Hypershift configuration. +type Hypershift struct { + bitmap_ uint32 + enabled bool +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *Hypershift) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// Enabled returns the value of the 'enabled' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Boolean flag indicating if the cluster should be creating using _Hypershift_. +// +// By default this is `false`. +// +// To enable it the cluster needs to be ROSA cluster and the organization of the user needs +// to have the `hypershift` capability enabled. +func (o *Hypershift) Enabled() bool { + if o != nil && o.bitmap_&1 != 0 { + return o.enabled + } + return false +} + +// GetEnabled returns the value of the 'enabled' attribute and +// a flag indicating if the attribute has a value. +// +// Boolean flag indicating if the cluster should be creating using _Hypershift_. +// +// By default this is `false`. +// +// To enable it the cluster needs to be ROSA cluster and the organization of the user needs +// to have the `hypershift` capability enabled. +func (o *Hypershift) GetEnabled() (value bool, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.enabled + } + return +} + +// HypershiftListKind is the name of the type used to represent list of objects of +// type 'hypershift'. +const HypershiftListKind = "HypershiftList" + +// HypershiftListLinkKind is the name of the type used to represent links to list +// of objects of type 'hypershift'. +const HypershiftListLinkKind = "HypershiftListLink" + +// HypershiftNilKind is the name of the type used to nil lists of objects of +// type 'hypershift'. +const HypershiftListNilKind = "HypershiftListNil" + +// HypershiftList is a list of values of the 'hypershift' type. +type HypershiftList struct { + href string + link bool + items []*Hypershift +} + +// Len returns the length of the list. +func (l *HypershiftList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *HypershiftList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *HypershiftList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *HypershiftList) SetItems(items []*Hypershift) { + l.items = items +} + +// Items returns the items of the list. +func (l *HypershiftList) Items() []*Hypershift { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *HypershiftList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *HypershiftList) Get(i int) *Hypershift { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *HypershiftList) Slice() []*Hypershift { + var slice []*Hypershift + if l == nil { + slice = make([]*Hypershift, 0) + } else { + slice = make([]*Hypershift, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *HypershiftList) Each(f func(item *Hypershift) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *HypershiftList) Range(f func(index int, item *Hypershift) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/hypershift_type_json.go b/arohcp/v1alpha1/hypershift_type_json.go new file mode 100644 index 000000000..eca77d44c --- /dev/null +++ b/arohcp/v1alpha1/hypershift_type_json.go @@ -0,0 +1,86 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalHypershift writes a value of the 'hypershift' type to the given writer. +func MarshalHypershift(object *Hypershift, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteHypershift(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteHypershift writes a value of the 'hypershift' type to the given stream. +func WriteHypershift(object *Hypershift, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("enabled") + stream.WriteBool(object.enabled) + } + stream.WriteObjectEnd() +} + +// UnmarshalHypershift reads a value of the 'hypershift' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalHypershift(source interface{}) (object *Hypershift, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadHypershift(iterator) + err = iterator.Error + return +} + +// ReadHypershift reads a value of the 'hypershift' type from the given iterator. +func ReadHypershift(iterator *jsoniter.Iterator) *Hypershift { + object := &Hypershift{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "enabled": + value := iterator.ReadBool() + object.enabled = value + object.bitmap_ |= 1 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/instance_iam_roles_builder.go b/arohcp/v1alpha1/instance_iam_roles_builder.go new file mode 100644 index 000000000..3830c8148 --- /dev/null +++ b/arohcp/v1alpha1/instance_iam_roles_builder.go @@ -0,0 +1,73 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// InstanceIAMRolesBuilder contains the data and logic needed to build 'instance_IAM_roles' objects. +// +// Contains the necessary attributes to support role-based authentication on AWS. +type InstanceIAMRolesBuilder struct { + bitmap_ uint32 + masterRoleARN string + workerRoleARN string +} + +// NewInstanceIAMRoles creates a new builder of 'instance_IAM_roles' objects. +func NewInstanceIAMRoles() *InstanceIAMRolesBuilder { + return &InstanceIAMRolesBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *InstanceIAMRolesBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// MasterRoleARN sets the value of the 'master_role_ARN' attribute to the given value. +func (b *InstanceIAMRolesBuilder) MasterRoleARN(value string) *InstanceIAMRolesBuilder { + b.masterRoleARN = value + b.bitmap_ |= 1 + return b +} + +// WorkerRoleARN sets the value of the 'worker_role_ARN' attribute to the given value. +func (b *InstanceIAMRolesBuilder) WorkerRoleARN(value string) *InstanceIAMRolesBuilder { + b.workerRoleARN = value + b.bitmap_ |= 2 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *InstanceIAMRolesBuilder) Copy(object *InstanceIAMRoles) *InstanceIAMRolesBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.masterRoleARN = object.masterRoleARN + b.workerRoleARN = object.workerRoleARN + return b +} + +// Build creates a 'instance_IAM_roles' object using the configuration stored in the builder. +func (b *InstanceIAMRolesBuilder) Build() (object *InstanceIAMRoles, err error) { + object = new(InstanceIAMRoles) + object.bitmap_ = b.bitmap_ + object.masterRoleARN = b.masterRoleARN + object.workerRoleARN = b.workerRoleARN + return +} diff --git a/arohcp/v1alpha1/instance_iam_roles_list_builder.go b/arohcp/v1alpha1/instance_iam_roles_list_builder.go new file mode 100644 index 000000000..d5993b316 --- /dev/null +++ b/arohcp/v1alpha1/instance_iam_roles_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// InstanceIAMRolesListBuilder contains the data and logic needed to build +// 'instance_IAM_roles' objects. +type InstanceIAMRolesListBuilder struct { + items []*InstanceIAMRolesBuilder +} + +// NewInstanceIAMRolesList creates a new builder of 'instance_IAM_roles' objects. +func NewInstanceIAMRolesList() *InstanceIAMRolesListBuilder { + return new(InstanceIAMRolesListBuilder) +} + +// Items sets the items of the list. +func (b *InstanceIAMRolesListBuilder) Items(values ...*InstanceIAMRolesBuilder) *InstanceIAMRolesListBuilder { + b.items = make([]*InstanceIAMRolesBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *InstanceIAMRolesListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *InstanceIAMRolesListBuilder) Copy(list *InstanceIAMRolesList) *InstanceIAMRolesListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*InstanceIAMRolesBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewInstanceIAMRoles().Copy(v) + } + } + return b +} + +// Build creates a list of 'instance_IAM_roles' objects using the +// configuration stored in the builder. +func (b *InstanceIAMRolesListBuilder) Build() (list *InstanceIAMRolesList, err error) { + items := make([]*InstanceIAMRoles, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(InstanceIAMRolesList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/instance_iam_roles_list_type_json.go b/arohcp/v1alpha1/instance_iam_roles_list_type_json.go new file mode 100644 index 000000000..19b010ddc --- /dev/null +++ b/arohcp/v1alpha1/instance_iam_roles_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalInstanceIAMRolesList writes a list of values of the 'instance_IAM_roles' type to +// the given writer. +func MarshalInstanceIAMRolesList(list []*InstanceIAMRoles, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteInstanceIAMRolesList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteInstanceIAMRolesList writes a list of value of the 'instance_IAM_roles' type to +// the given stream. +func WriteInstanceIAMRolesList(list []*InstanceIAMRoles, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteInstanceIAMRoles(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalInstanceIAMRolesList reads a list of values of the 'instance_IAM_roles' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalInstanceIAMRolesList(source interface{}) (items []*InstanceIAMRoles, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadInstanceIAMRolesList(iterator) + err = iterator.Error + return +} + +// ReadInstanceIAMRolesList reads list of values of the ”instance_IAM_roles' type from +// the given iterator. +func ReadInstanceIAMRolesList(iterator *jsoniter.Iterator) []*InstanceIAMRoles { + list := []*InstanceIAMRoles{} + for iterator.ReadArray() { + item := ReadInstanceIAMRoles(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/instance_iam_roles_type.go b/arohcp/v1alpha1/instance_iam_roles_type.go new file mode 100644 index 000000000..49b67cab1 --- /dev/null +++ b/arohcp/v1alpha1/instance_iam_roles_type.go @@ -0,0 +1,189 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// InstanceIAMRoles represents the values of the 'instance_IAM_roles' type. +// +// Contains the necessary attributes to support role-based authentication on AWS. +type InstanceIAMRoles struct { + bitmap_ uint32 + masterRoleARN string + workerRoleARN string +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *InstanceIAMRoles) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// MasterRoleARN returns the value of the 'master_role_ARN' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The IAM role ARN that will be attached to master instances +func (o *InstanceIAMRoles) MasterRoleARN() string { + if o != nil && o.bitmap_&1 != 0 { + return o.masterRoleARN + } + return "" +} + +// GetMasterRoleARN returns the value of the 'master_role_ARN' attribute and +// a flag indicating if the attribute has a value. +// +// The IAM role ARN that will be attached to master instances +func (o *InstanceIAMRoles) GetMasterRoleARN() (value string, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.masterRoleARN + } + return +} + +// WorkerRoleARN returns the value of the 'worker_role_ARN' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The IAM role ARN that will be attached to worker instances +func (o *InstanceIAMRoles) WorkerRoleARN() string { + if o != nil && o.bitmap_&2 != 0 { + return o.workerRoleARN + } + return "" +} + +// GetWorkerRoleARN returns the value of the 'worker_role_ARN' attribute and +// a flag indicating if the attribute has a value. +// +// The IAM role ARN that will be attached to worker instances +func (o *InstanceIAMRoles) GetWorkerRoleARN() (value string, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.workerRoleARN + } + return +} + +// InstanceIAMRolesListKind is the name of the type used to represent list of objects of +// type 'instance_IAM_roles'. +const InstanceIAMRolesListKind = "InstanceIAMRolesList" + +// InstanceIAMRolesListLinkKind is the name of the type used to represent links to list +// of objects of type 'instance_IAM_roles'. +const InstanceIAMRolesListLinkKind = "InstanceIAMRolesListLink" + +// InstanceIAMRolesNilKind is the name of the type used to nil lists of objects of +// type 'instance_IAM_roles'. +const InstanceIAMRolesListNilKind = "InstanceIAMRolesListNil" + +// InstanceIAMRolesList is a list of values of the 'instance_IAM_roles' type. +type InstanceIAMRolesList struct { + href string + link bool + items []*InstanceIAMRoles +} + +// Len returns the length of the list. +func (l *InstanceIAMRolesList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *InstanceIAMRolesList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *InstanceIAMRolesList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *InstanceIAMRolesList) SetItems(items []*InstanceIAMRoles) { + l.items = items +} + +// Items returns the items of the list. +func (l *InstanceIAMRolesList) Items() []*InstanceIAMRoles { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *InstanceIAMRolesList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *InstanceIAMRolesList) Get(i int) *InstanceIAMRoles { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *InstanceIAMRolesList) Slice() []*InstanceIAMRoles { + var slice []*InstanceIAMRoles + if l == nil { + slice = make([]*InstanceIAMRoles, 0) + } else { + slice = make([]*InstanceIAMRoles, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *InstanceIAMRolesList) Each(f func(item *InstanceIAMRoles) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *InstanceIAMRolesList) Range(f func(index int, item *InstanceIAMRoles) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/instance_iam_roles_type_json.go b/arohcp/v1alpha1/instance_iam_roles_type_json.go new file mode 100644 index 000000000..e0b4eec22 --- /dev/null +++ b/arohcp/v1alpha1/instance_iam_roles_type_json.go @@ -0,0 +1,99 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalInstanceIAMRoles writes a value of the 'instance_IAM_roles' type to the given writer. +func MarshalInstanceIAMRoles(object *InstanceIAMRoles, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteInstanceIAMRoles(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteInstanceIAMRoles writes a value of the 'instance_IAM_roles' type to the given stream. +func WriteInstanceIAMRoles(object *InstanceIAMRoles, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("master_role_arn") + stream.WriteString(object.masterRoleARN) + count++ + } + present_ = object.bitmap_&2 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("worker_role_arn") + stream.WriteString(object.workerRoleARN) + } + stream.WriteObjectEnd() +} + +// UnmarshalInstanceIAMRoles reads a value of the 'instance_IAM_roles' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalInstanceIAMRoles(source interface{}) (object *InstanceIAMRoles, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadInstanceIAMRoles(iterator) + err = iterator.Error + return +} + +// ReadInstanceIAMRoles reads a value of the 'instance_IAM_roles' type from the given iterator. +func ReadInstanceIAMRoles(iterator *jsoniter.Iterator) *InstanceIAMRoles { + object := &InstanceIAMRoles{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "master_role_arn": + value := iterator.ReadString() + object.masterRoleARN = value + object.bitmap_ |= 1 + case "worker_role_arn": + value := iterator.ReadString() + object.workerRoleARN = value + object.bitmap_ |= 2 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/integer_list_type_json.go b/arohcp/v1alpha1/integer_list_type_json.go new file mode 100644 index 000000000..41f91b415 --- /dev/null +++ b/arohcp/v1alpha1/integer_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalIntegerList writes a list of values of the 'integer' type to +// the given writer. +func MarshalIntegerList(list []int, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteIntegerList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteIntegerList writes a list of value of the 'integer' type to +// the given stream. +func WriteIntegerList(list []int, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + stream.WriteInt(value) + } + stream.WriteArrayEnd() +} + +// UnmarshalIntegerList reads a list of values of the 'integer' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalIntegerList(source interface{}) (items []int, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadIntegerList(iterator) + err = iterator.Error + return +} + +// ReadIntegerList reads list of values of the ”integer' type from +// the given iterator. +func ReadIntegerList(iterator *jsoniter.Iterator) []int { + list := []int{} + for iterator.ReadArray() { + item := iterator.ReadInt() + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/interface_list_type_json.go b/arohcp/v1alpha1/interface_list_type_json.go new file mode 100644 index 000000000..07a303c42 --- /dev/null +++ b/arohcp/v1alpha1/interface_list_type_json.go @@ -0,0 +1,76 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalInterfaceList writes a list of values of the 'interface' type to +// the given writer. +func MarshalInterfaceList(list []interface{}, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteInterfaceList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteInterfaceList writes a list of value of the 'interface' type to +// the given stream. +func WriteInterfaceList(list []interface{}, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + stream.WriteVal(value) + } + stream.WriteArrayEnd() +} + +// UnmarshalInterfaceList reads a list of values of the 'interface' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalInterfaceList(source interface{}) (items []interface{}, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadInterfaceList(iterator) + err = iterator.Error + return +} + +// ReadInterfaceList reads list of values of the ”interface' type from +// the given iterator. +func ReadInterfaceList(iterator *jsoniter.Iterator) []interface{} { + list := []interface{}{} + for iterator.ReadArray() { + var item interface{} + iterator.ReadVal(&item) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/kubelet_config_builder.go b/arohcp/v1alpha1/kubelet_config_builder.go new file mode 100644 index 000000000..a85ca4c08 --- /dev/null +++ b/arohcp/v1alpha1/kubelet_config_builder.go @@ -0,0 +1,100 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// KubeletConfigBuilder contains the data and logic needed to build 'kubelet_config' objects. +// +// OCM representation of KubeletConfig, exposing the fields of Kubernetes +// KubeletConfig that can be managed by users +type KubeletConfigBuilder struct { + bitmap_ uint32 + id string + href string + name string + podPidsLimit int +} + +// NewKubeletConfig creates a new builder of 'kubelet_config' objects. +func NewKubeletConfig() *KubeletConfigBuilder { + return &KubeletConfigBuilder{} +} + +// Link sets the flag that indicates if this is a link. +func (b *KubeletConfigBuilder) Link(value bool) *KubeletConfigBuilder { + b.bitmap_ |= 1 + return b +} + +// ID sets the identifier of the object. +func (b *KubeletConfigBuilder) ID(value string) *KubeletConfigBuilder { + b.id = value + b.bitmap_ |= 2 + return b +} + +// HREF sets the link to the object. +func (b *KubeletConfigBuilder) HREF(value string) *KubeletConfigBuilder { + b.href = value + b.bitmap_ |= 4 + return b +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *KubeletConfigBuilder) Empty() bool { + return b == nil || b.bitmap_&^1 == 0 +} + +// Name sets the value of the 'name' attribute to the given value. +func (b *KubeletConfigBuilder) Name(value string) *KubeletConfigBuilder { + b.name = value + b.bitmap_ |= 8 + return b +} + +// PodPidsLimit sets the value of the 'pod_pids_limit' attribute to the given value. +func (b *KubeletConfigBuilder) PodPidsLimit(value int) *KubeletConfigBuilder { + b.podPidsLimit = value + b.bitmap_ |= 16 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *KubeletConfigBuilder) Copy(object *KubeletConfig) *KubeletConfigBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.id = object.id + b.href = object.href + b.name = object.name + b.podPidsLimit = object.podPidsLimit + return b +} + +// Build creates a 'kubelet_config' object using the configuration stored in the builder. +func (b *KubeletConfigBuilder) Build() (object *KubeletConfig, err error) { + object = new(KubeletConfig) + object.id = b.id + object.href = b.href + object.bitmap_ = b.bitmap_ + object.name = b.name + object.podPidsLimit = b.podPidsLimit + return +} diff --git a/arohcp/v1alpha1/kubelet_config_list_builder.go b/arohcp/v1alpha1/kubelet_config_list_builder.go new file mode 100644 index 000000000..d0a8a0db5 --- /dev/null +++ b/arohcp/v1alpha1/kubelet_config_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// KubeletConfigListBuilder contains the data and logic needed to build +// 'kubelet_config' objects. +type KubeletConfigListBuilder struct { + items []*KubeletConfigBuilder +} + +// NewKubeletConfigList creates a new builder of 'kubelet_config' objects. +func NewKubeletConfigList() *KubeletConfigListBuilder { + return new(KubeletConfigListBuilder) +} + +// Items sets the items of the list. +func (b *KubeletConfigListBuilder) Items(values ...*KubeletConfigBuilder) *KubeletConfigListBuilder { + b.items = make([]*KubeletConfigBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *KubeletConfigListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *KubeletConfigListBuilder) Copy(list *KubeletConfigList) *KubeletConfigListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*KubeletConfigBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewKubeletConfig().Copy(v) + } + } + return b +} + +// Build creates a list of 'kubelet_config' objects using the +// configuration stored in the builder. +func (b *KubeletConfigListBuilder) Build() (list *KubeletConfigList, err error) { + items := make([]*KubeletConfig, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(KubeletConfigList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/kubelet_config_list_type_json.go b/arohcp/v1alpha1/kubelet_config_list_type_json.go new file mode 100644 index 000000000..c64c24049 --- /dev/null +++ b/arohcp/v1alpha1/kubelet_config_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalKubeletConfigList writes a list of values of the 'kubelet_config' type to +// the given writer. +func MarshalKubeletConfigList(list []*KubeletConfig, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteKubeletConfigList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteKubeletConfigList writes a list of value of the 'kubelet_config' type to +// the given stream. +func WriteKubeletConfigList(list []*KubeletConfig, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteKubeletConfig(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalKubeletConfigList reads a list of values of the 'kubelet_config' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalKubeletConfigList(source interface{}) (items []*KubeletConfig, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadKubeletConfigList(iterator) + err = iterator.Error + return +} + +// ReadKubeletConfigList reads list of values of the ”kubelet_config' type from +// the given iterator. +func ReadKubeletConfigList(iterator *jsoniter.Iterator) []*KubeletConfig { + list := []*KubeletConfig{} + for iterator.ReadArray() { + item := ReadKubeletConfig(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/kubelet_config_type.go b/arohcp/v1alpha1/kubelet_config_type.go new file mode 100644 index 000000000..5f7c7dbe1 --- /dev/null +++ b/arohcp/v1alpha1/kubelet_config_type.go @@ -0,0 +1,294 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// KubeletConfigKind is the name of the type used to represent objects +// of type 'kubelet_config'. +const KubeletConfigKind = "KubeletConfig" + +// KubeletConfigLinkKind is the name of the type used to represent links +// to objects of type 'kubelet_config'. +const KubeletConfigLinkKind = "KubeletConfigLink" + +// KubeletConfigNilKind is the name of the type used to nil references +// to objects of type 'kubelet_config'. +const KubeletConfigNilKind = "KubeletConfigNil" + +// KubeletConfig represents the values of the 'kubelet_config' type. +// +// OCM representation of KubeletConfig, exposing the fields of Kubernetes +// KubeletConfig that can be managed by users +type KubeletConfig struct { + bitmap_ uint32 + id string + href string + name string + podPidsLimit int +} + +// Kind returns the name of the type of the object. +func (o *KubeletConfig) Kind() string { + if o == nil { + return KubeletConfigNilKind + } + if o.bitmap_&1 != 0 { + return KubeletConfigLinkKind + } + return KubeletConfigKind +} + +// Link returns true if this is a link. +func (o *KubeletConfig) Link() bool { + return o != nil && o.bitmap_&1 != 0 +} + +// ID returns the identifier of the object. +func (o *KubeletConfig) ID() string { + if o != nil && o.bitmap_&2 != 0 { + return o.id + } + return "" +} + +// GetID returns the identifier of the object and a flag indicating if the +// identifier has a value. +func (o *KubeletConfig) GetID() (value string, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.id + } + return +} + +// HREF returns the link to the object. +func (o *KubeletConfig) HREF() string { + if o != nil && o.bitmap_&4 != 0 { + return o.href + } + return "" +} + +// GetHREF returns the link of the object and a flag indicating if the +// link has a value. +func (o *KubeletConfig) GetHREF() (value string, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.href + } + return +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *KubeletConfig) Empty() bool { + return o == nil || o.bitmap_&^1 == 0 +} + +// Name returns the value of the 'name' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Allows the user to specify the name to be used to identify this KubeletConfig. +// Optional. A name will be generated if not provided. +func (o *KubeletConfig) Name() string { + if o != nil && o.bitmap_&8 != 0 { + return o.name + } + return "" +} + +// GetName returns the value of the 'name' attribute and +// a flag indicating if the attribute has a value. +// +// Allows the user to specify the name to be used to identify this KubeletConfig. +// Optional. A name will be generated if not provided. +func (o *KubeletConfig) GetName() (value string, ok bool) { + ok = o != nil && o.bitmap_&8 != 0 + if ok { + value = o.name + } + return +} + +// PodPidsLimit returns the value of the 'pod_pids_limit' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Allows the user to specify the podPidsLimit to be applied via KubeletConfig. +// Useful if workloads have greater PIDs limit requirements than the OCP default. +func (o *KubeletConfig) PodPidsLimit() int { + if o != nil && o.bitmap_&16 != 0 { + return o.podPidsLimit + } + return 0 +} + +// GetPodPidsLimit returns the value of the 'pod_pids_limit' attribute and +// a flag indicating if the attribute has a value. +// +// Allows the user to specify the podPidsLimit to be applied via KubeletConfig. +// Useful if workloads have greater PIDs limit requirements than the OCP default. +func (o *KubeletConfig) GetPodPidsLimit() (value int, ok bool) { + ok = o != nil && o.bitmap_&16 != 0 + if ok { + value = o.podPidsLimit + } + return +} + +// KubeletConfigListKind is the name of the type used to represent list of objects of +// type 'kubelet_config'. +const KubeletConfigListKind = "KubeletConfigList" + +// KubeletConfigListLinkKind is the name of the type used to represent links to list +// of objects of type 'kubelet_config'. +const KubeletConfigListLinkKind = "KubeletConfigListLink" + +// KubeletConfigNilKind is the name of the type used to nil lists of objects of +// type 'kubelet_config'. +const KubeletConfigListNilKind = "KubeletConfigListNil" + +// KubeletConfigList is a list of values of the 'kubelet_config' type. +type KubeletConfigList struct { + href string + link bool + items []*KubeletConfig +} + +// Kind returns the name of the type of the object. +func (l *KubeletConfigList) Kind() string { + if l == nil { + return KubeletConfigListNilKind + } + if l.link { + return KubeletConfigListLinkKind + } + return KubeletConfigListKind +} + +// Link returns true iif this is a link. +func (l *KubeletConfigList) Link() bool { + return l != nil && l.link +} + +// HREF returns the link to the list. +func (l *KubeletConfigList) HREF() string { + if l != nil { + return l.href + } + return "" +} + +// GetHREF returns the link of the list and a flag indicating if the +// link has a value. +func (l *KubeletConfigList) GetHREF() (value string, ok bool) { + ok = l != nil && l.href != "" + if ok { + value = l.href + } + return +} + +// Len returns the length of the list. +func (l *KubeletConfigList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *KubeletConfigList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *KubeletConfigList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *KubeletConfigList) SetItems(items []*KubeletConfig) { + l.items = items +} + +// Items returns the items of the list. +func (l *KubeletConfigList) Items() []*KubeletConfig { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *KubeletConfigList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *KubeletConfigList) Get(i int) *KubeletConfig { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *KubeletConfigList) Slice() []*KubeletConfig { + var slice []*KubeletConfig + if l == nil { + slice = make([]*KubeletConfig, 0) + } else { + slice = make([]*KubeletConfig, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *KubeletConfigList) Each(f func(item *KubeletConfig) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *KubeletConfigList) Range(f func(index int, item *KubeletConfig) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/kubelet_config_type_json.go b/arohcp/v1alpha1/kubelet_config_type_json.go new file mode 100644 index 000000000..5a042cf21 --- /dev/null +++ b/arohcp/v1alpha1/kubelet_config_type_json.go @@ -0,0 +1,133 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalKubeletConfig writes a value of the 'kubelet_config' type to the given writer. +func MarshalKubeletConfig(object *KubeletConfig, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteKubeletConfig(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteKubeletConfig writes a value of the 'kubelet_config' type to the given stream. +func WriteKubeletConfig(object *KubeletConfig, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + stream.WriteObjectField("kind") + if object.bitmap_&1 != 0 { + stream.WriteString(KubeletConfigLinkKind) + } else { + stream.WriteString(KubeletConfigKind) + } + count++ + if object.bitmap_&2 != 0 { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("id") + stream.WriteString(object.id) + count++ + } + if object.bitmap_&4 != 0 { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("href") + stream.WriteString(object.href) + count++ + } + var present_ bool + present_ = object.bitmap_&8 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("name") + stream.WriteString(object.name) + count++ + } + present_ = object.bitmap_&16 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("pod_pids_limit") + stream.WriteInt(object.podPidsLimit) + } + stream.WriteObjectEnd() +} + +// UnmarshalKubeletConfig reads a value of the 'kubelet_config' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalKubeletConfig(source interface{}) (object *KubeletConfig, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadKubeletConfig(iterator) + err = iterator.Error + return +} + +// ReadKubeletConfig reads a value of the 'kubelet_config' type from the given iterator. +func ReadKubeletConfig(iterator *jsoniter.Iterator) *KubeletConfig { + object := &KubeletConfig{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "kind": + value := iterator.ReadString() + if value == KubeletConfigLinkKind { + object.bitmap_ |= 1 + } + case "id": + object.id = iterator.ReadString() + object.bitmap_ |= 2 + case "href": + object.href = iterator.ReadString() + object.bitmap_ |= 4 + case "name": + value := iterator.ReadString() + object.name = value + object.bitmap_ |= 8 + case "pod_pids_limit": + value := iterator.ReadInt() + object.podPidsLimit = value + object.bitmap_ |= 16 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/listening_method_list_type_json.go b/arohcp/v1alpha1/listening_method_list_type_json.go new file mode 100644 index 000000000..acae680d5 --- /dev/null +++ b/arohcp/v1alpha1/listening_method_list_type_json.go @@ -0,0 +1,76 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalListeningMethodList writes a list of values of the 'listening_method' type to +// the given writer. +func MarshalListeningMethodList(list []ListeningMethod, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteListeningMethodList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteListeningMethodList writes a list of value of the 'listening_method' type to +// the given stream. +func WriteListeningMethodList(list []ListeningMethod, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + stream.WriteString(string(value)) + } + stream.WriteArrayEnd() +} + +// UnmarshalListeningMethodList reads a list of values of the 'listening_method' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalListeningMethodList(source interface{}) (items []ListeningMethod, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadListeningMethodList(iterator) + err = iterator.Error + return +} + +// ReadListeningMethodList reads list of values of the ”listening_method' type from +// the given iterator. +func ReadListeningMethodList(iterator *jsoniter.Iterator) []ListeningMethod { + list := []ListeningMethod{} + for iterator.ReadArray() { + text := iterator.ReadString() + item := ListeningMethod(text) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/listening_method_type.go b/arohcp/v1alpha1/listening_method_type.go new file mode 100644 index 000000000..cbb10401d --- /dev/null +++ b/arohcp/v1alpha1/listening_method_type.go @@ -0,0 +1,30 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ListeningMethod represents the values of the 'listening_method' enumerated type. +type ListeningMethod string + +const ( + // Uses both external and internal traffic. + ListeningMethodExternal ListeningMethod = "external" + // Uses only internal traffic. + ListeningMethodInternal ListeningMethod = "internal" +) diff --git a/arohcp/v1alpha1/long_list_type_json.go b/arohcp/v1alpha1/long_list_type_json.go new file mode 100644 index 000000000..35112b090 --- /dev/null +++ b/arohcp/v1alpha1/long_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalLongList writes a list of values of the 'long' type to +// the given writer. +func MarshalLongList(list []int64, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteLongList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteLongList writes a list of value of the 'long' type to +// the given stream. +func WriteLongList(list []int64, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + stream.WriteInt64(value) + } + stream.WriteArrayEnd() +} + +// UnmarshalLongList reads a list of values of the 'long' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalLongList(source interface{}) (items []int64, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadLongList(iterator) + err = iterator.Error + return +} + +// ReadLongList reads list of values of the ”long' type from +// the given iterator. +func ReadLongList(iterator *jsoniter.Iterator) []int64 { + list := []int64{} + for iterator.ReadArray() { + item := iterator.ReadInt64() + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/machine_pool_autoscaling_builder.go b/arohcp/v1alpha1/machine_pool_autoscaling_builder.go new file mode 100644 index 000000000..e5468c8ca --- /dev/null +++ b/arohcp/v1alpha1/machine_pool_autoscaling_builder.go @@ -0,0 +1,99 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// MachinePoolAutoscalingBuilder contains the data and logic needed to build 'machine_pool_autoscaling' objects. +// +// Representation of a autoscaling in a machine pool. +type MachinePoolAutoscalingBuilder struct { + bitmap_ uint32 + id string + href string + maxReplicas int + minReplicas int +} + +// NewMachinePoolAutoscaling creates a new builder of 'machine_pool_autoscaling' objects. +func NewMachinePoolAutoscaling() *MachinePoolAutoscalingBuilder { + return &MachinePoolAutoscalingBuilder{} +} + +// Link sets the flag that indicates if this is a link. +func (b *MachinePoolAutoscalingBuilder) Link(value bool) *MachinePoolAutoscalingBuilder { + b.bitmap_ |= 1 + return b +} + +// ID sets the identifier of the object. +func (b *MachinePoolAutoscalingBuilder) ID(value string) *MachinePoolAutoscalingBuilder { + b.id = value + b.bitmap_ |= 2 + return b +} + +// HREF sets the link to the object. +func (b *MachinePoolAutoscalingBuilder) HREF(value string) *MachinePoolAutoscalingBuilder { + b.href = value + b.bitmap_ |= 4 + return b +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *MachinePoolAutoscalingBuilder) Empty() bool { + return b == nil || b.bitmap_&^1 == 0 +} + +// MaxReplicas sets the value of the 'max_replicas' attribute to the given value. +func (b *MachinePoolAutoscalingBuilder) MaxReplicas(value int) *MachinePoolAutoscalingBuilder { + b.maxReplicas = value + b.bitmap_ |= 8 + return b +} + +// MinReplicas sets the value of the 'min_replicas' attribute to the given value. +func (b *MachinePoolAutoscalingBuilder) MinReplicas(value int) *MachinePoolAutoscalingBuilder { + b.minReplicas = value + b.bitmap_ |= 16 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *MachinePoolAutoscalingBuilder) Copy(object *MachinePoolAutoscaling) *MachinePoolAutoscalingBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.id = object.id + b.href = object.href + b.maxReplicas = object.maxReplicas + b.minReplicas = object.minReplicas + return b +} + +// Build creates a 'machine_pool_autoscaling' object using the configuration stored in the builder. +func (b *MachinePoolAutoscalingBuilder) Build() (object *MachinePoolAutoscaling, err error) { + object = new(MachinePoolAutoscaling) + object.id = b.id + object.href = b.href + object.bitmap_ = b.bitmap_ + object.maxReplicas = b.maxReplicas + object.minReplicas = b.minReplicas + return +} diff --git a/arohcp/v1alpha1/machine_pool_autoscaling_list_builder.go b/arohcp/v1alpha1/machine_pool_autoscaling_list_builder.go new file mode 100644 index 000000000..46a754621 --- /dev/null +++ b/arohcp/v1alpha1/machine_pool_autoscaling_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// MachinePoolAutoscalingListBuilder contains the data and logic needed to build +// 'machine_pool_autoscaling' objects. +type MachinePoolAutoscalingListBuilder struct { + items []*MachinePoolAutoscalingBuilder +} + +// NewMachinePoolAutoscalingList creates a new builder of 'machine_pool_autoscaling' objects. +func NewMachinePoolAutoscalingList() *MachinePoolAutoscalingListBuilder { + return new(MachinePoolAutoscalingListBuilder) +} + +// Items sets the items of the list. +func (b *MachinePoolAutoscalingListBuilder) Items(values ...*MachinePoolAutoscalingBuilder) *MachinePoolAutoscalingListBuilder { + b.items = make([]*MachinePoolAutoscalingBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *MachinePoolAutoscalingListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *MachinePoolAutoscalingListBuilder) Copy(list *MachinePoolAutoscalingList) *MachinePoolAutoscalingListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*MachinePoolAutoscalingBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewMachinePoolAutoscaling().Copy(v) + } + } + return b +} + +// Build creates a list of 'machine_pool_autoscaling' objects using the +// configuration stored in the builder. +func (b *MachinePoolAutoscalingListBuilder) Build() (list *MachinePoolAutoscalingList, err error) { + items := make([]*MachinePoolAutoscaling, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(MachinePoolAutoscalingList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/machine_pool_autoscaling_list_type_json.go b/arohcp/v1alpha1/machine_pool_autoscaling_list_type_json.go new file mode 100644 index 000000000..1cdf102d1 --- /dev/null +++ b/arohcp/v1alpha1/machine_pool_autoscaling_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalMachinePoolAutoscalingList writes a list of values of the 'machine_pool_autoscaling' type to +// the given writer. +func MarshalMachinePoolAutoscalingList(list []*MachinePoolAutoscaling, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteMachinePoolAutoscalingList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteMachinePoolAutoscalingList writes a list of value of the 'machine_pool_autoscaling' type to +// the given stream. +func WriteMachinePoolAutoscalingList(list []*MachinePoolAutoscaling, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteMachinePoolAutoscaling(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalMachinePoolAutoscalingList reads a list of values of the 'machine_pool_autoscaling' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalMachinePoolAutoscalingList(source interface{}) (items []*MachinePoolAutoscaling, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadMachinePoolAutoscalingList(iterator) + err = iterator.Error + return +} + +// ReadMachinePoolAutoscalingList reads list of values of the ”machine_pool_autoscaling' type from +// the given iterator. +func ReadMachinePoolAutoscalingList(iterator *jsoniter.Iterator) []*MachinePoolAutoscaling { + list := []*MachinePoolAutoscaling{} + for iterator.ReadArray() { + item := ReadMachinePoolAutoscaling(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/machine_pool_autoscaling_type.go b/arohcp/v1alpha1/machine_pool_autoscaling_type.go new file mode 100644 index 000000000..e71a20378 --- /dev/null +++ b/arohcp/v1alpha1/machine_pool_autoscaling_type.go @@ -0,0 +1,289 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// MachinePoolAutoscalingKind is the name of the type used to represent objects +// of type 'machine_pool_autoscaling'. +const MachinePoolAutoscalingKind = "MachinePoolAutoscaling" + +// MachinePoolAutoscalingLinkKind is the name of the type used to represent links +// to objects of type 'machine_pool_autoscaling'. +const MachinePoolAutoscalingLinkKind = "MachinePoolAutoscalingLink" + +// MachinePoolAutoscalingNilKind is the name of the type used to nil references +// to objects of type 'machine_pool_autoscaling'. +const MachinePoolAutoscalingNilKind = "MachinePoolAutoscalingNil" + +// MachinePoolAutoscaling represents the values of the 'machine_pool_autoscaling' type. +// +// Representation of a autoscaling in a machine pool. +type MachinePoolAutoscaling struct { + bitmap_ uint32 + id string + href string + maxReplicas int + minReplicas int +} + +// Kind returns the name of the type of the object. +func (o *MachinePoolAutoscaling) Kind() string { + if o == nil { + return MachinePoolAutoscalingNilKind + } + if o.bitmap_&1 != 0 { + return MachinePoolAutoscalingLinkKind + } + return MachinePoolAutoscalingKind +} + +// Link returns true if this is a link. +func (o *MachinePoolAutoscaling) Link() bool { + return o != nil && o.bitmap_&1 != 0 +} + +// ID returns the identifier of the object. +func (o *MachinePoolAutoscaling) ID() string { + if o != nil && o.bitmap_&2 != 0 { + return o.id + } + return "" +} + +// GetID returns the identifier of the object and a flag indicating if the +// identifier has a value. +func (o *MachinePoolAutoscaling) GetID() (value string, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.id + } + return +} + +// HREF returns the link to the object. +func (o *MachinePoolAutoscaling) HREF() string { + if o != nil && o.bitmap_&4 != 0 { + return o.href + } + return "" +} + +// GetHREF returns the link of the object and a flag indicating if the +// link has a value. +func (o *MachinePoolAutoscaling) GetHREF() (value string, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.href + } + return +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *MachinePoolAutoscaling) Empty() bool { + return o == nil || o.bitmap_&^1 == 0 +} + +// MaxReplicas returns the value of the 'max_replicas' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The maximum number of replicas for the machine pool. +func (o *MachinePoolAutoscaling) MaxReplicas() int { + if o != nil && o.bitmap_&8 != 0 { + return o.maxReplicas + } + return 0 +} + +// GetMaxReplicas returns the value of the 'max_replicas' attribute and +// a flag indicating if the attribute has a value. +// +// The maximum number of replicas for the machine pool. +func (o *MachinePoolAutoscaling) GetMaxReplicas() (value int, ok bool) { + ok = o != nil && o.bitmap_&8 != 0 + if ok { + value = o.maxReplicas + } + return +} + +// MinReplicas returns the value of the 'min_replicas' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The minimum number of replicas for the machine pool. +func (o *MachinePoolAutoscaling) MinReplicas() int { + if o != nil && o.bitmap_&16 != 0 { + return o.minReplicas + } + return 0 +} + +// GetMinReplicas returns the value of the 'min_replicas' attribute and +// a flag indicating if the attribute has a value. +// +// The minimum number of replicas for the machine pool. +func (o *MachinePoolAutoscaling) GetMinReplicas() (value int, ok bool) { + ok = o != nil && o.bitmap_&16 != 0 + if ok { + value = o.minReplicas + } + return +} + +// MachinePoolAutoscalingListKind is the name of the type used to represent list of objects of +// type 'machine_pool_autoscaling'. +const MachinePoolAutoscalingListKind = "MachinePoolAutoscalingList" + +// MachinePoolAutoscalingListLinkKind is the name of the type used to represent links to list +// of objects of type 'machine_pool_autoscaling'. +const MachinePoolAutoscalingListLinkKind = "MachinePoolAutoscalingListLink" + +// MachinePoolAutoscalingNilKind is the name of the type used to nil lists of objects of +// type 'machine_pool_autoscaling'. +const MachinePoolAutoscalingListNilKind = "MachinePoolAutoscalingListNil" + +// MachinePoolAutoscalingList is a list of values of the 'machine_pool_autoscaling' type. +type MachinePoolAutoscalingList struct { + href string + link bool + items []*MachinePoolAutoscaling +} + +// Kind returns the name of the type of the object. +func (l *MachinePoolAutoscalingList) Kind() string { + if l == nil { + return MachinePoolAutoscalingListNilKind + } + if l.link { + return MachinePoolAutoscalingListLinkKind + } + return MachinePoolAutoscalingListKind +} + +// Link returns true iif this is a link. +func (l *MachinePoolAutoscalingList) Link() bool { + return l != nil && l.link +} + +// HREF returns the link to the list. +func (l *MachinePoolAutoscalingList) HREF() string { + if l != nil { + return l.href + } + return "" +} + +// GetHREF returns the link of the list and a flag indicating if the +// link has a value. +func (l *MachinePoolAutoscalingList) GetHREF() (value string, ok bool) { + ok = l != nil && l.href != "" + if ok { + value = l.href + } + return +} + +// Len returns the length of the list. +func (l *MachinePoolAutoscalingList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *MachinePoolAutoscalingList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *MachinePoolAutoscalingList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *MachinePoolAutoscalingList) SetItems(items []*MachinePoolAutoscaling) { + l.items = items +} + +// Items returns the items of the list. +func (l *MachinePoolAutoscalingList) Items() []*MachinePoolAutoscaling { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *MachinePoolAutoscalingList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *MachinePoolAutoscalingList) Get(i int) *MachinePoolAutoscaling { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *MachinePoolAutoscalingList) Slice() []*MachinePoolAutoscaling { + var slice []*MachinePoolAutoscaling + if l == nil { + slice = make([]*MachinePoolAutoscaling, 0) + } else { + slice = make([]*MachinePoolAutoscaling, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *MachinePoolAutoscalingList) Each(f func(item *MachinePoolAutoscaling) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *MachinePoolAutoscalingList) Range(f func(index int, item *MachinePoolAutoscaling) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/machine_pool_autoscaling_type_json.go b/arohcp/v1alpha1/machine_pool_autoscaling_type_json.go new file mode 100644 index 000000000..092a89dfb --- /dev/null +++ b/arohcp/v1alpha1/machine_pool_autoscaling_type_json.go @@ -0,0 +1,133 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalMachinePoolAutoscaling writes a value of the 'machine_pool_autoscaling' type to the given writer. +func MarshalMachinePoolAutoscaling(object *MachinePoolAutoscaling, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteMachinePoolAutoscaling(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteMachinePoolAutoscaling writes a value of the 'machine_pool_autoscaling' type to the given stream. +func WriteMachinePoolAutoscaling(object *MachinePoolAutoscaling, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + stream.WriteObjectField("kind") + if object.bitmap_&1 != 0 { + stream.WriteString(MachinePoolAutoscalingLinkKind) + } else { + stream.WriteString(MachinePoolAutoscalingKind) + } + count++ + if object.bitmap_&2 != 0 { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("id") + stream.WriteString(object.id) + count++ + } + if object.bitmap_&4 != 0 { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("href") + stream.WriteString(object.href) + count++ + } + var present_ bool + present_ = object.bitmap_&8 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("max_replicas") + stream.WriteInt(object.maxReplicas) + count++ + } + present_ = object.bitmap_&16 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("min_replicas") + stream.WriteInt(object.minReplicas) + } + stream.WriteObjectEnd() +} + +// UnmarshalMachinePoolAutoscaling reads a value of the 'machine_pool_autoscaling' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalMachinePoolAutoscaling(source interface{}) (object *MachinePoolAutoscaling, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadMachinePoolAutoscaling(iterator) + err = iterator.Error + return +} + +// ReadMachinePoolAutoscaling reads a value of the 'machine_pool_autoscaling' type from the given iterator. +func ReadMachinePoolAutoscaling(iterator *jsoniter.Iterator) *MachinePoolAutoscaling { + object := &MachinePoolAutoscaling{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "kind": + value := iterator.ReadString() + if value == MachinePoolAutoscalingLinkKind { + object.bitmap_ |= 1 + } + case "id": + object.id = iterator.ReadString() + object.bitmap_ |= 2 + case "href": + object.href = iterator.ReadString() + object.bitmap_ |= 4 + case "max_replicas": + value := iterator.ReadInt() + object.maxReplicas = value + object.bitmap_ |= 8 + case "min_replicas": + value := iterator.ReadInt() + object.minReplicas = value + object.bitmap_ |= 16 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/machine_pool_security_group_filter_builder.go b/arohcp/v1alpha1/machine_pool_security_group_filter_builder.go new file mode 100644 index 000000000..f164650a5 --- /dev/null +++ b/arohcp/v1alpha1/machine_pool_security_group_filter_builder.go @@ -0,0 +1,73 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// MachinePoolSecurityGroupFilterBuilder contains the data and logic needed to build 'machine_pool_security_group_filter' objects. +// +// Security Group Filter object, containing name of the filter tag and value of the filter tag +type MachinePoolSecurityGroupFilterBuilder struct { + bitmap_ uint32 + name string + value string +} + +// NewMachinePoolSecurityGroupFilter creates a new builder of 'machine_pool_security_group_filter' objects. +func NewMachinePoolSecurityGroupFilter() *MachinePoolSecurityGroupFilterBuilder { + return &MachinePoolSecurityGroupFilterBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *MachinePoolSecurityGroupFilterBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// Name sets the value of the 'name' attribute to the given value. +func (b *MachinePoolSecurityGroupFilterBuilder) Name(value string) *MachinePoolSecurityGroupFilterBuilder { + b.name = value + b.bitmap_ |= 1 + return b +} + +// Value sets the value of the 'value' attribute to the given value. +func (b *MachinePoolSecurityGroupFilterBuilder) Value(value string) *MachinePoolSecurityGroupFilterBuilder { + b.value = value + b.bitmap_ |= 2 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *MachinePoolSecurityGroupFilterBuilder) Copy(object *MachinePoolSecurityGroupFilter) *MachinePoolSecurityGroupFilterBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.name = object.name + b.value = object.value + return b +} + +// Build creates a 'machine_pool_security_group_filter' object using the configuration stored in the builder. +func (b *MachinePoolSecurityGroupFilterBuilder) Build() (object *MachinePoolSecurityGroupFilter, err error) { + object = new(MachinePoolSecurityGroupFilter) + object.bitmap_ = b.bitmap_ + object.name = b.name + object.value = b.value + return +} diff --git a/arohcp/v1alpha1/machine_pool_security_group_filter_list_builder.go b/arohcp/v1alpha1/machine_pool_security_group_filter_list_builder.go new file mode 100644 index 000000000..0e46fee07 --- /dev/null +++ b/arohcp/v1alpha1/machine_pool_security_group_filter_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// MachinePoolSecurityGroupFilterListBuilder contains the data and logic needed to build +// 'machine_pool_security_group_filter' objects. +type MachinePoolSecurityGroupFilterListBuilder struct { + items []*MachinePoolSecurityGroupFilterBuilder +} + +// NewMachinePoolSecurityGroupFilterList creates a new builder of 'machine_pool_security_group_filter' objects. +func NewMachinePoolSecurityGroupFilterList() *MachinePoolSecurityGroupFilterListBuilder { + return new(MachinePoolSecurityGroupFilterListBuilder) +} + +// Items sets the items of the list. +func (b *MachinePoolSecurityGroupFilterListBuilder) Items(values ...*MachinePoolSecurityGroupFilterBuilder) *MachinePoolSecurityGroupFilterListBuilder { + b.items = make([]*MachinePoolSecurityGroupFilterBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *MachinePoolSecurityGroupFilterListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *MachinePoolSecurityGroupFilterListBuilder) Copy(list *MachinePoolSecurityGroupFilterList) *MachinePoolSecurityGroupFilterListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*MachinePoolSecurityGroupFilterBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewMachinePoolSecurityGroupFilter().Copy(v) + } + } + return b +} + +// Build creates a list of 'machine_pool_security_group_filter' objects using the +// configuration stored in the builder. +func (b *MachinePoolSecurityGroupFilterListBuilder) Build() (list *MachinePoolSecurityGroupFilterList, err error) { + items := make([]*MachinePoolSecurityGroupFilter, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(MachinePoolSecurityGroupFilterList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/machine_pool_security_group_filter_list_type_json.go b/arohcp/v1alpha1/machine_pool_security_group_filter_list_type_json.go new file mode 100644 index 000000000..3bb7d2788 --- /dev/null +++ b/arohcp/v1alpha1/machine_pool_security_group_filter_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalMachinePoolSecurityGroupFilterList writes a list of values of the 'machine_pool_security_group_filter' type to +// the given writer. +func MarshalMachinePoolSecurityGroupFilterList(list []*MachinePoolSecurityGroupFilter, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteMachinePoolSecurityGroupFilterList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteMachinePoolSecurityGroupFilterList writes a list of value of the 'machine_pool_security_group_filter' type to +// the given stream. +func WriteMachinePoolSecurityGroupFilterList(list []*MachinePoolSecurityGroupFilter, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteMachinePoolSecurityGroupFilter(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalMachinePoolSecurityGroupFilterList reads a list of values of the 'machine_pool_security_group_filter' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalMachinePoolSecurityGroupFilterList(source interface{}) (items []*MachinePoolSecurityGroupFilter, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadMachinePoolSecurityGroupFilterList(iterator) + err = iterator.Error + return +} + +// ReadMachinePoolSecurityGroupFilterList reads list of values of the ”machine_pool_security_group_filter' type from +// the given iterator. +func ReadMachinePoolSecurityGroupFilterList(iterator *jsoniter.Iterator) []*MachinePoolSecurityGroupFilter { + list := []*MachinePoolSecurityGroupFilter{} + for iterator.ReadArray() { + item := ReadMachinePoolSecurityGroupFilter(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/machine_pool_security_group_filter_type.go b/arohcp/v1alpha1/machine_pool_security_group_filter_type.go new file mode 100644 index 000000000..b0eaedc6a --- /dev/null +++ b/arohcp/v1alpha1/machine_pool_security_group_filter_type.go @@ -0,0 +1,181 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// MachinePoolSecurityGroupFilter represents the values of the 'machine_pool_security_group_filter' type. +// +// Security Group Filter object, containing name of the filter tag and value of the filter tag +type MachinePoolSecurityGroupFilter struct { + bitmap_ uint32 + name string + value string +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *MachinePoolSecurityGroupFilter) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// Name returns the value of the 'name' attribute, or +// the zero value of the type if the attribute doesn't have a value. +func (o *MachinePoolSecurityGroupFilter) Name() string { + if o != nil && o.bitmap_&1 != 0 { + return o.name + } + return "" +} + +// GetName returns the value of the 'name' attribute and +// a flag indicating if the attribute has a value. +func (o *MachinePoolSecurityGroupFilter) GetName() (value string, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.name + } + return +} + +// Value returns the value of the 'value' attribute, or +// the zero value of the type if the attribute doesn't have a value. +func (o *MachinePoolSecurityGroupFilter) Value() string { + if o != nil && o.bitmap_&2 != 0 { + return o.value + } + return "" +} + +// GetValue returns the value of the 'value' attribute and +// a flag indicating if the attribute has a value. +func (o *MachinePoolSecurityGroupFilter) GetValue() (value string, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.value + } + return +} + +// MachinePoolSecurityGroupFilterListKind is the name of the type used to represent list of objects of +// type 'machine_pool_security_group_filter'. +const MachinePoolSecurityGroupFilterListKind = "MachinePoolSecurityGroupFilterList" + +// MachinePoolSecurityGroupFilterListLinkKind is the name of the type used to represent links to list +// of objects of type 'machine_pool_security_group_filter'. +const MachinePoolSecurityGroupFilterListLinkKind = "MachinePoolSecurityGroupFilterListLink" + +// MachinePoolSecurityGroupFilterNilKind is the name of the type used to nil lists of objects of +// type 'machine_pool_security_group_filter'. +const MachinePoolSecurityGroupFilterListNilKind = "MachinePoolSecurityGroupFilterListNil" + +// MachinePoolSecurityGroupFilterList is a list of values of the 'machine_pool_security_group_filter' type. +type MachinePoolSecurityGroupFilterList struct { + href string + link bool + items []*MachinePoolSecurityGroupFilter +} + +// Len returns the length of the list. +func (l *MachinePoolSecurityGroupFilterList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *MachinePoolSecurityGroupFilterList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *MachinePoolSecurityGroupFilterList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *MachinePoolSecurityGroupFilterList) SetItems(items []*MachinePoolSecurityGroupFilter) { + l.items = items +} + +// Items returns the items of the list. +func (l *MachinePoolSecurityGroupFilterList) Items() []*MachinePoolSecurityGroupFilter { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *MachinePoolSecurityGroupFilterList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *MachinePoolSecurityGroupFilterList) Get(i int) *MachinePoolSecurityGroupFilter { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *MachinePoolSecurityGroupFilterList) Slice() []*MachinePoolSecurityGroupFilter { + var slice []*MachinePoolSecurityGroupFilter + if l == nil { + slice = make([]*MachinePoolSecurityGroupFilter, 0) + } else { + slice = make([]*MachinePoolSecurityGroupFilter, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *MachinePoolSecurityGroupFilterList) Each(f func(item *MachinePoolSecurityGroupFilter) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *MachinePoolSecurityGroupFilterList) Range(f func(index int, item *MachinePoolSecurityGroupFilter) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/machine_pool_security_group_filter_type_json.go b/arohcp/v1alpha1/machine_pool_security_group_filter_type_json.go new file mode 100644 index 000000000..cd030f651 --- /dev/null +++ b/arohcp/v1alpha1/machine_pool_security_group_filter_type_json.go @@ -0,0 +1,99 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalMachinePoolSecurityGroupFilter writes a value of the 'machine_pool_security_group_filter' type to the given writer. +func MarshalMachinePoolSecurityGroupFilter(object *MachinePoolSecurityGroupFilter, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteMachinePoolSecurityGroupFilter(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteMachinePoolSecurityGroupFilter writes a value of the 'machine_pool_security_group_filter' type to the given stream. +func WriteMachinePoolSecurityGroupFilter(object *MachinePoolSecurityGroupFilter, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("name") + stream.WriteString(object.name) + count++ + } + present_ = object.bitmap_&2 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("value") + stream.WriteString(object.value) + } + stream.WriteObjectEnd() +} + +// UnmarshalMachinePoolSecurityGroupFilter reads a value of the 'machine_pool_security_group_filter' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalMachinePoolSecurityGroupFilter(source interface{}) (object *MachinePoolSecurityGroupFilter, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadMachinePoolSecurityGroupFilter(iterator) + err = iterator.Error + return +} + +// ReadMachinePoolSecurityGroupFilter reads a value of the 'machine_pool_security_group_filter' type from the given iterator. +func ReadMachinePoolSecurityGroupFilter(iterator *jsoniter.Iterator) *MachinePoolSecurityGroupFilter { + object := &MachinePoolSecurityGroupFilter{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "name": + value := iterator.ReadString() + object.name = value + object.bitmap_ |= 1 + case "value": + value := iterator.ReadString() + object.value = value + object.bitmap_ |= 2 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/machine_type_builder.go b/arohcp/v1alpha1/machine_type_builder.go new file mode 100644 index 000000000..5c8f23023 --- /dev/null +++ b/arohcp/v1alpha1/machine_type_builder.go @@ -0,0 +1,253 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import v1 "github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1" // MachineTypeBuilder contains the data and logic needed to build 'machine_type' objects. +// Machine type. +type MachineTypeBuilder struct { + bitmap_ uint32 + id string + href string + cpu *ValueBuilder + architecture ProcessorType + category MachineTypeCategory + cloudProvider *v1.CloudProviderBuilder + genericName string + memory *ValueBuilder + name string + size MachineTypeSize + ccsOnly bool +} + +// NewMachineType creates a new builder of 'machine_type' objects. +func NewMachineType() *MachineTypeBuilder { + return &MachineTypeBuilder{} +} + +// Link sets the flag that indicates if this is a link. +func (b *MachineTypeBuilder) Link(value bool) *MachineTypeBuilder { + b.bitmap_ |= 1 + return b +} + +// ID sets the identifier of the object. +func (b *MachineTypeBuilder) ID(value string) *MachineTypeBuilder { + b.id = value + b.bitmap_ |= 2 + return b +} + +// HREF sets the link to the object. +func (b *MachineTypeBuilder) HREF(value string) *MachineTypeBuilder { + b.href = value + b.bitmap_ |= 4 + return b +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *MachineTypeBuilder) Empty() bool { + return b == nil || b.bitmap_&^1 == 0 +} + +// CCSOnly sets the value of the 'CCS_only' attribute to the given value. +func (b *MachineTypeBuilder) CCSOnly(value bool) *MachineTypeBuilder { + b.ccsOnly = value + b.bitmap_ |= 8 + return b +} + +// CPU sets the value of the 'CPU' attribute to the given value. +// +// Numeric value and the unit used to measure it. +// +// Units are not mandatory, and they're not specified for some resources. For +// resources that use bytes, the accepted units are: +// +// - 1 B = 1 byte +// - 1 KB = 10^3 bytes +// - 1 MB = 10^6 bytes +// - 1 GB = 10^9 bytes +// - 1 TB = 10^12 bytes +// - 1 PB = 10^15 bytes +// +// - 1 B = 1 byte +// - 1 KiB = 2^10 bytes +// - 1 MiB = 2^20 bytes +// - 1 GiB = 2^30 bytes +// - 1 TiB = 2^40 bytes +// - 1 PiB = 2^50 bytes +func (b *MachineTypeBuilder) CPU(value *ValueBuilder) *MachineTypeBuilder { + b.cpu = value + if value != nil { + b.bitmap_ |= 16 + } else { + b.bitmap_ &^= 16 + } + return b +} + +// Architecture sets the value of the 'architecture' attribute to the given value. +// +// Processor type category. +func (b *MachineTypeBuilder) Architecture(value ProcessorType) *MachineTypeBuilder { + b.architecture = value + b.bitmap_ |= 32 + return b +} + +// Category sets the value of the 'category' attribute to the given value. +// +// Machine type category. +func (b *MachineTypeBuilder) Category(value MachineTypeCategory) *MachineTypeBuilder { + b.category = value + b.bitmap_ |= 64 + return b +} + +// CloudProvider sets the value of the 'cloud_provider' attribute to the given value. +// +// Cloud provider. +func (b *MachineTypeBuilder) CloudProvider(value *v1.CloudProviderBuilder) *MachineTypeBuilder { + b.cloudProvider = value + if value != nil { + b.bitmap_ |= 128 + } else { + b.bitmap_ &^= 128 + } + return b +} + +// GenericName sets the value of the 'generic_name' attribute to the given value. +func (b *MachineTypeBuilder) GenericName(value string) *MachineTypeBuilder { + b.genericName = value + b.bitmap_ |= 256 + return b +} + +// Memory sets the value of the 'memory' attribute to the given value. +// +// Numeric value and the unit used to measure it. +// +// Units are not mandatory, and they're not specified for some resources. For +// resources that use bytes, the accepted units are: +// +// - 1 B = 1 byte +// - 1 KB = 10^3 bytes +// - 1 MB = 10^6 bytes +// - 1 GB = 10^9 bytes +// - 1 TB = 10^12 bytes +// - 1 PB = 10^15 bytes +// +// - 1 B = 1 byte +// - 1 KiB = 2^10 bytes +// - 1 MiB = 2^20 bytes +// - 1 GiB = 2^30 bytes +// - 1 TiB = 2^40 bytes +// - 1 PiB = 2^50 bytes +func (b *MachineTypeBuilder) Memory(value *ValueBuilder) *MachineTypeBuilder { + b.memory = value + if value != nil { + b.bitmap_ |= 512 + } else { + b.bitmap_ &^= 512 + } + return b +} + +// Name sets the value of the 'name' attribute to the given value. +func (b *MachineTypeBuilder) Name(value string) *MachineTypeBuilder { + b.name = value + b.bitmap_ |= 1024 + return b +} + +// Size sets the value of the 'size' attribute to the given value. +// +// Machine type size. +func (b *MachineTypeBuilder) Size(value MachineTypeSize) *MachineTypeBuilder { + b.size = value + b.bitmap_ |= 2048 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *MachineTypeBuilder) Copy(object *MachineType) *MachineTypeBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.id = object.id + b.href = object.href + b.ccsOnly = object.ccsOnly + if object.cpu != nil { + b.cpu = NewValue().Copy(object.cpu) + } else { + b.cpu = nil + } + b.architecture = object.architecture + b.category = object.category + if object.cloudProvider != nil { + b.cloudProvider = v1.NewCloudProvider().Copy(object.cloudProvider) + } else { + b.cloudProvider = nil + } + b.genericName = object.genericName + if object.memory != nil { + b.memory = NewValue().Copy(object.memory) + } else { + b.memory = nil + } + b.name = object.name + b.size = object.size + return b +} + +// Build creates a 'machine_type' object using the configuration stored in the builder. +func (b *MachineTypeBuilder) Build() (object *MachineType, err error) { + object = new(MachineType) + object.id = b.id + object.href = b.href + object.bitmap_ = b.bitmap_ + object.ccsOnly = b.ccsOnly + if b.cpu != nil { + object.cpu, err = b.cpu.Build() + if err != nil { + return + } + } + object.architecture = b.architecture + object.category = b.category + if b.cloudProvider != nil { + object.cloudProvider, err = b.cloudProvider.Build() + if err != nil { + return + } + } + object.genericName = b.genericName + if b.memory != nil { + object.memory, err = b.memory.Build() + if err != nil { + return + } + } + object.name = b.name + object.size = b.size + return +} diff --git a/arohcp/v1alpha1/machine_type_category_list_type_json.go b/arohcp/v1alpha1/machine_type_category_list_type_json.go new file mode 100644 index 000000000..60c093324 --- /dev/null +++ b/arohcp/v1alpha1/machine_type_category_list_type_json.go @@ -0,0 +1,76 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalMachineTypeCategoryList writes a list of values of the 'machine_type_category' type to +// the given writer. +func MarshalMachineTypeCategoryList(list []MachineTypeCategory, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteMachineTypeCategoryList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteMachineTypeCategoryList writes a list of value of the 'machine_type_category' type to +// the given stream. +func WriteMachineTypeCategoryList(list []MachineTypeCategory, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + stream.WriteString(string(value)) + } + stream.WriteArrayEnd() +} + +// UnmarshalMachineTypeCategoryList reads a list of values of the 'machine_type_category' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalMachineTypeCategoryList(source interface{}) (items []MachineTypeCategory, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadMachineTypeCategoryList(iterator) + err = iterator.Error + return +} + +// ReadMachineTypeCategoryList reads list of values of the ”machine_type_category' type from +// the given iterator. +func ReadMachineTypeCategoryList(iterator *jsoniter.Iterator) []MachineTypeCategory { + list := []MachineTypeCategory{} + for iterator.ReadArray() { + text := iterator.ReadString() + item := MachineTypeCategory(text) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/machine_type_category_type.go b/arohcp/v1alpha1/machine_type_category_type.go new file mode 100644 index 000000000..1303305e7 --- /dev/null +++ b/arohcp/v1alpha1/machine_type_category_type.go @@ -0,0 +1,34 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// MachineTypeCategory represents the values of the 'machine_type_category' enumerated type. +type MachineTypeCategory string + +const ( + // Accelerated Computing machine type. + MachineTypeCategoryAcceleratedComputing MachineTypeCategory = "accelerated_computing" + // Compute Optimized machine type. + MachineTypeCategoryComputeOptimized MachineTypeCategory = "compute_optimized" + // General Purpose machine type. + MachineTypeCategoryGeneralPurpose MachineTypeCategory = "general_purpose" + // Memory Optimized machine type. + MachineTypeCategoryMemoryOptimized MachineTypeCategory = "memory_optimized" +) diff --git a/arohcp/v1alpha1/machine_type_list_builder.go b/arohcp/v1alpha1/machine_type_list_builder.go new file mode 100644 index 000000000..163641ecd --- /dev/null +++ b/arohcp/v1alpha1/machine_type_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// MachineTypeListBuilder contains the data and logic needed to build +// 'machine_type' objects. +type MachineTypeListBuilder struct { + items []*MachineTypeBuilder +} + +// NewMachineTypeList creates a new builder of 'machine_type' objects. +func NewMachineTypeList() *MachineTypeListBuilder { + return new(MachineTypeListBuilder) +} + +// Items sets the items of the list. +func (b *MachineTypeListBuilder) Items(values ...*MachineTypeBuilder) *MachineTypeListBuilder { + b.items = make([]*MachineTypeBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *MachineTypeListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *MachineTypeListBuilder) Copy(list *MachineTypeList) *MachineTypeListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*MachineTypeBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewMachineType().Copy(v) + } + } + return b +} + +// Build creates a list of 'machine_type' objects using the +// configuration stored in the builder. +func (b *MachineTypeListBuilder) Build() (list *MachineTypeList, err error) { + items := make([]*MachineType, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(MachineTypeList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/machine_type_list_type_json.go b/arohcp/v1alpha1/machine_type_list_type_json.go new file mode 100644 index 000000000..6410aaecb --- /dev/null +++ b/arohcp/v1alpha1/machine_type_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalMachineTypeList writes a list of values of the 'machine_type' type to +// the given writer. +func MarshalMachineTypeList(list []*MachineType, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteMachineTypeList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteMachineTypeList writes a list of value of the 'machine_type' type to +// the given stream. +func WriteMachineTypeList(list []*MachineType, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteMachineType(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalMachineTypeList reads a list of values of the 'machine_type' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalMachineTypeList(source interface{}) (items []*MachineType, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadMachineTypeList(iterator) + err = iterator.Error + return +} + +// ReadMachineTypeList reads list of values of the ”machine_type' type from +// the given iterator. +func ReadMachineTypeList(iterator *jsoniter.Iterator) []*MachineType { + list := []*MachineType{} + for iterator.ReadArray() { + item := ReadMachineType(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/machine_type_size_list_type_json.go b/arohcp/v1alpha1/machine_type_size_list_type_json.go new file mode 100644 index 000000000..5be197e85 --- /dev/null +++ b/arohcp/v1alpha1/machine_type_size_list_type_json.go @@ -0,0 +1,76 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalMachineTypeSizeList writes a list of values of the 'machine_type_size' type to +// the given writer. +func MarshalMachineTypeSizeList(list []MachineTypeSize, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteMachineTypeSizeList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteMachineTypeSizeList writes a list of value of the 'machine_type_size' type to +// the given stream. +func WriteMachineTypeSizeList(list []MachineTypeSize, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + stream.WriteString(string(value)) + } + stream.WriteArrayEnd() +} + +// UnmarshalMachineTypeSizeList reads a list of values of the 'machine_type_size' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalMachineTypeSizeList(source interface{}) (items []MachineTypeSize, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadMachineTypeSizeList(iterator) + err = iterator.Error + return +} + +// ReadMachineTypeSizeList reads list of values of the ”machine_type_size' type from +// the given iterator. +func ReadMachineTypeSizeList(iterator *jsoniter.Iterator) []MachineTypeSize { + list := []MachineTypeSize{} + for iterator.ReadArray() { + text := iterator.ReadString() + item := MachineTypeSize(text) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/machine_type_size_type.go b/arohcp/v1alpha1/machine_type_size_type.go new file mode 100644 index 000000000..6f8e71bf0 --- /dev/null +++ b/arohcp/v1alpha1/machine_type_size_type.go @@ -0,0 +1,32 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// MachineTypeSize represents the values of the 'machine_type_size' enumerated type. +type MachineTypeSize string + +const ( + // Large machine type (e.g. c5.4xlarge, custom-16-65536) + MachineTypeSizeLarge MachineTypeSize = "large" + // Medium machine type (e.g. r5.2xlarge, custom-8-32768) + MachineTypeSizeMedium MachineTypeSize = "medium" + // Small machine type (e.g. m5.xlarge, custom-4-16384) + MachineTypeSizeSmall MachineTypeSize = "small" +) diff --git a/arohcp/v1alpha1/machine_type_type.go b/arohcp/v1alpha1/machine_type_type.go new file mode 100644 index 000000000..6865f5c1d --- /dev/null +++ b/arohcp/v1alpha1/machine_type_type.go @@ -0,0 +1,465 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import v1 "github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1" + +// MachineTypeKind is the name of the type used to represent objects +// of type 'machine_type'. +const MachineTypeKind = "MachineType" + +// MachineTypeLinkKind is the name of the type used to represent links +// to objects of type 'machine_type'. +const MachineTypeLinkKind = "MachineTypeLink" + +// MachineTypeNilKind is the name of the type used to nil references +// to objects of type 'machine_type'. +const MachineTypeNilKind = "MachineTypeNil" + +// MachineType represents the values of the 'machine_type' type. +// +// Machine type. +type MachineType struct { + bitmap_ uint32 + id string + href string + cpu *Value + architecture ProcessorType + category MachineTypeCategory + cloudProvider *v1.CloudProvider + genericName string + memory *Value + name string + size MachineTypeSize + ccsOnly bool +} + +// Kind returns the name of the type of the object. +func (o *MachineType) Kind() string { + if o == nil { + return MachineTypeNilKind + } + if o.bitmap_&1 != 0 { + return MachineTypeLinkKind + } + return MachineTypeKind +} + +// Link returns true if this is a link. +func (o *MachineType) Link() bool { + return o != nil && o.bitmap_&1 != 0 +} + +// ID returns the identifier of the object. +func (o *MachineType) ID() string { + if o != nil && o.bitmap_&2 != 0 { + return o.id + } + return "" +} + +// GetID returns the identifier of the object and a flag indicating if the +// identifier has a value. +func (o *MachineType) GetID() (value string, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.id + } + return +} + +// HREF returns the link to the object. +func (o *MachineType) HREF() string { + if o != nil && o.bitmap_&4 != 0 { + return o.href + } + return "" +} + +// GetHREF returns the link of the object and a flag indicating if the +// link has a value. +func (o *MachineType) GetHREF() (value string, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.href + } + return +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *MachineType) Empty() bool { + return o == nil || o.bitmap_&^1 == 0 +} + +// CCSOnly returns the value of the 'CCS_only' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// 'true' if the instance type is supported only for CCS clusters, 'false' otherwise. +func (o *MachineType) CCSOnly() bool { + if o != nil && o.bitmap_&8 != 0 { + return o.ccsOnly + } + return false +} + +// GetCCSOnly returns the value of the 'CCS_only' attribute and +// a flag indicating if the attribute has a value. +// +// 'true' if the instance type is supported only for CCS clusters, 'false' otherwise. +func (o *MachineType) GetCCSOnly() (value bool, ok bool) { + ok = o != nil && o.bitmap_&8 != 0 + if ok { + value = o.ccsOnly + } + return +} + +// CPU returns the value of the 'CPU' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The amount of cpu's of the machine type. +func (o *MachineType) CPU() *Value { + if o != nil && o.bitmap_&16 != 0 { + return o.cpu + } + return nil +} + +// GetCPU returns the value of the 'CPU' attribute and +// a flag indicating if the attribute has a value. +// +// The amount of cpu's of the machine type. +func (o *MachineType) GetCPU() (value *Value, ok bool) { + ok = o != nil && o.bitmap_&16 != 0 + if ok { + value = o.cpu + } + return +} + +// Architecture returns the value of the 'architecture' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The architecture of the machine type. +func (o *MachineType) Architecture() ProcessorType { + if o != nil && o.bitmap_&32 != 0 { + return o.architecture + } + return ProcessorType("") +} + +// GetArchitecture returns the value of the 'architecture' attribute and +// a flag indicating if the attribute has a value. +// +// The architecture of the machine type. +func (o *MachineType) GetArchitecture() (value ProcessorType, ok bool) { + ok = o != nil && o.bitmap_&32 != 0 + if ok { + value = o.architecture + } + return +} + +// Category returns the value of the 'category' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The category which the machine type is suitable for. +func (o *MachineType) Category() MachineTypeCategory { + if o != nil && o.bitmap_&64 != 0 { + return o.category + } + return MachineTypeCategory("") +} + +// GetCategory returns the value of the 'category' attribute and +// a flag indicating if the attribute has a value. +// +// The category which the machine type is suitable for. +func (o *MachineType) GetCategory() (value MachineTypeCategory, ok bool) { + ok = o != nil && o.bitmap_&64 != 0 + if ok { + value = o.category + } + return +} + +// CloudProvider returns the value of the 'cloud_provider' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Link to the cloud provider that the machine type belongs to. +func (o *MachineType) CloudProvider() *v1.CloudProvider { + if o != nil && o.bitmap_&128 != 0 { + return o.cloudProvider + } + return nil +} + +// GetCloudProvider returns the value of the 'cloud_provider' attribute and +// a flag indicating if the attribute has a value. +// +// Link to the cloud provider that the machine type belongs to. +func (o *MachineType) GetCloudProvider() (value *v1.CloudProvider, ok bool) { + ok = o != nil && o.bitmap_&128 != 0 + if ok { + value = o.cloudProvider + } + return +} + +// GenericName returns the value of the 'generic_name' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Generic name for quota purposes, for example `highmem-4`. +// Cloud provider agnostic - many values are shared between "similar" +// machine types on different providers. +// Corresponds to `resource_name` values in "compute.node" quota cost data. +func (o *MachineType) GenericName() string { + if o != nil && o.bitmap_&256 != 0 { + return o.genericName + } + return "" +} + +// GetGenericName returns the value of the 'generic_name' attribute and +// a flag indicating if the attribute has a value. +// +// Generic name for quota purposes, for example `highmem-4`. +// Cloud provider agnostic - many values are shared between "similar" +// machine types on different providers. +// Corresponds to `resource_name` values in "compute.node" quota cost data. +func (o *MachineType) GetGenericName() (value string, ok bool) { + ok = o != nil && o.bitmap_&256 != 0 + if ok { + value = o.genericName + } + return +} + +// Memory returns the value of the 'memory' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The amount of memory of the machine type. +func (o *MachineType) Memory() *Value { + if o != nil && o.bitmap_&512 != 0 { + return o.memory + } + return nil +} + +// GetMemory returns the value of the 'memory' attribute and +// a flag indicating if the attribute has a value. +// +// The amount of memory of the machine type. +func (o *MachineType) GetMemory() (value *Value, ok bool) { + ok = o != nil && o.bitmap_&512 != 0 + if ok { + value = o.memory + } + return +} + +// Name returns the value of the 'name' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Human friendly identifier of the machine type, for example `r5.xlarge - Memory Optimized`. +func (o *MachineType) Name() string { + if o != nil && o.bitmap_&1024 != 0 { + return o.name + } + return "" +} + +// GetName returns the value of the 'name' attribute and +// a flag indicating if the attribute has a value. +// +// Human friendly identifier of the machine type, for example `r5.xlarge - Memory Optimized`. +func (o *MachineType) GetName() (value string, ok bool) { + ok = o != nil && o.bitmap_&1024 != 0 + if ok { + value = o.name + } + return +} + +// Size returns the value of the 'size' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The size of the machine type. +func (o *MachineType) Size() MachineTypeSize { + if o != nil && o.bitmap_&2048 != 0 { + return o.size + } + return MachineTypeSize("") +} + +// GetSize returns the value of the 'size' attribute and +// a flag indicating if the attribute has a value. +// +// The size of the machine type. +func (o *MachineType) GetSize() (value MachineTypeSize, ok bool) { + ok = o != nil && o.bitmap_&2048 != 0 + if ok { + value = o.size + } + return +} + +// MachineTypeListKind is the name of the type used to represent list of objects of +// type 'machine_type'. +const MachineTypeListKind = "MachineTypeList" + +// MachineTypeListLinkKind is the name of the type used to represent links to list +// of objects of type 'machine_type'. +const MachineTypeListLinkKind = "MachineTypeListLink" + +// MachineTypeNilKind is the name of the type used to nil lists of objects of +// type 'machine_type'. +const MachineTypeListNilKind = "MachineTypeListNil" + +// MachineTypeList is a list of values of the 'machine_type' type. +type MachineTypeList struct { + href string + link bool + items []*MachineType +} + +// Kind returns the name of the type of the object. +func (l *MachineTypeList) Kind() string { + if l == nil { + return MachineTypeListNilKind + } + if l.link { + return MachineTypeListLinkKind + } + return MachineTypeListKind +} + +// Link returns true iif this is a link. +func (l *MachineTypeList) Link() bool { + return l != nil && l.link +} + +// HREF returns the link to the list. +func (l *MachineTypeList) HREF() string { + if l != nil { + return l.href + } + return "" +} + +// GetHREF returns the link of the list and a flag indicating if the +// link has a value. +func (l *MachineTypeList) GetHREF() (value string, ok bool) { + ok = l != nil && l.href != "" + if ok { + value = l.href + } + return +} + +// Len returns the length of the list. +func (l *MachineTypeList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *MachineTypeList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *MachineTypeList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *MachineTypeList) SetItems(items []*MachineType) { + l.items = items +} + +// Items returns the items of the list. +func (l *MachineTypeList) Items() []*MachineType { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *MachineTypeList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *MachineTypeList) Get(i int) *MachineType { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *MachineTypeList) Slice() []*MachineType { + var slice []*MachineType + if l == nil { + slice = make([]*MachineType, 0) + } else { + slice = make([]*MachineType, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *MachineTypeList) Each(f func(item *MachineType) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *MachineTypeList) Range(f func(index int, item *MachineType) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/machine_type_type_json.go b/arohcp/v1alpha1/machine_type_type_json.go new file mode 100644 index 000000000..c4e559156 --- /dev/null +++ b/arohcp/v1alpha1/machine_type_type_json.go @@ -0,0 +1,228 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + v1 "github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalMachineType writes a value of the 'machine_type' type to the given writer. +func MarshalMachineType(object *MachineType, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteMachineType(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteMachineType writes a value of the 'machine_type' type to the given stream. +func WriteMachineType(object *MachineType, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + stream.WriteObjectField("kind") + if object.bitmap_&1 != 0 { + stream.WriteString(MachineTypeLinkKind) + } else { + stream.WriteString(MachineTypeKind) + } + count++ + if object.bitmap_&2 != 0 { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("id") + stream.WriteString(object.id) + count++ + } + if object.bitmap_&4 != 0 { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("href") + stream.WriteString(object.href) + count++ + } + var present_ bool + present_ = object.bitmap_&8 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("ccs_only") + stream.WriteBool(object.ccsOnly) + count++ + } + present_ = object.bitmap_&16 != 0 && object.cpu != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("cpu") + WriteValue(object.cpu, stream) + count++ + } + present_ = object.bitmap_&32 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("architecture") + stream.WriteString(string(object.architecture)) + count++ + } + present_ = object.bitmap_&64 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("category") + stream.WriteString(string(object.category)) + count++ + } + present_ = object.bitmap_&128 != 0 && object.cloudProvider != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("cloud_provider") + v1.WriteCloudProvider(object.cloudProvider, stream) + count++ + } + present_ = object.bitmap_&256 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("generic_name") + stream.WriteString(object.genericName) + count++ + } + present_ = object.bitmap_&512 != 0 && object.memory != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("memory") + WriteValue(object.memory, stream) + count++ + } + present_ = object.bitmap_&1024 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("name") + stream.WriteString(object.name) + count++ + } + present_ = object.bitmap_&2048 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("size") + stream.WriteString(string(object.size)) + } + stream.WriteObjectEnd() +} + +// UnmarshalMachineType reads a value of the 'machine_type' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalMachineType(source interface{}) (object *MachineType, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadMachineType(iterator) + err = iterator.Error + return +} + +// ReadMachineType reads a value of the 'machine_type' type from the given iterator. +func ReadMachineType(iterator *jsoniter.Iterator) *MachineType { + object := &MachineType{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "kind": + value := iterator.ReadString() + if value == MachineTypeLinkKind { + object.bitmap_ |= 1 + } + case "id": + object.id = iterator.ReadString() + object.bitmap_ |= 2 + case "href": + object.href = iterator.ReadString() + object.bitmap_ |= 4 + case "ccs_only": + value := iterator.ReadBool() + object.ccsOnly = value + object.bitmap_ |= 8 + case "cpu": + value := ReadValue(iterator) + object.cpu = value + object.bitmap_ |= 16 + case "architecture": + text := iterator.ReadString() + value := ProcessorType(text) + object.architecture = value + object.bitmap_ |= 32 + case "category": + text := iterator.ReadString() + value := MachineTypeCategory(text) + object.category = value + object.bitmap_ |= 64 + case "cloud_provider": + value := v1.ReadCloudProvider(iterator) + object.cloudProvider = value + object.bitmap_ |= 128 + case "generic_name": + value := iterator.ReadString() + object.genericName = value + object.bitmap_ |= 256 + case "memory": + value := ReadValue(iterator) + object.memory = value + object.bitmap_ |= 512 + case "name": + value := iterator.ReadString() + object.name = value + object.bitmap_ |= 1024 + case "size": + text := iterator.ReadString() + value := MachineTypeSize(text) + object.size = value + object.bitmap_ |= 2048 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/managed_service_builder.go b/arohcp/v1alpha1/managed_service_builder.go new file mode 100644 index 000000000..396bdd660 --- /dev/null +++ b/arohcp/v1alpha1/managed_service_builder.go @@ -0,0 +1,63 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ManagedServiceBuilder contains the data and logic needed to build 'managed_service' objects. +// +// Contains the necessary attributes to support role-based authentication on AWS. +type ManagedServiceBuilder struct { + bitmap_ uint32 + enabled bool +} + +// NewManagedService creates a new builder of 'managed_service' objects. +func NewManagedService() *ManagedServiceBuilder { + return &ManagedServiceBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *ManagedServiceBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// Enabled sets the value of the 'enabled' attribute to the given value. +func (b *ManagedServiceBuilder) Enabled(value bool) *ManagedServiceBuilder { + b.enabled = value + b.bitmap_ |= 1 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *ManagedServiceBuilder) Copy(object *ManagedService) *ManagedServiceBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.enabled = object.enabled + return b +} + +// Build creates a 'managed_service' object using the configuration stored in the builder. +func (b *ManagedServiceBuilder) Build() (object *ManagedService, err error) { + object = new(ManagedService) + object.bitmap_ = b.bitmap_ + object.enabled = b.enabled + return +} diff --git a/arohcp/v1alpha1/managed_service_list_builder.go b/arohcp/v1alpha1/managed_service_list_builder.go new file mode 100644 index 000000000..991a820d7 --- /dev/null +++ b/arohcp/v1alpha1/managed_service_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ManagedServiceListBuilder contains the data and logic needed to build +// 'managed_service' objects. +type ManagedServiceListBuilder struct { + items []*ManagedServiceBuilder +} + +// NewManagedServiceList creates a new builder of 'managed_service' objects. +func NewManagedServiceList() *ManagedServiceListBuilder { + return new(ManagedServiceListBuilder) +} + +// Items sets the items of the list. +func (b *ManagedServiceListBuilder) Items(values ...*ManagedServiceBuilder) *ManagedServiceListBuilder { + b.items = make([]*ManagedServiceBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *ManagedServiceListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *ManagedServiceListBuilder) Copy(list *ManagedServiceList) *ManagedServiceListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*ManagedServiceBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewManagedService().Copy(v) + } + } + return b +} + +// Build creates a list of 'managed_service' objects using the +// configuration stored in the builder. +func (b *ManagedServiceListBuilder) Build() (list *ManagedServiceList, err error) { + items := make([]*ManagedService, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(ManagedServiceList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/managed_service_list_type_json.go b/arohcp/v1alpha1/managed_service_list_type_json.go new file mode 100644 index 000000000..25728e5e9 --- /dev/null +++ b/arohcp/v1alpha1/managed_service_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalManagedServiceList writes a list of values of the 'managed_service' type to +// the given writer. +func MarshalManagedServiceList(list []*ManagedService, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteManagedServiceList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteManagedServiceList writes a list of value of the 'managed_service' type to +// the given stream. +func WriteManagedServiceList(list []*ManagedService, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteManagedService(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalManagedServiceList reads a list of values of the 'managed_service' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalManagedServiceList(source interface{}) (items []*ManagedService, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadManagedServiceList(iterator) + err = iterator.Error + return +} + +// ReadManagedServiceList reads list of values of the ”managed_service' type from +// the given iterator. +func ReadManagedServiceList(iterator *jsoniter.Iterator) []*ManagedService { + list := []*ManagedService{} + for iterator.ReadArray() { + item := ReadManagedService(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/managed_service_type.go b/arohcp/v1alpha1/managed_service_type.go new file mode 100644 index 000000000..5637c5e44 --- /dev/null +++ b/arohcp/v1alpha1/managed_service_type.go @@ -0,0 +1,169 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ManagedService represents the values of the 'managed_service' type. +// +// Contains the necessary attributes to support role-based authentication on AWS. +type ManagedService struct { + bitmap_ uint32 + enabled bool +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *ManagedService) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// Enabled returns the value of the 'enabled' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Indicates whether the cluster belongs to a managed service +// This should only be set by the "Managed Service" service. +// clusters with this set can only be modified by the "Managed Service" service. +func (o *ManagedService) Enabled() bool { + if o != nil && o.bitmap_&1 != 0 { + return o.enabled + } + return false +} + +// GetEnabled returns the value of the 'enabled' attribute and +// a flag indicating if the attribute has a value. +// +// Indicates whether the cluster belongs to a managed service +// This should only be set by the "Managed Service" service. +// clusters with this set can only be modified by the "Managed Service" service. +func (o *ManagedService) GetEnabled() (value bool, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.enabled + } + return +} + +// ManagedServiceListKind is the name of the type used to represent list of objects of +// type 'managed_service'. +const ManagedServiceListKind = "ManagedServiceList" + +// ManagedServiceListLinkKind is the name of the type used to represent links to list +// of objects of type 'managed_service'. +const ManagedServiceListLinkKind = "ManagedServiceListLink" + +// ManagedServiceNilKind is the name of the type used to nil lists of objects of +// type 'managed_service'. +const ManagedServiceListNilKind = "ManagedServiceListNil" + +// ManagedServiceList is a list of values of the 'managed_service' type. +type ManagedServiceList struct { + href string + link bool + items []*ManagedService +} + +// Len returns the length of the list. +func (l *ManagedServiceList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *ManagedServiceList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ManagedServiceList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ManagedServiceList) SetItems(items []*ManagedService) { + l.items = items +} + +// Items returns the items of the list. +func (l *ManagedServiceList) Items() []*ManagedService { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *ManagedServiceList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *ManagedServiceList) Get(i int) *ManagedService { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *ManagedServiceList) Slice() []*ManagedService { + var slice []*ManagedService + if l == nil { + slice = make([]*ManagedService, 0) + } else { + slice = make([]*ManagedService, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *ManagedServiceList) Each(f func(item *ManagedService) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *ManagedServiceList) Range(f func(index int, item *ManagedService) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/managed_service_type_json.go b/arohcp/v1alpha1/managed_service_type_json.go new file mode 100644 index 000000000..0097fc231 --- /dev/null +++ b/arohcp/v1alpha1/managed_service_type_json.go @@ -0,0 +1,86 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalManagedService writes a value of the 'managed_service' type to the given writer. +func MarshalManagedService(object *ManagedService, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteManagedService(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteManagedService writes a value of the 'managed_service' type to the given stream. +func WriteManagedService(object *ManagedService, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("enabled") + stream.WriteBool(object.enabled) + } + stream.WriteObjectEnd() +} + +// UnmarshalManagedService reads a value of the 'managed_service' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalManagedService(source interface{}) (object *ManagedService, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadManagedService(iterator) + err = iterator.Error + return +} + +// ReadManagedService reads a value of the 'managed_service' type from the given iterator. +func ReadManagedService(iterator *jsoniter.Iterator) *ManagedService { + object := &ManagedService{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "enabled": + value := iterator.ReadBool() + object.enabled = value + object.bitmap_ |= 1 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/metadata_client.go b/arohcp/v1alpha1/metadata_client.go new file mode 100644 index 000000000..277f1ce26 --- /dev/null +++ b/arohcp/v1alpha1/metadata_client.go @@ -0,0 +1,141 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "bufio" + "context" + "io" + "net/http" + "net/url" + + "github.com/openshift-online/ocm-sdk-go/errors" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MetadataRequest is the request to retrieve the metadata. +type MetadataRequest struct { + transport http.RoundTripper + path string + query url.Values + header http.Header +} + +// MetadataResponse is the response for the metadata request. +type MetadataResponse struct { + status int + header http.Header + err *errors.Error + body *Metadata +} + +// Parameter adds a query parameter. +func (r *MetadataRequest) Parameter(name string, value interface{}) *MetadataRequest { + helpers.AddValue(&r.query, name, value) + return r +} + +// Header adds a request header. +func (r *MetadataRequest) Header(name string, value interface{}) *MetadataRequest { + helpers.AddHeader(&r.header, name, value) + return r +} + +// Send sends the metadata request, waits for the response, and returns it. +// +// This is a potentially lengthy operation, as it requires network communication. +// Consider using a context and the SendContext method. +func (r *MetadataRequest) Send() (result *MetadataResponse, err error) { + return r.SendContext(context.Background()) +} + +// SendContext sends the metadata request, waits for the response, and returns it. +func (r *MetadataRequest) SendContext(ctx context.Context) (result *MetadataResponse, err error) { + query := helpers.CopyQuery(r.query) + header := helpers.CopyHeader(r.header) + uri := &url.URL{ + Path: r.path, + RawQuery: query.Encode(), + } + request := &http.Request{ + Method: http.MethodGet, + URL: uri, + Header: header, + } + if ctx != nil { + request = request.WithContext(ctx) + } + response, err := r.transport.RoundTrip(request) + if err != nil { + return + } + defer response.Body.Close() + result = &MetadataResponse{ + status: response.StatusCode, + header: response.Header, + } + reader := bufio.NewReader(response.Body) + _, err = reader.Peek(1) + if err == io.EOF { + return + } + if result.status >= 400 { + result.err, err = errors.UnmarshalErrorStatus(reader, result.status) + if err != nil { + return + } + err = result.err + return + } + result.body, err = UnmarshalMetadata(reader) + if err != nil { + return + } + return +} + +// Status returns the response status code. +func (r *MetadataResponse) Status() int { + if r == nil { + return 0 + } + return r.status +} + +// Header returns header of the response. +func (r *MetadataResponse) Header() http.Header { + if r == nil { + return nil + } + return r.header +} + +// Error returns the response error. +func (r *MetadataResponse) Error() *errors.Error { + if r == nil { + return nil + } + return r.err +} + +// Body returns the response body. +func (r *MetadataResponse) Body() *Metadata { + return r.body +} diff --git a/arohcp/v1alpha1/metadata_reader.go b/arohcp/v1alpha1/metadata_reader.go new file mode 100644 index 000000000..88d695519 --- /dev/null +++ b/arohcp/v1alpha1/metadata_reader.go @@ -0,0 +1,76 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalMetadata writes a value of the metadata type to the given target, which +// can be a writer or a JSON encoder. +func MarshalMetadata(object *Metadata, writer io.Writer) error { + stream := helpers.NewStream(writer) + writeMetadata(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} +func writeMetadata(object *Metadata, stream *jsoniter.Stream) { + stream.WriteObjectStart() + if object.bitmap_&1 != 0 { + stream.WriteObjectField("server_version") + stream.WriteString(object.serverVersion) + } + stream.WriteObjectEnd() +} + +// UnmarshalMetadata reads a value of the metadata type from the given source, which +// which can be a reader, a slice of byte or a string. +func UnmarshalMetadata(source interface{}) (object *Metadata, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = readMetadata(iterator) + err = iterator.Error + return +} +func readMetadata(iterator *jsoniter.Iterator) *Metadata { + object := &Metadata{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "server_version": + object.serverVersion = iterator.ReadString() + object.bitmap_ |= 1 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/metadata_type.go b/arohcp/v1alpha1/metadata_type.go new file mode 100644 index 000000000..9694f7a8a --- /dev/null +++ b/arohcp/v1alpha1/metadata_type.go @@ -0,0 +1,44 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// Metadata contains the version metadata. +type Metadata struct { + bitmap_ uint32 + serverVersion string +} + +// ServerVersion returns the version of the server. +func (m *Metadata) ServerVersion() string { + if m != nil && m.bitmap_&1 != 0 { + return m.serverVersion + } + return "" +} + +// GetServerVersion returns the value of the server version and a flag indicating if +// the attribute has a value. +func (m *Metadata) GetServerVersion() (value string, ok bool) { + ok = m != nil && m.bitmap_&1 != 0 + if ok { + value = m.serverVersion + } + return +} diff --git a/arohcp/v1alpha1/network_builder.go b/arohcp/v1alpha1/network_builder.go new file mode 100644 index 000000000..78daa6b4c --- /dev/null +++ b/arohcp/v1alpha1/network_builder.go @@ -0,0 +1,103 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// NetworkBuilder contains the data and logic needed to build 'network' objects. +// +// Network configuration of a cluster. +type NetworkBuilder struct { + bitmap_ uint32 + hostPrefix int + machineCIDR string + podCIDR string + serviceCIDR string + type_ string +} + +// NewNetwork creates a new builder of 'network' objects. +func NewNetwork() *NetworkBuilder { + return &NetworkBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *NetworkBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// HostPrefix sets the value of the 'host_prefix' attribute to the given value. +func (b *NetworkBuilder) HostPrefix(value int) *NetworkBuilder { + b.hostPrefix = value + b.bitmap_ |= 1 + return b +} + +// MachineCIDR sets the value of the 'machine_CIDR' attribute to the given value. +func (b *NetworkBuilder) MachineCIDR(value string) *NetworkBuilder { + b.machineCIDR = value + b.bitmap_ |= 2 + return b +} + +// PodCIDR sets the value of the 'pod_CIDR' attribute to the given value. +func (b *NetworkBuilder) PodCIDR(value string) *NetworkBuilder { + b.podCIDR = value + b.bitmap_ |= 4 + return b +} + +// ServiceCIDR sets the value of the 'service_CIDR' attribute to the given value. +func (b *NetworkBuilder) ServiceCIDR(value string) *NetworkBuilder { + b.serviceCIDR = value + b.bitmap_ |= 8 + return b +} + +// Type sets the value of the 'type' attribute to the given value. +func (b *NetworkBuilder) Type(value string) *NetworkBuilder { + b.type_ = value + b.bitmap_ |= 16 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *NetworkBuilder) Copy(object *Network) *NetworkBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.hostPrefix = object.hostPrefix + b.machineCIDR = object.machineCIDR + b.podCIDR = object.podCIDR + b.serviceCIDR = object.serviceCIDR + b.type_ = object.type_ + return b +} + +// Build creates a 'network' object using the configuration stored in the builder. +func (b *NetworkBuilder) Build() (object *Network, err error) { + object = new(Network) + object.bitmap_ = b.bitmap_ + object.hostPrefix = b.hostPrefix + object.machineCIDR = b.machineCIDR + object.podCIDR = b.podCIDR + object.serviceCIDR = b.serviceCIDR + object.type_ = b.type_ + return +} diff --git a/arohcp/v1alpha1/network_list_builder.go b/arohcp/v1alpha1/network_list_builder.go new file mode 100644 index 000000000..efb6044b2 --- /dev/null +++ b/arohcp/v1alpha1/network_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// NetworkListBuilder contains the data and logic needed to build +// 'network' objects. +type NetworkListBuilder struct { + items []*NetworkBuilder +} + +// NewNetworkList creates a new builder of 'network' objects. +func NewNetworkList() *NetworkListBuilder { + return new(NetworkListBuilder) +} + +// Items sets the items of the list. +func (b *NetworkListBuilder) Items(values ...*NetworkBuilder) *NetworkListBuilder { + b.items = make([]*NetworkBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *NetworkListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *NetworkListBuilder) Copy(list *NetworkList) *NetworkListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*NetworkBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewNetwork().Copy(v) + } + } + return b +} + +// Build creates a list of 'network' objects using the +// configuration stored in the builder. +func (b *NetworkListBuilder) Build() (list *NetworkList, err error) { + items := make([]*Network, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(NetworkList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/network_list_type_json.go b/arohcp/v1alpha1/network_list_type_json.go new file mode 100644 index 000000000..87d8bf1f3 --- /dev/null +++ b/arohcp/v1alpha1/network_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalNetworkList writes a list of values of the 'network' type to +// the given writer. +func MarshalNetworkList(list []*Network, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteNetworkList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteNetworkList writes a list of value of the 'network' type to +// the given stream. +func WriteNetworkList(list []*Network, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteNetwork(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalNetworkList reads a list of values of the 'network' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalNetworkList(source interface{}) (items []*Network, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadNetworkList(iterator) + err = iterator.Error + return +} + +// ReadNetworkList reads list of values of the ”network' type from +// the given iterator. +func ReadNetworkList(iterator *jsoniter.Iterator) []*Network { + list := []*Network{} + for iterator.ReadArray() { + item := ReadNetwork(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/network_type.go b/arohcp/v1alpha1/network_type.go new file mode 100644 index 000000000..432b0a808 --- /dev/null +++ b/arohcp/v1alpha1/network_type.go @@ -0,0 +1,261 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// Network represents the values of the 'network' type. +// +// Network configuration of a cluster. +type Network struct { + bitmap_ uint32 + hostPrefix int + machineCIDR string + podCIDR string + serviceCIDR string + type_ string +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *Network) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// HostPrefix returns the value of the 'host_prefix' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Network host prefix which is defaulted to `23` if not specified. +func (o *Network) HostPrefix() int { + if o != nil && o.bitmap_&1 != 0 { + return o.hostPrefix + } + return 0 +} + +// GetHostPrefix returns the value of the 'host_prefix' attribute and +// a flag indicating if the attribute has a value. +// +// Network host prefix which is defaulted to `23` if not specified. +func (o *Network) GetHostPrefix() (value int, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.hostPrefix + } + return +} + +// MachineCIDR returns the value of the 'machine_CIDR' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// IP address block from which to assign machine IP addresses, for example `10.0.0.0/16`. +func (o *Network) MachineCIDR() string { + if o != nil && o.bitmap_&2 != 0 { + return o.machineCIDR + } + return "" +} + +// GetMachineCIDR returns the value of the 'machine_CIDR' attribute and +// a flag indicating if the attribute has a value. +// +// IP address block from which to assign machine IP addresses, for example `10.0.0.0/16`. +func (o *Network) GetMachineCIDR() (value string, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.machineCIDR + } + return +} + +// PodCIDR returns the value of the 'pod_CIDR' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// IP address block from which to assign pod IP addresses, for example `10.128.0.0/14`. +func (o *Network) PodCIDR() string { + if o != nil && o.bitmap_&4 != 0 { + return o.podCIDR + } + return "" +} + +// GetPodCIDR returns the value of the 'pod_CIDR' attribute and +// a flag indicating if the attribute has a value. +// +// IP address block from which to assign pod IP addresses, for example `10.128.0.0/14`. +func (o *Network) GetPodCIDR() (value string, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.podCIDR + } + return +} + +// ServiceCIDR returns the value of the 'service_CIDR' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// IP address block from which to assign service IP addresses, for example `172.30.0.0/16`. +func (o *Network) ServiceCIDR() string { + if o != nil && o.bitmap_&8 != 0 { + return o.serviceCIDR + } + return "" +} + +// GetServiceCIDR returns the value of the 'service_CIDR' attribute and +// a flag indicating if the attribute has a value. +// +// IP address block from which to assign service IP addresses, for example `172.30.0.0/16`. +func (o *Network) GetServiceCIDR() (value string, ok bool) { + ok = o != nil && o.bitmap_&8 != 0 + if ok { + value = o.serviceCIDR + } + return +} + +// Type returns the value of the 'type' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The main controller responsible for rendering the core networking components. +func (o *Network) Type() string { + if o != nil && o.bitmap_&16 != 0 { + return o.type_ + } + return "" +} + +// GetType returns the value of the 'type' attribute and +// a flag indicating if the attribute has a value. +// +// The main controller responsible for rendering the core networking components. +func (o *Network) GetType() (value string, ok bool) { + ok = o != nil && o.bitmap_&16 != 0 + if ok { + value = o.type_ + } + return +} + +// NetworkListKind is the name of the type used to represent list of objects of +// type 'network'. +const NetworkListKind = "NetworkList" + +// NetworkListLinkKind is the name of the type used to represent links to list +// of objects of type 'network'. +const NetworkListLinkKind = "NetworkListLink" + +// NetworkNilKind is the name of the type used to nil lists of objects of +// type 'network'. +const NetworkListNilKind = "NetworkListNil" + +// NetworkList is a list of values of the 'network' type. +type NetworkList struct { + href string + link bool + items []*Network +} + +// Len returns the length of the list. +func (l *NetworkList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *NetworkList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *NetworkList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *NetworkList) SetItems(items []*Network) { + l.items = items +} + +// Items returns the items of the list. +func (l *NetworkList) Items() []*Network { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *NetworkList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *NetworkList) Get(i int) *Network { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *NetworkList) Slice() []*Network { + var slice []*Network + if l == nil { + slice = make([]*Network, 0) + } else { + slice = make([]*Network, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *NetworkList) Each(f func(item *Network) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *NetworkList) Range(f func(index int, item *Network) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/network_type_json.go b/arohcp/v1alpha1/network_type_json.go new file mode 100644 index 000000000..f8e4be087 --- /dev/null +++ b/arohcp/v1alpha1/network_type_json.go @@ -0,0 +1,138 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalNetwork writes a value of the 'network' type to the given writer. +func MarshalNetwork(object *Network, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteNetwork(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteNetwork writes a value of the 'network' type to the given stream. +func WriteNetwork(object *Network, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("host_prefix") + stream.WriteInt(object.hostPrefix) + count++ + } + present_ = object.bitmap_&2 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("machine_cidr") + stream.WriteString(object.machineCIDR) + count++ + } + present_ = object.bitmap_&4 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("pod_cidr") + stream.WriteString(object.podCIDR) + count++ + } + present_ = object.bitmap_&8 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("service_cidr") + stream.WriteString(object.serviceCIDR) + count++ + } + present_ = object.bitmap_&16 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("type") + stream.WriteString(object.type_) + } + stream.WriteObjectEnd() +} + +// UnmarshalNetwork reads a value of the 'network' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalNetwork(source interface{}) (object *Network, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadNetwork(iterator) + err = iterator.Error + return +} + +// ReadNetwork reads a value of the 'network' type from the given iterator. +func ReadNetwork(iterator *jsoniter.Iterator) *Network { + object := &Network{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "host_prefix": + value := iterator.ReadInt() + object.hostPrefix = value + object.bitmap_ |= 1 + case "machine_cidr": + value := iterator.ReadString() + object.machineCIDR = value + object.bitmap_ |= 2 + case "pod_cidr": + value := iterator.ReadString() + object.podCIDR = value + object.bitmap_ |= 4 + case "service_cidr": + value := iterator.ReadString() + object.serviceCIDR = value + object.bitmap_ |= 8 + case "type": + value := iterator.ReadString() + object.type_ = value + object.bitmap_ |= 16 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/oidc_config_builder.go b/arohcp/v1alpha1/oidc_config_builder.go new file mode 100644 index 000000000..d001059e8 --- /dev/null +++ b/arohcp/v1alpha1/oidc_config_builder.go @@ -0,0 +1,167 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + time "time" +) + +// OidcConfigBuilder contains the data and logic needed to build 'oidc_config' objects. +// +// Contains the necessary attributes to support oidc configuration hosting under Red Hat or registering a Customer's byo oidc config. +type OidcConfigBuilder struct { + bitmap_ uint32 + href string + id string + creationTimestamp time.Time + installerRoleArn string + issuerUrl string + lastUpdateTimestamp time.Time + lastUsedTimestamp time.Time + organizationId string + secretArn string + managed bool + reusable bool +} + +// NewOidcConfig creates a new builder of 'oidc_config' objects. +func NewOidcConfig() *OidcConfigBuilder { + return &OidcConfigBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *OidcConfigBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// HREF sets the value of the 'HREF' attribute to the given value. +func (b *OidcConfigBuilder) HREF(value string) *OidcConfigBuilder { + b.href = value + b.bitmap_ |= 1 + return b +} + +// ID sets the value of the 'ID' attribute to the given value. +func (b *OidcConfigBuilder) ID(value string) *OidcConfigBuilder { + b.id = value + b.bitmap_ |= 2 + return b +} + +// CreationTimestamp sets the value of the 'creation_timestamp' attribute to the given value. +func (b *OidcConfigBuilder) CreationTimestamp(value time.Time) *OidcConfigBuilder { + b.creationTimestamp = value + b.bitmap_ |= 4 + return b +} + +// InstallerRoleArn sets the value of the 'installer_role_arn' attribute to the given value. +func (b *OidcConfigBuilder) InstallerRoleArn(value string) *OidcConfigBuilder { + b.installerRoleArn = value + b.bitmap_ |= 8 + return b +} + +// IssuerUrl sets the value of the 'issuer_url' attribute to the given value. +func (b *OidcConfigBuilder) IssuerUrl(value string) *OidcConfigBuilder { + b.issuerUrl = value + b.bitmap_ |= 16 + return b +} + +// LastUpdateTimestamp sets the value of the 'last_update_timestamp' attribute to the given value. +func (b *OidcConfigBuilder) LastUpdateTimestamp(value time.Time) *OidcConfigBuilder { + b.lastUpdateTimestamp = value + b.bitmap_ |= 32 + return b +} + +// LastUsedTimestamp sets the value of the 'last_used_timestamp' attribute to the given value. +func (b *OidcConfigBuilder) LastUsedTimestamp(value time.Time) *OidcConfigBuilder { + b.lastUsedTimestamp = value + b.bitmap_ |= 64 + return b +} + +// Managed sets the value of the 'managed' attribute to the given value. +func (b *OidcConfigBuilder) Managed(value bool) *OidcConfigBuilder { + b.managed = value + b.bitmap_ |= 128 + return b +} + +// OrganizationId sets the value of the 'organization_id' attribute to the given value. +func (b *OidcConfigBuilder) OrganizationId(value string) *OidcConfigBuilder { + b.organizationId = value + b.bitmap_ |= 256 + return b +} + +// Reusable sets the value of the 'reusable' attribute to the given value. +func (b *OidcConfigBuilder) Reusable(value bool) *OidcConfigBuilder { + b.reusable = value + b.bitmap_ |= 512 + return b +} + +// SecretArn sets the value of the 'secret_arn' attribute to the given value. +func (b *OidcConfigBuilder) SecretArn(value string) *OidcConfigBuilder { + b.secretArn = value + b.bitmap_ |= 1024 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *OidcConfigBuilder) Copy(object *OidcConfig) *OidcConfigBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.href = object.href + b.id = object.id + b.creationTimestamp = object.creationTimestamp + b.installerRoleArn = object.installerRoleArn + b.issuerUrl = object.issuerUrl + b.lastUpdateTimestamp = object.lastUpdateTimestamp + b.lastUsedTimestamp = object.lastUsedTimestamp + b.managed = object.managed + b.organizationId = object.organizationId + b.reusable = object.reusable + b.secretArn = object.secretArn + return b +} + +// Build creates a 'oidc_config' object using the configuration stored in the builder. +func (b *OidcConfigBuilder) Build() (object *OidcConfig, err error) { + object = new(OidcConfig) + object.bitmap_ = b.bitmap_ + object.href = b.href + object.id = b.id + object.creationTimestamp = b.creationTimestamp + object.installerRoleArn = b.installerRoleArn + object.issuerUrl = b.issuerUrl + object.lastUpdateTimestamp = b.lastUpdateTimestamp + object.lastUsedTimestamp = b.lastUsedTimestamp + object.managed = b.managed + object.organizationId = b.organizationId + object.reusable = b.reusable + object.secretArn = b.secretArn + return +} diff --git a/arohcp/v1alpha1/oidc_config_list_builder.go b/arohcp/v1alpha1/oidc_config_list_builder.go new file mode 100644 index 000000000..5af748c45 --- /dev/null +++ b/arohcp/v1alpha1/oidc_config_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// OidcConfigListBuilder contains the data and logic needed to build +// 'oidc_config' objects. +type OidcConfigListBuilder struct { + items []*OidcConfigBuilder +} + +// NewOidcConfigList creates a new builder of 'oidc_config' objects. +func NewOidcConfigList() *OidcConfigListBuilder { + return new(OidcConfigListBuilder) +} + +// Items sets the items of the list. +func (b *OidcConfigListBuilder) Items(values ...*OidcConfigBuilder) *OidcConfigListBuilder { + b.items = make([]*OidcConfigBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *OidcConfigListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *OidcConfigListBuilder) Copy(list *OidcConfigList) *OidcConfigListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*OidcConfigBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewOidcConfig().Copy(v) + } + } + return b +} + +// Build creates a list of 'oidc_config' objects using the +// configuration stored in the builder. +func (b *OidcConfigListBuilder) Build() (list *OidcConfigList, err error) { + items := make([]*OidcConfig, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(OidcConfigList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/oidc_config_list_type_json.go b/arohcp/v1alpha1/oidc_config_list_type_json.go new file mode 100644 index 000000000..e3408259b --- /dev/null +++ b/arohcp/v1alpha1/oidc_config_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalOidcConfigList writes a list of values of the 'oidc_config' type to +// the given writer. +func MarshalOidcConfigList(list []*OidcConfig, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteOidcConfigList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteOidcConfigList writes a list of value of the 'oidc_config' type to +// the given stream. +func WriteOidcConfigList(list []*OidcConfig, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteOidcConfig(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalOidcConfigList reads a list of values of the 'oidc_config' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalOidcConfigList(source interface{}) (items []*OidcConfig, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadOidcConfigList(iterator) + err = iterator.Error + return +} + +// ReadOidcConfigList reads list of values of the ”oidc_config' type from +// the given iterator. +func ReadOidcConfigList(iterator *jsoniter.Iterator) []*OidcConfig { + list := []*OidcConfig{} + for iterator.ReadArray() { + item := ReadOidcConfig(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/oidc_config_type.go b/arohcp/v1alpha1/oidc_config_type.go new file mode 100644 index 000000000..d918aaaf0 --- /dev/null +++ b/arohcp/v1alpha1/oidc_config_type.go @@ -0,0 +1,409 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + time "time" +) + +// OidcConfig represents the values of the 'oidc_config' type. +// +// Contains the necessary attributes to support oidc configuration hosting under Red Hat or registering a Customer's byo oidc config. +type OidcConfig struct { + bitmap_ uint32 + href string + id string + creationTimestamp time.Time + installerRoleArn string + issuerUrl string + lastUpdateTimestamp time.Time + lastUsedTimestamp time.Time + organizationId string + secretArn string + managed bool + reusable bool +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *OidcConfig) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// HREF returns the value of the 'HREF' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// HREF for the oidc config, filled in response. +func (o *OidcConfig) HREF() string { + if o != nil && o.bitmap_&1 != 0 { + return o.href + } + return "" +} + +// GetHREF returns the value of the 'HREF' attribute and +// a flag indicating if the attribute has a value. +// +// HREF for the oidc config, filled in response. +func (o *OidcConfig) GetHREF() (value string, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.href + } + return +} + +// ID returns the value of the 'ID' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// ID for the oidc config, filled in response. +func (o *OidcConfig) ID() string { + if o != nil && o.bitmap_&2 != 0 { + return o.id + } + return "" +} + +// GetID returns the value of the 'ID' attribute and +// a flag indicating if the attribute has a value. +// +// ID for the oidc config, filled in response. +func (o *OidcConfig) GetID() (value string, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.id + } + return +} + +// CreationTimestamp returns the value of the 'creation_timestamp' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Creation timestamp, filled in response. +func (o *OidcConfig) CreationTimestamp() time.Time { + if o != nil && o.bitmap_&4 != 0 { + return o.creationTimestamp + } + return time.Time{} +} + +// GetCreationTimestamp returns the value of the 'creation_timestamp' attribute and +// a flag indicating if the attribute has a value. +// +// Creation timestamp, filled in response. +func (o *OidcConfig) GetCreationTimestamp() (value time.Time, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.creationTimestamp + } + return +} + +// InstallerRoleArn returns the value of the 'installer_role_arn' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// ARN of the AWS role to assume when installing the cluster as to reveal the secret, supplied in request. It is only to be used in Unmanaged Oidc Config. +func (o *OidcConfig) InstallerRoleArn() string { + if o != nil && o.bitmap_&8 != 0 { + return o.installerRoleArn + } + return "" +} + +// GetInstallerRoleArn returns the value of the 'installer_role_arn' attribute and +// a flag indicating if the attribute has a value. +// +// ARN of the AWS role to assume when installing the cluster as to reveal the secret, supplied in request. It is only to be used in Unmanaged Oidc Config. +func (o *OidcConfig) GetInstallerRoleArn() (value string, ok bool) { + ok = o != nil && o.bitmap_&8 != 0 + if ok { + value = o.installerRoleArn + } + return +} + +// IssuerUrl returns the value of the 'issuer_url' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Issuer URL, filled in response when Managed and supplied in Unmanaged. +func (o *OidcConfig) IssuerUrl() string { + if o != nil && o.bitmap_&16 != 0 { + return o.issuerUrl + } + return "" +} + +// GetIssuerUrl returns the value of the 'issuer_url' attribute and +// a flag indicating if the attribute has a value. +// +// Issuer URL, filled in response when Managed and supplied in Unmanaged. +func (o *OidcConfig) GetIssuerUrl() (value string, ok bool) { + ok = o != nil && o.bitmap_&16 != 0 + if ok { + value = o.issuerUrl + } + return +} + +// LastUpdateTimestamp returns the value of the 'last_update_timestamp' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Last update timestamp, filled when patching a valid attribute of this oidc config. +func (o *OidcConfig) LastUpdateTimestamp() time.Time { + if o != nil && o.bitmap_&32 != 0 { + return o.lastUpdateTimestamp + } + return time.Time{} +} + +// GetLastUpdateTimestamp returns the value of the 'last_update_timestamp' attribute and +// a flag indicating if the attribute has a value. +// +// Last update timestamp, filled when patching a valid attribute of this oidc config. +func (o *OidcConfig) GetLastUpdateTimestamp() (value time.Time, ok bool) { + ok = o != nil && o.bitmap_&32 != 0 + if ok { + value = o.lastUpdateTimestamp + } + return +} + +// LastUsedTimestamp returns the value of the 'last_used_timestamp' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Last used timestamp, filled by the latest cluster that used this oidc config. +func (o *OidcConfig) LastUsedTimestamp() time.Time { + if o != nil && o.bitmap_&64 != 0 { + return o.lastUsedTimestamp + } + return time.Time{} +} + +// GetLastUsedTimestamp returns the value of the 'last_used_timestamp' attribute and +// a flag indicating if the attribute has a value. +// +// Last used timestamp, filled by the latest cluster that used this oidc config. +func (o *OidcConfig) GetLastUsedTimestamp() (value time.Time, ok bool) { + ok = o != nil && o.bitmap_&64 != 0 + if ok { + value = o.lastUsedTimestamp + } + return +} + +// Managed returns the value of the 'managed' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Indicates whether it is Managed or Unmanaged (Customer hosted). +func (o *OidcConfig) Managed() bool { + if o != nil && o.bitmap_&128 != 0 { + return o.managed + } + return false +} + +// GetManaged returns the value of the 'managed' attribute and +// a flag indicating if the attribute has a value. +// +// Indicates whether it is Managed or Unmanaged (Customer hosted). +func (o *OidcConfig) GetManaged() (value bool, ok bool) { + ok = o != nil && o.bitmap_&128 != 0 + if ok { + value = o.managed + } + return +} + +// OrganizationId returns the value of the 'organization_id' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Organization ID, filled in response respecting token provided. +func (o *OidcConfig) OrganizationId() string { + if o != nil && o.bitmap_&256 != 0 { + return o.organizationId + } + return "" +} + +// GetOrganizationId returns the value of the 'organization_id' attribute and +// a flag indicating if the attribute has a value. +// +// Organization ID, filled in response respecting token provided. +func (o *OidcConfig) GetOrganizationId() (value string, ok bool) { + ok = o != nil && o.bitmap_&256 != 0 + if ok { + value = o.organizationId + } + return +} + +// Reusable returns the value of the 'reusable' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Indicates whether the Oidc Config can be reused. +func (o *OidcConfig) Reusable() bool { + if o != nil && o.bitmap_&512 != 0 { + return o.reusable + } + return false +} + +// GetReusable returns the value of the 'reusable' attribute and +// a flag indicating if the attribute has a value. +// +// Indicates whether the Oidc Config can be reused. +func (o *OidcConfig) GetReusable() (value bool, ok bool) { + ok = o != nil && o.bitmap_&512 != 0 + if ok { + value = o.reusable + } + return +} + +// SecretArn returns the value of the 'secret_arn' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Secrets Manager ARN for the OIDC private key, supplied in request. It is only to be used in Unmanaged Oidc Config. +func (o *OidcConfig) SecretArn() string { + if o != nil && o.bitmap_&1024 != 0 { + return o.secretArn + } + return "" +} + +// GetSecretArn returns the value of the 'secret_arn' attribute and +// a flag indicating if the attribute has a value. +// +// Secrets Manager ARN for the OIDC private key, supplied in request. It is only to be used in Unmanaged Oidc Config. +func (o *OidcConfig) GetSecretArn() (value string, ok bool) { + ok = o != nil && o.bitmap_&1024 != 0 + if ok { + value = o.secretArn + } + return +} + +// OidcConfigListKind is the name of the type used to represent list of objects of +// type 'oidc_config'. +const OidcConfigListKind = "OidcConfigList" + +// OidcConfigListLinkKind is the name of the type used to represent links to list +// of objects of type 'oidc_config'. +const OidcConfigListLinkKind = "OidcConfigListLink" + +// OidcConfigNilKind is the name of the type used to nil lists of objects of +// type 'oidc_config'. +const OidcConfigListNilKind = "OidcConfigListNil" + +// OidcConfigList is a list of values of the 'oidc_config' type. +type OidcConfigList struct { + href string + link bool + items []*OidcConfig +} + +// Len returns the length of the list. +func (l *OidcConfigList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *OidcConfigList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *OidcConfigList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *OidcConfigList) SetItems(items []*OidcConfig) { + l.items = items +} + +// Items returns the items of the list. +func (l *OidcConfigList) Items() []*OidcConfig { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *OidcConfigList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *OidcConfigList) Get(i int) *OidcConfig { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *OidcConfigList) Slice() []*OidcConfig { + var slice []*OidcConfig + if l == nil { + slice = make([]*OidcConfig, 0) + } else { + slice = make([]*OidcConfig, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *OidcConfigList) Each(f func(item *OidcConfig) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *OidcConfigList) Range(f func(index int, item *OidcConfig) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/oidc_config_type_json.go b/arohcp/v1alpha1/oidc_config_type_json.go new file mode 100644 index 000000000..1dc31761f --- /dev/null +++ b/arohcp/v1alpha1/oidc_config_type_json.go @@ -0,0 +1,229 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + "time" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalOidcConfig writes a value of the 'oidc_config' type to the given writer. +func MarshalOidcConfig(object *OidcConfig, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteOidcConfig(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteOidcConfig writes a value of the 'oidc_config' type to the given stream. +func WriteOidcConfig(object *OidcConfig, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("href") + stream.WriteString(object.href) + count++ + } + present_ = object.bitmap_&2 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("id") + stream.WriteString(object.id) + count++ + } + present_ = object.bitmap_&4 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("creation_timestamp") + stream.WriteString((object.creationTimestamp).Format(time.RFC3339)) + count++ + } + present_ = object.bitmap_&8 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("installer_role_arn") + stream.WriteString(object.installerRoleArn) + count++ + } + present_ = object.bitmap_&16 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("issuer_url") + stream.WriteString(object.issuerUrl) + count++ + } + present_ = object.bitmap_&32 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("last_update_timestamp") + stream.WriteString((object.lastUpdateTimestamp).Format(time.RFC3339)) + count++ + } + present_ = object.bitmap_&64 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("last_used_timestamp") + stream.WriteString((object.lastUsedTimestamp).Format(time.RFC3339)) + count++ + } + present_ = object.bitmap_&128 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("managed") + stream.WriteBool(object.managed) + count++ + } + present_ = object.bitmap_&256 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("organization_id") + stream.WriteString(object.organizationId) + count++ + } + present_ = object.bitmap_&512 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("reusable") + stream.WriteBool(object.reusable) + count++ + } + present_ = object.bitmap_&1024 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("secret_arn") + stream.WriteString(object.secretArn) + } + stream.WriteObjectEnd() +} + +// UnmarshalOidcConfig reads a value of the 'oidc_config' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalOidcConfig(source interface{}) (object *OidcConfig, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadOidcConfig(iterator) + err = iterator.Error + return +} + +// ReadOidcConfig reads a value of the 'oidc_config' type from the given iterator. +func ReadOidcConfig(iterator *jsoniter.Iterator) *OidcConfig { + object := &OidcConfig{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "href": + value := iterator.ReadString() + object.href = value + object.bitmap_ |= 1 + case "id": + value := iterator.ReadString() + object.id = value + object.bitmap_ |= 2 + case "creation_timestamp": + text := iterator.ReadString() + value, err := time.Parse(time.RFC3339, text) + if err != nil { + iterator.ReportError("", err.Error()) + } + object.creationTimestamp = value + object.bitmap_ |= 4 + case "installer_role_arn": + value := iterator.ReadString() + object.installerRoleArn = value + object.bitmap_ |= 8 + case "issuer_url": + value := iterator.ReadString() + object.issuerUrl = value + object.bitmap_ |= 16 + case "last_update_timestamp": + text := iterator.ReadString() + value, err := time.Parse(time.RFC3339, text) + if err != nil { + iterator.ReportError("", err.Error()) + } + object.lastUpdateTimestamp = value + object.bitmap_ |= 32 + case "last_used_timestamp": + text := iterator.ReadString() + value, err := time.Parse(time.RFC3339, text) + if err != nil { + iterator.ReportError("", err.Error()) + } + object.lastUsedTimestamp = value + object.bitmap_ |= 64 + case "managed": + value := iterator.ReadBool() + object.managed = value + object.bitmap_ |= 128 + case "organization_id": + value := iterator.ReadString() + object.organizationId = value + object.bitmap_ |= 256 + case "reusable": + value := iterator.ReadBool() + object.reusable = value + object.bitmap_ |= 512 + case "secret_arn": + value := iterator.ReadString() + object.secretArn = value + object.bitmap_ |= 1024 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/openapi.go b/arohcp/v1alpha1/openapi.go new file mode 100644 index 000000000..f0affaae4 --- /dev/null +++ b/arohcp/v1alpha1/openapi.go @@ -0,0 +1,5621 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// OpenAPI contains the OpenAPI specification of the service in JSON. +var OpenAPI = []byte{ + 0x7b, 0xa, 0x20, 0x20, 0x22, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x22, 0x3a, 0x20, 0x22, + 0x33, 0x2e, 0x30, 0x2e, 0x30, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x22, 0x69, 0x6e, 0x66, 0x6f, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x22, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x22, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x61, 0x72, 0x6f, + 0x5f, 0x68, 0x63, 0x70, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6c, 0x69, 0x63, 0x65, + 0x6e, 0x73, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6e, + 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x41, 0x70, 0x61, 0x63, 0x68, 0x65, 0x20, 0x32, 0x2e, + 0x30, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x75, 0x72, 0x6c, 0x22, 0x3a, + 0x20, 0x22, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x61, 0x70, 0x61, + 0x63, 0x68, 0x65, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x73, + 0x2f, 0x4c, 0x49, 0x43, 0x45, 0x4e, 0x53, 0x45, 0x2d, 0x32, 0x2e, 0x30, 0x22, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, + 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6e, 0x61, 0x6d, + 0x65, 0x22, 0x3a, 0x20, 0x22, 0x4f, 0x43, 0x4d, 0x20, 0x46, 0x65, 0x65, 0x64, 0x62, 0x61, 0x63, + 0x6b, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x65, 0x6d, 0x61, 0x69, 0x6c, + 0x22, 0x3a, 0x20, 0x22, 0x6f, 0x63, 0x6d, 0x2d, 0x66, 0x65, 0x65, 0x64, 0x62, 0x61, 0x63, 0x6b, + 0x40, 0x72, 0x65, 0x64, 0x68, 0x61, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x22, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0xa, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x22, 0x73, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x73, 0x22, 0x3a, 0x20, 0x5b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x3a, 0x20, 0x22, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x75, 0x72, 0x6c, 0x22, 0x3a, 0x20, 0x22, 0x68, 0x74, + 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x61, 0x70, 0x69, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x73, 0x68, + 0x69, 0x66, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x53, 0x74, 0x61, 0x67, + 0x65, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x75, 0x72, 0x6c, 0x22, 0x3a, + 0x20, 0x22, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, + 0x61, 0x67, 0x65, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x2e, 0x63, 0x6f, + 0x6d, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x5d, 0x2c, 0xa, 0x20, 0x20, + 0x22, 0x70, 0x61, 0x74, 0x68, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x72, 0x6f, 0x5f, 0x68, 0x63, 0x70, 0x2f, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x67, 0x65, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, + 0x22, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x72, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x32, 0x30, 0x30, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x70, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, + 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, + 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, 0x6f, 0x6e, + 0x74, 0x65, 0x6e, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, + 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, + 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x22, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, + 0x72, 0x6f, 0x5f, 0x68, 0x63, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x70, 0x6f, 0x73, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x61, + 0x20, 0x6e, 0x65, 0x77, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x61, 0x6e, 0x64, + 0x20, 0x61, 0x64, 0x64, 0x20, 0x69, 0x74, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, + 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x5c, 0x6e, 0x5c, 0x6e, 0x53, 0x65, 0x65, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x60, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x60, 0x20, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, + 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x20, 0x61, 0x6e, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, + 0x6e, 0x67, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x6f, + 0x64, 0x79, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x70, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, + 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, + 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x22, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x72, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x32, 0x30, 0x31, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x53, 0x75, 0x63, 0x63, + 0x65, 0x73, 0x73, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, + 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, + 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, + 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, + 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, + 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x45, 0x72, 0x72, 0x6f, 0x72, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x67, 0x65, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, + 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x22, 0x3a, 0x20, + 0x5b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6e, 0x61, 0x6d, 0x65, 0x22, + 0x3a, 0x20, 0x22, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x20, 0x63, 0x72, 0x69, + 0x74, 0x65, 0x72, 0x69, 0x61, 0x2e, 0x5c, 0x6e, 0x5c, 0x6e, 0x54, 0x68, 0x65, 0x20, 0x73, 0x79, + 0x6e, 0x74, 0x61, 0x78, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x70, 0x61, 0x72, + 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x20, 0x69, 0x73, 0x20, 0x73, 0x69, 0x6d, 0x69, 0x6c, 0x61, + 0x72, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x20, + 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x20, 0x62, 0x79, + 0x5f, 0x20, 0x63, 0x6c, 0x61, 0x75, 0x73, 0x65, 0x20, 0x6f, 0x66, 0x5c, 0x6e, 0x61, 0x20, 0x53, + 0x51, 0x4c, 0x20, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2c, 0x20, 0x62, 0x75, + 0x74, 0x20, 0x75, 0x73, 0x69, 0x6e, 0x67, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6e, 0x61, 0x6d, 0x65, + 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x20, 0x69, 0x6e, 0x73, 0x74, 0x65, 0x61, 0x64, 0x20, 0x6f, 0x66, 0x5c, 0x6e, 0x74, + 0x68, 0x65, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x20, 0x74, 0x61, 0x62, + 0x6c, 0x65, 0x2e, 0x20, 0x46, 0x6f, 0x72, 0x20, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2c, + 0x20, 0x69, 0x6e, 0x20, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x20, 0x74, 0x6f, 0x20, 0x73, 0x6f, 0x72, + 0x74, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x5c, 0x6e, + 0x64, 0x65, 0x73, 0x63, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x20, 0x62, 0x79, 0x20, 0x72, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x73, 0x68, 0x6f, 0x75, 0x6c, 0x64, + 0x20, 0x62, 0x65, 0x3a, 0x5c, 0x6e, 0x5c, 0x6e, 0x60, 0x60, 0x60, 0x73, 0x71, 0x6c, 0x5c, 0x6e, + 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x69, 0x64, 0x20, 0x64, 0x65, 0x73, 0x63, 0x5c, 0x6e, + 0x60, 0x60, 0x60, 0x5c, 0x6e, 0x5c, 0x6e, 0x49, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x61, + 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x20, 0x69, 0x73, 0x6e, 0x27, 0x74, 0x20, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x2c, 0x20, 0x6f, 0x72, 0x20, 0x69, 0x66, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x69, 0x73, 0x20, 0x65, 0x6d, 0x70, 0x74, 0x79, + 0x2c, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x72, 0x64, 0x65, 0x72, + 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x5c, 0x6e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, + 0x20, 0x69, 0x73, 0x20, 0x75, 0x6e, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x2e, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x6e, + 0x22, 0x3a, 0x20, 0x22, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x70, + 0x61, 0x67, 0x65, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, + 0x20, 0x22, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x20, 0x70, 0x61, 0x67, 0x65, 0x2c, 0x20, 0x77, + 0x68, 0x65, 0x72, 0x65, 0x20, 0x6f, 0x6e, 0x65, 0x20, 0x63, 0x6f, 0x72, 0x72, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x64, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x66, 0x69, 0x72, 0x73, + 0x74, 0x20, 0x70, 0x61, 0x67, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, + 0x22, 0x3a, 0x20, 0x22, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x65, 0x72, 0x22, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x74, 0x22, 0x3a, 0x20, 0x22, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x22, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x53, + 0x65, 0x61, 0x72, 0x63, 0x68, 0x20, 0x63, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, 0x2e, 0x5c, + 0x6e, 0x5c, 0x6e, 0x54, 0x68, 0x65, 0x20, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x20, 0x6f, 0x66, + 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x20, + 0x69, 0x73, 0x20, 0x73, 0x69, 0x6d, 0x69, 0x6c, 0x61, 0x72, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x5f, 0x77, 0x68, 0x65, 0x72, 0x65, 0x5f, 0x20, 0x63, 0x6c, 0x61, 0x75, 0x73, 0x65, 0x20, 0x6f, + 0x66, 0x20, 0x61, 0x5c, 0x6e, 0x53, 0x51, 0x4c, 0x20, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x2c, 0x20, 0x62, 0x75, 0x74, 0x20, 0x75, 0x73, 0x69, 0x6e, 0x67, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x69, 0x6e, 0x73, 0x74, 0x65, 0x61, 0x64, + 0x20, 0x6f, 0x66, 0x5c, 0x6e, 0x74, 0x68, 0x65, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x20, 0x6f, + 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x20, 0x6f, 0x66, + 0x20, 0x61, 0x20, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x20, 0x46, 0x6f, 0x72, 0x20, 0x65, 0x78, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x20, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x20, + 0x74, 0x6f, 0x20, 0x72, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x61, 0x6c, 0x6c, 0x20, + 0x74, 0x68, 0x65, 0x5c, 0x6e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x20, 0x77, 0x69, + 0x74, 0x68, 0x20, 0x61, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, 0x69, + 0x6e, 0x67, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x60, 0x6d, 0x79, 0x60, 0x20, 0x69, 0x6e, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x60, 0x75, 0x73, 0x2d, 0x65, 0x61, 0x73, 0x74, 0x2d, 0x31, 0x60, 0x20, + 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x5c, 0x6e, 0x73, 0x68, 0x6f, 0x75, 0x6c, 0x64, 0x20, 0x62, 0x65, 0x3a, 0x5c, 0x6e, 0x5c, 0x6e, + 0x60, 0x60, 0x60, 0x73, 0x71, 0x6c, 0x5c, 0x6e, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x6c, 0x69, 0x6b, + 0x65, 0x20, 0x27, 0x6d, 0x79, 0x25, 0x27, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x72, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x2e, 0x69, 0x64, 0x20, 0x3d, 0x20, 0x27, 0x75, 0x73, 0x2d, 0x65, 0x61, 0x73, 0x74, + 0x2d, 0x31, 0x27, 0x5c, 0x6e, 0x60, 0x60, 0x60, 0x5c, 0x6e, 0x5c, 0x6e, 0x49, 0x66, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x20, 0x69, 0x73, 0x6e, + 0x27, 0x74, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x2c, 0x20, 0x6f, 0x72, 0x20, + 0x69, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x69, 0x73, 0x20, + 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x61, 0x6c, 0x6c, 0x20, + 0x74, 0x68, 0x65, 0x5c, 0x6e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x20, 0x74, 0x68, + 0x61, 0x74, 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x68, 0x61, 0x73, 0x20, + 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x73, 0x65, + 0x65, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, + 0x65, 0x64, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x69, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, + 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6e, 0x61, 0x6d, 0x65, + 0x22, 0x3a, 0x20, 0x22, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x20, 0x6e, + 0x75, 0x6d, 0x62, 0x65, 0x72, 0x20, 0x6f, 0x66, 0x20, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x20, 0x74, + 0x68, 0x61, 0x74, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, 0x63, 0x6f, 0x6e, 0x74, + 0x61, 0x69, 0x6e, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x74, + 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x70, 0x61, 0x67, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x6e, 0x22, 0x3a, 0x20, + 0x22, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x65, 0x72, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x3a, 0x20, 0x22, 0x69, 0x6e, 0x74, 0x33, 0x32, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x5d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x32, 0x30, 0x30, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x53, 0x75, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x6f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, + 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x74, 0x65, 0x6d, + 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x52, 0x65, 0x74, 0x72, + 0x69, 0x65, 0x76, 0x65, 0x64, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x61, 0x72, 0x72, 0x61, 0x79, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x3a, 0x20, + 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, + 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, + 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x22, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x61, 0x67, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x22, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x20, 0x70, 0x61, 0x67, 0x65, 0x2c, + 0x20, 0x77, 0x68, 0x65, 0x72, 0x65, 0x20, 0x6f, 0x6e, 0x65, 0x20, 0x63, 0x6f, 0x72, 0x72, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x66, 0x69, + 0x72, 0x73, 0x74, 0x20, 0x70, 0x61, 0x67, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x69, 0x6e, 0x74, 0x65, 0x67, + 0x65, 0x72, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x66, 0x6f, 0x72, 0x6d, + 0x61, 0x74, 0x22, 0x3a, 0x20, 0x22, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x22, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x3a, 0x20, + 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x20, + 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x20, 0x6f, 0x66, 0x20, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x20, + 0x74, 0x68, 0x61, 0x74, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, 0x63, 0x6f, 0x6e, + 0x74, 0x61, 0x69, 0x6e, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, + 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x70, 0x61, 0x67, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x69, 0x6e, + 0x74, 0x65, 0x67, 0x65, 0x72, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x3a, 0x20, 0x22, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x6f, 0x74, 0x61, + 0x6c, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x6f, 0x74, 0x61, + 0x6c, 0x20, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x20, 0x6f, 0x66, 0x20, 0x69, 0x74, 0x65, 0x6d, + 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x20, 0x63, 0x72, 0x69, 0x74, 0x65, 0x72, + 0x69, 0x61, 0x2c, 0x5c, 0x6e, 0x72, 0x65, 0x67, 0x61, 0x72, 0x64, 0x6c, 0x65, 0x73, 0x73, 0x20, + 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x70, 0x61, 0x67, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x65, + 0x72, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x74, 0x22, 0x3a, 0x20, 0x22, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, 0x6f, 0x6e, 0x74, + 0x65, 0x6e, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, + 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, + 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x22, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x72, + 0x6f, 0x5f, 0x68, 0x63, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x5f, 0x69, 0x64, 0x7d, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x3a, 0x20, 0x22, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x22, 0x3a, 0x20, + 0x5b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6e, 0x61, 0x6d, 0x65, 0x22, + 0x3a, 0x20, 0x22, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x6e, 0x22, + 0x3a, 0x20, 0x22, 0x70, 0x61, 0x74, 0x68, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x3a, 0x20, + 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x72, 0x65, 0x71, + 0x75, 0x69, 0x72, 0x65, 0x64, 0x22, 0x3a, 0x20, 0x74, 0x72, 0x75, 0x65, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x62, 0x65, 0x73, 0x74, 0x5f, + 0x65, 0x66, 0x66, 0x6f, 0x72, 0x74, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x42, 0x65, 0x73, 0x74, 0x45, 0x66, 0x66, 0x6f, 0x72, 0x74, 0x20, + 0x66, 0x6c, 0x61, 0x67, 0x20, 0x69, 0x73, 0x20, 0x75, 0x73, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, + 0x63, 0x68, 0x65, 0x63, 0x6b, 0x20, 0x69, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x20, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x68, + 0x6f, 0x75, 0x6c, 0x64, 0x20, 0x62, 0x65, 0x20, 0x62, 0x65, 0x73, 0x74, 0x2d, 0x65, 0x66, 0x66, + 0x6f, 0x72, 0x74, 0x20, 0x6d, 0x6f, 0x64, 0x65, 0x20, 0x6f, 0x72, 0x20, 0x6e, 0x6f, 0x74, 0x2e, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x69, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x62, 0x6f, 0x6f, + 0x6c, 0x65, 0x61, 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3a, + 0x20, 0x22, 0x64, 0x72, 0x79, 0x5f, 0x72, 0x75, 0x6e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x44, 0x72, 0x79, 0x20, 0x72, 0x75, 0x6e, 0x20, + 0x66, 0x6c, 0x61, 0x67, 0x20, 0x69, 0x73, 0x20, 0x75, 0x73, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, + 0x63, 0x68, 0x65, 0x63, 0x6b, 0x20, 0x69, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x70, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x63, 0x61, 0x6e, 0x20, 0x62, 0x65, 0x20, 0x63, 0x6f, + 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x2c, 0x20, 0x62, 0x75, 0x74, 0x20, 0x77, 0x6f, 0x6e, + 0x27, 0x74, 0x20, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, + 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x5d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x72, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x32, 0x30, 0x34, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x53, 0x75, 0x63, 0x63, 0x65, + 0x73, 0x73, 0x2e, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x66, + 0x61, 0x75, 0x6c, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, 0x6f, 0x6e, 0x74, 0x65, + 0x6e, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, + 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x67, 0x65, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x22, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x73, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x22, + 0x3a, 0x20, 0x5b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6e, 0x61, 0x6d, + 0x65, 0x22, 0x3a, 0x20, 0x22, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x70, 0x61, 0x74, 0x68, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x72, + 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x22, 0x3a, 0x20, 0x74, 0x72, 0x75, 0x65, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x5d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x72, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x32, 0x30, 0x30, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x53, 0x75, 0x63, 0x63, + 0x65, 0x73, 0x73, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, + 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, + 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, + 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, + 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, + 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x45, 0x72, 0x72, 0x6f, 0x72, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x61, 0x74, 0x63, 0x68, 0x22, 0x3a, 0x20, + 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, + 0x74, 0x65, 0x72, 0x73, 0x22, 0x3a, 0x20, 0x5b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x69, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x70, 0x61, 0x74, 0x68, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, + 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x22, 0x3a, 0x20, 0x74, + 0x72, 0x75, 0x65, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x6f, 0x64, 0x79, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, + 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, + 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x22, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x72, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x32, 0x30, 0x30, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x70, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, + 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x43, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, 0x6f, 0x6e, 0x74, + 0x65, 0x6e, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, + 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, + 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0xa, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x22, 0x63, 0x6f, 0x6d, 0x70, 0x6f, + 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, + 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x56, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x41, 0x57, 0x53, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x5f, 0x41, 0x6d, 0x61, 0x7a, 0x6f, 0x6e, + 0x20, 0x57, 0x65, 0x62, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x5f, 0x20, 0x73, + 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x20, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, + 0x20, 0x6f, 0x66, 0x20, 0x61, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, + 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x6b, 0x6d, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x61, 0x72, 0x6e, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x20, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, + 0x20, 0x4b, 0x65, 0x79, 0x20, 0x74, 0x6f, 0x20, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x20, + 0x45, 0x42, 0x53, 0x20, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, + 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x73, 0x74, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x6e, 0x65, 0x63, 0x65, 0x73, 0x73, 0x61, 0x72, 0x79, 0x20, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x73, 0x75, 0x70, 0x70, 0x6f, + 0x72, 0x74, 0x20, 0x72, 0x6f, 0x6c, 0x65, 0x2d, 0x62, 0x61, 0x73, 0x65, 0x64, 0x20, 0x61, 0x75, + 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x6e, 0x20, + 0x41, 0x57, 0x53, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, + 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, + 0x2f, 0x53, 0x54, 0x53, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x41, 0x57, 0x53, 0x20, + 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x6b, 0x65, 0x79, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x63, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x41, 0x57, 0x53, 0x20, 0x61, 0x63, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x61, 0x6c, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x6e, 0x63, + 0x69, 0x70, 0x61, 0x6c, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x41, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, + 0x20, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x20, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, + 0x61, 0x6c, 0x20, 0x41, 0x52, 0x4e, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x62, 0x65, 0x20, 0x61, 0x64, + 0x64, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x68, 0x6f, 0x73, 0x74, 0x65, + 0x64, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x20, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x27, + 0x73, 0x20, 0x56, 0x50, 0x43, 0x20, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x20, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x61, + 0x72, 0x72, 0x61, 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, + 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x63, 0x6f, + 0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x41, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x61, 0x6c, 0x20, 0x41, 0x57, 0x53, 0x20, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, + 0x20, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x62, 0x65, 0x20, 0x61, 0x64, + 0x64, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x20, 0x77, + 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x20, 0x28, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x29, 0x20, + 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x20, 0x70, 0x6f, 0x6f, 0x6c, 0x2e, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, + 0x65, 0x22, 0x3a, 0x20, 0x22, 0x61, 0x72, 0x72, 0x61, 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5f, 0x70, 0x6c, 0x61, 0x6e, + 0x65, 0x5f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, + 0x5f, 0x69, 0x64, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x41, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x20, + 0x41, 0x57, 0x53, 0x20, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x20, 0x47, 0x72, 0x6f, + 0x75, 0x70, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x62, 0x65, 0x20, 0x61, 0x64, 0x64, 0x65, 0x64, 0x20, + 0x74, 0x6f, 0x20, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x72, + 0x6f, 0x6c, 0x20, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x20, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, + 0x20, 0x70, 0x6f, 0x6f, 0x6c, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x61, 0x72, + 0x72, 0x61, 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, + 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x66, + 0x72, 0x61, 0x5f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x5f, 0x69, 0x64, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x41, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, + 0x20, 0x41, 0x57, 0x53, 0x20, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x20, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x62, 0x65, 0x20, 0x61, 0x64, 0x64, 0x65, 0x64, + 0x20, 0x74, 0x6f, 0x20, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x20, 0x69, 0x6e, 0x66, 0x72, + 0x61, 0x20, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x20, 0x70, 0x6f, 0x6f, 0x6c, 0x2e, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, + 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x61, 0x72, 0x72, 0x61, 0x79, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x74, 0x65, 0x6d, + 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x75, 0x64, 0x69, 0x74, + 0x5f, 0x6c, 0x6f, 0x67, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x41, 0x75, 0x64, 0x69, 0x74, 0x20, 0x6c, 0x6f, 0x67, 0x20, 0x66, + 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, + 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x73, 0x2f, 0x41, 0x75, 0x64, 0x69, 0x74, 0x4c, 0x6f, 0x67, 0x22, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x63, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, + 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x44, 0x20, 0x69, 0x73, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x20, 0x75, 0x73, 0x65, 0x64, 0x20, 0x66, 0x6f, + 0x72, 0x20, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x20, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x70, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65, + 0x64, 0x20, 0x76, 0x69, 0x61, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x70, 0x6c, 0x61, 0x63, 0x65, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x65, 0x63, 0x32, + 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x57, 0x68, 0x69, 0x63, 0x68, 0x20, 0x45, 0x63, 0x32, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x74, 0x74, 0x70, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x73, 0x20, 0x74, 0x6f, 0x20, 0x75, 0x73, 0x65, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x6d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x45, 0x43, 0x32, 0x20, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x73, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, + 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, + 0x45, 0x63, 0x32, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x74, 0x74, 0x70, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x65, + 0x74, 0x63, 0x64, 0x5f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, + 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x52, + 0x65, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x20, 0x65, 0x74, 0x63, 0x64, 0x20, 0x65, 0x6e, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, + 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, + 0x2f, 0x41, 0x77, 0x73, 0x45, 0x74, 0x63, 0x64, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x68, 0x63, 0x70, 0x5f, + 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x7a, 0x6f, + 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x44, 0x20, 0x6f, 0x66, 0x20, 0x6c, 0x6f, 0x63, 0x61, + 0x6c, 0x20, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x20, 0x68, 0x6f, 0x73, 0x74, 0x65, 0x64, + 0x20, 0x7a, 0x6f, 0x6e, 0x65, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x68, 0x79, 0x70, 0x65, 0x72, 0x73, + 0x68, 0x69, 0x66, 0x74, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x20, 0x63, 0x6f, + 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, + 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x68, 0x6f, 0x73, 0x74, + 0x65, 0x64, 0x5f, 0x7a, 0x6f, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x44, 0x20, 0x6f, 0x66, + 0x20, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x20, 0x68, 0x6f, 0x73, 0x74, 0x65, 0x64, 0x20, + 0x7a, 0x6f, 0x6e, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x7a, 0x6f, 0x6e, 0x65, + 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x61, 0x72, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x52, 0x6f, 0x6c, 0x65, 0x20, 0x41, + 0x52, 0x4e, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x20, 0x68, + 0x6f, 0x73, 0x74, 0x65, 0x64, 0x20, 0x7a, 0x6f, 0x6e, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, + 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x53, 0x65, 0x74, 0x73, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x74, 0x6f, 0x20, + 0x62, 0x65, 0x20, 0x69, 0x6e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x20, + 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x6c, 0x79, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, + 0x3a, 0x20, 0x22, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, + 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, + 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x73, 0x20, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, + 0x6c, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, + 0x66, 0x6f, 0x72, 0x20, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x20, 0x4c, 0x69, 0x6e, 0x6b, + 0x73, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, + 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x50, + 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6e, 0x6b, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x61, + 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x41, 0x57, 0x53, 0x20, 0x73, 0x65, + 0x63, 0x72, 0x65, 0x74, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x6b, 0x65, 0x79, 0x2e, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x5f, 0x69, + 0x64, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x20, 0x69, 0x64, + 0x73, 0x20, 0x74, 0x6f, 0x20, 0x62, 0x65, 0x20, 0x75, 0x73, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, + 0x6e, 0x20, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, + 0x22, 0x61, 0x72, 0x72, 0x61, 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, + 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x61, 0x67, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x61, 0x6c, 0x20, 0x6b, 0x65, 0x79, 0x73, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x73, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x74, 0x68, 0x65, 0x20, 0x69, 0x6e, 0x73, 0x74, + 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x61, 0x64, 0x64, 0x20, 0x61, + 0x73, 0x20, 0x74, 0x61, 0x67, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x6c, 0x6c, 0x20, 0x41, 0x57, + 0x53, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x20, 0x69, 0x74, 0x20, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x73, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x6f, 0x62, + 0x6a, 0x65, 0x63, 0x74, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x50, 0x72, + 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, + 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x76, 0x70, 0x63, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x72, + 0x6f, 0x6c, 0x65, 0x5f, 0x61, 0x72, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x52, 0x6f, 0x6c, 0x65, 0x20, 0x41, 0x52, 0x4e, + 0x20, 0x66, 0x6f, 0x72, 0x20, 0x56, 0x50, 0x43, 0x20, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, + 0x74, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x63, 0x72, 0x6f, 0x73, 0x73, 0x20, + 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x20, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, + 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x41, 0x57, 0x53, 0x53, 0x68, 0x61, 0x72, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x20, 0x66, + 0x6f, 0x72, 0x20, 0x41, 0x57, 0x53, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x20, 0x73, 0x68, 0x61, 0x72, 0x64, 0x73, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, + 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x65, 0x63, 0x72, + 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x75, 0x72, 0x6c, 0x73, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, + 0x22, 0x45, 0x43, 0x52, 0x20, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x20, + 0x55, 0x52, 0x4c, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x68, 0x61, 0x72, 0x64, 0x22, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, + 0x3a, 0x20, 0x22, 0x61, 0x72, 0x72, 0x61, 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x3a, 0x20, + 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x41, 0x57, 0x53, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x22, 0x3a, + 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x48, 0x6f, 0x6c, 0x64, 0x73, + 0x20, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x61, 0x6e, + 0x20, 0x41, 0x57, 0x53, 0x20, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x20, 0x76, 0x6f, 0x6c, + 0x75, 0x6d, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x6f, 0x70, 0x73, 0x22, 0x3a, + 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x56, + 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, + 0x64, 0x20, 0x49, 0x4f, 0x50, 0x53, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x69, + 0x6e, 0x74, 0x65, 0x67, 0x65, 0x72, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x3a, 0x20, 0x22, + 0x69, 0x6e, 0x74, 0x33, 0x32, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, + 0x69, 0x7a, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x22, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x20, + 0x69, 0x6e, 0x20, 0x47, 0x69, 0x62, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x69, + 0x6e, 0x74, 0x65, 0x67, 0x65, 0x72, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x3a, 0x20, 0x22, + 0x69, 0x6e, 0x74, 0x33, 0x32, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x43, 0x43, 0x53, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, + 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x6e, 0x64, + 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, 0x20, + 0x6f, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x20, + 0x57, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, 0x27, 0x43, 0x43, 0x53, 0x27, 0x20, 0x69, 0x66, + 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x6c, + 0x65, 0x74, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x6f, 0x72, 0x20, 0x27, 0x43, + 0x43, 0x53, 0x4c, 0x69, 0x6e, 0x6b, 0x27, 0x20, 0x69, 0x66, 0x20, 0x69, 0x74, 0x20, 0x69, 0x73, + 0x20, 0x6a, 0x75, 0x73, 0x74, 0x20, 0x61, 0x20, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, + 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x20, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, + 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x68, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x53, 0x65, 0x6c, 0x66, 0x20, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, + 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, + 0x63, 0x70, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x6e, 0x64, 0x69, 0x63, 0x61, + 0x74, 0x65, 0x73, 0x20, 0x69, 0x66, 0x20, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x20, 0x70, 0x65, 0x72, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x20, + 0x61, 0x72, 0x65, 0x20, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x2c, 0x5c, 0x6e, 0x77, + 0x68, 0x65, 0x6e, 0x20, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x69, + 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, + 0x3a, 0x20, 0x22, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x6e, 0x64, 0x69, + 0x63, 0x61, 0x74, 0x65, 0x73, 0x20, 0x69, 0x66, 0x20, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, + 0x72, 0x20, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x20, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x69, 0x73, 0x20, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x20, + 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, + 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x44, 0x4e, 0x53, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x44, 0x4e, 0x53, 0x20, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, + 0x67, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, + 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x22, 0x42, 0x61, 0x73, 0x65, 0x20, 0x44, 0x4e, 0x53, 0x20, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x2e, 0x5c, 0x6e, 0x5c, 0x6e, 0x44, 0x75, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, + 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x69, 0x74, + 0x20, 0x69, 0x73, 0x20, 0x6e, 0x65, 0x63, 0x65, 0x73, 0x73, 0x61, 0x72, 0x79, 0x20, 0x74, 0x6f, + 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, + 0x20, 0x44, 0x4e, 0x53, 0x20, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x2e, 0x5c, 0x6e, 0x54, + 0x68, 0x65, 0x79, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x64, 0x20, 0x61, 0x73, 0x20, 0x73, 0x75, 0x62, 0x2d, 0x64, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x64, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x2e, 0x20, 0x46, 0x6f, 0x72, 0x20, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2c, 0x20, + 0x69, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x70, 0x72, + 0x65, 0x66, 0x69, 0x78, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x5c, 0x6e, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x20, 0x69, 0x73, 0x20, 0x60, 0x6d, 0x79, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x60, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x74, 0x68, 0x65, 0x20, 0x62, 0x61, 0x73, 0x65, + 0x20, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x20, 0x69, 0x73, 0x20, 0x60, 0x65, 0x78, 0x61, 0x6d, + 0x70, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x60, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x69, 0x6e, 0x67, 0x20, 0x44, 0x4e, 0x53, 0x5c, + 0x6e, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, + 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x3a, 0x5c, 0x6e, 0x5c, 0x6e, 0x60, 0x60, 0x60, + 0x5c, 0x6e, 0x6d, 0x79, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2d, 0x61, 0x70, 0x69, 0x2e, + 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x5c, 0x6e, 0x6d, 0x79, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2d, 0x65, 0x74, 0x63, 0x64, 0x2d, 0x30, 0x2e, 0x65, 0x78, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x5c, 0x6e, 0x6d, 0x79, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x2d, 0x65, 0x74, 0x63, 0x64, 0x2d, 0x31, 0x2e, 0x65, 0x78, 0x61, 0x6d, + 0x70, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x5c, 0x6e, 0x6d, 0x79, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x2d, 0x65, 0x74, 0x63, 0x64, 0x2d, 0x33, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, + 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x5c, 0x6e, 0x60, 0x60, 0x60, 0x5c, 0x6e, 0x5c, 0x6e, 0x54, 0x68, + 0x65, 0x20, 0x65, 0x78, 0x61, 0x63, 0x74, 0x20, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x2c, 0x20, + 0x74, 0x79, 0x70, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x20, 0x6f, + 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x20, 0x44, 0x4e, + 0x53, 0x20, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x20, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x73, + 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, + 0x72, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x5c, 0x6e, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6d, 0x61, 0x79, + 0x20, 0x62, 0x65, 0x20, 0x64, 0x69, 0x66, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x74, 0x20, 0x66, 0x6f, + 0x72, 0x20, 0x64, 0x69, 0x66, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x74, 0x20, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x5f, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x68, 0x69, + 0x66, 0x74, 0x5f, 0x2e, 0x20, 0x50, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x20, 0x64, 0x6f, 0x6e, 0x27, + 0x74, 0x5c, 0x6e, 0x72, 0x65, 0x6c, 0x79, 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x6d, 0x2e, + 0x20, 0x46, 0x6f, 0x72, 0x20, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2c, 0x20, 0x74, 0x6f, + 0x20, 0x66, 0x69, 0x6e, 0x64, 0x20, 0x77, 0x68, 0x61, 0x74, 0x20, 0x69, 0x73, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x55, 0x52, 0x4c, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x4b, 0x75, 0x62, + 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x20, 0x41, 0x50, 0x49, 0x20, 0x73, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x5c, 0x6e, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x20, 0x64, 0x6f, 0x6e, 0x27, 0x74, 0x20, 0x61, 0x73, 0x73, 0x75, 0x6d, 0x65, 0x20, + 0x74, 0x68, 0x61, 0x74, 0x20, 0x69, 0x74, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, + 0x60, 0x6d, 0x79, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2d, 0x61, 0x70, 0x69, 0x2e, 0x65, + 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x60, 0x2e, 0x20, 0x49, 0x6e, 0x73, + 0x74, 0x65, 0x61, 0x64, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x75, 0x73, 0x65, + 0x5c, 0x6e, 0x74, 0x68, 0x69, 0x73, 0x20, 0x41, 0x50, 0x49, 0x20, 0x74, 0x6f, 0x20, 0x72, 0x65, + 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x67, 0x65, 0x74, 0x20, 0x69, + 0x74, 0x20, 0x66, 0x72, 0x6f, 0x6d, 0x20, 0x74, 0x68, 0x65, 0x20, 0x60, 0x61, 0x70, 0x69, 0x2e, + 0x75, 0x72, 0x6c, 0x60, 0x5c, 0x6e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, + 0x20, 0x46, 0x6f, 0x72, 0x20, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2c, 0x20, 0x69, 0x66, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x20, + 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x69, + 0x73, 0x20, 0x60, 0x31, 0x32, 0x33, 0x60, 0x20, 0x73, 0x65, 0x6e, 0x64, 0x20, 0x61, 0x20, 0x72, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x20, 0x6c, 0x69, 0x6b, 0x65, 0x5c, 0x6e, 0x74, 0x68, 0x69, + 0x73, 0x3a, 0x5c, 0x6e, 0x5c, 0x6e, 0x60, 0x60, 0x60, 0x68, 0x74, 0x74, 0x70, 0x5c, 0x6e, 0x47, + 0x45, 0x54, 0x20, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, + 0x5f, 0x6d, 0x67, 0x6d, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x73, 0x2f, 0x31, 0x32, 0x33, 0x20, 0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x31, 0x5c, 0x6e, + 0x60, 0x60, 0x60, 0x5c, 0x6e, 0x5c, 0x6e, 0x54, 0x68, 0x61, 0x74, 0x20, 0x77, 0x69, 0x6c, 0x6c, + 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x61, 0x20, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x20, 0x6c, 0x69, 0x6b, 0x65, 0x20, 0x74, 0x68, 0x69, 0x73, 0x2c, 0x20, 0x69, 0x6e, + 0x63, 0x6c, 0x75, 0x64, 0x69, 0x6e, 0x67, 0x20, 0x74, 0x68, 0x65, 0x20, 0x60, 0x61, 0x70, 0x69, + 0x2e, 0x75, 0x72, 0x6c, 0x60, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x3a, + 0x5c, 0x6e, 0x5c, 0x6e, 0x60, 0x60, 0x60, 0x6a, 0x73, 0x6f, 0x6e, 0x5c, 0x6e, 0x7b, 0x5c, 0x6e, + 0x20, 0x20, 0x20, 0x20, 0x5c, 0x22, 0x6b, 0x69, 0x6e, 0x64, 0x5c, 0x22, 0x3a, 0x20, 0x5c, 0x22, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5c, 0x22, 0x2c, 0x5c, 0x6e, 0x20, 0x20, 0x20, 0x20, + 0x5c, 0x22, 0x69, 0x64, 0x5c, 0x22, 0x3a, 0x20, 0x5c, 0x22, 0x31, 0x32, 0x33, 0x5c, 0x22, 0x2c, + 0x5c, 0x6e, 0x20, 0x20, 0x20, 0x20, 0x5c, 0x22, 0x68, 0x72, 0x65, 0x66, 0x5c, 0x22, 0x3a, 0x20, + 0x5c, 0x22, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x5f, + 0x6d, 0x67, 0x6d, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, + 0x2f, 0x31, 0x32, 0x33, 0x5c, 0x22, 0x2c, 0x5c, 0x6e, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x5c, 0x22, 0x61, 0x70, 0x69, 0x5c, 0x22, 0x3a, 0x20, 0x7b, 0x5c, 0x6e, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x5c, 0x22, 0x75, 0x72, 0x6c, 0x5c, 0x22, 0x3a, 0x20, 0x5c, 0x22, + 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x6d, 0x79, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x2d, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x63, 0x6f, + 0x6d, 0x3a, 0x36, 0x34, 0x34, 0x33, 0x5c, 0x22, 0x5c, 0x6e, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, + 0x5c, 0x6e, 0x20, 0x20, 0x20, 0x20, 0x2e, 0x2e, 0x2e, 0x5c, 0x6e, 0x7d, 0x5c, 0x6e, 0x60, 0x60, + 0x60, 0x5c, 0x6e, 0x5c, 0x6e, 0x57, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x69, 0x73, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x20, 0x69, 0x6e, 0x20, 0x41, 0x6d, 0x61, 0x7a, 0x6f, 0x6e, 0x20, 0x57, 0x65, 0x62, 0x20, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x20, 0x69, 0x74, 0x20, 0x69, 0x73, 0x20, 0x6e, 0x65, + 0x63, 0x65, 0x73, 0x73, 0x61, 0x72, 0x79, 0x20, 0x74, 0x6f, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x62, 0x61, 0x73, 0x65, 0x5c, 0x6e, 0x44, 0x4e, 0x53, + 0x20, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x20, 0x69, 0x6e, 0x20, 0x61, 0x64, 0x76, 0x61, 0x6e, + 0x63, 0x65, 0x2c, 0x20, 0x75, 0x73, 0x69, 0x6e, 0x67, 0x20, 0x41, 0x57, 0x53, 0x20, 0x52, 0x6f, + 0x75, 0x74, 0x65, 0x35, 0x33, 0x20, 0x28, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x63, + 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x61, 0x77, 0x73, 0x2e, 0x61, 0x6d, 0x61, 0x7a, 0x6f, + 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x35, 0x33, 0x29, 0x2e, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, + 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x47, 0x43, 0x50, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x20, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x20, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x20, 0x73, 0x65, 0x74, 0x74, 0x69, + 0x6e, 0x67, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, + 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x75, 0x72, 0x69, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x47, 0x43, 0x50, 0x20, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x20, 0x75, 0x72, 0x69, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x75, + 0x74, 0x68, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x78, 0x35, 0x30, 0x39, + 0x5f, 0x63, 0x65, 0x72, 0x74, 0x5f, 0x75, 0x72, 0x6c, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x47, 0x43, 0x50, 0x20, 0x41, 0x75, + 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x20, 0x78, 0x35, 0x30, 0x39, 0x20, 0x63, 0x65, 0x72, 0x74, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x20, 0x75, 0x72, 0x6c, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, + 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, + 0x22, 0x47, 0x43, 0x50, 0x20, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x20, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, + 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x47, 0x63, 0x70, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, + 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x47, 0x43, 0x50, 0x20, + 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, + 0x78, 0x35, 0x30, 0x39, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x5f, 0x75, 0x72, 0x6c, 0x22, 0x3a, 0x20, + 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x47, 0x43, + 0x50, 0x20, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x20, 0x78, 0x35, 0x30, 0x39, 0x20, 0x63, 0x65, + 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x20, 0x75, 0x72, 0x6c, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, + 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x6d, 0x61, 0x69, + 0x6c, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, + 0x20, 0x22, 0x47, 0x43, 0x50, 0x20, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x20, 0x65, 0x6d, 0x61, + 0x69, 0x6c, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, + 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x47, 0x43, 0x50, 0x20, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, + 0x65, 0x20, 0x6b, 0x65, 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x47, 0x43, 0x50, 0x20, + 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x20, 0x6b, 0x65, 0x79, 0x20, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, + 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x63, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x47, 0x43, 0x50, 0x20, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, + 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x20, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, + 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, + 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x47, 0x63, 0x70, 0x50, 0x72, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x47, 0x43, 0x50, 0x20, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, + 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x22, 0x3a, + 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x47, + 0x43, 0x50, 0x20, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x20, 0x53, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x73, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, + 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, + 0x2f, 0x47, 0x63, 0x70, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x22, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x75, 0x72, 0x69, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x47, 0x43, 0x50, 0x20, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x20, 0x75, 0x72, 0x69, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, + 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x47, 0x43, 0x50, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6b, 0x65, 0x79, 0x20, 0x62, 0x65, + 0x6c, 0x6f, 0x6e, 0x67, 0x73, 0x20, 0x74, 0x6f, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, + 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x47, 0x43, + 0x50, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x22, 0x3a, + 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x47, 0x43, 0x50, 0x20, 0x45, + 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x4b, 0x65, 0x79, 0x20, 0x66, 0x6f, + 0x72, 0x20, 0x43, 0x43, 0x53, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, + 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x6b, 0x6d, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x20, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x20, 0x75, 0x73, 0x65, + 0x64, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x4b, 0x4d, 0x53, 0x20, 0x6b, 0x65, 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6b, + 0x65, 0x79, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4c, 0x6f, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x65, 0x6e, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6b, 0x65, 0x79, 0x20, 0x72, 0x69, 0x6e, 0x67, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, + 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6b, 0x65, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x4e, 0x61, 0x6d, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x65, 0x6e, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6b, 0x65, 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, + 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x6b, 0x65, 0x79, 0x5f, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4e, 0x61, 0x6d, 0x65, 0x20, + 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6b, 0x65, 0x79, 0x20, 0x72, 0x69, 0x6e, 0x67, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6b, + 0x65, 0x79, 0x20, 0x69, 0x73, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, 0x64, 0x20, 0x6f, 0x6e, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x47, 0x43, 0x50, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x47, 0x43, 0x50, + 0x20, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x20, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x76, 0x70, 0x63, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x3a, 0x20, 0x22, 0x56, 0x50, 0x43, 0x20, 0x6d, 0x61, 0x6d, 0x65, 0x20, 0x75, 0x73, 0x65, 0x64, + 0x20, 0x62, 0x79, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x76, 0x70, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x20, + 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x68, 0x6f, 0x73, 0x74, 0x20, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x20, 0x77, 0x68, 0x65, 0x72, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x64, 0x20, 0x56, 0x50, 0x43, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x2e, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f, + 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x20, 0x73, + 0x75, 0x62, 0x6e, 0x65, 0x74, 0x20, 0x75, 0x73, 0x65, 0x64, 0x20, 0x62, 0x79, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, + 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x5f, + 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x20, 0x70, + 0x6c, 0x61, 0x6e, 0x65, 0x20, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x20, 0x75, 0x73, 0x65, 0x64, + 0x20, 0x62, 0x79, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x47, 0x43, 0x50, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x48, 0x6f, 0x6c, 0x64, + 0x73, 0x20, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x61, + 0x6e, 0x20, 0x47, 0x43, 0x50, 0x20, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x20, 0x76, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x69, 0x7a, 0x65, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x20, 0x69, 0x6e, 0x20, 0x47, + 0x69, 0x62, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x69, 0x6e, 0x74, 0x65, 0x67, + 0x65, 0x72, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x3a, 0x20, 0x22, 0x69, 0x6e, 0x74, 0x33, + 0x32, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x48, 0x54, 0x50, 0x61, 0x73, 0x73, 0x77, + 0x64, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x44, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x73, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x60, 0x68, 0x74, 0x70, 0x61, 0x73, + 0x73, 0x77, 0x64, 0x60, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x20, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, + 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x20, + 0x74, 0x6f, 0x20, 0x62, 0x65, 0x20, 0x75, 0x73, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x5f, 0x48, 0x54, 0x50, 0x61, 0x73, 0x73, 0x77, 0x64, 0x5f, 0x20, 0x64, 0x61, 0x74, + 0x61, 0x20, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x75, + 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, + 0x20, 0x74, 0x6f, 0x20, 0x62, 0x65, 0x20, 0x75, 0x73, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x5f, 0x48, 0x54, 0x50, 0x61, 0x73, 0x73, 0x77, 0x64, 0x5f, 0x20, 0x64, 0x61, + 0x74, 0x61, 0x20, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, + 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x75, 0x73, 0x65, 0x72, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4c, 0x69, 0x6e, 0x6b, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, + 0x5f, 0x48, 0x54, 0x50, 0x61, 0x73, 0x73, 0x77, 0x64, 0x5f, 0x20, 0x75, 0x73, 0x65, 0x72, 0x73, + 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x61, 0x72, 0x72, 0x61, 0x79, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x74, + 0x65, 0x6d, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, + 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x73, 0x2f, 0x48, 0x54, 0x50, 0x61, 0x73, 0x73, 0x77, 0x64, 0x55, 0x73, 0x65, 0x72, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x53, 0x54, 0x53, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x6e, 0x65, 0x63, 0x65, 0x73, 0x73, 0x61, 0x72, 0x79, 0x20, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x73, 0x75, 0x70, 0x70, 0x6f, + 0x72, 0x74, 0x20, 0x72, 0x6f, 0x6c, 0x65, 0x2d, 0x62, 0x61, 0x73, 0x65, 0x64, 0x20, 0x61, 0x75, + 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x6e, 0x20, + 0x41, 0x57, 0x53, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6f, 0x69, 0x64, 0x63, 0x5f, 0x65, + 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x75, 0x72, 0x6c, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x55, 0x52, 0x4c, 0x20, + 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, + 0x77, 0x68, 0x65, 0x72, 0x65, 0x20, 0x4f, 0x49, 0x44, 0x43, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6b, 0x65, 0x79, + 0x73, 0x20, 0x61, 0x72, 0x65, 0x20, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, + 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x6d, 0x6f, 0x64, 0x65, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, + 0x22, 0x41, 0x75, 0x74, 0x6f, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, + 0x6f, 0x64, 0x65, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, + 0x2d, 0x20, 0x4f, 0x43, 0x4d, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x20, 0x72, + 0x6f, 0x6c, 0x65, 0x73, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x4f, 0x49, 0x44, 0x43, 0x20, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x20, 0x62, 0x79, + 0x20, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, + 0x22, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x66, 0x20, 0x53, 0x54, 0x53, + 0x20, 0x69, 0x73, 0x20, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x20, 0x6f, 0x72, 0x20, 0x64, + 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x62, + 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x61, 0x6c, 0x20, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x20, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x61, 0x73, 0x73, 0x75, + 0x6d, 0x69, 0x6e, 0x67, 0x20, 0x72, 0x6f, 0x6c, 0x65, 0x20, 0x69, 0x6e, 0x20, 0x61, 0x6e, 0x6f, + 0x74, 0x68, 0x65, 0x72, 0x20, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, + 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x61, 0x6d, + 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x20, + 0x49, 0x41, 0x4d, 0x20, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x75, 0x73, 0x65, + 0x20, 0x66, 0x6f, 0x72, 0x20, 0x74, 0x68, 0x65, 0x20, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x20, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x77, 0x6f, 0x72, + 0x6b, 0x65, 0x72, 0x20, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, + 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, + 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x49, 0x41, 0x4d, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x5f, 0x70, 0x6f, 0x6c, 0x69, + 0x63, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x66, 0x20, 0x74, 0x72, 0x75, 0x65, 0x2c, 0x20, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x20, 0x61, 0x6e, + 0x64, 0x20, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x20, 0x72, 0x6f, 0x6c, 0x65, 0x73, + 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x20, 0x70, 0x6f, + 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x20, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x2e, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6f, 0x69, 0x64, 0x63, 0x5f, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x20, + 0x4f, 0x69, 0x64, 0x63, 0x20, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2c, 0x20, 0x69, 0x66, 0x20, + 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x20, 0x68, 0x6f, 0x6c, 0x64, 0x73, 0x20, + 0x69, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x72, 0x65, 0x6c, 0x61, + 0x74, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x69, 0x64, 0x63, 0x20, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, + 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x73, 0x2f, 0x4f, 0x69, 0x64, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, + 0x5f, 0x69, 0x61, 0x6d, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4c, 0x69, 0x73, 0x74, 0x20, + 0x6f, 0x66, 0x20, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x20, 0x6e, 0x65, 0x63, 0x65, 0x73, 0x73, 0x61, + 0x72, 0x79, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x41, 0x57, 0x53, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x20, 0x6f, + 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x76, 0x61, 0x72, 0x69, 0x6f, 0x75, 0x73, 0x20, 0x6f, 0x70, + 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x20, 0x75, 0x73, 0x65, 0x64, 0x20, 0x64, 0x75, 0x72, + 0x69, 0x6e, 0x67, 0x20, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x61, 0x72, 0x72, 0x61, 0x79, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x74, 0x65, + 0x6d, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, + 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x73, 0x2f, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x41, 0x4d, 0x52, 0x6f, + 0x6c, 0x65, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x6f, 0x72, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x22, 0x3a, + 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x20, 0x66, 0x6f, 0x72, + 0x20, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x20, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x2e, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x5f, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x61, 0x6c, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x64, 0x20, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x62, 0x6f, + 0x75, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x72, + 0x6f, 0x6c, 0x65, 0x5f, 0x61, 0x72, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x41, 0x52, 0x4e, 0x20, 0x6f, 0x66, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x41, 0x57, 0x53, 0x20, 0x72, 0x6f, 0x6c, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x61, + 0x73, 0x73, 0x75, 0x6d, 0x65, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x69, 0x6e, 0x73, 0x74, 0x61, + 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, + 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x61, 0x72, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x41, 0x52, 0x4e, 0x20, 0x6f, 0x66, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x41, 0x57, 0x53, 0x20, 0x72, 0x6f, 0x6c, 0x65, 0x20, 0x75, 0x73, + 0x65, 0x64, 0x20, 0x62, 0x79, 0x20, 0x53, 0x52, 0x45, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x20, 0x41, 0x57, 0x53, 0x20, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x20, 0x69, 0x6e, 0x20, + 0x6f, 0x72, 0x64, 0x65, 0x72, 0x20, 0x74, 0x6f, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x20, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, + 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x41, 0x75, + 0x64, 0x69, 0x74, 0x4c, 0x6f, 0x67, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x3a, 0x20, 0x22, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x6e, 0x65, 0x63, 0x65, 0x73, 0x73, 0x61, 0x72, 0x79, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x20, + 0x61, 0x75, 0x64, 0x69, 0x74, 0x20, 0x6c, 0x6f, 0x67, 0x20, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, + 0x64, 0x69, 0x6e, 0x67, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x61, + 0x72, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x3a, 0x20, 0x22, 0x41, 0x52, 0x4e, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x43, 0x6c, + 0x6f, 0x75, 0x64, 0x57, 0x61, 0x74, 0x63, 0x68, 0x20, 0x61, 0x75, 0x64, 0x69, 0x74, 0x20, 0x6c, + 0x6f, 0x67, 0x20, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x20, 0x72, 0x6f, + 0x6c, 0x65, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x41, 0x77, 0x73, 0x45, 0x74, 0x63, 0x64, 0x45, + 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x6e, 0x65, 0x63, 0x65, 0x73, 0x73, 0x61, 0x72, 0x79, 0x20, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x73, 0x75, 0x70, 0x70, 0x6f, + 0x72, 0x74, 0x20, 0x65, 0x74, 0x63, 0x64, 0x20, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x41, 0x57, 0x53, 0x20, 0x62, 0x61, 0x73, 0x65, 0x64, + 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x6b, 0x6d, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x61, 0x72, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x41, 0x52, 0x4e, 0x20, + 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x4b, 0x4d, 0x53, 0x20, 0x74, 0x6f, 0x20, 0x62, 0x65, + 0x20, 0x75, 0x73, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x74, 0x68, 0x65, 0x20, 0x65, 0x74, + 0x63, 0x64, 0x20, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, + 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x6f, 0x66, 0x74, 0x20, 0x41, + 0x7a, 0x75, 0x72, 0x65, 0x20, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x20, 0x6f, 0x66, + 0x20, 0x61, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, + 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, + 0x20, 0x64, 0x65, 0x73, 0x69, 0x72, 0x65, 0x64, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x6f, 0x66, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x20, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x20, 0x77, 0x68, 0x65, 0x72, 0x65, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x20, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x5c, 0x6e, 0x74, 0x6f, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x61, 0x72, 0x65, 0x20, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x2e, 0x20, 0x49, 0x74, 0x20, 0x6d, 0x75, 0x73, 0x74, + 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x6c, 0x79, 0x20, + 0x65, 0x78, 0x69, 0x73, 0x74, 0x2e, 0x20, 0x54, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, + 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5c, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x20, 0x69, 0x73, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x67, 0x69, 0x76, 0x65, 0x6e, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x2c, 0x20, 0x77, 0x69, 0x74, 0x68, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, + 0x72, 0x65, 0x20, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5c, + 0x6e, 0x60, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, + 0x64, 0x60, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x2e, 0x5c, 0x6e, 0x60, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x60, 0x20, 0x63, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x20, 0x62, 0x65, 0x20, 0x65, 0x71, 0x75, 0x61, + 0x6c, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x6f, + 0x66, 0x20, 0x60, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x60, 0x2e, 0x5c, 0x6e, 0x60, 0x6d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x60, 0x20, 0x69, 0x73, 0x20, 0x6c, 0x6f, + 0x63, 0x61, 0x74, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x61, 0x6d, + 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x20, 0x61, 0x73, 0x20, 0x74, 0x68, 0x65, 0x5c, 0x6e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x27, 0x73, 0x20, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x5c, 0x6e, 0x4e, 0x6f, 0x74, 0x20, + 0x74, 0x6f, 0x20, 0x62, 0x65, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x75, 0x73, 0x65, 0x64, 0x20, 0x77, + 0x69, 0x74, 0x68, 0x20, 0x60, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x60, 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, + 0x20, 0x69, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x20, 0x4e, 0x61, 0x6d, + 0x65, 0x5c, 0x6e, 0x77, 0x68, 0x65, 0x72, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x77, 0x6e, + 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, + 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x72, 0x65, 0x73, 0x69, 0x64, 0x65, + 0x73, 0x2e, 0x5c, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x20, 0x64, 0x75, 0x72, + 0x69, 0x6e, 0x67, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x5c, 0x6e, 0x49, + 0x6d, 0x6d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, + 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, + 0x79, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x49, 0x44, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x20, 0x70, + 0x72, 0x65, 0x2d, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x41, 0x7a, 0x75, 0x72, + 0x65, 0x20, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x20, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, + 0x74, 0x79, 0x20, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x5c, 0x6e, 0x54, 0x68, 0x65, 0x20, 0x4e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x20, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x20, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, + 0x69, 0x6e, 0x20, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x73, 0x65, 0x63, 0x75, 0x72, + 0x69, 0x74, 0x79, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x69, 0x64, 0x5c, 0x6e, 0x6d, 0x75, 0x73, 0x74, 0x20, 0x61, 0x6c, 0x72, 0x65, + 0x61, 0x64, 0x79, 0x20, 0x62, 0x65, 0x20, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, + 0x64, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x53, + 0x75, 0x62, 0x6e, 0x65, 0x74, 0x20, 0x60, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x5f, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x60, 0x2e, 0x5c, 0x6e, 0x49, 0x74, 0x20, + 0x69, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x4e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x20, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x20, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x20, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x20, 0x74, + 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x27, 0x73, 0x20, + 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x5c, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, + 0x64, 0x20, 0x69, 0x6e, 0x20, 0x60, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x60, 0x2e, 0x5c, 0x6e, 0x60, 0x6e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x60, + 0x20, 0x6d, 0x75, 0x73, 0x74, 0x20, 0x62, 0x65, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, 0x64, + 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x61, 0x6d, 0x65, 0x20, 0x41, 0x7a, 0x75, + 0x72, 0x65, 0x5c, 0x6e, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x61, 0x73, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x27, 0x73, 0x20, 0x72, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x5c, 0x6e, 0x54, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, + 0x20, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x70, + 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x61, 0x73, 0x20, 0x70, 0x61, 0x72, 0x74, 0x20, + 0x6f, 0x66, 0x5c, 0x6e, 0x60, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x73, 0x65, 0x63, + 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x60, 0x20, 0x6d, 0x75, 0x73, 0x74, 0x20, 0x62, 0x65, + 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x73, 0x61, 0x6d, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x5c, 0x6e, 0x53, 0x75, 0x62, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x61, 0x73, 0x20, 0x60, 0x73, 0x75, 0x62, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x60, 0x2e, 0x5c, 0x6e, + 0x54, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x20, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x20, 0x4e, 0x61, 0x6d, 0x65, 0x20, 0x73, 0x70, + 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x61, 0x73, 0x20, 0x70, 0x61, 0x72, 0x74, 0x20, + 0x6f, 0x66, 0x20, 0x60, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x73, 0x65, 0x63, 0x75, + 0x72, 0x69, 0x74, 0x79, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x60, 0x5c, 0x6e, 0x6d, 0x75, 0x73, 0x74, 0x20, 0x62, 0x65, + 0x6c, 0x6f, 0x6e, 0x67, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, + 0x65, 0x20, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x60, + 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x60, + 0x2c, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x61, 0x6d, + 0x65, 0x5c, 0x6e, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x20, 0x61, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x27, 0x73, 0x20, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x5c, 0x6e, 0x54, 0x68, 0x65, 0x20, + 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x20, 0x4e, 0x61, 0x6d, 0x65, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, + 0x69, 0x65, 0x64, 0x20, 0x61, 0x73, 0x20, 0x70, 0x61, 0x72, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x60, + 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, + 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, + 0x69, 0x64, 0x60, 0x5c, 0x6e, 0x6d, 0x75, 0x73, 0x74, 0x20, 0x62, 0x65, 0x20, 0x61, 0x20, 0x64, + 0x69, 0x66, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x74, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x20, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x20, 0x4e, 0x61, 0x6d, 0x65, 0x20, 0x74, 0x68, 0x61, + 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x6e, 0x65, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, + 0x69, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x5c, 0x6e, 0x60, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, + 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x60, 0x2e, 0x5c, 0x6e, 0x54, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, + 0x65, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x20, 0x4e, 0x61, 0x6d, 0x65, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, + 0x61, 0x73, 0x20, 0x70, 0x61, 0x72, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x60, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x5f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x60, 0x5c, + 0x6e, 0x63, 0x61, 0x6e, 0x20, 0x62, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x61, 0x6d, 0x65, + 0x2c, 0x20, 0x6f, 0x72, 0x20, 0x61, 0x20, 0x64, 0x69, 0x66, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x74, + 0x20, 0x6f, 0x6e, 0x65, 0x20, 0x74, 0x68, 0x61, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x6e, + 0x65, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x5c, 0x6e, + 0x60, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x60, 0x2e, 0x5c, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, + 0x20, 0x64, 0x75, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x5c, 0x6e, 0x49, 0x6d, 0x6d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, + 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x5f, 0x6f, 0x75, 0x74, 0x62, 0x6f, + 0x75, 0x6e, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, + 0x22, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x43, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x20, 0x64, 0x65, 0x66, 0x69, 0x6e, + 0x65, 0x73, 0x20, 0x68, 0x6f, 0x77, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x20, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5c, 0x6e, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x27, 0x73, 0x20, 0x4e, 0x6f, 0x64, 0x65, + 0x20, 0x50, 0x6f, 0x6f, 0x6c, 0x27, 0x73, 0x20, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x20, 0x69, 0x73, + 0x20, 0x70, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x65, 0x64, 0x2e, 0x5c, 0x6e, 0x42, 0x79, 0x20, + 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x64, 0x20, 0x61, 0x73, 0x20, 0x41, 0x7a, + 0x75, 0x72, 0x65, 0x20, 0x4c, 0x6f, 0x61, 0x64, 0x20, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, + 0x72, 0x2e, 0x20, 0x54, 0x68, 0x69, 0x73, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x69, 0x73, + 0x20, 0x69, 0x6d, 0x6d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, + 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, + 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x4e, 0x6f, 0x64, + 0x65, 0x73, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, + 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, + 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x73, + 0x20, 0x68, 0x6f, 0x77, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, + 0x72, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x20, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x20, 0x74, + 0x6f, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x2e, 0x5c, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, + 0x65, 0x64, 0x20, 0x64, 0x75, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x5c, 0x6e, 0x49, 0x6d, 0x6d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, + 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, + 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x41, 0x7a, 0x75, 0x72, + 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, + 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x20, 0x4e, + 0x61, 0x6d, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x2e, 0x20, 0x49, 0x74, 0x20, 0x6d, 0x75, 0x73, 0x74, 0x20, 0x62, 0x65, 0x20, 0x61, + 0x20, 0x70, 0x72, 0x65, 0x2d, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x5c, 0x6e, 0x41, + 0x7a, 0x75, 0x72, 0x65, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x69, 0x74, 0x20, 0x6d, 0x75, 0x73, 0x74, 0x20, + 0x65, 0x78, 0x69, 0x73, 0x74, 0x20, 0x77, 0x69, 0x74, 0x68, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x5c, 0x6e, 0x60, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x60, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x5c, 0x6e, 0x60, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x60, 0x20, 0x69, 0x73, + 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x73, 0x61, 0x6d, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x20, 0x61, 0x73, 0x20, 0x74, 0x68, 0x65, 0x5c, 0x6e, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x27, 0x73, 0x20, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x5c, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x20, 0x64, 0x75, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x5c, 0x6e, 0x49, 0x6d, 0x6d, 0x75, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, 0x41, 0x7a, + 0x75, 0x72, 0x65, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x4e, 0x61, 0x6d, + 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x2e, 0x20, 0x49, 0x74, 0x20, 0x6d, 0x75, 0x73, 0x74, 0x20, 0x62, 0x65, 0x20, 0x77, 0x69, 0x74, + 0x68, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x5c, 0x6e, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x20, 0x4e, 0x61, + 0x6d, 0x65, 0x20, 0x60, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x60, 0x2e, 0x5c, 0x6e, 0x60, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x60, 0x20, 0x69, 0x73, 0x20, 0x6c, 0x6f, + 0x63, 0x61, 0x74, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x61, 0x6d, + 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x20, 0x61, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x27, + 0x73, 0x20, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x5c, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x69, + 0x72, 0x65, 0x64, 0x20, 0x64, 0x75, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x5c, 0x6e, 0x49, 0x6d, 0x6d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x5f, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, 0x41, + 0x7a, 0x75, 0x72, 0x65, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x49, 0x44, + 0x20, 0x6f, 0x66, 0x20, 0x61, 0x20, 0x70, 0x72, 0x65, 0x2d, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, + 0x6e, 0x67, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x2e, + 0x20, 0x49, 0x74, 0x20, 0x69, 0x73, 0x20, 0x61, 0x6e, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x5c, + 0x6e, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x20, 0x75, 0x73, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x44, 0x61, 0x74, 0x61, 0x20, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x20, + 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x20, + 0x60, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x69, 0x64, 0x60, 0x5c, 0x6e, 0x6d, 0x75, 0x73, 0x74, 0x20, 0x62, 0x65, 0x20, 0x6c, 0x6f, + 0x63, 0x61, 0x74, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x61, 0x6d, + 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x20, 0x61, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x27, + 0x73, 0x20, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x5c, 0x6e, 0x54, 0x68, 0x65, 0x20, 0x41, + 0x7a, 0x75, 0x72, 0x65, 0x20, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x61, 0x73, 0x20, 0x70, + 0x61, 0x72, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x60, 0x73, 0x75, 0x62, 0x6e, + 0x65, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x60, 0x5c, + 0x6e, 0x6d, 0x75, 0x73, 0x74, 0x20, 0x62, 0x65, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, 0x64, + 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x61, 0x6d, 0x65, 0x20, 0x41, 0x7a, 0x75, + 0x72, 0x65, 0x20, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, + 0x61, 0x73, 0x20, 0x60, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x69, 0x64, 0x60, 0x2e, 0x5c, 0x6e, 0x54, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, + 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x20, + 0x4e, 0x61, 0x6d, 0x65, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x61, + 0x73, 0x20, 0x70, 0x61, 0x72, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x60, 0x73, 0x75, 0x62, 0x6e, 0x65, + 0x74, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x60, 0x5c, 0x6e, + 0x6d, 0x75, 0x73, 0x74, 0x20, 0x62, 0x65, 0x6c, 0x6f, 0x6e, 0x67, 0x20, 0x74, 0x6f, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x60, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x60, 0x2c, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x69, 0x6e, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x73, 0x61, 0x6d, 0x65, 0x5c, 0x6e, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, + 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x61, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x27, 0x73, 0x20, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x2e, 0x5c, 0x6e, 0x54, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x20, 0x4e, 0x61, 0x6d, 0x65, + 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x61, 0x73, 0x20, 0x70, 0x61, + 0x72, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x60, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x5f, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x60, 0x5c, 0x6e, 0x6d, 0x75, 0x73, 0x74, + 0x20, 0x62, 0x65, 0x20, 0x61, 0x20, 0x64, 0x69, 0x66, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x74, 0x20, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x20, 0x4e, + 0x61, 0x6d, 0x65, 0x20, 0x74, 0x68, 0x61, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x6e, 0x65, + 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x5c, 0x6e, 0x60, + 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x60, 0x2e, 0x5c, 0x6e, 0x54, + 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x20, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x20, 0x4e, 0x61, 0x6d, 0x65, 0x20, 0x73, 0x70, 0x65, + 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x61, 0x73, 0x20, 0x70, 0x61, 0x72, 0x74, 0x20, 0x6f, + 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x60, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x5f, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x60, 0x5c, 0x6e, 0x63, 0x61, 0x6e, 0x20, + 0x62, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x61, 0x6d, 0x65, 0x2c, 0x20, 0x6f, 0x72, 0x20, + 0x61, 0x20, 0x64, 0x69, 0x66, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x74, 0x20, 0x6f, 0x6e, 0x65, 0x20, + 0x74, 0x68, 0x61, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x6e, 0x65, 0x20, 0x73, 0x70, 0x65, + 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x5c, 0x6e, 0x60, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x60, + 0x2e, 0x5c, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x20, 0x64, 0x75, 0x72, 0x69, + 0x6e, 0x67, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x5c, 0x6e, 0x49, 0x6d, + 0x6d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, + 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x54, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x49, 0x44, 0x20, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, + 0x61, 0x74, 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x20, 0x49, 0x74, 0x20, 0x6d, 0x75, 0x73, 0x74, 0x20, 0x62, + 0x65, 0x6c, 0x6f, 0x6e, 0x67, 0x20, 0x74, 0x6f, 0x5c, 0x6e, 0x74, 0x68, 0x65, 0x20, 0x4d, 0x69, + 0x63, 0x72, 0x6f, 0x73, 0x6f, 0x66, 0x74, 0x20, 0x45, 0x6e, 0x74, 0x72, 0x61, 0x20, 0x54, 0x65, + 0x6e, 0x61, 0x6e, 0x74, 0x20, 0x49, 0x44, 0x20, 0x60, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x5f, + 0x69, 0x64, 0x60, 0x2e, 0x5c, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x20, 0x64, + 0x75, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x5c, + 0x6e, 0x49, 0x6d, 0x6d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, + 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, + 0x20, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x6f, 0x66, 0x74, 0x20, 0x45, 0x6e, 0x74, 0x72, 0x61, + 0x20, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x20, 0x49, 0x44, 0x20, 0x77, 0x68, 0x65, 0x72, 0x65, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x62, 0x65, 0x6c, + 0x6f, 0x6e, 0x67, 0x73, 0x2e, 0x5c, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x20, + 0x64, 0x75, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x5c, 0x6e, 0x49, 0x6d, 0x6d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, + 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x6c, + 0x61, 0x6e, 0x65, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x52, + 0x65, 0x70, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x69, 0x6e, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, + 0x61, 0x74, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x6e, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, + 0x20, 0x55, 0x73, 0x65, 0x72, 0x2d, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5c, 0x6e, + 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x20, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, + 0x20, 0x62, 0x65, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x6e, 0x67, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x20, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x20, + 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, + 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x22, 0x3a, + 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, + 0x68, 0x65, 0x20, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x20, 0x49, 0x44, 0x20, 0x61, 0x73, 0x73, + 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x41, + 0x7a, 0x75, 0x72, 0x65, 0x20, 0x55, 0x73, 0x65, 0x72, 0x2d, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, + 0x65, 0x64, 0x20, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x20, 0x49, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x2e, 0x5c, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x6f, 0x6e, 0x6c, 0x79, 0x2e, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, + 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, + 0x5f, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, 0x50, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, + 0x6c, 0x20, 0x49, 0x44, 0x20, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x20, + 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x55, 0x73, 0x65, + 0x72, 0x2d, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x20, 0x49, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x2e, 0x5c, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x6f, 0x6e, 0x6c, 0x79, 0x2e, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, + 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, + 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x49, 0x44, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x55, 0x73, 0x65, 0x72, 0x2d, 0x41, 0x73, 0x73, 0x69, 0x67, + 0x6e, 0x65, 0x64, 0x20, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x5c, 0x6e, 0x49, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x20, 0x54, 0x68, 0x65, 0x20, 0x6d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x64, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x20, 0x72, 0x65, 0x70, 0x72, + 0x65, 0x73, 0x65, 0x6e, 0x74, 0x65, 0x64, 0x20, 0x6d, 0x75, 0x73, 0x74, 0x20, 0x65, 0x78, 0x69, + 0x73, 0x74, 0x20, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x5c, 0x6e, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x69, 0x6e, 0x67, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, + 0x5c, 0x6e, 0x54, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x20, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x20, 0x4e, 0x61, 0x6d, 0x65, 0x20, + 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x61, 0x73, 0x20, 0x70, 0x61, 0x72, + 0x74, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x20, 0x49, 0x44, 0x5c, 0x6e, 0x6d, 0x75, 0x73, 0x74, 0x20, 0x62, 0x65, 0x6c, 0x6f, 0x6e, + 0x67, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x53, + 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x70, 0x65, 0x63, + 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x60, 0x2e, 0x61, 0x7a, 0x75, 0x72, 0x65, + 0x2e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, + 0x60, 0x2c, 0x5c, 0x6e, 0x61, 0x6e, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, + 0x61, 0x6d, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x20, 0x61, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x27, 0x73, 0x20, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x5c, 0x6e, 0x54, 0x68, 0x65, + 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x20, 0x4e, 0x61, 0x6d, 0x65, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, + 0x66, 0x69, 0x65, 0x64, 0x20, 0x61, 0x73, 0x20, 0x70, 0x61, 0x72, 0x74, 0x20, 0x6f, 0x66, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x49, 0x44, 0x5c, + 0x6e, 0x6d, 0x75, 0x73, 0x74, 0x20, 0x62, 0x65, 0x20, 0x61, 0x20, 0x64, 0x69, 0x66, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x74, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x20, 0x4e, 0x61, 0x6d, 0x65, 0x20, 0x74, 0x68, 0x61, 0x6e, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x6f, 0x6e, 0x65, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, + 0x69, 0x6e, 0x5c, 0x6e, 0x60, 0x2e, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x2e, 0x6d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x60, 0x2e, 0x5c, 0x6e, 0x54, 0x68, 0x65, 0x20, 0x41, + 0x7a, 0x75, 0x72, 0x65, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x20, 0x4e, 0x61, 0x6d, 0x65, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, + 0x65, 0x64, 0x20, 0x61, 0x73, 0x20, 0x70, 0x61, 0x72, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x49, 0x44, 0x5c, 0x6e, 0x63, + 0x61, 0x6e, 0x20, 0x62, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x61, 0x6d, 0x65, 0x2c, 0x20, + 0x6f, 0x72, 0x20, 0x61, 0x20, 0x64, 0x69, 0x66, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x74, 0x20, 0x6f, + 0x6e, 0x65, 0x20, 0x74, 0x68, 0x61, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x6e, 0x65, 0x20, + 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x5c, 0x6e, 0x60, 0x2e, + 0x61, 0x7a, 0x75, 0x72, 0x65, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x60, 0x2e, 0x5c, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x69, 0x72, 0x65, 0x64, 0x20, 0x64, 0x75, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x5c, 0x6e, 0x49, 0x6d, 0x6d, 0x75, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x44, 0x61, 0x74, + 0x61, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x49, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, + 0x20, 0x22, 0x52, 0x65, 0x70, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x73, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x69, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x61, 0x73, 0x73, + 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x6e, 0x20, 0x41, 0x7a, + 0x75, 0x72, 0x65, 0x20, 0x55, 0x73, 0x65, 0x72, 0x2d, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, + 0x64, 0x5c, 0x6e, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x20, 0x49, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x20, 0x62, 0x65, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x6e, 0x67, 0x20, 0x74, 0x6f, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x44, 0x61, 0x74, 0x61, 0x20, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x20, + 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, + 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, + 0x22, 0x54, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x20, 0x49, 0x44, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x41, 0x7a, + 0x75, 0x72, 0x65, 0x20, 0x55, 0x73, 0x65, 0x72, 0x2d, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, + 0x64, 0x20, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x5c, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x2e, 0x20, 0x54, 0x68, 0x65, 0x20, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, + 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x20, 0x72, 0x65, 0x70, 0x72, 0x65, 0x73, + 0x65, 0x6e, 0x74, 0x65, 0x64, 0x20, 0x6d, 0x75, 0x73, 0x74, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, + 0x20, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x5c, 0x6e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6e, + 0x67, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x5c, 0x6e, + 0x54, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x20, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x20, 0x4e, 0x61, 0x6d, 0x65, 0x20, 0x73, 0x70, + 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x61, 0x73, 0x20, 0x70, 0x61, 0x72, 0x74, 0x20, + 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, + 0x49, 0x44, 0x5c, 0x6e, 0x6d, 0x75, 0x73, 0x74, 0x20, 0x62, 0x65, 0x6c, 0x6f, 0x6e, 0x67, 0x20, + 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x53, 0x75, 0x62, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, + 0x69, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x60, 0x2e, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x2e, 0x73, + 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x60, 0x2c, + 0x5c, 0x6e, 0x61, 0x6e, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x61, 0x6d, + 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x20, 0x61, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x27, + 0x73, 0x20, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x5c, 0x6e, 0x54, 0x68, 0x65, 0x20, 0x41, + 0x7a, 0x75, 0x72, 0x65, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x20, 0x4e, 0x61, 0x6d, 0x65, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, + 0x65, 0x64, 0x20, 0x61, 0x73, 0x20, 0x70, 0x61, 0x72, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x49, 0x44, 0x5c, 0x6e, 0x6d, + 0x75, 0x73, 0x74, 0x20, 0x62, 0x65, 0x20, 0x61, 0x20, 0x64, 0x69, 0x66, 0x66, 0x65, 0x72, 0x65, + 0x6e, 0x74, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x20, 0x4e, 0x61, 0x6d, 0x65, 0x20, 0x74, 0x68, 0x61, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x6f, 0x6e, 0x65, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x69, 0x6e, + 0x5c, 0x6e, 0x60, 0x2e, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, + 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x60, 0x2e, 0x5c, 0x6e, 0x54, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, + 0x72, 0x65, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x20, 0x4e, 0x61, 0x6d, 0x65, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, + 0x20, 0x61, 0x73, 0x20, 0x70, 0x61, 0x72, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x49, 0x44, 0x5c, 0x6e, 0x63, 0x61, 0x6e, + 0x20, 0x62, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x61, 0x6d, 0x65, 0x2c, 0x20, 0x6f, 0x72, + 0x20, 0x61, 0x20, 0x64, 0x69, 0x66, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x74, 0x20, 0x6f, 0x6e, 0x65, + 0x20, 0x74, 0x68, 0x61, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x6e, 0x65, 0x20, 0x73, 0x70, + 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x5c, 0x6e, 0x60, 0x2e, 0x61, 0x7a, + 0x75, 0x72, 0x65, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x60, 0x2e, 0x5c, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x69, + 0x72, 0x65, 0x64, 0x20, 0x64, 0x75, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x5c, 0x6e, 0x49, 0x6d, 0x6d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, + 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, + 0x76, 0x69, 0x74, 0x79, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, + 0x22, 0x54, 0x68, 0x65, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6e, 0x6f, 0x64, 0x65, 0x20, 0x6f, + 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x20, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, + 0x76, 0x69, 0x74, 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, + 0x6e, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, + 0x54, 0x79, 0x70, 0x65, 0x20, 0x69, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, + 0x20, 0x6f, 0x66, 0x20, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x20, 0x6f, 0x75, 0x74, 0x62, + 0x6f, 0x75, 0x6e, 0x64, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x5c, 0x6e, 0x54, 0x68, 0x65, 0x20, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, + 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, + 0x65, 0x64, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x69, 0x73, 0x20, 0x27, 0x6c, 0x6f, 0x61, + 0x64, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x27, 0x2e, 0x5c, 0x6e, 0x54, 0x68, + 0x69, 0x73, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x69, 0x73, 0x20, 0x69, 0x6d, 0x6d, 0x75, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x41, 0x7a, 0x75, 0x72, + 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, + 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, + 0x5c, 0x6e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x74, + 0x6f, 0x20, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x20, 0x74, + 0x6f, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, + 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, + 0x22, 0x54, 0x68, 0x65, 0x20, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x5c, 0x6e, 0x74, 0x6f, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x75, 0x73, 0x69, 0x6e, + 0x67, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x55, 0x73, 0x65, 0x72, 0x2d, 0x41, 0x73, 0x73, + 0x69, 0x67, 0x6e, 0x65, 0x64, 0x20, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x20, 0x49, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x2e, 0x5c, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x69, + 0x72, 0x65, 0x64, 0x20, 0x64, 0x75, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, + 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, + 0x2f, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x41, + 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x61, 0x6e, + 0x61, 0x67, 0x65, 0x64, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x6f, 0x72, 0x73, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x52, 0x65, 0x70, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x69, + 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x72, 0x65, 0x6c, 0x61, 0x74, + 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x55, 0x73, 0x65, 0x72, + 0x2d, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x20, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, + 0x64, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x5c, 0x6e, 0x6e, 0x65, + 0x65, 0x64, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x70, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x20, + 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x20, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, + 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x62, 0x61, 0x73, 0x65, 0x64, 0x20, 0x6f, + 0x6e, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x55, 0x73, 0x65, 0x72, 0x2d, 0x41, 0x73, 0x73, + 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5c, 0x6e, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x20, 0x49, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, + 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x5f, 0x6f, 0x70, 0x65, + 0x72, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x5f, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, 0x73, 0x65, + 0x74, 0x20, 0x6f, 0x66, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x55, 0x73, 0x65, 0x72, 0x2d, + 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x20, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, + 0x20, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x20, 0x6c, 0x65, 0x76, 0x65, + 0x72, 0x61, 0x67, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x74, 0x68, 0x65, 0x5c, 0x6e, 0x43, + 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x20, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x20, 0x6f, 0x70, 0x65, + 0x72, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x20, 0x54, 0x68, 0x65, 0x20, 0x73, 0x65, 0x74, 0x20, 0x6f, + 0x66, 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x20, 0x6d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x64, 0x5c, 0x6e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x20, 0x69, + 0x73, 0x20, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x20, 0x6f, 0x6e, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x27, 0x73, 0x20, 0x4f, 0x70, 0x65, + 0x6e, 0x53, 0x68, 0x69, 0x66, 0x74, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x5c, + 0x6e, 0x49, 0x6d, 0x6d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, + 0x20, 0x22, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, + 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x41, 0x7a, 0x75, + 0x72, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x4d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x64, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x5f, + 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, + 0x64, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, + 0x20, 0x73, 0x65, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x55, 0x73, + 0x65, 0x72, 0x2d, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x20, 0x4d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x64, 0x20, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x20, 0x6c, + 0x65, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x74, 0x68, 0x65, + 0x5c, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x20, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x20, 0x6f, 0x70, 0x65, + 0x72, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x20, 0x54, 0x68, 0x65, 0x20, 0x73, 0x65, 0x74, 0x20, 0x6f, + 0x66, 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x20, 0x6d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x64, 0x5c, 0x6e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x20, 0x69, + 0x73, 0x20, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x20, 0x6f, 0x6e, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x27, 0x73, 0x20, 0x4f, 0x70, 0x65, + 0x6e, 0x53, 0x68, 0x69, 0x66, 0x74, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x5c, + 0x6e, 0x49, 0x6d, 0x6d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, + 0x3a, 0x20, 0x22, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, + 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, + 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x41, 0x7a, + 0x75, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x4d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x64, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x69, 0x65, 0x73, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x65, + 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x75, 0x72, 0x6c, 0x22, 0x3a, 0x20, + 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, + 0x65, 0x20, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x20, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x69, 0x65, 0x73, 0x20, 0x44, 0x61, 0x74, 0x61, 0x20, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x20, + 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x20, 0x55, 0x52, 0x4c, 0x20, 0x61, 0x73, 0x73, + 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x74, 0x68, 0x65, + 0x5c, 0x6e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x20, 0x49, 0x74, 0x20, 0x69, 0x73, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x55, 0x52, 0x4c, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x77, 0x69, + 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, 0x75, 0x73, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x63, 0x6f, + 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x63, 0x61, 0x74, 0x65, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x74, + 0x68, 0x65, 0x5c, 0x6e, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x20, 0x49, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x20, 0x28, 0x4d, 0x49, 0x20, 0x52, 0x50, 0x29, + 0x2e, 0x5c, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x20, 0x64, 0x75, 0x72, 0x69, + 0x6e, 0x67, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x5c, 0x6e, 0x49, 0x6d, + 0x6d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, + 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x5f, + 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, + 0x72, 0x65, 0x20, 0x55, 0x73, 0x65, 0x72, 0x2d, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, + 0x20, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x20, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x20, 0x75, 0x73, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x70, 0x65, 0x72, 0x66, 0x6f, 0x72, + 0x6d, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x6e, 0x6c, 0x65, 0x76, 0x65, 0x6c, + 0x20, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x20, 0x53, 0x70, 0x65, 0x63, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x3a, 0x5c, 0x6e, 0x2d, 0x20, 0x41, 0x64, 0x64, 0x20, 0x46, + 0x65, 0x64, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x20, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x20, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x20, 0x74, 0x6f, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x20, + 0x69, 0x6e, 0x5c, 0x6e, 0x20, 0x20, 0x60, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, 0x6c, 0x61, 0x6e, + 0x65, 0x5f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x5f, 0x6d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x60, 0x20, + 0x74, 0x68, 0x61, 0x74, 0x20, 0x62, 0x65, 0x6c, 0x6f, 0x6e, 0x67, 0x20, 0x74, 0x6f, 0x20, 0x44, + 0x61, 0x74, 0x61, 0x5c, 0x6e, 0x20, 0x20, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x20, 0x43, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x20, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x5c, 0x6e, + 0x2d, 0x20, 0x50, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x20, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x20, 0x66, 0x6f, 0x72, 0x20, 0x74, 0x68, 0x65, 0x20, 0x42, 0x59, 0x4f, 0x56, 0x4e, 0x65, 0x74, + 0x20, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x73, 0x5c, 0x6e, 0x20, 0x20, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, + 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5c, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x20, 0x64, 0x75, 0x72, 0x69, 0x6e, 0x67, + 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x5c, 0x6e, 0x49, 0x6d, 0x6d, 0x75, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, + 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x73, 0x2f, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x52, 0x65, + 0x70, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x69, 0x6e, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, + 0x74, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x6e, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, + 0x55, 0x73, 0x65, 0x72, 0x2d, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5c, 0x6e, 0x4d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x20, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x20, + 0x77, 0x68, 0x6f, 0x73, 0x65, 0x20, 0x70, 0x75, 0x72, 0x70, 0x6f, 0x73, 0x65, 0x20, 0x69, 0x73, + 0x20, 0x74, 0x6f, 0x20, 0x70, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x20, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x20, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, + 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, + 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, + 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x20, 0x49, 0x44, 0x20, + 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x55, 0x73, 0x65, 0x72, 0x2d, 0x41, 0x73, 0x73, + 0x69, 0x67, 0x6e, 0x65, 0x64, 0x20, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x20, 0x49, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x5c, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x6f, 0x6e, 0x6c, + 0x79, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, + 0x70, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, 0x50, 0x72, 0x69, 0x6e, 0x63, + 0x69, 0x70, 0x61, 0x6c, 0x20, 0x49, 0x44, 0x20, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, + 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, + 0x55, 0x73, 0x65, 0x72, 0x2d, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x20, 0x4d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x64, 0x20, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x5c, + 0x6e, 0x52, 0x65, 0x61, 0x64, 0x6f, 0x6e, 0x6c, 0x79, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, + 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x3a, 0x20, + 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, + 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x20, 0x49, 0x44, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, + 0x20, 0x55, 0x73, 0x65, 0x72, 0x2d, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x20, 0x4d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x5c, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, + 0x2e, 0x20, 0x54, 0x68, 0x65, 0x20, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x20, 0x69, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x20, 0x72, 0x65, 0x70, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, + 0x65, 0x64, 0x20, 0x6d, 0x75, 0x73, 0x74, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x20, 0x62, 0x65, + 0x66, 0x6f, 0x72, 0x65, 0x5c, 0x6e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x5c, 0x6e, 0x54, 0x68, 0x65, + 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x20, 0x4e, 0x61, 0x6d, 0x65, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, + 0x66, 0x69, 0x65, 0x64, 0x20, 0x61, 0x73, 0x20, 0x70, 0x61, 0x72, 0x74, 0x20, 0x6f, 0x66, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x49, 0x44, 0x5c, + 0x6e, 0x6d, 0x75, 0x73, 0x74, 0x20, 0x62, 0x65, 0x6c, 0x6f, 0x6e, 0x67, 0x20, 0x74, 0x6f, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, + 0x20, 0x69, 0x6e, 0x20, 0x60, 0x2e, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x2e, 0x73, 0x75, 0x62, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x60, 0x2c, 0x5c, 0x6e, 0x61, + 0x6e, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x61, 0x6d, 0x65, 0x20, 0x41, + 0x7a, 0x75, 0x72, 0x65, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x61, 0x73, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x27, 0x73, 0x20, 0x72, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x5c, 0x6e, 0x54, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, + 0x65, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x20, 0x4e, 0x61, 0x6d, 0x65, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, + 0x61, 0x73, 0x20, 0x70, 0x61, 0x72, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x49, 0x44, 0x5c, 0x6e, 0x6d, 0x75, 0x73, 0x74, + 0x20, 0x62, 0x65, 0x20, 0x61, 0x20, 0x64, 0x69, 0x66, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x74, 0x20, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x20, 0x4e, + 0x61, 0x6d, 0x65, 0x20, 0x74, 0x68, 0x61, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x6e, 0x65, + 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x5c, 0x6e, 0x60, + 0x2e, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x5f, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x60, 0x2e, 0x5c, 0x6e, 0x54, 0x68, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x20, 0x4e, + 0x61, 0x6d, 0x65, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x61, 0x73, + 0x20, 0x70, 0x61, 0x72, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x49, 0x44, 0x5c, 0x6e, 0x63, 0x61, 0x6e, 0x20, 0x62, 0x65, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x61, 0x6d, 0x65, 0x2c, 0x20, 0x6f, 0x72, 0x20, 0x61, 0x20, + 0x64, 0x69, 0x66, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x74, 0x20, 0x6f, 0x6e, 0x65, 0x20, 0x74, 0x68, + 0x61, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x6e, 0x65, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, + 0x66, 0x69, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x5c, 0x6e, 0x60, 0x2e, 0x61, 0x7a, 0x75, 0x72, 0x65, + 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x60, 0x2e, 0x5c, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, + 0x20, 0x64, 0x75, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x5c, 0x6e, 0x49, 0x6d, 0x6d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, + 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x42, 0x69, 0x6c, 0x6c, + 0x69, 0x6e, 0x67, 0x20, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, + 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x65, 0x6e, 0x75, 0x6d, 0x22, 0x3a, 0x20, 0x5b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x70, 0x6c, 0x61, 0x63, 0x65, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x2d, 0x61, + 0x77, 0x73, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x2d, 0x67, 0x63, 0x70, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x2d, 0x72, 0x68, 0x6d, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x70, 0x6c, 0x61, 0x63, 0x65, 0x2d, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x22, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, + 0x64, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5d, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x42, 0x79, 0x6f, + 0x4f, 0x69, 0x64, 0x63, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, + 0x22, 0x42, 0x79, 0x6f, 0x4f, 0x69, 0x64, 0x63, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, + 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x65, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x20, 0x66, 0x6c, 0x61, + 0x67, 0x20, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x69, 0x66, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x73, 0x68, 0x6f, 0x75, + 0x6c, 0x64, 0x20, 0x62, 0x65, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x75, + 0x73, 0x69, 0x6e, 0x67, 0x20, 0x5f, 0x42, 0x79, 0x6f, 0x4f, 0x69, 0x64, 0x63, 0x5f, 0x2e, 0x5c, + 0x6e, 0x5c, 0x6e, 0x42, 0x79, 0x20, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x20, 0x74, 0x68, + 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x60, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x60, 0x2e, 0x5c, 0x6e, + 0x5c, 0x6e, 0x54, 0x6f, 0x20, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x20, 0x69, 0x74, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x6e, 0x65, 0x65, 0x64, 0x73, + 0x20, 0x74, 0x6f, 0x20, 0x62, 0x65, 0x20, 0x52, 0x4f, 0x53, 0x41, 0x20, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x72, 0x67, 0x61, + 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x75, 0x73, 0x65, 0x72, 0x20, 0x6e, 0x65, 0x65, 0x64, 0x73, 0x5c, 0x6e, 0x74, 0x6f, 0x20, 0x68, + 0x61, 0x76, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x60, 0x62, 0x79, 0x6f, 0x2d, 0x6f, 0x69, 0x64, + 0x63, 0x60, 0x20, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x20, 0x74, 0x6f, 0x67, 0x67, 0x6c, + 0x65, 0x20, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, + 0x20, 0x22, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x3a, + 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x43, 0x6c, 0x6f, 0x75, 0x64, + 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, + 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x20, 0x57, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, + 0x27, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x27, 0x20, + 0x69, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x63, 0x6f, 0x6d, + 0x70, 0x6c, 0x65, 0x74, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x6f, 0x72, 0x20, + 0x27, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4c, 0x69, + 0x6e, 0x6b, 0x27, 0x20, 0x69, 0x66, 0x20, 0x69, 0x74, 0x20, 0x69, 0x73, 0x20, 0x6a, 0x75, 0x73, + 0x74, 0x20, 0x61, 0x20, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, + 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x22, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x66, 0x69, 0x65, 0x72, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x68, 0x72, 0x65, 0x66, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, + 0x22, 0x53, 0x65, 0x6c, 0x66, 0x20, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, + 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x4e, 0x61, 0x6d, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x64, + 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x20, 0x70, 0x75, 0x72, 0x70, 0x6f, 0x73, 0x65, 0x73, 0x2e, + 0x20, 0x49, 0x74, 0x20, 0x63, 0x61, 0x6e, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x20, + 0x61, 0x6e, 0x79, 0x20, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x73, 0x2c, 0x5c, + 0x6e, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x69, 0x6e, 0x67, 0x20, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x73, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3a, + 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x48, + 0x75, 0x6d, 0x61, 0x6e, 0x20, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x20, 0x69, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2c, 0x20, + 0x66, 0x6f, 0x72, 0x20, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x20, 0x60, 0x61, 0x77, 0x73, + 0x60, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, + 0x20, 0x22, 0x28, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x29, 0x20, 0x50, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x27, 0x73, 0x20, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x20, + 0x2d, 0x20, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x64, 0x20, + 0x77, 0x68, 0x65, 0x6e, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x60, 0x66, 0x65, 0x74, + 0x63, 0x68, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x3d, 0x74, 0x72, 0x75, 0x65, 0x60, 0x2e, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x61, 0x72, 0x72, 0x61, 0x79, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x74, 0x65, + 0x6d, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, + 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x73, 0x2f, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x44, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x20, 0x72, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x20, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x20, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, + 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6b, 0x69, + 0x6e, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x3a, 0x20, 0x22, 0x49, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x74, 0x79, 0x70, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x6f, 0x62, + 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x20, 0x57, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, 0x27, 0x43, + 0x6c, 0x6f, 0x75, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x27, 0x20, 0x69, 0x66, 0x20, 0x74, + 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, + 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x6f, 0x72, 0x20, 0x27, 0x43, 0x6c, 0x6f, + 0x75, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x6e, 0x6b, 0x27, 0x20, 0x69, 0x66, + 0x20, 0x69, 0x74, 0x20, 0x69, 0x73, 0x20, 0x6a, 0x75, 0x73, 0x74, 0x20, 0x61, 0x20, 0x6c, 0x69, + 0x6e, 0x6b, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x64, 0x22, 0x3a, 0x20, + 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x55, 0x6e, + 0x69, 0x71, 0x75, 0x65, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x20, + 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, + 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x68, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x53, 0x65, 0x6c, 0x66, 0x20, + 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, 0x63, 0x73, + 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x27, 0x74, 0x72, 0x75, 0x65, 0x27, 0x20, 0x69, 0x66, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x20, 0x69, 0x73, 0x20, 0x73, 0x75, + 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x20, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x66, 0x6f, 0x72, + 0x20, 0x43, 0x43, 0x53, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x2c, 0x20, 0x27, + 0x66, 0x61, 0x6c, 0x73, 0x65, 0x27, 0x20, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x77, 0x69, 0x73, 0x65, + 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6b, 0x6d, 0x73, 0x5f, 0x6c, 0x6f, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x28, 0x47, 0x43, 0x50, 0x20, 0x6f, + 0x6e, 0x6c, 0x79, 0x29, 0x20, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x2d, 0x73, 0x65, 0x70, 0x61, 0x72, + 0x61, 0x74, 0x65, 0x64, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x4b, 0x4d, 0x53, + 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x49, 0x44, 0x73, 0x20, 0x74, 0x68, + 0x61, 0x74, 0x20, 0x63, 0x61, 0x6e, 0x20, 0x62, 0x65, 0x20, 0x75, 0x73, 0x65, 0x64, 0x20, 0x77, + 0x69, 0x74, 0x68, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, + 0x5c, 0x6e, 0x45, 0x2e, 0x67, 0x2e, 0x20, 0x5c, 0x22, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x2c, + 0x6e, 0x61, 0x6d, 0x34, 0x2c, 0x75, 0x73, 0x5c, 0x22, 0x2e, 0x20, 0x4f, 0x72, 0x64, 0x65, 0x72, + 0x20, 0x69, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x67, 0x75, 0x61, 0x72, 0x61, 0x6e, 0x74, 0x65, + 0x65, 0x64, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6b, 0x6d, 0x73, 0x5f, 0x6c, + 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x28, 0x47, 0x43, + 0x50, 0x20, 0x6f, 0x6e, 0x6c, 0x79, 0x29, 0x20, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x2d, 0x73, 0x65, + 0x70, 0x61, 0x72, 0x61, 0x74, 0x65, 0x64, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, + 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x20, 0x63, 0x6f, + 0x72, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x20, 0x74, 0x6f, 0x20, 0x4b, + 0x4d, 0x53, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x2e, 0x5c, 0x6e, 0x45, + 0x2e, 0x67, 0x2e, 0x20, 0x5c, 0x22, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x2c, 0x6e, 0x61, 0x6d, + 0x34, 0x20, 0x28, 0x49, 0x6f, 0x77, 0x61, 0x2c, 0x20, 0x53, 0x6f, 0x75, 0x74, 0x68, 0x20, 0x43, + 0x61, 0x72, 0x6f, 0x6c, 0x69, 0x6e, 0x61, 0x2c, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x4f, 0x6b, 0x6c, + 0x61, 0x68, 0x6f, 0x6d, 0x61, 0x29, 0x2c, 0x55, 0x53, 0x5c, 0x22, 0x2e, 0x20, 0x4f, 0x72, 0x64, + 0x65, 0x72, 0x20, 0x69, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x67, 0x75, 0x61, 0x72, 0x61, 0x6e, + 0x74, 0x65, 0x65, 0x64, 0x20, 0x62, 0x75, 0x74, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x6d, 0x61, + 0x74, 0x63, 0x68, 0x20, 0x4b, 0x4d, 0x53, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, + 0x44, 0x2e, 0x5c, 0x6e, 0x55, 0x6e, 0x66, 0x6f, 0x72, 0x74, 0x75, 0x6e, 0x61, 0x74, 0x65, 0x6c, + 0x79, 0x2c, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x41, 0x50, 0x49, 0x20, 0x64, 0x6f, 0x65, 0x73, + 0x6e, 0x27, 0x74, 0x20, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x20, 0x72, 0x6f, 0x62, 0x75, 0x73, 0x74, + 0x20, 0x73, 0x70, 0x6c, 0x69, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x2d, 0x20, 0x43, 0x6f, 0x6e, + 0x74, 0x61, 0x63, 0x74, 0x20, 0x6f, 0x63, 0x6d, 0x2d, 0x66, 0x65, 0x65, 0x64, 0x62, 0x61, 0x63, + 0x6b, 0x40, 0x72, 0x65, 0x64, 0x68, 0x61, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x20, 0x69, 0x66, 0x20, + 0x79, 0x6f, 0x75, 0x20, 0x77, 0x61, 0x6e, 0x74, 0x20, 0x74, 0x6f, 0x20, 0x72, 0x65, 0x6c, 0x79, + 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x69, 0x73, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, + 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x4c, 0x69, 0x6e, 0x6b, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x20, 0x62, 0x65, 0x6c, 0x6f, 0x6e, + 0x67, 0x73, 0x20, 0x74, 0x6f, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, + 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x73, 0x2f, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, + 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4e, 0x61, 0x6d, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x64, 0x69, + 0x73, 0x70, 0x6c, 0x61, 0x79, 0x20, 0x70, 0x75, 0x72, 0x70, 0x6f, 0x73, 0x65, 0x73, 0x2c, 0x20, + 0x66, 0x6f, 0x72, 0x20, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x20, 0x60, 0x4e, 0x2e, 0x20, + 0x56, 0x69, 0x72, 0x67, 0x69, 0x6e, 0x69, 0x61, 0x60, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, + 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x57, 0x68, 0x65, 0x74, 0x68, 0x65, + 0x72, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x20, 0x69, 0x73, 0x20, + 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x64, 0x65, 0x70, 0x6c, + 0x6f, 0x79, 0x69, 0x6e, 0x67, 0x20, 0x61, 0x20, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x20, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, + 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x67, 0x6f, 0x76, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x57, 0x68, 0x65, 0x74, 0x68, 0x65, + 0x72, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x20, 0x69, 0x73, 0x20, + 0x61, 0x6e, 0x20, 0x41, 0x57, 0x53, 0x20, 0x47, 0x6f, 0x76, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x20, + 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x62, + 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x20, 0x66, 0x72, 0x69, 0x65, 0x6e, + 0x64, 0x6c, 0x79, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x20, 0x6f, + 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2c, 0x20, 0x66, 0x6f, + 0x72, 0x20, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x20, 0x60, 0x75, 0x73, 0x2d, 0x65, 0x61, + 0x73, 0x74, 0x2d, 0x31, 0x60, 0x2e, 0x5c, 0x6e, 0x5c, 0x6e, 0x4e, 0x4f, 0x54, 0x45, 0x3a, 0x20, + 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x6c, 0x79, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x61, 0x6c, + 0x6c, 0x20, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x73, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x61, 0x6c, 0x6c, 0x20, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x73, 0x20, 0x60, 0x69, 0x64, 0x60, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x60, 0x6e, 0x61, 0x6d, 0x65, + 0x60, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x65, 0x78, 0x61, 0x63, 0x74, 0x6c, 0x79, 0x5c, 0x6e, + 0x74, 0x68, 0x65, 0x20, 0x73, 0x61, 0x6d, 0x65, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2e, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x73, + 0x5f, 0x68, 0x79, 0x70, 0x65, 0x72, 0x73, 0x68, 0x69, 0x66, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x27, 0x74, 0x72, 0x75, + 0x65, 0x27, 0x20, 0x69, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x20, 0x69, 0x73, 0x20, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x20, 0x66, 0x6f, + 0x72, 0x20, 0x48, 0x79, 0x70, 0x65, 0x72, 0x73, 0x68, 0x69, 0x66, 0x74, 0x20, 0x64, 0x65, 0x70, + 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2c, 0x20, 0x27, 0x66, 0x61, 0x6c, 0x73, 0x65, + 0x27, 0x20, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x77, 0x69, 0x73, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, + 0x22, 0x3a, 0x20, 0x22, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x5f, 0x6d, 0x75, + 0x6c, 0x74, 0x69, 0x5f, 0x61, 0x7a, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x57, 0x68, 0x65, 0x74, 0x68, 0x65, 0x72, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, + 0x74, 0x73, 0x20, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x20, 0x61, 0x76, 0x61, 0x69, + 0x6c, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x20, 0x7a, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, + 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x22, 0x3a, 0x20, + 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x6e, 0x20, 0x5f, 0x4f, 0x70, 0x65, 0x6e, + 0x53, 0x68, 0x69, 0x66, 0x74, 0x5f, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x5c, + 0x6e, 0x5c, 0x6e, 0x54, 0x68, 0x65, 0x20, 0x60, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x60, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, + 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x20, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x20, 0x57, 0x68, 0x65, 0x6e, 0x20, 0x61, 0x5c, 0x6e, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x69, 0x73, 0x20, 0x72, 0x65, 0x74, 0x72, 0x69, + 0x65, 0x76, 0x65, 0x64, 0x20, 0x69, 0x74, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, + 0x61, 0x20, 0x6c, 0x69, 0x6e, 0x6b, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, + 0x6f, 0x75, 0x64, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2c, 0x20, 0x63, 0x6f, + 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x6c, 0x79, 0x5c, 0x6e, 0x74, + 0x68, 0x65, 0x20, 0x6b, 0x69, 0x6e, 0x64, 0x2c, 0x20, 0x69, 0x64, 0x20, 0x61, 0x6e, 0x64, 0x20, + 0x68, 0x72, 0x65, 0x66, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x3a, + 0x5c, 0x6e, 0x5c, 0x6e, 0x60, 0x60, 0x60, 0x6a, 0x73, 0x6f, 0x6e, 0x5c, 0x6e, 0x7b, 0x5c, 0x6e, + 0x20, 0x20, 0x5c, 0x22, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x5c, 0x22, 0x3a, 0x20, 0x7b, 0x5c, 0x6e, 0x20, 0x20, 0x20, 0x20, 0x5c, 0x22, 0x6b, + 0x69, 0x6e, 0x64, 0x5c, 0x22, 0x3a, 0x20, 0x5c, 0x22, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4c, 0x69, 0x6e, 0x6b, 0x5c, 0x22, 0x2c, 0x5c, 0x6e, 0x20, + 0x20, 0x20, 0x20, 0x5c, 0x22, 0x69, 0x64, 0x5c, 0x22, 0x3a, 0x20, 0x5c, 0x22, 0x31, 0x32, 0x33, + 0x5c, 0x22, 0x2c, 0x5c, 0x6e, 0x20, 0x20, 0x20, 0x20, 0x5c, 0x22, 0x68, 0x72, 0x65, 0x66, 0x5c, + 0x22, 0x3a, 0x20, 0x5c, 0x22, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x73, 0x5f, 0x6d, 0x67, 0x6d, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x2f, 0x31, 0x32, 0x33, 0x5c, 0x22, + 0x5c, 0x6e, 0x20, 0x20, 0x7d, 0x5c, 0x6e, 0x7d, 0x5c, 0x6e, 0x60, 0x60, 0x60, 0x5c, 0x6e, 0x5c, + 0x6e, 0x57, 0x68, 0x65, 0x6e, 0x20, 0x61, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, + 0x69, 0x73, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, + 0x69, 0x73, 0x20, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2c, 0x20, 0x61, 0x6e, 0x64, + 0x20, 0x69, 0x66, 0x20, 0x75, 0x73, 0x65, 0x64, 0x20, 0x69, 0x74, 0x20, 0x73, 0x68, 0x6f, 0x75, + 0x6c, 0x64, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x5c, 0x6e, + 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x20, 0x74, 0x6f, 0x20, 0x75, 0x73, 0x65, 0x3a, 0x5c, 0x6e, 0x5c, 0x6e, 0x60, 0x60, 0x60, 0x6a, + 0x73, 0x6f, 0x6e, 0x5c, 0x6e, 0x7b, 0x5c, 0x6e, 0x20, 0x20, 0x5c, 0x22, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5c, 0x22, 0x3a, 0x20, 0x7b, 0x5c, + 0x6e, 0x20, 0x20, 0x20, 0x20, 0x5c, 0x22, 0x69, 0x64, 0x5c, 0x22, 0x3a, 0x20, 0x5c, 0x22, 0x31, + 0x32, 0x33, 0x5c, 0x22, 0x2c, 0x5c, 0x6e, 0x20, 0x20, 0x7d, 0x5c, 0x6e, 0x7d, 0x5c, 0x6e, 0x60, + 0x60, 0x60, 0x5c, 0x6e, 0x5c, 0x6e, 0x49, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x69, 0x6e, 0x63, + 0x6c, 0x75, 0x64, 0x65, 0x64, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x20, 0x75, 0x73, 0x69, 0x6e, 0x67, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x20, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5c, + 0x6e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, + 0x20, 0x69, 0x73, 0x20, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x6c, 0x79, 0x20, 0x41, 0x6d, + 0x61, 0x7a, 0x6f, 0x6e, 0x20, 0x57, 0x65, 0x62, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x73, 0x2e, 0x5c, 0x6e, 0x5c, 0x6e, 0x54, 0x68, 0x65, 0x20, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x20, 0x69, 0x73, 0x20, 0x6d, 0x61, + 0x6e, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x61, 0x20, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x69, 0x73, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x2e, 0x5c, 0x6e, 0x5c, 0x6e, 0x54, 0x68, 0x65, 0x20, 0x60, 0x61, 0x77, 0x73, 0x2e, 0x61, + 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x60, 0x2c, 0x20, 0x60, + 0x61, 0x77, 0x73, 0x2e, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x60, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x60, 0x64, 0x6e, 0x73, 0x2e, + 0x62, 0x61, 0x73, 0x65, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x60, 0x5c, 0x6e, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x20, 0x61, 0x72, 0x65, 0x20, 0x6d, 0x61, 0x6e, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x61, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x77, + 0x69, 0x74, 0x68, 0x20, 0x79, 0x6f, 0x75, 0x72, 0x20, 0x6f, 0x77, 0x6e, 0x20, 0x41, 0x6d, 0x61, + 0x7a, 0x6f, 0x6e, 0x20, 0x57, 0x65, 0x62, 0x5c, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x73, 0x20, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, + 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x20, 0x57, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, + 0x27, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x27, 0x20, 0x69, 0x66, 0x20, 0x74, 0x68, 0x69, + 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x20, + 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x6f, 0x72, 0x20, 0x27, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x4c, 0x69, 0x6e, 0x6b, 0x27, 0x20, 0x69, 0x66, 0x20, 0x69, 0x74, 0x20, 0x69, 0x73, + 0x20, 0x6a, 0x75, 0x73, 0x74, 0x20, 0x61, 0x20, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, + 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x20, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, + 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x68, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x53, 0x65, 0x6c, 0x66, 0x20, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, + 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x70, 0x69, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x6e, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x61, 0x62, 0x6f, 0x75, 0x74, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x41, 0x50, 0x49, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, + 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, + 0x2f, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x50, 0x49, 0x22, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x77, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x41, 0x6d, 0x61, 0x7a, 0x6f, 0x6e, 0x20, + 0x57, 0x65, 0x62, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x20, 0x73, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, + 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x73, 0x2f, 0x41, 0x57, 0x53, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, + 0x77, 0x73, 0x5f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, + 0x65, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x67, 0x72, + 0x61, 0x6e, 0x74, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x41, 0x57, 0x53, + 0x20, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x20, + 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x72, 0x6f, 0x6c, 0x65, 0x20, 0x67, 0x72, 0x61, 0x6e, + 0x74, 0x73, 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x61, 0x72, 0x72, 0x61, 0x79, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, + 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x41, 0x57, 0x53, 0x49, 0x6e, 0x66, 0x72, 0x61, 0x73, 0x74, + 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x6f, 0x6c, + 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, 0x63, + 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, + 0x20, 0x22, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x20, 0x43, 0x75, + 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x20, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x20, 0x53, 0x75, 0x62, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, + 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x43, + 0x43, 0x53, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x6e, 0x73, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x44, 0x4e, 0x53, 0x20, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x20, 0x6f, 0x66, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, + 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, + 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x44, 0x4e, 0x53, 0x22, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x66, 0x69, 0x70, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x75, + 0x73, 0x65, 0x73, 0x20, 0x46, 0x49, 0x50, 0x53, 0x20, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x65, 0x64, 0x20, 0x2f, 0x20, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x20, 0x69, 0x6e, 0x20, + 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x20, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x67, 0x72, + 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x2e, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x67, 0x63, 0x70, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x47, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x20, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x20, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x20, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, + 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, + 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x47, 0x43, 0x50, 0x22, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x67, 0x63, 0x70, 0x5f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4b, 0x65, 0x79, 0x20, 0x75, 0x73, 0x65, 0x64, + 0x20, 0x66, 0x6f, 0x72, 0x20, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, + 0x6f, 0x66, 0x20, 0x47, 0x43, 0x50, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x6e, + 0x6f, 0x64, 0x65, 0x73, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, + 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x73, 0x2f, 0x47, 0x43, 0x50, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, + 0x65, 0x79, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x67, 0x63, 0x70, 0x5f, + 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x47, 0x43, 0x50, 0x20, 0x4e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, + 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, + 0x2f, 0x47, 0x43, 0x50, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x22, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, + 0x74, 0x72, 0x75, 0x73, 0x74, 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x41, 0x64, 0x64, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x20, 0x74, 0x72, 0x75, 0x73, 0x74, 0x20, 0x62, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x64, 0x64, + 0x6f, 0x6e, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x22, 0x4c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x64, 0x64, 0x2d, + 0x6f, 0x6e, 0x73, 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x61, 0x72, 0x72, 0x61, + 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, + 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x41, 0x64, 0x64, 0x4f, 0x6e, 0x49, 0x6e, 0x73, 0x74, + 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x61, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4c, 0x69, 0x6e, 0x6b, 0x20, + 0x74, 0x6f, 0x20, 0x61, 0x6e, 0x20, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x20, 0x5f, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, + 0x72, 0x5f, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x69, 0x73, 0x20, 0x63, 0x6f, 0x75, 0x70, 0x6c, + 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, + 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, + 0x2f, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, + 0x65, 0x72, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x7a, 0x75, 0x72, + 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, + 0x20, 0x22, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x6f, 0x66, 0x74, 0x20, 0x41, 0x7a, 0x75, 0x72, + 0x65, 0x20, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, + 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x22, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x6d, 0x6f, + 0x64, 0x65, 0x6c, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x22, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x20, 0x6d, 0x6f, 0x64, 0x65, + 0x6c, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, + 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, + 0x6c, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x62, 0x79, 0x6f, 0x5f, 0x6f, + 0x69, 0x64, 0x63, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x22, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x69, 0x6e, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x61, 0x62, 0x6f, 0x75, 0x74, 0x20, 0x42, + 0x59, 0x4f, 0x20, 0x4f, 0x49, 0x44, 0x43, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, + 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x42, 0x79, 0x6f, 0x4f, 0x69, 0x64, 0x63, 0x22, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4c, 0x69, 0x6e, 0x6b, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x20, + 0x77, 0x68, 0x65, 0x72, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x20, 0x69, 0x73, 0x20, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x2e, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, + 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, + 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x43, 0x6c, 0x6f, 0x75, + 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x6e, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x61, 0x62, 0x6f, 0x75, 0x74, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, + 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x73, + 0x6f, 0x6c, 0x65, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x44, 0x61, 0x74, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x20, 0x77, 0x68, + 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x77, + 0x61, 0x73, 0x20, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x2c, 0x20, 0x75, 0x73, 0x69, 0x6e, 0x67, 0x20, 0x74, 0x68, 0x65, 0x5c, + 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x20, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x20, + 0x69, 0x6e, 0x20, 0x5b, 0x52, 0x46, 0x43, 0x33, 0x33, 0x33, 0x39, 0x5d, 0x28, 0x68, 0x74, 0x74, + 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x69, 0x65, 0x74, 0x66, 0x2e, 0x6f, 0x72, + 0x67, 0x2f, 0x72, 0x66, 0x63, 0x2f, 0x72, 0x66, 0x63, 0x33, 0x33, 0x33, 0x39, 0x2e, 0x74, 0x78, + 0x74, 0x29, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x3a, 0x20, 0x22, 0x64, 0x61, 0x74, 0x65, 0x2d, + 0x74, 0x69, 0x6d, 0x65, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, + 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, + 0x75, 0x73, 0x65, 0x72, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x6d, 0x6f, + 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x73, 0x20, 0x77, 0x68, 0x65, 0x74, 0x68, 0x65, 0x72, 0x20, 0x74, 0x68, 0x65, 0x20, 0x55, + 0x73, 0x65, 0x72, 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x20, 0x6d, 0x6f, 0x6e, + 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x69, 0x73, 0x20, 0x65, 0x6e, 0x61, 0x62, 0x6c, + 0x65, 0x64, 0x20, 0x6f, 0x72, 0x20, 0x6e, 0x6f, 0x74, 0x5c, 0x6e, 0x49, 0x74, 0x20, 0x69, 0x73, + 0x20, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x20, 0x62, 0x79, 0x20, 0x64, 0x65, 0x66, 0x61, + 0x75, 0x6c, 0x74, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x62, 0x6f, 0x6f, 0x6c, 0x65, + 0x61, 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x20, 0x54, 0x68, 0x69, 0x73, 0x20, 0x70, 0x72, 0x65, 0x66, + 0x69, 0x78, 0x20, 0x69, 0x73, 0x20, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x6c, 0x79, + 0x20, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x20, 0x62, 0x79, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x5c, 0x6e, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x69, 0x73, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x2e, 0x20, 0x49, 0x74, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x61, 0x70, 0x70, 0x65, + 0x61, 0x72, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x27, 0x73, 0x20, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x69, 0x73, 0x20, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x64, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, + 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x65, 0x74, 0x63, 0x64, 0x5f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x3a, 0x20, 0x22, 0x49, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x20, 0x77, 0x68, 0x65, + 0x74, 0x68, 0x65, 0x72, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x65, 0x74, 0x63, 0x64, 0x20, 0x69, + 0x73, 0x20, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x20, 0x6f, 0x72, 0x20, 0x6e, + 0x6f, 0x74, 0x2e, 0x5c, 0x6e, 0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x73, 0x65, 0x74, + 0x20, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x64, 0x75, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, + 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x44, 0x61, 0x74, 0x65, + 0x20, 0x61, 0x6e, 0x64, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, + 0x62, 0x65, 0x20, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x6c, 0x79, + 0x20, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x2c, 0x20, 0x75, 0x73, 0x69, 0x6e, 0x67, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x20, 0x64, 0x65, 0x66, 0x69, 0x6e, + 0x65, 0x64, 0x20, 0x69, 0x6e, 0x5c, 0x6e, 0x5b, 0x52, 0x46, 0x43, 0x33, 0x33, 0x33, 0x39, 0x5d, + 0x28, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x69, 0x65, 0x74, + 0x66, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x72, 0x66, 0x63, 0x2f, 0x72, 0x66, 0x63, 0x33, 0x33, 0x33, + 0x39, 0x2e, 0x74, 0x78, 0x74, 0x29, 0x2e, 0x20, 0x49, 0x66, 0x20, 0x6e, 0x6f, 0x20, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x20, 0x69, 0x73, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x64, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x5c, 0x6e, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x6e, 0x65, 0x76, 0x65, 0x72, 0x20, 0x65, 0x78, 0x70, + 0x69, 0x72, 0x65, 0x2e, 0x5c, 0x6e, 0x5c, 0x6e, 0x54, 0x68, 0x69, 0x73, 0x20, 0x6f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x20, 0x69, 0x73, 0x20, 0x75, 0x6e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, + 0x65, 0x64, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x3a, 0x20, 0x22, 0x64, 0x61, 0x74, 0x65, 0x2d, + 0x74, 0x69, 0x6d, 0x65, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x65, 0x78, + 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, + 0x61, 0x6c, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x20, 0x6f, 0x66, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x67, 0x65, + 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x20, 0x62, 0x79, 0x20, 0x74, 0x68, 0x65, 0x20, 0x69, + 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, + 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x20, 0x61, + 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, + 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, + 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, + 0x41, 0x75, 0x74, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x45, 0x78, 0x74, 0x65, 0x72, + 0x6e, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x20, 0x73, 0x68, 0x6f, 0x77, 0x73, 0x20, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x20, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x6e, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, + 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, + 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, + 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, + 0x22, 0x4c, 0x69, 0x6e, 0x6b, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x5f, 0x66, 0x6c, + 0x61, 0x76, 0x6f, 0x75, 0x72, 0x5f, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x77, 0x61, 0x73, 0x20, + 0x75, 0x73, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, + 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, + 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x22, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x4c, 0x69, 0x6e, 0x6b, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6f, 0x6c, 0x6c, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, + 0x20, 0x6f, 0x66, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, + 0x61, 0x72, 0x72, 0x61, 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, + 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, + 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5f, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x20, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, + 0x76, 0x65, 0x72, 0x61, 0x6c, 0x6c, 0x20, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x20, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, + 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x68, 0x74, 0x70, 0x61, + 0x73, 0x73, 0x77, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x20, 0x66, 0x6f, 0x72, + 0x20, 0x60, 0x68, 0x74, 0x70, 0x61, 0x73, 0x73, 0x77, 0x64, 0x60, 0x20, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, + 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, + 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x48, 0x54, 0x50, 0x61, 0x73, + 0x73, 0x77, 0x64, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x68, 0x79, 0x70, + 0x65, 0x72, 0x73, 0x68, 0x69, 0x66, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x48, 0x79, 0x70, 0x65, 0x72, 0x73, 0x68, 0x69, + 0x66, 0x74, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, + 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x48, 0x79, + 0x70, 0x65, 0x72, 0x73, 0x68, 0x69, 0x66, 0x74, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4c, 0x69, 0x6e, 0x6b, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x61, 0x72, 0x72, 0x61, 0x79, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x74, + 0x65, 0x6d, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, + 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x73, 0x2f, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x6e, 0x66, 0x6c, + 0x69, 0x67, 0x68, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4c, 0x69, 0x73, 0x74, + 0x20, 0x6f, 0x66, 0x20, 0x69, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x20, 0x63, 0x68, 0x65, + 0x63, 0x6b, 0x73, 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x61, 0x72, 0x72, 0x61, + 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, + 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x43, + 0x68, 0x65, 0x63, 0x6b, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x6e, 0x66, 0x72, + 0x61, 0x5f, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x6e, 0x66, 0x72, 0x61, 0x49, 0x44, 0x20, 0x69, 0x73, 0x20, + 0x75, 0x73, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, + 0x20, 0x74, 0x6f, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x56, 0x50, 0x43, + 0x73, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, + 0x73, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x22, 0x4c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x69, 0x6e, 0x67, 0x72, + 0x65, 0x73, 0x73, 0x65, 0x73, 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x61, 0x72, + 0x72, 0x61, 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, + 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, + 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x5f, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x20, 0x6f, + 0x66, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2d, 0x77, 0x69, 0x64, 0x65, 0x20, 0x4b, + 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, + 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, + 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x4b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x5f, 0x71, 0x75, + 0x6f, 0x74, 0x61, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x22, 0x4c, 0x6f, 0x61, 0x64, 0x20, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, + 0x72, 0x20, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x20, 0x74, 0x6f, 0x20, 0x62, 0x65, 0x20, 0x61, 0x73, + 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x69, 0x6e, + 0x74, 0x65, 0x67, 0x65, 0x72, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x3a, 0x20, 0x22, 0x69, + 0x6e, 0x74, 0x33, 0x32, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6d, 0x61, + 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4c, 0x69, 0x73, 0x74, + 0x20, 0x6f, 0x66, 0x20, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x20, 0x70, 0x6f, 0x6f, 0x6c, + 0x73, 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x61, 0x72, 0x72, 0x61, 0x79, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, + 0x74, 0x65, 0x6d, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, + 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x50, 0x6f, 0x6f, 0x6c, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x46, 0x6c, 0x61, 0x67, 0x20, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x20, + 0x69, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x69, + 0x73, 0x20, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x20, 0x28, 0x62, 0x79, 0x20, 0x52, 0x65, + 0x64, 0x20, 0x48, 0x61, 0x74, 0x29, 0x20, 0x6f, 0x72, 0x5c, 0x6e, 0x73, 0x65, 0x6c, 0x66, 0x2d, + 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x20, 0x62, 0x79, 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, + 0x73, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x62, 0x6f, 0x6f, 0x6c, + 0x65, 0x61, 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6d, 0x61, 0x6e, + 0x61, 0x67, 0x65, 0x64, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x43, 0x6f, 0x6e, + 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x69, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x20, 0x61, 0x62, 0x6f, 0x75, 0x74, 0x20, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x20, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, + 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x73, 0x2f, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6d, 0x75, 0x6c, 0x74, + 0x69, 0x5f, 0x61, 0x7a, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x46, 0x6c, 0x61, 0x67, 0x20, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6e, 0x67, 0x20, 0x69, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x20, 0x73, 0x68, 0x6f, 0x75, 0x6c, 0x64, 0x20, 0x62, 0x65, 0x20, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x6e, 0x6f, 0x64, 0x65, 0x73, + 0x20, 0x69, 0x6e, 0x5c, 0x6e, 0x64, 0x69, 0x66, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x74, 0x20, 0x61, + 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x20, 0x7a, 0x6f, 0x6e, 0x65, + 0x73, 0x20, 0x6f, 0x72, 0x20, 0x61, 0x6c, 0x6c, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6e, 0x6f, 0x64, + 0x65, 0x73, 0x20, 0x69, 0x6e, 0x20, 0x61, 0x20, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x20, 0x6f, + 0x6e, 0x65, 0x5c, 0x6e, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6c, 0x79, 0x20, 0x73, 0x65, 0x6c, + 0x65, 0x63, 0x74, 0x65, 0x64, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x62, 0x6f, + 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6d, + 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, + 0x20, 0x22, 0x49, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x20, 0x77, 0x68, 0x65, 0x74, 0x68, + 0x65, 0x72, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x69, + 0x73, 0x20, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x6d, 0x75, + 0x6c, 0x74, 0x69, 0x20, 0x61, 0x72, 0x63, 0x68, 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x73, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x20, + 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4e, 0x61, + 0x6d, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x2e, 0x20, 0x54, 0x68, 0x69, 0x73, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x69, 0x73, 0x20, + 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x20, 0x62, 0x79, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x75, 0x73, 0x65, 0x72, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x5c, 0x6e, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x69, 0x73, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x2e, 0x20, 0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x75, 0x73, 0x65, 0x64, 0x20, + 0x74, 0x6f, 0x20, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x6c, 0x79, 0x20, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x66, 0x79, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x20, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, + 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, + 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x4e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6e, 0x6f, + 0x64, 0x65, 0x5f, 0x64, 0x72, 0x61, 0x69, 0x6e, 0x5f, 0x67, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x70, + 0x65, 0x72, 0x69, 0x6f, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4e, 0x6f, 0x64, 0x65, 0x20, 0x64, 0x72, 0x61, 0x69, 0x6e, + 0x20, 0x67, 0x72, 0x61, 0x63, 0x65, 0x20, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x2e, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, + 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, + 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x70, + 0x6f, 0x6f, 0x6c, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x6e, 0x6f, 0x64, + 0x65, 0x20, 0x70, 0x6f, 0x6f, 0x6c, 0x73, 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x5c, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x6f, + 0x6f, 0x6c, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x73, 0x63, 0x61, 0x6c, 0x61, 0x62, 0x6c, 0x65, + 0x20, 0x73, 0x65, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x20, 0x6e, + 0x6f, 0x64, 0x65, 0x73, 0x20, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x20, 0x74, 0x6f, + 0x20, 0x61, 0x20, 0x68, 0x6f, 0x73, 0x74, 0x65, 0x64, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x61, 0x72, 0x72, 0x61, 0x79, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, + 0x74, 0x65, 0x6d, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, + 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x6f, 0x6f, 0x6c, 0x22, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x6e, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x61, 0x62, 0x6f, 0x75, 0x74, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, + 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x73, 0x2f, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x22, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6f, 0x70, 0x65, 0x6e, 0x73, 0x68, 0x69, + 0x66, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x5f, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x68, 0x69, 0x66, 0x74, + 0x5f, 0x20, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x6f, 0x72, 0x20, + 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x20, 0x60, 0x34, 0x2e, 0x30, 0x2e, 0x30, 0x2d, 0x30, + 0x2e, 0x32, 0x60, 0x2e, 0x5c, 0x6e, 0x5c, 0x6e, 0x57, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, + 0x72, 0x69, 0x65, 0x76, 0x69, 0x6e, 0x67, 0x20, 0x61, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x61, 0x6c, 0x77, 0x61, + 0x79, 0x73, 0x20, 0x62, 0x65, 0x20, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x2e, 0x5c, + 0x6e, 0x5c, 0x6e, 0x57, 0x68, 0x65, 0x6e, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, + 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x61, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x74, + 0x68, 0x69, 0x73, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, 0x69, 0x67, 0x6e, 0x6f, + 0x72, 0x65, 0x64, 0x2c, 0x20, 0x61, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x5c, 0x6e, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x20, 0x77, + 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, 0x64, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x65, + 0x64, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x6c, 0x79, 0x2e, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, + 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4c, 0x69, 0x6e, + 0x6b, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, + 0x20, 0x74, 0x79, 0x70, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, + 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x73, 0x2f, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, + 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x55, + 0x73, 0x65, 0x72, 0x20, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x20, 0x70, 0x72, 0x6f, 0x70, + 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x74, 0x61, 0x67, 0x67, 0x69, + 0x6e, 0x67, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x71, 0x75, 0x65, 0x72, 0x79, 0x69, 0x6e, 0x67, 0x2e, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x64, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, + 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x61, + 0x69, 0x6e, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, + 0x65, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, + 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x68, 0x61, 0x72, 0x64, 0x2c, 0x20, 0x69, 0x6e, 0x63, 0x6c, 0x75, + 0x64, 0x69, 0x6e, 0x67, 0x20, 0x41, 0x57, 0x53, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x47, 0x43, 0x50, + 0x20, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, + 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x73, 0x2f, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x68, 0x61, + 0x72, 0x64, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x78, + 0x79, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, + 0x20, 0x22, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, + 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4c, 0x69, 0x6e, 0x6b, 0x20, + 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x20, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x20, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x20, 0x77, 0x68, 0x65, + 0x72, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x69, + 0x73, 0x20, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x2e, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, + 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, + 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x52, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x3a, 0x20, + 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, + 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, + 0x2f, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4f, 0x76, 0x65, 0x72, 0x61, 0x6c, 0x6c, 0x20, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, + 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, + 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, + 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x20, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x20, 0x74, 0x6f, + 0x20, 0x62, 0x65, 0x20, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, + 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, + 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4c, 0x69, 0x6e, 0x6b, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x68, + 0x61, 0x74, 0x20, 0x63, 0x6f, 0x6d, 0x65, 0x73, 0x20, 0x66, 0x72, 0x6f, 0x6d, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x20, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x77, 0x68, 0x65, + 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5c, 0x6e, 0x69, + 0x73, 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x2e, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, + 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, + 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4c, 0x69, 0x6e, 0x6b, 0x20, 0x74, 0x6f, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x5f, + 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x68, 0x69, 0x66, 0x74, 0x5f, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, + 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, 0x75, 0x73, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, + 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, + 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, + 0x2f, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x50, 0x49, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x20, 0x61, 0x62, 0x6f, 0x75, 0x74, 0x20, 0x74, 0x68, 0x65, 0x20, 0x41, 0x50, 0x49, + 0x20, 0x6f, 0x66, 0x20, 0x61, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, + 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x75, 0x72, 0x6c, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, 0x55, 0x52, 0x4c, 0x20, + 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x41, 0x50, 0x49, 0x20, 0x73, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x69, + 0x6e, 0x67, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x69, 0x6e, 0x67, + 0x20, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x41, + 0x50, 0x49, 0x20, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, + 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x69, 0x6e, 0x67, + 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x43, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x3a, 0x20, 0x22, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x20, 0x6d, 0x6f, 0x64, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, + 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x65, 0x6e, 0x75, 0x6d, 0x22, 0x3a, 0x20, + 0x5b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x66, 0x75, 0x6c, + 0x6c, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x72, + 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x5d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x73, 0x6f, + 0x6c, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, + 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x61, 0x62, 0x6f, 0x75, 0x74, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x20, 0x6f, 0x66, 0x20, + 0x61, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x75, 0x72, 0x6c, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, 0x55, 0x52, 0x4c, 0x20, 0x6f, 0x66, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, + 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x20, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x20, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x65, 0x6e, 0x75, 0x6d, 0x22, 0x3a, + 0x20, 0x5b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x68, 0x65, + 0x61, 0x6c, 0x74, 0x68, 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x75, 0x6e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x79, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, + 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5d, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x43, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x20, 0x6f, 0x66, 0x20, + 0x64, 0x69, 0x66, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x74, 0x20, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, + 0x73, 0x20, 0x6f, 0x66, 0x20, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x20, 0x69, 0x6e, 0x73, 0x69, 0x64, + 0x65, 0x20, 0x61, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, + 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x61, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x70, + 0x75, 0x74, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x22, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x20, 0x66, 0x6f, 0x72, 0x20, + 0x61, 0x75, 0x74, 0x6f, 0x2d, 0x73, 0x63, 0x61, 0x6c, 0x69, 0x6e, 0x67, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x20, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, + 0x20, 0x70, 0x6f, 0x6f, 0x6c, 0x2e, 0x5c, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x20, + 0x61, 0x6e, 0x64, 0x20, 0x41, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x43, 0x6f, 0x6d, + 0x70, 0x75, 0x74, 0x65, 0x20, 0x63, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x20, 0x62, 0x65, 0x20, 0x75, + 0x73, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x67, 0x65, 0x74, 0x68, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, + 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, + 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, + 0x65, 0x50, 0x6f, 0x6f, 0x6c, 0x41, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x69, 0x6e, 0x67, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x7a, 0x6f, 0x6e, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, + 0x20, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x20, 0x7a, 0x6f, + 0x6e, 0x65, 0x73, 0x20, 0x75, 0x70, 0x6f, 0x6e, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x20, 0x61, 0x72, 0x65, 0x20, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x61, 0x72, 0x72, + 0x61, 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, + 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x20, + 0x6f, 0x66, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x20, 0x6e, 0x6f, 0x64, 0x65, 0x73, + 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, + 0x5c, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x41, 0x75, + 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x20, 0x63, + 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x20, 0x62, 0x65, 0x20, 0x75, 0x73, 0x65, 0x64, 0x20, 0x74, 0x6f, + 0x67, 0x65, 0x74, 0x68, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x69, + 0x6e, 0x74, 0x65, 0x67, 0x65, 0x72, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x3a, 0x20, 0x22, + 0x69, 0x6e, 0x74, 0x33, 0x32, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, + 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x22, 0x3a, 0x20, + 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, + 0x65, 0x20, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x20, 0x73, 0x65, 0x74, 0x20, 0x6f, 0x6e, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x5c, 0x22, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5c, 0x22, 0x20, + 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x20, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x20, + 0x70, 0x6f, 0x6f, 0x6c, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x6f, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x50, 0x72, 0x6f, + 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, + 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, + 0x65, 0x20, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, 0x20, 0x74, + 0x6f, 0x20, 0x75, 0x73, 0x65, 0x2c, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x65, 0x78, 0x61, 0x6d, 0x70, + 0x6c, 0x65, 0x20, 0x60, 0x72, 0x35, 0x2e, 0x78, 0x6c, 0x61, 0x72, 0x67, 0x65, 0x60, 0x2e, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, + 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, + 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x4d, 0x61, 0x63, 0x68, + 0x69, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x76, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, + 0x20, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x20, 0x72, 0x6f, 0x6f, 0x74, 0x20, 0x76, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x20, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, + 0x73, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, + 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x52, + 0x6f, 0x6f, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x20, + 0x6f, 0x66, 0x20, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, + 0x65, 0x20, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x69, + 0x6e, 0x74, 0x65, 0x67, 0x65, 0x72, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x3a, 0x20, 0x22, + 0x69, 0x6e, 0x74, 0x33, 0x32, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, + 0x6e, 0x66, 0x72, 0x61, 0x5f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, + 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x20, 0x6d, 0x61, 0x63, 0x68, + 0x69, 0x6e, 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x75, 0x73, 0x65, 0x2c, + 0x20, 0x66, 0x6f, 0x72, 0x20, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x20, 0x60, 0x72, 0x35, + 0x2e, 0x78, 0x6c, 0x61, 0x72, 0x67, 0x65, 0x60, 0x20, 0x28, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x61, 0x6c, 0x29, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, + 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, + 0x2f, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x20, 0x6f, 0x66, 0x20, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x20, 0x6e, 0x6f, + 0x64, 0x65, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x69, 0x6e, 0x74, 0x65, 0x67, + 0x65, 0x72, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x3a, 0x20, 0x22, 0x69, 0x6e, 0x74, 0x33, + 0x32, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6d, 0x61, 0x73, 0x74, 0x65, + 0x72, 0x5f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, + 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, + 0x68, 0x65, 0x20, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x20, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, + 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x75, 0x73, 0x65, 0x2c, 0x20, 0x66, + 0x6f, 0x72, 0x20, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x20, 0x60, 0x72, 0x35, 0x2e, 0x78, + 0x6c, 0x61, 0x72, 0x67, 0x65, 0x60, 0x20, 0x28, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, + 0x29, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, + 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x4d, + 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4c, 0x69, 0x73, 0x74, 0x20, + 0x6f, 0x66, 0x20, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x20, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x62, 0x65, 0x20, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, + 0x20, 0x74, 0x6f, 0x20, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x20, 0x28, 0x4f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x61, 0x6c, 0x29, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x61, 0x72, 0x72, + 0x61, 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, + 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, + 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x50, + 0x6f, 0x6f, 0x6c, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x6f, + 0x74, 0x61, 0x6c, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x22, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x20, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, + 0x20, 0x6f, 0x66, 0x20, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, + 0x22, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x65, 0x72, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x3a, + 0x20, 0x22, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, + 0x22, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x20, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x73, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x69, 0x65, 0x73, + 0x20, 0x66, 0x6f, 0x72, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x2e, 0x5c, 0x6e, 0x49, 0x74, 0x73, 0x20, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x20, 0x72, 0x65, + 0x66, 0x6c, 0x65, 0x63, 0x74, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x4f, 0x70, 0x65, 0x6e, 0x53, + 0x68, 0x69, 0x66, 0x74, 0x20, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x20, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2c, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x77, 0x68, + 0x69, 0x63, 0x68, 0x20, 0x64, 0x6f, 0x63, 0x73, 0x20, 0x61, 0x72, 0x65, 0x20, 0x61, 0x76, 0x61, + 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x20, 0x6f, 0x6e, 0x5c, 0x6e, 0x5b, 0x64, 0x6f, 0x63, 0x73, + 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x5d, 0x28, + 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x64, 0x6f, 0x63, 0x73, 0x2e, 0x6f, 0x70, 0x65, + 0x6e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, + 0x69, 0x6e, 0x65, 0x72, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x34, 0x2e, + 0x31, 0x36, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x5f, 0x69, 0x6d, 0x61, + 0x67, 0x65, 0x73, 0x2f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x68, 0x74, 0x6d, 0x6c, 0x29, 0x5c, 0x6e, 0x60, + 0x60, 0x60, 0x6a, 0x73, 0x6f, 0x6e, 0x5c, 0x6e, 0x7b, 0x5c, 0x6e, 0x20, 0x20, 0x20, 0x5c, 0x22, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, + 0x22, 0x3a, 0x20, 0x7b, 0x5c, 0x6e, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5c, 0x22, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x5c, 0x22, 0x3a, + 0x20, 0x7b, 0x5c, 0x6e, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5c, 0x22, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x69, 0x65, 0x73, 0x5c, + 0x22, 0x3a, 0x20, 0x5b, 0x5c, 0x6e, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5c, + 0x22, 0x62, 0x61, 0x64, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x69, 0x6f, 0x5c, + 0x22, 0x2c, 0x5c, 0x6e, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5c, 0x22, 0x62, + 0x61, 0x64, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x38, 0x2e, 0x69, 0x6f, 0x5c, 0x22, + 0x5c, 0x6e, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5d, 0x5c, 0x6e, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0x5c, 0x6e, 0x20, 0x20, 0x20, 0x7d, 0x5c, 0x6e, 0x7d, 0x5c, 0x6e, 0x60, 0x60, 0x60, + 0x5c, 0x6e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, + 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x61, 0x6c, 0x5f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x61, 0x22, 0x3a, 0x20, + 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x41, 0x20, + 0x6d, 0x61, 0x70, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x20, 0x68, 0x6f, 0x73, 0x74, + 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x61, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6b, 0x65, 0x79, 0x2c, + 0x20, 0x61, 0x6e, 0x64, 0x20, 0x74, 0x68, 0x65, 0x20, 0x50, 0x45, 0x4d, 0x2d, 0x65, 0x6e, 0x63, + 0x6f, 0x64, 0x65, 0x64, 0x20, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, + 0x20, 0x61, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2c, 0x5c, 0x6e, + 0x66, 0x6f, 0x72, 0x20, 0x65, 0x61, 0x63, 0x68, 0x20, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x61, 0x6c, 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x20, 0x43, 0x41, 0x20, + 0x74, 0x6f, 0x20, 0x74, 0x72, 0x75, 0x73, 0x74, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, + 0x22, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, + 0x6c, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, + 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x69, 0x65, 0x73, 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x69, 0x6d, 0x70, 0x6f, + 0x72, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x3a, 0x20, 0x22, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x69, 0x65, 0x73, 0x46, 0x6f, 0x72, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x20, 0x6c, 0x69, + 0x6d, 0x69, 0x74, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, + 0x65, 0x72, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x69, 0x65, 0x73, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x20, + 0x75, 0x73, 0x65, 0x72, 0x73, 0x20, 0x6d, 0x61, 0x79, 0x20, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, + 0x5c, 0x6e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x20, 0x66, 0x72, 0x6f, 0x6d, 0x2e, 0x20, 0x53, + 0x65, 0x74, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x20, 0x74, 0x6f, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x69, 0x65, 0x73, 0x20, 0x74, + 0x68, 0x61, 0x74, 0x20, 0x79, 0x6f, 0x75, 0x20, 0x74, 0x72, 0x75, 0x73, 0x74, 0x20, 0x74, 0x6f, + 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x20, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x20, 0x44, + 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x5c, 0x6e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x20, 0x61, 0x6e, + 0x64, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x79, 0x6f, 0x75, 0x20, 0x77, 0x61, 0x6e, 0x74, 0x20, + 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x74, 0x6f, 0x20, + 0x62, 0x65, 0x20, 0x61, 0x62, 0x6c, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6d, 0x70, 0x6f, 0x72, + 0x74, 0x20, 0x66, 0x72, 0x6f, 0x6d, 0x2e, 0x20, 0x55, 0x73, 0x65, 0x72, 0x73, 0x20, 0x77, 0x69, + 0x74, 0x68, 0x5c, 0x6e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x74, + 0x6f, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x20, + 0x6f, 0x72, 0x20, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4d, 0x61, + 0x70, 0x70, 0x69, 0x6e, 0x67, 0x73, 0x20, 0x76, 0x69, 0x61, 0x20, 0x74, 0x68, 0x65, 0x20, 0x41, + 0x50, 0x49, 0x20, 0x61, 0x72, 0x65, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x61, 0x66, 0x66, 0x65, 0x63, + 0x74, 0x65, 0x64, 0x20, 0x62, 0x79, 0x5c, 0x6e, 0x74, 0x68, 0x69, 0x73, 0x20, 0x70, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x20, 0x2d, 0x20, 0x74, 0x79, 0x70, 0x69, 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x20, + 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, + 0x6f, 0x72, 0x73, 0x20, 0x6f, 0x72, 0x20, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x20, 0x69, 0x6e, + 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, + 0x68, 0x61, 0x76, 0x65, 0x20, 0x74, 0x68, 0x6f, 0x73, 0x65, 0x5c, 0x6e, 0x70, 0x65, 0x72, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, + 0x61, 0x72, 0x72, 0x61, 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, + 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, + 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, + 0x77, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x41, 0x6c, + 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, + 0x20, 0x61, 0x20, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x20, 0x74, 0x6f, 0x20, + 0x61, 0x20, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x6c, + 0x69, 0x73, 0x74, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x6c, + 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x20, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x69, 0x65, 0x73, 0x5c, 0x6e, 0x77, 0x68, 0x69, 0x63, + 0x68, 0x20, 0x6e, 0x65, 0x65, 0x64, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x62, 0x65, 0x20, 0x77, 0x68, + 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x20, 0x74, 0x6f, 0x20, 0x77, 0x6f, + 0x72, 0x6b, 0x2e, 0x20, 0x49, 0x74, 0x20, 0x63, 0x61, 0x6e, 0x20, 0x62, 0x65, 0x20, 0x6f, 0x6d, + 0x69, 0x74, 0x74, 0x65, 0x64, 0x20, 0x61, 0x74, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x5c, 0x6e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x69, 0x6e, 0x67, + 0x20, 0x61, 0x6e, 0x64, 0x20, 0x69, 0x74, 0x73, 0x20, 0x6c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, + 0x6c, 0x65, 0x20, 0x63, 0x61, 0x6e, 0x20, 0x62, 0x65, 0x20, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, + 0x64, 0x20, 0x73, 0x65, 0x70, 0x61, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x79, 0x20, 0x69, 0x66, 0x20, + 0x6e, 0x65, 0x65, 0x64, 0x65, 0x64, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, + 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x73, 0x2f, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x6f, + 0x77, 0x6c, 0x69, 0x73, 0x74, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x20, + 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x64, 0x65, 0x74, 0x65, + 0x72, 0x6d, 0x69, 0x6e, 0x65, 0x73, 0x20, 0x68, 0x6f, 0x77, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, + 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x20, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, + 0x5c, 0x6e, 0x73, 0x68, 0x6f, 0x75, 0x6c, 0x64, 0x20, 0x74, 0x72, 0x65, 0x61, 0x74, 0x20, 0x69, + 0x6e, 0x64, 0x69, 0x76, 0x69, 0x64, 0x75, 0x61, 0x6c, 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x69, 0x65, 0x73, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x69, 0x6e, 0x67, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x62, + 0x75, 0x69, 0x6c, 0x64, 0x73, 0x2b, 0x70, 0x6f, 0x64, 0x73, 0x2e, 0x20, 0x28, 0x65, 0x2e, 0x67, + 0x2e, 0x5c, 0x6e, 0x77, 0x68, 0x65, 0x74, 0x68, 0x65, 0x72, 0x20, 0x6f, 0x72, 0x20, 0x6e, 0x6f, + 0x74, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x20, 0x69, 0x6e, 0x73, 0x65, 0x63, + 0x75, 0x72, 0x65, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x29, 0x2e, 0x20, 0x49, 0x74, 0x20, + 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, + 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x66, + 0x6f, 0x72, 0x20, 0x74, 0x68, 0x65, 0x5c, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, + 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, + 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4f, + 0x76, 0x65, 0x72, 0x61, 0x6c, 0x6c, 0x20, 0x73, 0x74, 0x61, 0x74, 0x65, 0x20, 0x6f, 0x66, 0x20, + 0x61, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x65, 0x6e, 0x75, 0x6d, 0x22, 0x3a, 0x20, 0x5b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x68, 0x69, 0x62, 0x65, 0x72, 0x6e, 0x61, 0x74, 0x69, + 0x6e, 0x67, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x6f, 0x77, + 0x65, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x72, 0x65, 0x61, 0x64, 0x79, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x72, 0x65, 0x73, 0x75, 0x6d, + 0x69, 0x6e, 0x67, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x75, 0x6e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, + 0x77, 0x6e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x77, 0x61, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x22, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x20, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, + 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x6e, 0x64, + 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, 0x20, + 0x6f, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x20, + 0x57, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, 0x27, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x27, 0x20, 0x69, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, + 0x69, 0x73, 0x20, 0x61, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x20, 0x6f, 0x62, + 0x6a, 0x65, 0x63, 0x74, 0x20, 0x6f, 0x72, 0x20, 0x27, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4c, 0x69, 0x6e, 0x6b, 0x27, 0x20, 0x69, 0x66, 0x20, 0x69, + 0x74, 0x20, 0x69, 0x73, 0x20, 0x6a, 0x75, 0x73, 0x74, 0x20, 0x61, 0x20, 0x6c, 0x69, 0x6e, 0x6b, + 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x55, 0x6e, 0x69, 0x71, + 0x75, 0x65, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x20, 0x6f, 0x66, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, + 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x68, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x53, 0x65, 0x6c, 0x66, 0x20, 0x6c, 0x69, + 0x6e, 0x6b, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x6e, 0x73, 0x5f, 0x72, + 0x65, 0x61, 0x64, 0x79, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x44, 0x4e, 0x53, 0x52, 0x65, 0x61, 0x64, 0x79, 0x20, 0x66, 0x72, + 0x6f, 0x6d, 0x20, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, + 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6f, 0x69, 0x64, 0x63, 0x5f, 0x72, 0x65, 0x61, 0x64, + 0x79, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, + 0x20, 0x22, 0x4f, 0x49, 0x44, 0x43, 0x52, 0x65, 0x61, 0x64, 0x79, 0x20, 0x66, 0x72, 0x6f, 0x6d, + 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x62, 0x6f, 0x6f, 0x6c, + 0x65, 0x61, 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, 0x6f, + 0x64, 0x65, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, + 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, + 0x22, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x20, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x73, 0x20, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x20, 0x66, 0x6f, 0x72, 0x20, + 0x61, 0x20, 0x48, 0x6f, 0x73, 0x74, 0x65, 0x64, 0x20, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x65, 0x72, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x3a, 0x20, 0x22, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x22, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x20, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, + 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x64, 0x5f, 0x73, + 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x22, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x64, 0x20, 0x53, 0x75, 0x70, 0x70, + 0x6f, 0x72, 0x74, 0x20, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x20, 0x43, 0x6f, 0x75, 0x6e, 0x74, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x65, 0x72, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x3a, 0x20, 0x22, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, + 0x6e, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x50, 0x72, 0x6f, + 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x20, + 0x43, 0x6f, 0x64, 0x65, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x22, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, + 0x20, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x20, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, + 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, + 0x6f, 0x76, 0x65, 0x72, 0x61, 0x6c, 0x6c, 0x20, 0x73, 0x74, 0x61, 0x74, 0x65, 0x20, 0x6f, 0x66, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, + 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, + 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, + 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x20, + 0x66, 0x6c, 0x61, 0x67, 0x20, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x20, + 0x69, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x73, + 0x68, 0x6f, 0x75, 0x6c, 0x64, 0x20, 0x62, 0x65, 0x20, 0x62, 0x65, 0x20, 0x75, 0x73, 0x69, 0x6e, + 0x67, 0x20, 0x5f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x2e, 0x5c, 0x6e, 0x5c, 0x6e, 0x42, 0x79, 0x20, 0x64, 0x65, 0x66, 0x61, + 0x75, 0x6c, 0x74, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x60, 0x66, 0x61, 0x6c, + 0x73, 0x65, 0x60, 0x2e, 0x5c, 0x6e, 0x5c, 0x6e, 0x54, 0x6f, 0x20, 0x65, 0x6e, 0x61, 0x62, 0x6c, + 0x65, 0x20, 0x69, 0x74, 0x20, 0x61, 0x20, 0x53, 0x52, 0x45, 0x50, 0x20, 0x6e, 0x65, 0x65, 0x64, + 0x73, 0x20, 0x74, 0x6f, 0x20, 0x70, 0x61, 0x74, 0x63, 0x68, 0x20, 0x74, 0x68, 0x65, 0x20, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x20, 0x74, 0x68, 0x72, 0x6f, 0x75, 0x67, 0x68, 0x20, 0x4f, 0x43, 0x4d, + 0x20, 0x41, 0x50, 0x49, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x62, 0x6f, 0x6f, 0x6c, + 0x65, 0x61, 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x45, 0x63, 0x32, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x74, 0x74, 0x70, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x57, 0x68, 0x69, + 0x63, 0x68, 0x20, 0x45, 0x63, 0x32, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x74, + 0x74, 0x70, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x75, 0x73, 0x65, 0x20, + 0x66, 0x6f, 0x72, 0x20, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x20, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x20, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x45, 0x43, 0x32, + 0x20, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x65, 0x6e, 0x75, 0x6d, 0x22, 0x3a, 0x20, 0x5b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, + 0x65, 0x64, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5d, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x45, 0x78, + 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x41, 0x75, 0x74, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x45, 0x78, 0x74, + 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x41, 0x75, 0x74, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x20, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, + 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x42, 0x6f, 0x6f, 0x6c, 0x65, + 0x61, 0x6e, 0x20, 0x66, 0x6c, 0x61, 0x67, 0x20, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6e, 0x67, 0x20, 0x69, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x20, 0x73, 0x68, 0x6f, 0x75, 0x6c, 0x64, 0x20, 0x75, 0x73, 0x65, 0x20, 0x61, 0x6e, 0x20, + 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x20, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x5c, 0x6e, 0x5c, 0x6e, 0x42, 0x79, 0x20, 0x64, 0x65, 0x66, + 0x61, 0x75, 0x6c, 0x74, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x66, 0x61, 0x6c, + 0x73, 0x65, 0x2e, 0x5c, 0x6e, 0x5c, 0x6e, 0x54, 0x6f, 0x20, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x20, 0x69, 0x74, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, + 0x6e, 0x65, 0x65, 0x64, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x62, 0x65, 0x20, 0x52, 0x4f, 0x53, 0x41, + 0x20, 0x48, 0x43, 0x50, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x61, 0x6e, 0x64, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x6e, 0x65, + 0x65, 0x64, 0x73, 0x5c, 0x6e, 0x74, 0x6f, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x60, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2d, 0x61, 0x75, 0x74, 0x68, 0x65, + 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x60, 0x20, 0x66, 0x65, 0x61, 0x74, 0x75, + 0x72, 0x65, 0x20, 0x74, 0x6f, 0x67, 0x67, 0x6c, 0x65, 0x20, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x64, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, + 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x65, 0x78, 0x74, 0x65, 0x72, + 0x6e, 0x61, 0x6c, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, + 0x3a, 0x20, 0x22, 0x61, 0x72, 0x72, 0x61, 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x3a, 0x20, + 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, + 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x45, 0x78, + 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x41, 0x75, 0x74, 0x68, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, + 0x20, 0x22, 0x52, 0x65, 0x70, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x20, 0x6f, 0x66, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x65, 0x78, 0x74, 0x65, + 0x72, 0x6e, 0x61, 0x6c, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, + 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x6c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x20, 0x65, + 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x75, 0x72, 0x65, 0x64, 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, + 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x61, 0x72, 0x72, 0x61, 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x74, 0x65, 0x6d, 0x73, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, + 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, + 0x2f, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6d, 0x61, + 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x6c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, + 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x20, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, + 0x6c, 0x6c, 0x79, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x64, 0x20, 0x66, + 0x6f, 0x72, 0x20, 0x61, 0x20, 0x68, 0x6f, 0x73, 0x74, 0x65, 0x64, 0x20, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x61, 0x72, 0x72, 0x61, + 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, + 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x22, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x79, 0x6e, 0x63, 0x73, 0x65, 0x74, 0x73, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x6c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x73, 0x79, 0x6e, 0x63, 0x73, 0x65, 0x74, 0x73, + 0x20, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x65, 0x64, 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x61, 0x72, + 0x72, 0x61, 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, + 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, + 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x53, 0x79, 0x6e, 0x63, 0x73, 0x65, 0x74, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x47, 0x63, 0x70, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x22, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x20, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x20, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x20, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, + 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x20, + 0x6f, 0x66, 0x20, 0x61, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, + 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x68, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x53, 0x65, 0x6c, 0x66, 0x20, 0x6c, 0x69, 0x6e, + 0x6b, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x55, 0x6e, 0x69, 0x71, + 0x75, 0x65, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x20, 0x6f, 0x66, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, + 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, + 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, + 0x69, 0x73, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, + 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x47, + 0x63, 0x70, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x22, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x20, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x20, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x20, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, + 0x65, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, + 0x74, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, + 0x6f, 0x66, 0x20, 0x61, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, + 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x61, 0x63, + 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, + 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x75, 0x62, + 0x6e, 0x65, 0x74, 0x20, 0x77, 0x68, 0x65, 0x72, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x50, 0x53, + 0x43, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, + 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x69, 0x73, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, + 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x47, 0x63, 0x70, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x47, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x20, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x20, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x20, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x20, 0x73, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, + 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x5f, 0x62, + 0x6f, 0x6f, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x22, 0x44, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x65, 0x73, 0x20, 0x69, + 0x66, 0x20, 0x53, 0x68, 0x69, 0x65, 0x6c, 0x64, 0x65, 0x64, 0x20, 0x56, 0x4d, 0x20, 0x66, 0x65, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x20, 0x5c, 0x22, 0x53, 0x65, 0x63, 0x75, 0x72, 0x65, 0x20, 0x42, + 0x6f, 0x6f, 0x74, 0x5c, 0x22, 0x20, 0x73, 0x68, 0x6f, 0x75, 0x6c, 0x64, 0x20, 0x62, 0x65, 0x20, + 0x73, 0x65, 0x74, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6e, 0x6f, 0x64, 0x65, + 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x48, 0x79, 0x70, 0x65, 0x72, 0x73, 0x68, 0x69, + 0x66, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x48, + 0x79, 0x70, 0x65, 0x72, 0x73, 0x68, 0x69, 0x66, 0x74, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, + 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x65, 0x6e, + 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x20, 0x66, 0x6c, + 0x61, 0x67, 0x20, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x69, 0x66, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x73, 0x68, 0x6f, + 0x75, 0x6c, 0x64, 0x20, 0x62, 0x65, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x20, + 0x75, 0x73, 0x69, 0x6e, 0x67, 0x20, 0x5f, 0x48, 0x79, 0x70, 0x65, 0x72, 0x73, 0x68, 0x69, 0x66, + 0x74, 0x5f, 0x2e, 0x5c, 0x6e, 0x5c, 0x6e, 0x42, 0x79, 0x20, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, + 0x74, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x60, 0x66, 0x61, 0x6c, 0x73, 0x65, + 0x60, 0x2e, 0x5c, 0x6e, 0x5c, 0x6e, 0x54, 0x6f, 0x20, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x20, + 0x69, 0x74, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x6e, + 0x65, 0x65, 0x64, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x62, 0x65, 0x20, 0x52, 0x4f, 0x53, 0x41, 0x20, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x6e, 0x65, 0x65, 0x64, 0x73, 0x5c, 0x6e, + 0x74, 0x6f, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x60, 0x68, 0x79, 0x70, + 0x65, 0x72, 0x73, 0x68, 0x69, 0x66, 0x74, 0x60, 0x20, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x20, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x2e, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, + 0x22, 0x3a, 0x20, 0x22, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x41, 0x4d, 0x52, 0x6f, + 0x6c, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6e, 0x65, 0x63, + 0x65, 0x73, 0x73, 0x61, 0x72, 0x79, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x20, 0x74, 0x6f, 0x20, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x20, 0x72, 0x6f, 0x6c, + 0x65, 0x2d, 0x62, 0x61, 0x73, 0x65, 0x64, 0x20, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x6e, 0x20, 0x41, 0x57, 0x53, 0x2e, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, + 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, + 0x61, 0x72, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, 0x49, 0x41, 0x4d, 0x20, 0x72, 0x6f, 0x6c, 0x65, + 0x20, 0x41, 0x52, 0x4e, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x62, + 0x65, 0x20, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x6d, 0x61, + 0x73, 0x74, 0x65, 0x72, 0x20, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, + 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x72, 0x6f, 0x6c, + 0x65, 0x5f, 0x61, 0x72, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, 0x49, 0x41, 0x4d, 0x20, 0x72, 0x6f, + 0x6c, 0x65, 0x20, 0x41, 0x52, 0x4e, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x77, 0x69, 0x6c, 0x6c, + 0x20, 0x62, 0x65, 0x20, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, + 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x20, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x4b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x4f, 0x43, 0x4d, 0x20, 0x72, 0x65, 0x70, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x4b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x2c, 0x20, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x69, 0x6e, 0x67, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x4b, 0x75, 0x62, 0x65, + 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x5c, 0x6e, 0x4b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x63, 0x61, 0x6e, 0x20, 0x62, + 0x65, 0x20, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x20, 0x62, 0x79, 0x20, 0x75, 0x73, 0x65, + 0x72, 0x73, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, + 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x6e, 0x64, + 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, 0x20, + 0x6f, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x20, + 0x57, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, 0x27, 0x4b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x27, 0x20, 0x69, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, + 0x69, 0x73, 0x20, 0x61, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x20, 0x6f, 0x62, + 0x6a, 0x65, 0x63, 0x74, 0x20, 0x6f, 0x72, 0x20, 0x27, 0x4b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4c, 0x69, 0x6e, 0x6b, 0x27, 0x20, 0x69, 0x66, 0x20, 0x69, + 0x74, 0x20, 0x69, 0x73, 0x20, 0x6a, 0x75, 0x73, 0x74, 0x20, 0x61, 0x20, 0x6c, 0x69, 0x6e, 0x6b, + 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x55, 0x6e, 0x69, 0x71, + 0x75, 0x65, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x20, 0x6f, 0x66, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, + 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x68, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x53, 0x65, 0x6c, 0x66, 0x20, 0x6c, 0x69, + 0x6e, 0x6b, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6e, 0x61, 0x6d, 0x65, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, + 0x74, 0x6f, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x79, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6e, + 0x61, 0x6d, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x62, 0x65, 0x20, 0x75, 0x73, 0x65, 0x64, 0x20, 0x74, + 0x6f, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x79, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, + 0x4b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x5c, 0x6e, + 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2e, 0x20, 0x41, 0x20, 0x6e, 0x61, 0x6d, 0x65, + 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x65, 0x64, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x64, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x6f, 0x64, 0x5f, 0x70, + 0x69, 0x64, 0x73, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x73, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x74, 0x6f, 0x20, 0x73, 0x70, 0x65, + 0x63, 0x69, 0x66, 0x79, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x6f, 0x64, 0x50, 0x69, 0x64, 0x73, + 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x20, 0x74, 0x6f, 0x20, 0x62, 0x65, 0x20, 0x61, 0x70, 0x70, 0x6c, + 0x69, 0x65, 0x64, 0x20, 0x76, 0x69, 0x61, 0x20, 0x4b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x5c, 0x6e, 0x55, 0x73, 0x65, 0x66, 0x75, 0x6c, 0x20, 0x69, + 0x66, 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x20, 0x68, 0x61, 0x76, 0x65, + 0x20, 0x67, 0x72, 0x65, 0x61, 0x74, 0x65, 0x72, 0x20, 0x50, 0x49, 0x44, 0x73, 0x20, 0x6c, 0x69, + 0x6d, 0x69, 0x74, 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, + 0x20, 0x74, 0x68, 0x61, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x4f, 0x43, 0x50, 0x20, 0x64, 0x65, + 0x66, 0x61, 0x75, 0x6c, 0x74, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x69, 0x6e, + 0x74, 0x65, 0x67, 0x65, 0x72, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x3a, 0x20, 0x22, 0x69, + 0x6e, 0x74, 0x33, 0x32, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x4c, 0x69, 0x73, 0x74, + 0x65, 0x6e, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, + 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x65, + 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x2e, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, + 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x65, 0x6e, 0x75, 0x6d, 0x22, 0x3a, 0x20, 0x5b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x6e, 0x61, 0x6c, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5d, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x50, 0x6f, 0x6f, 0x6c, 0x41, 0x75, 0x74, 0x6f, 0x73, + 0x63, 0x61, 0x6c, 0x69, 0x6e, 0x67, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x3a, 0x20, 0x22, 0x52, 0x65, 0x70, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x20, 0x61, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x69, + 0x6e, 0x67, 0x20, 0x69, 0x6e, 0x20, 0x61, 0x20, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x20, + 0x70, 0x6f, 0x6f, 0x6c, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6b, 0x69, 0x6e, 0x64, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x49, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x74, 0x79, + 0x70, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x2e, 0x20, 0x57, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, 0x27, 0x4d, 0x61, 0x63, 0x68, + 0x69, 0x6e, 0x65, 0x50, 0x6f, 0x6f, 0x6c, 0x41, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x69, + 0x6e, 0x67, 0x27, 0x20, 0x69, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, + 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, + 0x20, 0x6f, 0x72, 0x20, 0x27, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x50, 0x6f, 0x6f, 0x6c, + 0x41, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x69, 0x6e, 0x67, 0x4c, 0x69, 0x6e, 0x6b, 0x27, + 0x20, 0x69, 0x66, 0x20, 0x69, 0x74, 0x20, 0x69, 0x73, 0x20, 0x6a, 0x75, 0x73, 0x74, 0x20, 0x61, + 0x20, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x64, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, + 0x22, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, + 0x65, 0x72, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, + 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x68, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, + 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x53, 0x65, + 0x6c, 0x66, 0x20, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, + 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, + 0x20, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x20, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x20, + 0x6f, 0x66, 0x20, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x20, 0x66, 0x6f, 0x72, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x20, 0x70, 0x6f, 0x6f, 0x6c, + 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x65, 0x72, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x3a, 0x20, 0x22, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x22, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6d, 0x69, 0x6e, 0x5f, 0x72, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, + 0x6d, 0x20, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x20, 0x6f, 0x66, 0x20, 0x72, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x73, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6d, 0x61, 0x63, + 0x68, 0x69, 0x6e, 0x65, 0x20, 0x70, 0x6f, 0x6f, 0x6c, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, + 0x20, 0x22, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x65, 0x72, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, + 0x3a, 0x20, 0x22, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x50, 0x6f, 0x6f, 0x6c, 0x53, 0x65, 0x63, 0x75, 0x72, + 0x69, 0x74, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x3a, + 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x53, 0x65, 0x63, 0x75, 0x72, + 0x69, 0x74, 0x79, 0x20, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x20, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, + 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, + 0x69, 0x6e, 0x67, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x20, 0x74, 0x61, 0x67, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x66, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x20, 0x74, 0x61, 0x67, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6e, 0x61, 0x6d, 0x65, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x54, 0x79, + 0x70, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4d, + 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, + 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x69, + 0x73, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x20, 0x57, 0x69, 0x6c, 0x6c, 0x20, 0x62, + 0x65, 0x20, 0x27, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x27, 0x20, + 0x69, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x63, 0x6f, 0x6d, + 0x70, 0x6c, 0x65, 0x74, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x6f, 0x72, 0x20, + 0x27, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x69, 0x6e, 0x6b, + 0x27, 0x20, 0x69, 0x66, 0x20, 0x69, 0x74, 0x20, 0x69, 0x73, 0x20, 0x6a, 0x75, 0x73, 0x74, 0x20, + 0x61, 0x20, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, + 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, + 0x20, 0x22, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, + 0x69, 0x65, 0x72, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x68, 0x72, 0x65, 0x66, 0x22, 0x3a, + 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x53, + 0x65, 0x6c, 0x66, 0x20, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, + 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x63, 0x63, 0x73, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x27, 0x74, 0x72, 0x75, 0x65, 0x27, + 0x20, 0x69, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x20, 0x74, 0x79, 0x70, 0x65, 0x20, 0x69, 0x73, 0x20, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, + 0x65, 0x64, 0x20, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x43, 0x43, 0x53, 0x20, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x2c, 0x20, 0x27, 0x66, 0x61, 0x6c, 0x73, 0x65, + 0x27, 0x20, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x77, 0x69, 0x73, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, + 0x22, 0x3a, 0x20, 0x22, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, 0x70, 0x75, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, 0x61, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x63, 0x70, 0x75, 0x27, 0x73, 0x20, 0x6f, 0x66, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, + 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, + 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x72, 0x63, + 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, 0x61, 0x72, + 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, + 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, + 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x50, 0x72, 0x6f, 0x63, + 0x65, 0x73, 0x73, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, + 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, 0x20, + 0x69, 0x73, 0x20, 0x73, 0x75, 0x69, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x20, 0x66, 0x6f, 0x72, 0x2e, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, + 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x4d, 0x61, 0x63, + 0x68, 0x69, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, + 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4c, 0x69, 0x6e, 0x6b, 0x20, 0x74, 0x6f, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6d, 0x61, 0x63, + 0x68, 0x69, 0x6e, 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, 0x20, 0x62, 0x65, 0x6c, 0x6f, 0x6e, 0x67, + 0x73, 0x20, 0x74, 0x6f, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, + 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x73, 0x2f, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x20, 0x6e, 0x61, + 0x6d, 0x65, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x20, 0x70, 0x75, 0x72, + 0x70, 0x6f, 0x73, 0x65, 0x73, 0x2c, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x65, 0x78, 0x61, 0x6d, 0x70, + 0x6c, 0x65, 0x20, 0x60, 0x68, 0x69, 0x67, 0x68, 0x6d, 0x65, 0x6d, 0x2d, 0x34, 0x60, 0x2e, 0x5c, + 0x6e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x20, + 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x20, 0x2d, 0x20, 0x6d, 0x61, 0x6e, 0x79, 0x20, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x20, 0x61, 0x72, 0x65, 0x20, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x64, 0x20, 0x62, 0x65, 0x74, 0x77, 0x65, 0x65, 0x6e, 0x20, 0x5c, 0x22, 0x73, 0x69, 0x6d, 0x69, + 0x6c, 0x61, 0x72, 0x5c, 0x22, 0x5c, 0x6e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x20, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x20, 0x6f, 0x6e, 0x20, 0x64, 0x69, 0x66, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x74, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x5c, 0x6e, 0x43, 0x6f, + 0x72, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x60, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x60, 0x20, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x73, 0x20, 0x69, 0x6e, 0x20, 0x5c, 0x22, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, + 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5c, 0x22, 0x20, 0x20, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x20, 0x63, + 0x6f, 0x73, 0x74, 0x20, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, + 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, 0x61, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x20, 0x6f, 0x66, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, + 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, + 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6e, 0x61, 0x6d, + 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, + 0x20, 0x22, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x20, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, + 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x20, 0x6f, 0x66, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, 0x2c, + 0x20, 0x66, 0x6f, 0x72, 0x20, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x20, 0x60, 0x72, 0x35, + 0x2e, 0x78, 0x6c, 0x61, 0x72, 0x67, 0x65, 0x20, 0x2d, 0x20, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, + 0x20, 0x4f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x7a, 0x65, 0x64, 0x60, 0x2e, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, + 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, 0x73, 0x69, 0x7a, + 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, + 0x20, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, + 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x73, 0x2f, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x53, 0x69, + 0x7a, 0x65, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, + 0x65, 0x54, 0x79, 0x70, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x22, 0x3a, 0x20, + 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, + 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, 0x20, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x2e, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, + 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x65, 0x6e, 0x75, 0x6d, 0x22, 0x3a, 0x20, 0x5b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x63, 0x63, 0x65, 0x6c, 0x65, + 0x72, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, 0x6f, 0x6d, + 0x70, 0x75, 0x74, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x7a, 0x65, 0x64, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x67, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x6c, 0x5f, 0x70, 0x75, 0x72, 0x70, 0x6f, 0x73, 0x65, 0x22, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x5f, + 0x6f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x7a, 0x65, 0x64, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x5d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, + 0x53, 0x69, 0x7a, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, + 0x22, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, 0x20, 0x73, 0x69, + 0x7a, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, + 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x65, 0x6e, 0x75, 0x6d, 0x22, 0x3a, 0x20, + 0x5b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6c, 0x61, 0x72, + 0x67, 0x65, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x6d, 0x65, 0x64, 0x69, 0x75, 0x6d, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x73, 0x6d, 0x61, 0x6c, 0x6c, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x5d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6e, 0x65, 0x63, + 0x65, 0x73, 0x73, 0x61, 0x72, 0x79, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x20, 0x74, 0x6f, 0x20, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x20, 0x72, 0x6f, 0x6c, + 0x65, 0x2d, 0x62, 0x61, 0x73, 0x65, 0x64, 0x20, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x6e, 0x20, 0x41, 0x57, 0x53, 0x2e, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, + 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x6e, 0x64, 0x69, + 0x63, 0x61, 0x74, 0x65, 0x73, 0x20, 0x77, 0x68, 0x65, 0x74, 0x68, 0x65, 0x72, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x62, 0x65, 0x6c, 0x6f, 0x6e, 0x67, + 0x73, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x20, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x20, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x6e, 0x54, 0x68, 0x69, 0x73, 0x20, 0x73, 0x68, 0x6f, + 0x75, 0x6c, 0x64, 0x20, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x62, 0x65, 0x20, 0x73, 0x65, 0x74, 0x20, + 0x62, 0x79, 0x20, 0x74, 0x68, 0x65, 0x20, 0x5c, 0x22, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, + 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x22, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x2e, 0x5c, 0x6e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x20, 0x77, 0x69, + 0x74, 0x68, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x73, 0x65, 0x74, 0x20, 0x63, 0x61, 0x6e, 0x20, + 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x62, 0x65, 0x20, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, + 0x20, 0x62, 0x79, 0x20, 0x74, 0x68, 0x65, 0x20, 0x5c, 0x22, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, + 0x64, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x22, 0x20, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x62, 0x6f, 0x6f, 0x6c, + 0x65, 0x61, 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x4e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, + 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x65, + 0x66, 0x69, 0x78, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x22, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x20, 0x68, 0x6f, 0x73, 0x74, + 0x20, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, + 0x20, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x60, 0x32, + 0x33, 0x60, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, + 0x69, 0x65, 0x64, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x69, 0x6e, 0x74, 0x65, + 0x67, 0x65, 0x72, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x3a, 0x20, 0x22, 0x69, 0x6e, 0x74, + 0x33, 0x32, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6d, 0x61, 0x63, 0x68, + 0x69, 0x6e, 0x65, 0x5f, 0x63, 0x69, 0x64, 0x72, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x50, 0x20, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x20, 0x66, 0x72, 0x6f, 0x6d, 0x20, 0x77, + 0x68, 0x69, 0x63, 0x68, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x20, 0x6d, + 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x20, 0x49, 0x50, 0x20, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x65, 0x73, 0x2c, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, + 0x20, 0x60, 0x31, 0x30, 0x2e, 0x30, 0x2e, 0x30, 0x2e, 0x30, 0x2f, 0x31, 0x36, 0x60, 0x2e, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, + 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x6f, 0x64, 0x5f, 0x63, 0x69, 0x64, 0x72, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x49, 0x50, 0x20, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x20, 0x66, 0x72, 0x6f, 0x6d, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x74, 0x6f, 0x20, 0x61, + 0x73, 0x73, 0x69, 0x67, 0x6e, 0x20, 0x70, 0x6f, 0x64, 0x20, 0x49, 0x50, 0x20, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x2c, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x65, 0x78, 0x61, 0x6d, + 0x70, 0x6c, 0x65, 0x20, 0x60, 0x31, 0x30, 0x2e, 0x31, 0x32, 0x38, 0x2e, 0x30, 0x2e, 0x30, 0x2f, + 0x31, 0x34, 0x60, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x5f, 0x63, 0x69, 0x64, 0x72, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x50, 0x20, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x20, 0x66, 0x72, 0x6f, 0x6d, 0x20, 0x77, + 0x68, 0x69, 0x63, 0x68, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x20, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x49, 0x50, 0x20, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x65, 0x73, 0x2c, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, + 0x20, 0x60, 0x31, 0x37, 0x32, 0x2e, 0x33, 0x30, 0x2e, 0x30, 0x2e, 0x30, 0x2f, 0x31, 0x36, 0x60, + 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, + 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, + 0x65, 0x20, 0x6d, 0x61, 0x69, 0x6e, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, + 0x72, 0x20, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x20, 0x66, 0x6f, + 0x72, 0x20, 0x72, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x63, 0x6f, 0x72, 0x65, 0x20, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x20, + 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, + 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x4f, 0x69, 0x64, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x6e, 0x65, 0x63, 0x65, 0x73, 0x73, 0x61, 0x72, 0x79, 0x20, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x73, 0x75, 0x70, + 0x70, 0x6f, 0x72, 0x74, 0x20, 0x6f, 0x69, 0x64, 0x63, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x68, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x20, + 0x75, 0x6e, 0x64, 0x65, 0x72, 0x20, 0x52, 0x65, 0x64, 0x20, 0x48, 0x61, 0x74, 0x20, 0x6f, 0x72, + 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x61, 0x20, 0x43, + 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x27, 0x73, 0x20, 0x62, 0x79, 0x6f, 0x20, 0x6f, 0x69, + 0x64, 0x63, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x68, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x48, 0x52, 0x45, 0x46, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x6f, 0x69, 0x64, 0x63, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2c, 0x20, 0x66, + 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x44, 0x20, + 0x66, 0x6f, 0x72, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x69, 0x64, 0x63, 0x20, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x2c, 0x20, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x72, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, + 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x3a, 0x20, 0x22, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2c, 0x20, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x20, 0x69, 0x6e, + 0x20, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, + 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x3a, + 0x20, 0x22, 0x64, 0x61, 0x74, 0x65, 0x2d, 0x74, 0x69, 0x6d, 0x65, 0x22, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x5f, 0x72, + 0x6f, 0x6c, 0x65, 0x5f, 0x61, 0x72, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x41, 0x52, 0x4e, 0x20, 0x6f, 0x66, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x41, 0x57, 0x53, 0x20, 0x72, 0x6f, 0x6c, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x61, + 0x73, 0x73, 0x75, 0x6d, 0x65, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x69, 0x6e, 0x73, 0x74, 0x61, + 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x20, 0x61, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x72, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x2c, 0x20, 0x73, 0x75, 0x70, 0x70, 0x6c, + 0x69, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x20, + 0x49, 0x74, 0x20, 0x69, 0x73, 0x20, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x74, 0x6f, 0x20, 0x62, 0x65, + 0x20, 0x75, 0x73, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x55, 0x6e, 0x6d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x64, 0x20, 0x4f, 0x69, 0x64, 0x63, 0x20, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, + 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x5f, 0x75, 0x72, + 0x6c, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, + 0x20, 0x22, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x20, 0x55, 0x52, 0x4c, 0x2c, 0x20, 0x66, 0x69, + 0x6c, 0x6c, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x20, 0x61, 0x6e, + 0x64, 0x20, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x55, 0x6e, + 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, + 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4c, 0x61, 0x73, 0x74, 0x20, 0x75, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2c, 0x20, 0x66, 0x69, 0x6c, + 0x6c, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x70, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, + 0x67, 0x20, 0x61, 0x20, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x6f, 0x69, 0x64, 0x63, + 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, + 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x3a, 0x20, 0x22, + 0x64, 0x61, 0x74, 0x65, 0x2d, 0x74, 0x69, 0x6d, 0x65, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4c, 0x61, 0x73, 0x74, 0x20, 0x75, 0x73, 0x65, 0x64, + 0x20, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2c, 0x20, 0x66, 0x69, 0x6c, 0x6c, + 0x65, 0x64, 0x20, 0x62, 0x79, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, + 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x75, 0x73, + 0x65, 0x64, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x6f, 0x69, 0x64, 0x63, 0x20, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x3a, 0x20, 0x22, 0x64, 0x61, 0x74, 0x65, + 0x2d, 0x74, 0x69, 0x6d, 0x65, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, + 0x20, 0x77, 0x68, 0x65, 0x74, 0x68, 0x65, 0x72, 0x20, 0x69, 0x74, 0x20, 0x69, 0x73, 0x20, 0x4d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x20, 0x6f, 0x72, 0x20, 0x55, 0x6e, 0x6d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x64, 0x20, 0x28, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x20, 0x68, 0x6f, + 0x73, 0x74, 0x65, 0x64, 0x29, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x62, 0x6f, + 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x22, 0x3a, + 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x49, 0x44, 0x2c, 0x20, + 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x20, 0x72, 0x65, 0x73, 0x70, 0x65, 0x63, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x2e, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, + 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x72, 0x65, 0x75, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x3a, 0x20, + 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x6e, + 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x20, 0x77, 0x68, 0x65, 0x74, 0x68, 0x65, 0x72, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x4f, 0x69, 0x64, 0x63, 0x20, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x20, + 0x63, 0x61, 0x6e, 0x20, 0x62, 0x65, 0x20, 0x72, 0x65, 0x75, 0x73, 0x65, 0x64, 0x2e, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, + 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x61, 0x72, + 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, + 0x20, 0x22, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x20, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, + 0x72, 0x20, 0x41, 0x52, 0x4e, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x74, 0x68, 0x65, 0x20, 0x4f, 0x49, + 0x44, 0x43, 0x20, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x20, 0x6b, 0x65, 0x79, 0x2c, 0x20, + 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x2e, 0x20, 0x49, 0x74, 0x20, 0x69, 0x73, 0x20, 0x6f, 0x6e, 0x6c, 0x79, 0x20, + 0x74, 0x6f, 0x20, 0x62, 0x65, 0x20, 0x75, 0x73, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x55, 0x6e, + 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x20, 0x4f, 0x69, 0x64, 0x63, 0x20, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x6f, 0x72, 0x49, 0x41, 0x4d, 0x52, 0x6f, 0x6c, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x6e, 0x65, 0x63, 0x65, 0x73, 0x73, 0x61, 0x72, 0x79, 0x20, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x6c, 0x6c, 0x6f, 0x77, + 0x20, 0x65, 0x61, 0x63, 0x68, 0x20, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x20, 0x74, + 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6e, 0x65, 0x63, + 0x65, 0x73, 0x73, 0x61, 0x72, 0x79, 0x20, 0x41, 0x57, 0x53, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x52, 0x61, 0x6e, + 0x64, 0x6f, 0x6d, 0x6c, 0x79, 0x2d, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x20, + 0x49, 0x44, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x79, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x20, 0x72, 0x6f, 0x6c, 0x65, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4e, 0x61, 0x6d, + 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x61, 0x6c, 0x73, 0x20, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x20, 0x75, 0x73, 0x65, 0x64, + 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, + 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4e, 0x61, 0x6d, 0x65, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x20, 0x77, 0x68, 0x65, 0x72, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x20, 0x73, 0x65, 0x63, 0x72, + 0x65, 0x74, 0x20, 0x6c, 0x69, 0x76, 0x65, 0x73, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x72, + 0x6f, 0x6c, 0x65, 0x5f, 0x61, 0x72, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x52, 0x6f, 0x6c, 0x65, 0x20, 0x74, 0x6f, 0x20, + 0x61, 0x73, 0x73, 0x75, 0x6d, 0x65, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x61, 0x63, 0x63, 0x65, + 0x73, 0x73, 0x69, 0x6e, 0x67, 0x20, 0x41, 0x57, 0x53, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x20, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x20, + 0x74, 0x6f, 0x20, 0x75, 0x73, 0x65, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x61, 0x75, 0x74, 0x68, + 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, + 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6e, 0x6b, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x74, 0x68, 0x65, 0x20, 0x50, 0x72, + 0x69, 0x76, 0x61, 0x74, 0x65, 0x20, 0x4c, 0x69, 0x6e, 0x6b, 0x73, 0x2e, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, + 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x73, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4c, 0x69, 0x73, + 0x74, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x20, + 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x73, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x20, 0x4c, 0x69, 0x6e, 0x6b, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, + 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x61, 0x72, 0x72, 0x61, 0x79, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x74, 0x65, 0x6d, + 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, + 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x73, 0x2f, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6e, 0x6b, 0x50, 0x72, 0x69, + 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x50, 0x72, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6e, 0x6b, 0x50, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, + 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x6e, 0x64, + 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, 0x20, + 0x6f, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x20, + 0x57, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, 0x27, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x4c, 0x69, 0x6e, 0x6b, 0x50, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x27, 0x20, 0x69, + 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x63, 0x6f, 0x6d, 0x70, + 0x6c, 0x65, 0x74, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x6f, 0x72, 0x20, 0x27, + 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6e, 0x6b, 0x50, 0x72, 0x69, 0x6e, 0x63, + 0x69, 0x70, 0x61, 0x6c, 0x4c, 0x69, 0x6e, 0x6b, 0x27, 0x20, 0x69, 0x66, 0x20, 0x69, 0x74, 0x20, + 0x69, 0x73, 0x20, 0x6a, 0x75, 0x73, 0x74, 0x20, 0x61, 0x20, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, + 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, + 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x20, 0x6f, 0x66, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, + 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x68, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x53, 0x65, 0x6c, 0x66, 0x20, 0x6c, 0x69, 0x6e, 0x6b, + 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, + 0x61, 0x6c, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x3a, 0x20, 0x22, 0x41, 0x52, 0x4e, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x61, 0x20, 0x70, 0x72, 0x69, + 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x69, 0x73, 0x20, 0x61, + 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, + 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x20, 0x4c, 0x69, 0x6e, 0x6b, 0x2e, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, + 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x50, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x20, 0x74, 0x79, 0x70, 0x65, 0x20, 0x63, 0x61, 0x74, 0x65, + 0x67, 0x6f, 0x72, 0x79, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x65, 0x6e, 0x75, 0x6d, 0x22, + 0x3a, 0x20, 0x5b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, + 0x6d, 0x64, 0x36, 0x34, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x61, 0x72, 0x6d, 0x36, 0x34, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x5d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x68, 0x61, 0x72, + 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x43, 0x6f, + 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x70, 0x65, + 0x72, 0x74, 0x69, 0x65, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x68, 0x61, 0x72, 0x64, 0x2c, 0x20, 0x69, 0x6e, + 0x63, 0x6c, 0x75, 0x64, 0x69, 0x6e, 0x67, 0x20, 0x41, 0x57, 0x53, 0x20, 0x61, 0x6e, 0x64, 0x20, + 0x47, 0x43, 0x50, 0x20, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x20, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, + 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x20, 0x57, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, + 0x27, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x27, + 0x20, 0x69, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x63, 0x6f, + 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x6f, 0x72, + 0x20, 0x27, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x68, 0x61, 0x72, 0x64, + 0x4c, 0x69, 0x6e, 0x6b, 0x27, 0x20, 0x69, 0x66, 0x20, 0x69, 0x74, 0x20, 0x69, 0x73, 0x20, 0x6a, + 0x75, 0x73, 0x74, 0x20, 0x61, 0x20, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, + 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x20, 0x69, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x68, 0x72, + 0x65, 0x66, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x3a, 0x20, 0x22, 0x53, 0x65, 0x6c, 0x66, 0x20, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, + 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x77, 0x73, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x5f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, + 0x22, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x66, 0x6f, 0x72, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x41, 0x57, 0x53, 0x20, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x20, + 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, + 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x77, 0x73, 0x5f, + 0x62, 0x61, 0x73, 0x65, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x43, 0x6f, 0x6e, 0x74, + 0x61, 0x69, 0x6e, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x41, 0x57, 0x53, 0x20, 0x62, 0x61, 0x73, + 0x65, 0x20, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, + 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x67, 0x63, 0x70, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, + 0x22, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x47, 0x43, + 0x50, 0x20, 0x62, 0x61, 0x73, 0x65, 0x20, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, + 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x67, 0x63, 0x70, 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x5f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x43, 0x6f, 0x6e, 0x74, 0x61, + 0x69, 0x6e, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x74, 0x68, 0x65, 0x20, 0x47, 0x43, + 0x50, 0x20, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x6f, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, + 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, + 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, + 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x73, 0x2f, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x44, 0x61, 0x74, + 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x68, + 0x61, 0x72, 0x64, 0x20, 0x77, 0x61, 0x73, 0x20, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x6c, + 0x79, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x2c, 0x20, 0x75, 0x73, 0x69, 0x6e, 0x67, + 0x20, 0x74, 0x68, 0x65, 0x5c, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x20, 0x64, 0x65, 0x66, + 0x69, 0x6e, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x5b, 0x52, 0x46, 0x43, 0x33, 0x33, 0x33, 0x39, + 0x5d, 0x28, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x69, 0x65, + 0x74, 0x66, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x72, 0x66, 0x63, 0x2f, 0x72, 0x66, 0x63, 0x33, 0x33, + 0x33, 0x39, 0x2e, 0x74, 0x78, 0x74, 0x29, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, + 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x3a, 0x20, 0x22, + 0x64, 0x61, 0x74, 0x65, 0x2d, 0x74, 0x69, 0x6d, 0x65, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x68, 0x69, 0x76, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x3a, + 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x43, + 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x48, 0x69, + 0x76, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, + 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, + 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x68, 0x79, 0x70, 0x65, 0x72, 0x73, 0x68, 0x69, 0x66, 0x74, + 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x48, 0x79, 0x70, 0x65, 0x72, 0x73, 0x68, 0x69, 0x66, + 0x74, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, + 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x53, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x44, 0x61, 0x74, 0x65, 0x20, + 0x61, 0x6e, 0x64, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x68, 0x61, 0x72, + 0x64, 0x20, 0x77, 0x61, 0x73, 0x20, 0x6c, 0x61, 0x73, 0x74, 0x20, 0x75, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x64, 0x2c, 0x20, 0x75, 0x73, 0x69, 0x6e, 0x67, 0x20, 0x74, 0x68, 0x65, 0x5c, 0x6e, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x20, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x20, 0x69, 0x6e, + 0x20, 0x5b, 0x52, 0x46, 0x43, 0x33, 0x33, 0x33, 0x39, 0x5d, 0x28, 0x68, 0x74, 0x74, 0x70, 0x73, + 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x69, 0x65, 0x74, 0x66, 0x2e, 0x6f, 0x72, 0x67, 0x2f, + 0x72, 0x66, 0x63, 0x2f, 0x72, 0x66, 0x63, 0x33, 0x33, 0x33, 0x39, 0x2e, 0x74, 0x78, 0x74, 0x29, + 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x3a, 0x20, 0x22, 0x64, 0x61, 0x74, 0x65, 0x2d, 0x74, 0x69, + 0x6d, 0x65, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x22, 0x3a, + 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x43, + 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6e, 0x61, 0x6d, 0x65, + 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x48, + 0x79, 0x70, 0x65, 0x72, 0x73, 0x68, 0x69, 0x66, 0x74, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x73, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x61, 0x72, 0x65, 0x20, 0x61, 0x73, 0x73, 0x69, + 0x67, 0x6e, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x73, 0x68, 0x61, + 0x72, 0x64, 0x2e, 0x5c, 0x6e, 0x54, 0x68, 0x69, 0x73, 0x20, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x20, + 0x69, 0x73, 0x20, 0x70, 0x6f, 0x70, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x20, 0x62, 0x79, 0x20, + 0x4f, 0x43, 0x4d, 0x2c, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6d, 0x75, 0x73, 0x74, 0x20, 0x6e, 0x6f, + 0x74, 0x20, 0x62, 0x65, 0x20, 0x6f, 0x76, 0x65, 0x72, 0x77, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, + 0x20, 0x76, 0x69, 0x61, 0x20, 0x41, 0x50, 0x49, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, + 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x20, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x20, 0x69, 0x6e, 0x20, 0x77, 0x68, + 0x69, 0x63, 0x68, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, + 0x6e, 0x65, 0x72, 0x20, 0x73, 0x70, 0x69, 0x6e, 0x73, 0x20, 0x75, 0x70, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, + 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, + 0x20, 0x22, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x68, 0x61, 0x72, 0x64, 0x2e, + 0x20, 0x50, 0x6f, 0x73, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, + 0x3a, 0x20, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x2f, 0x6d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, + 0x61, 0x6e, 0x63, 0x65, 0x2f, 0x6f, 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, 0x2e, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, + 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x68, 0x61, 0x72, + 0x64, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x65, 0x6e, 0x75, 0x6d, 0x22, 0x3a, 0x20, 0x5b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x50, 0x72, 0x6f, 0x78, + 0x79, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, + 0x6f, 0x66, 0x20, 0x61, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, + 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x22, 0x3a, 0x20, + 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x48, 0x54, + 0x54, 0x50, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x20, 0x69, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x55, + 0x52, 0x4c, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x20, + 0x66, 0x6f, 0x72, 0x20, 0x48, 0x54, 0x54, 0x50, 0x20, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x73, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x68, 0x74, 0x74, 0x70, 0x73, 0x5f, + 0x70, 0x72, 0x6f, 0x78, 0x79, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x48, 0x54, 0x54, 0x50, 0x53, 0x50, 0x72, 0x6f, 0x78, 0x79, + 0x20, 0x69, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x55, 0x52, 0x4c, 0x20, 0x6f, 0x66, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x48, 0x54, 0x54, + 0x50, 0x53, 0x20, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x2e, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, + 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x6e, 0x6f, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4e, 0x6f, 0x50, + 0x72, 0x6f, 0x78, 0x79, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x2d, + 0x73, 0x65, 0x70, 0x61, 0x72, 0x61, 0x74, 0x65, 0x64, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x20, 0x6f, + 0x66, 0x20, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x43, 0x49, + 0x44, 0x52, 0x73, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x5c, 0x6e, + 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x20, 0x73, 0x68, 0x6f, 0x75, 0x6c, 0x64, + 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x62, 0x65, 0x20, 0x75, 0x73, 0x65, 0x64, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, + 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x6c, + 0x69, 0x73, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, + 0x74, 0x20, 0x72, 0x65, 0x70, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x73, 0x20, 0x61, 0x20, 0x73, + 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x20, 0x61, + 0x6c, 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6b, + 0x69, 0x6e, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x22, 0x49, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x6f, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x20, 0x57, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, 0x27, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, + 0x74, 0x27, 0x20, 0x69, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, + 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, + 0x6f, 0x72, 0x20, 0x27, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x6f, + 0x77, 0x6c, 0x69, 0x73, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x27, 0x20, 0x69, 0x66, 0x20, 0x69, 0x74, + 0x20, 0x69, 0x73, 0x20, 0x6a, 0x75, 0x73, 0x74, 0x20, 0x61, 0x20, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x55, 0x6e, 0x69, 0x71, 0x75, + 0x65, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x20, 0x6f, 0x66, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, + 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x68, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x53, 0x65, 0x6c, 0x66, 0x20, 0x6c, 0x69, 0x6e, + 0x6b, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, + 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x20, 0x69, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, + 0x6f, 0x75, 0x64, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x20, 0x66, 0x6f, 0x72, + 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x61, 0x6c, 0x6c, 0x6f, + 0x77, 0x6c, 0x69, 0x73, 0x74, 0x20, 0x69, 0x73, 0x20, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x2e, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, + 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, + 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x43, 0x6c, 0x6f, 0x75, + 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x20, 0x69, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x64, + 0x61, 0x74, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x20, 0x77, 0x68, 0x65, + 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x20, 0x6c, 0x69, 0x73, 0x74, + 0x20, 0x68, 0x61, 0x73, 0x20, 0x62, 0x65, 0x65, 0x6e, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x3a, 0x20, 0x22, 0x64, 0x61, 0x74, 0x65, 0x2d, 0x74, + 0x69, 0x6d, 0x65, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x69, + 0x65, 0x73, 0x20, 0x69, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x20, 0x6f, + 0x66, 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x69, 0x65, 0x73, 0x20, 0x63, 0x6f, 0x6e, + 0x74, 0x61, 0x69, 0x6e, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x41, + 0x6c, 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, + 0x22, 0x61, 0x72, 0x72, 0x61, 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, + 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x4c, 0x6f, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x61, 0x20, 0x6c, 0x6f, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x62, + 0x79, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x20, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5c, 0x6e, 0x6e, 0x61, 0x6d, 0x65, 0x2e, 0x20, 0x54, 0x68, 0x65, + 0x20, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x6d, 0x69, 0x67, + 0x68, 0x74, 0x20, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x20, 0x77, 0x69, 0x6c, 0x64, 0x63, + 0x61, 0x72, 0x64, 0x73, 0x2c, 0x20, 0x6c, 0x69, 0x6b, 0x65, 0x20, 0x27, 0x2a, 0x27, 0x20, 0x6f, + 0x72, 0x20, 0x27, 0x3f, 0x3f, 0x27, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, + 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, + 0x61, 0x6d, 0x65, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x73, 0x20, 0x61, 0x20, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x66, 0x6f, 0x72, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x6e, 0x49, 0x6e, + 0x20, 0x63, 0x61, 0x73, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x20, 0x75, 0x73, 0x65, 0x20, 0x6e, 0x6f, 0x6e, 0x2d, 0x73, 0x74, 0x61, 0x6e, 0x64, + 0x61, 0x72, 0x64, 0x20, 0x28, 0x38, 0x30, 0x20, 0x6f, 0x72, 0x20, 0x34, 0x34, 0x33, 0x29, 0x20, + 0x70, 0x6f, 0x72, 0x74, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x6f, 0x72, 0x74, 0x20, 0x73, + 0x68, 0x6f, 0x75, 0x6c, 0x64, 0x20, 0x62, 0x65, 0x20, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, + 0x64, 0x5c, 0x6e, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x61, 0x73, 0x20, 0x77, 0x65, 0x6c, 0x6c, 0x2e, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, + 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x22, 0x3a, + 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x69, + 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x20, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, + 0x73, 0x20, 0x77, 0x68, 0x65, 0x74, 0x68, 0x65, 0x72, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x20, 0x69, 0x73, 0x20, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, + 0x20, 0x28, 0x68, 0x74, 0x74, 0x70, 0x73, 0x29, 0x20, 0x6f, 0x72, 0x20, 0x69, 0x6e, 0x73, 0x65, + 0x63, 0x75, 0x72, 0x65, 0x20, 0x28, 0x68, 0x74, 0x74, 0x70, 0x29, 0x5c, 0x6e, 0x42, 0x79, 0x20, + 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x20, 0x28, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, + 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x29, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x20, 0x69, 0x73, 0x20, 0x61, 0x73, 0x73, 0x75, 0x6d, + 0x65, 0x64, 0x20, 0x61, 0x73, 0x20, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x2e, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, + 0x65, 0x22, 0x3a, 0x20, 0x22, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x53, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x20, + 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x64, 0x65, 0x74, 0x65, + 0x72, 0x6d, 0x69, 0x6e, 0x65, 0x73, 0x20, 0x68, 0x6f, 0x77, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, + 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x20, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, + 0x20, 0x73, 0x68, 0x6f, 0x75, 0x6c, 0x64, 0x20, 0x74, 0x72, 0x65, 0x61, 0x74, 0x20, 0x69, 0x6e, + 0x64, 0x69, 0x76, 0x69, 0x64, 0x75, 0x61, 0x6c, 0x5c, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x69, 0x65, 0x73, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x69, 0x6e, 0x67, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x62, + 0x75, 0x69, 0x6c, 0x64, 0x73, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x70, 0x6f, 0x64, 0x73, 0x2e, 0x20, + 0x46, 0x6f, 0x72, 0x20, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2c, 0x20, 0x77, 0x68, + 0x65, 0x74, 0x68, 0x65, 0x72, 0x20, 0x6f, 0x72, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x74, 0x6f, 0x20, + 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x20, 0x69, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x20, 0x61, + 0x63, 0x63, 0x65, 0x73, 0x73, 0x2e, 0x5c, 0x6e, 0x49, 0x74, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, + 0x6e, 0x6f, 0x74, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x20, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x20, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, + 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x69, 0x65, 0x73, 0x3a, 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x69, + 0x65, 0x73, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x6d, 0x61, + 0x67, 0x65, 0x20, 0x70, 0x75, 0x6c, 0x6c, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x70, 0x75, 0x73, 0x68, + 0x20, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x61, 0x72, 0x65, 0x20, 0x61, 0x6c, 0x6c, + 0x6f, 0x77, 0x65, 0x64, 0x2e, 0x5c, 0x6e, 0x54, 0x6f, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, + 0x79, 0x20, 0x61, 0x6c, 0x6c, 0x20, 0x73, 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, + 0x2c, 0x20, 0x61, 0x64, 0x64, 0x20, 0x74, 0x68, 0x65, 0x20, 0x61, 0x73, 0x74, 0x65, 0x72, 0x69, + 0x73, 0x6b, 0x20, 0x28, 0x2a, 0x29, 0x20, 0x77, 0x69, 0x6c, 0x64, 0x63, 0x61, 0x72, 0x64, 0x20, + 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x20, 0x61, 0x73, 0x20, 0x61, 0x20, 0x70, + 0x72, 0x65, 0x66, 0x69, 0x78, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x2e, 0x5c, 0x6e, 0x46, 0x6f, 0x72, 0x20, 0x65, + 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2c, 0x20, 0x2a, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, + 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x20, 0x59, 0x6f, 0x75, 0x20, 0x63, 0x61, 0x6e, 0x20, 0x73, + 0x70, 0x65, 0x63, 0x69, 0x66, 0x79, 0x20, 0x61, 0x6e, 0x20, 0x69, 0x6e, 0x64, 0x69, 0x76, 0x69, + 0x64, 0x75, 0x61, 0x6c, 0x20, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x20, + 0x77, 0x69, 0x74, 0x68, 0x69, 0x6e, 0x20, 0x61, 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x5c, 0x6e, 0x46, 0x6f, 0x72, 0x20, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x3a, + 0x20, 0x72, 0x65, 0x67, 0x31, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x79, 0x72, 0x65, 0x70, 0x6f, 0x2f, + 0x6d, 0x79, 0x61, 0x70, 0x70, 0x3a, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x20, 0x41, 0x6c, + 0x6c, 0x20, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x69, + 0x65, 0x73, 0x20, 0x61, 0x72, 0x65, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x2e, 0x5c, + 0x6e, 0x4d, 0x75, 0x74, 0x75, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x73, + 0x69, 0x76, 0x65, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x60, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x65, + 0x64, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x69, 0x65, 0x73, 0x60, 0x22, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, + 0x22, 0x3a, 0x20, 0x22, 0x61, 0x72, 0x72, 0x61, 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x3a, + 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x5f, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x69, 0x65, 0x73, 0x3a, 0x20, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x69, 0x65, 0x73, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x77, 0x68, 0x69, + 0x63, 0x68, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x20, 0x70, 0x75, 0x6c, 0x6c, 0x20, 0x61, 0x6e, + 0x64, 0x20, 0x70, 0x75, 0x73, 0x68, 0x20, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x61, + 0x72, 0x65, 0x20, 0x64, 0x65, 0x6e, 0x69, 0x65, 0x64, 0x2e, 0x5c, 0x6e, 0x54, 0x6f, 0x20, 0x73, + 0x70, 0x65, 0x63, 0x69, 0x66, 0x79, 0x20, 0x61, 0x6c, 0x6c, 0x20, 0x73, 0x75, 0x62, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x2c, 0x20, 0x61, 0x64, 0x64, 0x20, 0x74, 0x68, 0x65, 0x20, 0x61, + 0x73, 0x74, 0x65, 0x72, 0x69, 0x73, 0x6b, 0x20, 0x28, 0x2a, 0x29, 0x20, 0x77, 0x69, 0x6c, 0x64, + 0x63, 0x61, 0x72, 0x64, 0x20, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x20, 0x61, + 0x73, 0x20, 0x61, 0x20, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x2e, 0x5c, 0x6e, + 0x46, 0x6f, 0x72, 0x20, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2c, 0x20, 0x2a, 0x2e, 0x65, + 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x20, 0x59, 0x6f, 0x75, 0x20, + 0x63, 0x61, 0x6e, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x79, 0x20, 0x61, 0x6e, 0x20, 0x69, + 0x6e, 0x64, 0x69, 0x76, 0x69, 0x64, 0x75, 0x61, 0x6c, 0x20, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x20, 0x77, 0x69, 0x74, 0x68, 0x69, 0x6e, 0x20, 0x61, 0x20, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x5c, 0x6e, 0x46, 0x6f, 0x72, 0x20, 0x65, 0x78, 0x61, + 0x6d, 0x70, 0x6c, 0x65, 0x3a, 0x20, 0x72, 0x65, 0x67, 0x31, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x79, + 0x72, 0x65, 0x70, 0x6f, 0x2f, 0x6d, 0x79, 0x61, 0x70, 0x70, 0x3a, 0x6c, 0x61, 0x74, 0x65, 0x73, + 0x74, 0x2e, 0x20, 0x41, 0x6c, 0x6c, 0x20, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x20, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x69, 0x65, 0x73, 0x20, 0x61, 0x72, 0x65, 0x20, 0x61, 0x6c, 0x6c, 0x6f, + 0x77, 0x65, 0x64, 0x2e, 0x5c, 0x6e, 0x4d, 0x75, 0x74, 0x75, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x65, + 0x78, 0x63, 0x6c, 0x75, 0x73, 0x69, 0x76, 0x65, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x60, 0x41, + 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x69, 0x65, 0x73, + 0x60, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x61, 0x72, 0x72, 0x61, 0x79, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x74, + 0x65, 0x6d, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x6e, 0x73, + 0x65, 0x63, 0x75, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x69, 0x65, 0x73, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, + 0x22, 0x49, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x69, 0x65, 0x73, 0x20, 0x61, 0x72, 0x65, 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x69, + 0x65, 0x73, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x64, 0x6f, 0x20, 0x6e, 0x6f, 0x74, 0x20, + 0x68, 0x61, 0x76, 0x65, 0x20, 0x61, 0x20, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x20, 0x54, 0x4c, 0x53, + 0x20, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x20, 0x6f, 0x72, 0x20, + 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x20, 0x48, 0x54, 0x54, + 0x50, 0x20, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x5c, 0x6e, + 0x54, 0x6f, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x79, 0x20, 0x61, 0x6c, 0x6c, 0x20, 0x73, + 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x2c, 0x20, 0x61, 0x64, 0x64, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x61, 0x73, 0x74, 0x65, 0x72, 0x69, 0x73, 0x6b, 0x20, 0x28, 0x2a, 0x29, 0x20, + 0x77, 0x69, 0x6c, 0x64, 0x63, 0x61, 0x72, 0x64, 0x20, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, + 0x65, 0x72, 0x20, 0x61, 0x73, 0x20, 0x61, 0x20, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x20, 0x74, + 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x20, 0x6e, 0x61, 0x6d, + 0x65, 0x2e, 0x5c, 0x6e, 0x46, 0x6f, 0x72, 0x20, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2c, + 0x20, 0x2a, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x20, + 0x59, 0x6f, 0x75, 0x20, 0x63, 0x61, 0x6e, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x79, 0x20, + 0x61, 0x6e, 0x20, 0x69, 0x6e, 0x64, 0x69, 0x76, 0x69, 0x64, 0x75, 0x61, 0x6c, 0x20, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x20, 0x77, 0x69, 0x74, 0x68, 0x69, 0x6e, 0x20, + 0x61, 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x5c, 0x6e, 0x46, 0x6f, 0x72, + 0x20, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x3a, 0x20, 0x72, 0x65, 0x67, 0x31, 0x2e, 0x69, + 0x6f, 0x2f, 0x6d, 0x79, 0x72, 0x65, 0x70, 0x6f, 0x2f, 0x6d, 0x79, 0x61, 0x70, 0x70, 0x3a, 0x6c, + 0x61, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x61, 0x72, + 0x72, 0x61, 0x79, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, + 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x52, 0x6f, 0x6f, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x52, 0x6f, 0x6f, 0x74, 0x20, 0x76, 0x6f, 0x6c, 0x75, + 0x6d, 0x65, 0x20, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x2e, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, + 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x77, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x41, 0x57, 0x53, 0x20, 0x76, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, + 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x41, + 0x57, 0x53, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x67, 0x63, 0x70, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x47, 0x43, 0x50, 0x20, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, + 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, + 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, + 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x47, 0x43, 0x50, 0x56, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x53, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x52, 0x65, 0x70, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x20, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6b, 0x69, 0x6e, 0x64, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, + 0x22, 0x49, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x74, + 0x79, 0x70, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x6f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x2e, 0x20, 0x57, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, 0x27, 0x53, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x27, 0x20, 0x69, 0x66, 0x20, 0x74, 0x68, + 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, + 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x6f, 0x72, 0x20, 0x27, 0x53, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4c, 0x69, 0x6e, 0x6b, 0x27, 0x20, 0x69, 0x66, + 0x20, 0x69, 0x74, 0x20, 0x69, 0x73, 0x20, 0x6a, 0x75, 0x73, 0x74, 0x20, 0x61, 0x20, 0x6c, 0x69, + 0x6e, 0x6b, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x64, 0x22, 0x3a, 0x20, + 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x55, 0x6e, + 0x69, 0x71, 0x75, 0x65, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x20, + 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, + 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x68, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x53, 0x65, 0x6c, 0x66, 0x20, + 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x77, 0x73, + 0x5f, 0x73, 0x68, 0x61, 0x72, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x20, 0x66, 0x6f, + 0x72, 0x20, 0x41, 0x57, 0x53, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x20, + 0x73, 0x68, 0x61, 0x72, 0x64, 0x73, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, + 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x73, 0x2f, 0x41, 0x57, 0x53, 0x53, 0x68, 0x61, 0x72, 0x64, 0x22, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x6b, 0x75, 0x62, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x54, 0x68, 0x65, 0x20, 0x6b, 0x75, 0x62, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x20, 0x6f, + 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x22, 0x2c, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, + 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, + 0x55, 0x52, 0x4c, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, + 0x67, 0x79, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x3a, 0x20, 0x22, 0x54, 0x68, 0x65, 0x20, 0x74, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x20, + 0x6f, 0x66, 0x20, 0x61, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x73, + 0x68, 0x61, 0x72, 0x64, 0x20, 0x28, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x29, 0x2e, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x24, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x22, 0x23, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, + 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x50, 0x72, 0x6f, + 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x54, 0x6f, 0x70, 0x6f, 0x6c, + 0x6f, 0x67, 0x79, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4e, 0x75, 0x6d, + 0x65, 0x72, 0x69, 0x63, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x75, 0x6e, 0x69, 0x74, 0x20, 0x75, 0x73, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, + 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x20, 0x69, 0x74, 0x2e, 0x5c, 0x6e, 0x5c, 0x6e, 0x55, + 0x6e, 0x69, 0x74, 0x73, 0x20, 0x61, 0x72, 0x65, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x6d, 0x61, 0x6e, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x2c, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x74, 0x68, 0x65, 0x79, + 0x27, 0x72, 0x65, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, + 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x73, 0x6f, 0x6d, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x2e, 0x20, 0x46, 0x6f, 0x72, 0x5c, 0x6e, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x75, 0x73, 0x65, 0x20, 0x62, 0x79, + 0x74, 0x65, 0x73, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x20, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, + 0x64, 0x20, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x20, 0x61, 0x72, 0x65, 0x3a, 0x5c, 0x6e, 0x5c, 0x6e, + 0x2d, 0x20, 0x31, 0x20, 0x42, 0x20, 0x3d, 0x20, 0x31, 0x20, 0x62, 0x79, 0x74, 0x65, 0x5c, 0x6e, + 0x2d, 0x20, 0x31, 0x20, 0x4b, 0x42, 0x20, 0x3d, 0x20, 0x31, 0x30, 0x5e, 0x33, 0x20, 0x62, 0x79, + 0x74, 0x65, 0x73, 0x5c, 0x6e, 0x2d, 0x20, 0x31, 0x20, 0x4d, 0x42, 0x20, 0x3d, 0x20, 0x31, 0x30, + 0x5e, 0x36, 0x20, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5c, 0x6e, 0x2d, 0x20, 0x31, 0x20, 0x47, 0x42, + 0x20, 0x3d, 0x20, 0x31, 0x30, 0x5e, 0x39, 0x20, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5c, 0x6e, 0x2d, + 0x20, 0x31, 0x20, 0x54, 0x42, 0x20, 0x3d, 0x20, 0x31, 0x30, 0x5e, 0x31, 0x32, 0x20, 0x62, 0x79, + 0x74, 0x65, 0x73, 0x5c, 0x6e, 0x2d, 0x20, 0x31, 0x20, 0x50, 0x42, 0x20, 0x3d, 0x20, 0x31, 0x30, + 0x5e, 0x31, 0x35, 0x20, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5c, 0x6e, 0x5c, 0x6e, 0x2d, 0x20, 0x31, + 0x20, 0x42, 0x20, 0x3d, 0x20, 0x31, 0x20, 0x62, 0x79, 0x74, 0x65, 0x5c, 0x6e, 0x2d, 0x20, 0x31, + 0x20, 0x4b, 0x69, 0x42, 0x20, 0x3d, 0x20, 0x32, 0x5e, 0x31, 0x30, 0x20, 0x62, 0x79, 0x74, 0x65, + 0x73, 0x5c, 0x6e, 0x2d, 0x20, 0x31, 0x20, 0x4d, 0x69, 0x42, 0x20, 0x3d, 0x20, 0x32, 0x5e, 0x32, + 0x30, 0x20, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5c, 0x6e, 0x2d, 0x20, 0x31, 0x20, 0x47, 0x69, 0x42, + 0x20, 0x3d, 0x20, 0x32, 0x5e, 0x33, 0x30, 0x20, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5c, 0x6e, 0x2d, + 0x20, 0x31, 0x20, 0x54, 0x69, 0x42, 0x20, 0x3d, 0x20, 0x32, 0x5e, 0x34, 0x30, 0x20, 0x62, 0x79, + 0x74, 0x65, 0x73, 0x5c, 0x6e, 0x2d, 0x20, 0x31, 0x20, 0x50, 0x69, 0x42, 0x20, 0x3d, 0x20, 0x32, + 0x5e, 0x35, 0x30, 0x20, 0x62, 0x79, 0x74, 0x65, 0x73, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x75, + 0x6e, 0x69, 0x74, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x22, 0x4e, 0x61, 0x6d, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x75, 0x6e, 0x69, 0x74, 0x20, 0x75, 0x73, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x6d, 0x65, 0x61, + 0x73, 0x75, 0x72, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, + 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x4e, 0x75, 0x6d, + 0x65, 0x72, 0x69, 0x63, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, + 0x3a, 0x20, 0x22, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, + 0x3a, 0x20, 0x22, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x6f, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x70, 0x72, 0x6f, + 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x3a, 0x20, 0x7b, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x49, 0x6e, 0x64, 0x69, + 0x63, 0x61, 0x74, 0x65, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, 0x20, 0x6f, + 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x20, 0x57, + 0x69, 0x6c, 0x6c, 0x20, 0x61, 0x6c, 0x77, 0x61, 0x79, 0x73, 0x20, 0x62, 0x65, 0x20, 0x27, 0x45, + 0x72, 0x72, 0x6f, 0x72, 0x27, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x69, 0x64, 0x22, + 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, + 0x4e, 0x75, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, + 0x65, 0x72, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x2e, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x65, 0x72, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x3a, 0x20, 0x22, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x22, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x68, 0x72, 0x65, 0x66, 0x22, 0x3a, 0x20, 0x7b, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x53, 0x65, 0x6c, + 0x66, 0x20, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, + 0x6f, 0x64, 0x65, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x3a, 0x20, 0x22, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x75, 0x6e, 0x69, + 0x71, 0x75, 0x65, 0x20, 0x63, 0x6f, 0x64, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x2c, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x64, 0x20, + 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x20, 0x69, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x41, 0x50, 0x49, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6e, 0x75, 0x6d, 0x65, + 0x72, 0x69, 0x63, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x20, 0x6f, + 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x20, 0x46, 0x6f, 0x72, + 0x20, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2c, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x69, 0x66, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x6e, 0x75, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x20, 0x69, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x20, 0x69, 0x73, 0x20, 0x60, 0x39, 0x33, 0x60, 0x20, 0x61, 0x6e, 0x64, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x20, + 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x41, 0x50, 0x49, 0x20, 0x69, 0x73, 0x20, 0x60, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x5f, 0x6d, 0x67, 0x6d, 0x74, 0x60, 0x20, 0x74, 0x68, + 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6f, 0x64, 0x65, 0x20, 0x77, 0x69, 0x6c, 0x6c, + 0x20, 0x62, 0x65, 0x20, 0x60, 0x43, 0x4c, 0x55, 0x53, 0x54, 0x45, 0x52, 0x53, 0x2d, 0x4d, 0x47, + 0x4d, 0x54, 0x2d, 0x39, 0x33, 0x60, 0x2e, 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x72, + 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x20, 0x72, 0x65, 0x61, 0x64, + 0x61, 0x62, 0x6c, 0x65, 0x20, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x74, 0x79, + 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x3a, 0x20, + 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x45, 0x78, + 0x74, 0x72, 0x61, 0x20, 0x69, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, + 0x61, 0x62, 0x6f, 0x75, 0x74, 0x20, 0x74, 0x68, 0x65, 0x20, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x2e, + 0x22, 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x2c, + 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x61, 0x64, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, + 0x65, 0x73, 0x22, 0x3a, 0x20, 0x74, 0x72, 0x75, 0x65, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x22, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x65, 0x73, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x62, + 0x65, 0x61, 0x72, 0x65, 0x72, 0x22, 0x3a, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x68, 0x74, 0x74, 0x70, 0x22, + 0x2c, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x63, 0x68, 0x65, 0x6d, + 0x65, 0x22, 0x3a, 0x20, 0x22, 0x62, 0x65, 0x61, 0x72, 0x65, 0x72, 0x22, 0x2c, 0xa, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x62, 0x65, 0x61, 0x72, 0x65, 0x72, 0x46, 0x6f, 0x72, + 0x6d, 0x61, 0x74, 0x22, 0x3a, 0x20, 0x22, 0x4a, 0x57, 0x54, 0x22, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, 0x7d, 0x2c, 0xa, 0x20, + 0x20, 0x22, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x22, 0x3a, 0x20, 0x5b, 0xa, 0x20, + 0x20, 0x20, 0x20, 0x7b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x62, 0x65, 0x61, 0x72, + 0x65, 0x72, 0x22, 0x3a, 0x20, 0x5b, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x7d, 0xa, 0x20, 0x20, + 0x5d, 0xa, 0x7d, +} diff --git a/arohcp/v1alpha1/operator_iam_role_builder.go b/arohcp/v1alpha1/operator_iam_role_builder.go new file mode 100644 index 000000000..13d255166 --- /dev/null +++ b/arohcp/v1alpha1/operator_iam_role_builder.go @@ -0,0 +1,103 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// OperatorIAMRoleBuilder contains the data and logic needed to build 'operator_IAM_role' objects. +// +// Contains the necessary attributes to allow each operator to access the necessary AWS resources +type OperatorIAMRoleBuilder struct { + bitmap_ uint32 + id string + name string + namespace string + roleARN string + serviceAccount string +} + +// NewOperatorIAMRole creates a new builder of 'operator_IAM_role' objects. +func NewOperatorIAMRole() *OperatorIAMRoleBuilder { + return &OperatorIAMRoleBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *OperatorIAMRoleBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// ID sets the value of the 'ID' attribute to the given value. +func (b *OperatorIAMRoleBuilder) ID(value string) *OperatorIAMRoleBuilder { + b.id = value + b.bitmap_ |= 1 + return b +} + +// Name sets the value of the 'name' attribute to the given value. +func (b *OperatorIAMRoleBuilder) Name(value string) *OperatorIAMRoleBuilder { + b.name = value + b.bitmap_ |= 2 + return b +} + +// Namespace sets the value of the 'namespace' attribute to the given value. +func (b *OperatorIAMRoleBuilder) Namespace(value string) *OperatorIAMRoleBuilder { + b.namespace = value + b.bitmap_ |= 4 + return b +} + +// RoleARN sets the value of the 'role_ARN' attribute to the given value. +func (b *OperatorIAMRoleBuilder) RoleARN(value string) *OperatorIAMRoleBuilder { + b.roleARN = value + b.bitmap_ |= 8 + return b +} + +// ServiceAccount sets the value of the 'service_account' attribute to the given value. +func (b *OperatorIAMRoleBuilder) ServiceAccount(value string) *OperatorIAMRoleBuilder { + b.serviceAccount = value + b.bitmap_ |= 16 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *OperatorIAMRoleBuilder) Copy(object *OperatorIAMRole) *OperatorIAMRoleBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.id = object.id + b.name = object.name + b.namespace = object.namespace + b.roleARN = object.roleARN + b.serviceAccount = object.serviceAccount + return b +} + +// Build creates a 'operator_IAM_role' object using the configuration stored in the builder. +func (b *OperatorIAMRoleBuilder) Build() (object *OperatorIAMRole, err error) { + object = new(OperatorIAMRole) + object.bitmap_ = b.bitmap_ + object.id = b.id + object.name = b.name + object.namespace = b.namespace + object.roleARN = b.roleARN + object.serviceAccount = b.serviceAccount + return +} diff --git a/arohcp/v1alpha1/operator_iam_role_list_builder.go b/arohcp/v1alpha1/operator_iam_role_list_builder.go new file mode 100644 index 000000000..e94c3bf31 --- /dev/null +++ b/arohcp/v1alpha1/operator_iam_role_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// OperatorIAMRoleListBuilder contains the data and logic needed to build +// 'operator_IAM_role' objects. +type OperatorIAMRoleListBuilder struct { + items []*OperatorIAMRoleBuilder +} + +// NewOperatorIAMRoleList creates a new builder of 'operator_IAM_role' objects. +func NewOperatorIAMRoleList() *OperatorIAMRoleListBuilder { + return new(OperatorIAMRoleListBuilder) +} + +// Items sets the items of the list. +func (b *OperatorIAMRoleListBuilder) Items(values ...*OperatorIAMRoleBuilder) *OperatorIAMRoleListBuilder { + b.items = make([]*OperatorIAMRoleBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *OperatorIAMRoleListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *OperatorIAMRoleListBuilder) Copy(list *OperatorIAMRoleList) *OperatorIAMRoleListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*OperatorIAMRoleBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewOperatorIAMRole().Copy(v) + } + } + return b +} + +// Build creates a list of 'operator_IAM_role' objects using the +// configuration stored in the builder. +func (b *OperatorIAMRoleListBuilder) Build() (list *OperatorIAMRoleList, err error) { + items := make([]*OperatorIAMRole, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(OperatorIAMRoleList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/operator_iam_role_list_type_json.go b/arohcp/v1alpha1/operator_iam_role_list_type_json.go new file mode 100644 index 000000000..7342bf7ec --- /dev/null +++ b/arohcp/v1alpha1/operator_iam_role_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalOperatorIAMRoleList writes a list of values of the 'operator_IAM_role' type to +// the given writer. +func MarshalOperatorIAMRoleList(list []*OperatorIAMRole, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteOperatorIAMRoleList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteOperatorIAMRoleList writes a list of value of the 'operator_IAM_role' type to +// the given stream. +func WriteOperatorIAMRoleList(list []*OperatorIAMRole, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteOperatorIAMRole(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalOperatorIAMRoleList reads a list of values of the 'operator_IAM_role' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalOperatorIAMRoleList(source interface{}) (items []*OperatorIAMRole, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadOperatorIAMRoleList(iterator) + err = iterator.Error + return +} + +// ReadOperatorIAMRoleList reads list of values of the ”operator_IAM_role' type from +// the given iterator. +func ReadOperatorIAMRoleList(iterator *jsoniter.Iterator) []*OperatorIAMRole { + list := []*OperatorIAMRole{} + for iterator.ReadArray() { + item := ReadOperatorIAMRole(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/operator_iam_role_type.go b/arohcp/v1alpha1/operator_iam_role_type.go new file mode 100644 index 000000000..d69bda266 --- /dev/null +++ b/arohcp/v1alpha1/operator_iam_role_type.go @@ -0,0 +1,261 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// OperatorIAMRole represents the values of the 'operator_IAM_role' type. +// +// Contains the necessary attributes to allow each operator to access the necessary AWS resources +type OperatorIAMRole struct { + bitmap_ uint32 + id string + name string + namespace string + roleARN string + serviceAccount string +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *OperatorIAMRole) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// ID returns the value of the 'ID' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Randomly-generated ID to identify the operator role +func (o *OperatorIAMRole) ID() string { + if o != nil && o.bitmap_&1 != 0 { + return o.id + } + return "" +} + +// GetID returns the value of the 'ID' attribute and +// a flag indicating if the attribute has a value. +// +// Randomly-generated ID to identify the operator role +func (o *OperatorIAMRole) GetID() (value string, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.id + } + return +} + +// Name returns the value of the 'name' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Name of the credentials secret used to access cloud resources +func (o *OperatorIAMRole) Name() string { + if o != nil && o.bitmap_&2 != 0 { + return o.name + } + return "" +} + +// GetName returns the value of the 'name' attribute and +// a flag indicating if the attribute has a value. +// +// Name of the credentials secret used to access cloud resources +func (o *OperatorIAMRole) GetName() (value string, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.name + } + return +} + +// Namespace returns the value of the 'namespace' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Namespace where the credentials secret lives in the cluster +func (o *OperatorIAMRole) Namespace() string { + if o != nil && o.bitmap_&4 != 0 { + return o.namespace + } + return "" +} + +// GetNamespace returns the value of the 'namespace' attribute and +// a flag indicating if the attribute has a value. +// +// Namespace where the credentials secret lives in the cluster +func (o *OperatorIAMRole) GetNamespace() (value string, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.namespace + } + return +} + +// RoleARN returns the value of the 'role_ARN' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Role to assume when accessing AWS resources +func (o *OperatorIAMRole) RoleARN() string { + if o != nil && o.bitmap_&8 != 0 { + return o.roleARN + } + return "" +} + +// GetRoleARN returns the value of the 'role_ARN' attribute and +// a flag indicating if the attribute has a value. +// +// Role to assume when accessing AWS resources +func (o *OperatorIAMRole) GetRoleARN() (value string, ok bool) { + ok = o != nil && o.bitmap_&8 != 0 + if ok { + value = o.roleARN + } + return +} + +// ServiceAccount returns the value of the 'service_account' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Service account name to use when authenticating +func (o *OperatorIAMRole) ServiceAccount() string { + if o != nil && o.bitmap_&16 != 0 { + return o.serviceAccount + } + return "" +} + +// GetServiceAccount returns the value of the 'service_account' attribute and +// a flag indicating if the attribute has a value. +// +// Service account name to use when authenticating +func (o *OperatorIAMRole) GetServiceAccount() (value string, ok bool) { + ok = o != nil && o.bitmap_&16 != 0 + if ok { + value = o.serviceAccount + } + return +} + +// OperatorIAMRoleListKind is the name of the type used to represent list of objects of +// type 'operator_IAM_role'. +const OperatorIAMRoleListKind = "OperatorIAMRoleList" + +// OperatorIAMRoleListLinkKind is the name of the type used to represent links to list +// of objects of type 'operator_IAM_role'. +const OperatorIAMRoleListLinkKind = "OperatorIAMRoleListLink" + +// OperatorIAMRoleNilKind is the name of the type used to nil lists of objects of +// type 'operator_IAM_role'. +const OperatorIAMRoleListNilKind = "OperatorIAMRoleListNil" + +// OperatorIAMRoleList is a list of values of the 'operator_IAM_role' type. +type OperatorIAMRoleList struct { + href string + link bool + items []*OperatorIAMRole +} + +// Len returns the length of the list. +func (l *OperatorIAMRoleList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *OperatorIAMRoleList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *OperatorIAMRoleList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *OperatorIAMRoleList) SetItems(items []*OperatorIAMRole) { + l.items = items +} + +// Items returns the items of the list. +func (l *OperatorIAMRoleList) Items() []*OperatorIAMRole { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *OperatorIAMRoleList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *OperatorIAMRoleList) Get(i int) *OperatorIAMRole { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *OperatorIAMRoleList) Slice() []*OperatorIAMRole { + var slice []*OperatorIAMRole + if l == nil { + slice = make([]*OperatorIAMRole, 0) + } else { + slice = make([]*OperatorIAMRole, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *OperatorIAMRoleList) Each(f func(item *OperatorIAMRole) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *OperatorIAMRoleList) Range(f func(index int, item *OperatorIAMRole) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/operator_iam_role_type_json.go b/arohcp/v1alpha1/operator_iam_role_type_json.go new file mode 100644 index 000000000..3c615c1ed --- /dev/null +++ b/arohcp/v1alpha1/operator_iam_role_type_json.go @@ -0,0 +1,138 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalOperatorIAMRole writes a value of the 'operator_IAM_role' type to the given writer. +func MarshalOperatorIAMRole(object *OperatorIAMRole, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteOperatorIAMRole(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteOperatorIAMRole writes a value of the 'operator_IAM_role' type to the given stream. +func WriteOperatorIAMRole(object *OperatorIAMRole, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("id") + stream.WriteString(object.id) + count++ + } + present_ = object.bitmap_&2 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("name") + stream.WriteString(object.name) + count++ + } + present_ = object.bitmap_&4 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("namespace") + stream.WriteString(object.namespace) + count++ + } + present_ = object.bitmap_&8 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("role_arn") + stream.WriteString(object.roleARN) + count++ + } + present_ = object.bitmap_&16 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("service_account") + stream.WriteString(object.serviceAccount) + } + stream.WriteObjectEnd() +} + +// UnmarshalOperatorIAMRole reads a value of the 'operator_IAM_role' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalOperatorIAMRole(source interface{}) (object *OperatorIAMRole, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadOperatorIAMRole(iterator) + err = iterator.Error + return +} + +// ReadOperatorIAMRole reads a value of the 'operator_IAM_role' type from the given iterator. +func ReadOperatorIAMRole(iterator *jsoniter.Iterator) *OperatorIAMRole { + object := &OperatorIAMRole{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "id": + value := iterator.ReadString() + object.id = value + object.bitmap_ |= 1 + case "name": + value := iterator.ReadString() + object.name = value + object.bitmap_ |= 2 + case "namespace": + value := iterator.ReadString() + object.namespace = value + object.bitmap_ |= 4 + case "role_arn": + value := iterator.ReadString() + object.roleARN = value + object.bitmap_ |= 8 + case "service_account": + value := iterator.ReadString() + object.serviceAccount = value + object.bitmap_ |= 16 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/private_link_cluster_configuration_builder.go b/arohcp/v1alpha1/private_link_cluster_configuration_builder.go new file mode 100644 index 000000000..5962490a5 --- /dev/null +++ b/arohcp/v1alpha1/private_link_cluster_configuration_builder.go @@ -0,0 +1,79 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// PrivateLinkClusterConfigurationBuilder contains the data and logic needed to build 'private_link_cluster_configuration' objects. +// +// Manages the configuration for the Private Links. +type PrivateLinkClusterConfigurationBuilder struct { + bitmap_ uint32 + principals []*PrivateLinkPrincipalBuilder +} + +// NewPrivateLinkClusterConfiguration creates a new builder of 'private_link_cluster_configuration' objects. +func NewPrivateLinkClusterConfiguration() *PrivateLinkClusterConfigurationBuilder { + return &PrivateLinkClusterConfigurationBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *PrivateLinkClusterConfigurationBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// Principals sets the value of the 'principals' attribute to the given values. +func (b *PrivateLinkClusterConfigurationBuilder) Principals(values ...*PrivateLinkPrincipalBuilder) *PrivateLinkClusterConfigurationBuilder { + b.principals = make([]*PrivateLinkPrincipalBuilder, len(values)) + copy(b.principals, values) + b.bitmap_ |= 1 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *PrivateLinkClusterConfigurationBuilder) Copy(object *PrivateLinkClusterConfiguration) *PrivateLinkClusterConfigurationBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + if object.principals != nil { + b.principals = make([]*PrivateLinkPrincipalBuilder, len(object.principals)) + for i, v := range object.principals { + b.principals[i] = NewPrivateLinkPrincipal().Copy(v) + } + } else { + b.principals = nil + } + return b +} + +// Build creates a 'private_link_cluster_configuration' object using the configuration stored in the builder. +func (b *PrivateLinkClusterConfigurationBuilder) Build() (object *PrivateLinkClusterConfiguration, err error) { + object = new(PrivateLinkClusterConfiguration) + object.bitmap_ = b.bitmap_ + if b.principals != nil { + object.principals = make([]*PrivateLinkPrincipal, len(b.principals)) + for i, v := range b.principals { + object.principals[i], err = v.Build() + if err != nil { + return + } + } + } + return +} diff --git a/arohcp/v1alpha1/private_link_cluster_configuration_list_builder.go b/arohcp/v1alpha1/private_link_cluster_configuration_list_builder.go new file mode 100644 index 000000000..d7a2a690d --- /dev/null +++ b/arohcp/v1alpha1/private_link_cluster_configuration_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// PrivateLinkClusterConfigurationListBuilder contains the data and logic needed to build +// 'private_link_cluster_configuration' objects. +type PrivateLinkClusterConfigurationListBuilder struct { + items []*PrivateLinkClusterConfigurationBuilder +} + +// NewPrivateLinkClusterConfigurationList creates a new builder of 'private_link_cluster_configuration' objects. +func NewPrivateLinkClusterConfigurationList() *PrivateLinkClusterConfigurationListBuilder { + return new(PrivateLinkClusterConfigurationListBuilder) +} + +// Items sets the items of the list. +func (b *PrivateLinkClusterConfigurationListBuilder) Items(values ...*PrivateLinkClusterConfigurationBuilder) *PrivateLinkClusterConfigurationListBuilder { + b.items = make([]*PrivateLinkClusterConfigurationBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *PrivateLinkClusterConfigurationListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *PrivateLinkClusterConfigurationListBuilder) Copy(list *PrivateLinkClusterConfigurationList) *PrivateLinkClusterConfigurationListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*PrivateLinkClusterConfigurationBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewPrivateLinkClusterConfiguration().Copy(v) + } + } + return b +} + +// Build creates a list of 'private_link_cluster_configuration' objects using the +// configuration stored in the builder. +func (b *PrivateLinkClusterConfigurationListBuilder) Build() (list *PrivateLinkClusterConfigurationList, err error) { + items := make([]*PrivateLinkClusterConfiguration, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(PrivateLinkClusterConfigurationList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/private_link_cluster_configuration_list_type_json.go b/arohcp/v1alpha1/private_link_cluster_configuration_list_type_json.go new file mode 100644 index 000000000..f92a61b4a --- /dev/null +++ b/arohcp/v1alpha1/private_link_cluster_configuration_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalPrivateLinkClusterConfigurationList writes a list of values of the 'private_link_cluster_configuration' type to +// the given writer. +func MarshalPrivateLinkClusterConfigurationList(list []*PrivateLinkClusterConfiguration, writer io.Writer) error { + stream := helpers.NewStream(writer) + WritePrivateLinkClusterConfigurationList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WritePrivateLinkClusterConfigurationList writes a list of value of the 'private_link_cluster_configuration' type to +// the given stream. +func WritePrivateLinkClusterConfigurationList(list []*PrivateLinkClusterConfiguration, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WritePrivateLinkClusterConfiguration(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalPrivateLinkClusterConfigurationList reads a list of values of the 'private_link_cluster_configuration' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalPrivateLinkClusterConfigurationList(source interface{}) (items []*PrivateLinkClusterConfiguration, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadPrivateLinkClusterConfigurationList(iterator) + err = iterator.Error + return +} + +// ReadPrivateLinkClusterConfigurationList reads list of values of the ”private_link_cluster_configuration' type from +// the given iterator. +func ReadPrivateLinkClusterConfigurationList(iterator *jsoniter.Iterator) []*PrivateLinkClusterConfiguration { + list := []*PrivateLinkClusterConfiguration{} + for iterator.ReadArray() { + item := ReadPrivateLinkClusterConfiguration(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/private_link_cluster_configuration_type.go b/arohcp/v1alpha1/private_link_cluster_configuration_type.go new file mode 100644 index 000000000..5833f637b --- /dev/null +++ b/arohcp/v1alpha1/private_link_cluster_configuration_type.go @@ -0,0 +1,165 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// PrivateLinkClusterConfiguration represents the values of the 'private_link_cluster_configuration' type. +// +// Manages the configuration for the Private Links. +type PrivateLinkClusterConfiguration struct { + bitmap_ uint32 + principals []*PrivateLinkPrincipal +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *PrivateLinkClusterConfiguration) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// Principals returns the value of the 'principals' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// List of additional principals for the Private Link +func (o *PrivateLinkClusterConfiguration) Principals() []*PrivateLinkPrincipal { + if o != nil && o.bitmap_&1 != 0 { + return o.principals + } + return nil +} + +// GetPrincipals returns the value of the 'principals' attribute and +// a flag indicating if the attribute has a value. +// +// List of additional principals for the Private Link +func (o *PrivateLinkClusterConfiguration) GetPrincipals() (value []*PrivateLinkPrincipal, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.principals + } + return +} + +// PrivateLinkClusterConfigurationListKind is the name of the type used to represent list of objects of +// type 'private_link_cluster_configuration'. +const PrivateLinkClusterConfigurationListKind = "PrivateLinkClusterConfigurationList" + +// PrivateLinkClusterConfigurationListLinkKind is the name of the type used to represent links to list +// of objects of type 'private_link_cluster_configuration'. +const PrivateLinkClusterConfigurationListLinkKind = "PrivateLinkClusterConfigurationListLink" + +// PrivateLinkClusterConfigurationNilKind is the name of the type used to nil lists of objects of +// type 'private_link_cluster_configuration'. +const PrivateLinkClusterConfigurationListNilKind = "PrivateLinkClusterConfigurationListNil" + +// PrivateLinkClusterConfigurationList is a list of values of the 'private_link_cluster_configuration' type. +type PrivateLinkClusterConfigurationList struct { + href string + link bool + items []*PrivateLinkClusterConfiguration +} + +// Len returns the length of the list. +func (l *PrivateLinkClusterConfigurationList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *PrivateLinkClusterConfigurationList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *PrivateLinkClusterConfigurationList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *PrivateLinkClusterConfigurationList) SetItems(items []*PrivateLinkClusterConfiguration) { + l.items = items +} + +// Items returns the items of the list. +func (l *PrivateLinkClusterConfigurationList) Items() []*PrivateLinkClusterConfiguration { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *PrivateLinkClusterConfigurationList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *PrivateLinkClusterConfigurationList) Get(i int) *PrivateLinkClusterConfiguration { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *PrivateLinkClusterConfigurationList) Slice() []*PrivateLinkClusterConfiguration { + var slice []*PrivateLinkClusterConfiguration + if l == nil { + slice = make([]*PrivateLinkClusterConfiguration, 0) + } else { + slice = make([]*PrivateLinkClusterConfiguration, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *PrivateLinkClusterConfigurationList) Each(f func(item *PrivateLinkClusterConfiguration) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *PrivateLinkClusterConfigurationList) Range(f func(index int, item *PrivateLinkClusterConfiguration) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/private_link_cluster_configuration_type_json.go b/arohcp/v1alpha1/private_link_cluster_configuration_type_json.go new file mode 100644 index 000000000..6d9749e40 --- /dev/null +++ b/arohcp/v1alpha1/private_link_cluster_configuration_type_json.go @@ -0,0 +1,86 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalPrivateLinkClusterConfiguration writes a value of the 'private_link_cluster_configuration' type to the given writer. +func MarshalPrivateLinkClusterConfiguration(object *PrivateLinkClusterConfiguration, writer io.Writer) error { + stream := helpers.NewStream(writer) + WritePrivateLinkClusterConfiguration(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WritePrivateLinkClusterConfiguration writes a value of the 'private_link_cluster_configuration' type to the given stream. +func WritePrivateLinkClusterConfiguration(object *PrivateLinkClusterConfiguration, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 && object.principals != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("principals") + WritePrivateLinkPrincipalList(object.principals, stream) + } + stream.WriteObjectEnd() +} + +// UnmarshalPrivateLinkClusterConfiguration reads a value of the 'private_link_cluster_configuration' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalPrivateLinkClusterConfiguration(source interface{}) (object *PrivateLinkClusterConfiguration, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadPrivateLinkClusterConfiguration(iterator) + err = iterator.Error + return +} + +// ReadPrivateLinkClusterConfiguration reads a value of the 'private_link_cluster_configuration' type from the given iterator. +func ReadPrivateLinkClusterConfiguration(iterator *jsoniter.Iterator) *PrivateLinkClusterConfiguration { + object := &PrivateLinkClusterConfiguration{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "principals": + value := ReadPrivateLinkPrincipalList(iterator) + object.principals = value + object.bitmap_ |= 1 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/private_link_principal_builder.go b/arohcp/v1alpha1/private_link_principal_builder.go new file mode 100644 index 000000000..331960bb8 --- /dev/null +++ b/arohcp/v1alpha1/private_link_principal_builder.go @@ -0,0 +1,87 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// PrivateLinkPrincipalBuilder contains the data and logic needed to build 'private_link_principal' objects. +type PrivateLinkPrincipalBuilder struct { + bitmap_ uint32 + id string + href string + principal string +} + +// NewPrivateLinkPrincipal creates a new builder of 'private_link_principal' objects. +func NewPrivateLinkPrincipal() *PrivateLinkPrincipalBuilder { + return &PrivateLinkPrincipalBuilder{} +} + +// Link sets the flag that indicates if this is a link. +func (b *PrivateLinkPrincipalBuilder) Link(value bool) *PrivateLinkPrincipalBuilder { + b.bitmap_ |= 1 + return b +} + +// ID sets the identifier of the object. +func (b *PrivateLinkPrincipalBuilder) ID(value string) *PrivateLinkPrincipalBuilder { + b.id = value + b.bitmap_ |= 2 + return b +} + +// HREF sets the link to the object. +func (b *PrivateLinkPrincipalBuilder) HREF(value string) *PrivateLinkPrincipalBuilder { + b.href = value + b.bitmap_ |= 4 + return b +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *PrivateLinkPrincipalBuilder) Empty() bool { + return b == nil || b.bitmap_&^1 == 0 +} + +// Principal sets the value of the 'principal' attribute to the given value. +func (b *PrivateLinkPrincipalBuilder) Principal(value string) *PrivateLinkPrincipalBuilder { + b.principal = value + b.bitmap_ |= 8 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *PrivateLinkPrincipalBuilder) Copy(object *PrivateLinkPrincipal) *PrivateLinkPrincipalBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.id = object.id + b.href = object.href + b.principal = object.principal + return b +} + +// Build creates a 'private_link_principal' object using the configuration stored in the builder. +func (b *PrivateLinkPrincipalBuilder) Build() (object *PrivateLinkPrincipal, err error) { + object = new(PrivateLinkPrincipal) + object.id = b.id + object.href = b.href + object.bitmap_ = b.bitmap_ + object.principal = b.principal + return +} diff --git a/arohcp/v1alpha1/private_link_principal_list_builder.go b/arohcp/v1alpha1/private_link_principal_list_builder.go new file mode 100644 index 000000000..99731054e --- /dev/null +++ b/arohcp/v1alpha1/private_link_principal_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// PrivateLinkPrincipalListBuilder contains the data and logic needed to build +// 'private_link_principal' objects. +type PrivateLinkPrincipalListBuilder struct { + items []*PrivateLinkPrincipalBuilder +} + +// NewPrivateLinkPrincipalList creates a new builder of 'private_link_principal' objects. +func NewPrivateLinkPrincipalList() *PrivateLinkPrincipalListBuilder { + return new(PrivateLinkPrincipalListBuilder) +} + +// Items sets the items of the list. +func (b *PrivateLinkPrincipalListBuilder) Items(values ...*PrivateLinkPrincipalBuilder) *PrivateLinkPrincipalListBuilder { + b.items = make([]*PrivateLinkPrincipalBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *PrivateLinkPrincipalListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *PrivateLinkPrincipalListBuilder) Copy(list *PrivateLinkPrincipalList) *PrivateLinkPrincipalListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*PrivateLinkPrincipalBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewPrivateLinkPrincipal().Copy(v) + } + } + return b +} + +// Build creates a list of 'private_link_principal' objects using the +// configuration stored in the builder. +func (b *PrivateLinkPrincipalListBuilder) Build() (list *PrivateLinkPrincipalList, err error) { + items := make([]*PrivateLinkPrincipal, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(PrivateLinkPrincipalList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/private_link_principal_list_type_json.go b/arohcp/v1alpha1/private_link_principal_list_type_json.go new file mode 100644 index 000000000..f18b17bdb --- /dev/null +++ b/arohcp/v1alpha1/private_link_principal_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalPrivateLinkPrincipalList writes a list of values of the 'private_link_principal' type to +// the given writer. +func MarshalPrivateLinkPrincipalList(list []*PrivateLinkPrincipal, writer io.Writer) error { + stream := helpers.NewStream(writer) + WritePrivateLinkPrincipalList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WritePrivateLinkPrincipalList writes a list of value of the 'private_link_principal' type to +// the given stream. +func WritePrivateLinkPrincipalList(list []*PrivateLinkPrincipal, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WritePrivateLinkPrincipal(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalPrivateLinkPrincipalList reads a list of values of the 'private_link_principal' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalPrivateLinkPrincipalList(source interface{}) (items []*PrivateLinkPrincipal, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadPrivateLinkPrincipalList(iterator) + err = iterator.Error + return +} + +// ReadPrivateLinkPrincipalList reads list of values of the ”private_link_principal' type from +// the given iterator. +func ReadPrivateLinkPrincipalList(iterator *jsoniter.Iterator) []*PrivateLinkPrincipal { + list := []*PrivateLinkPrincipal{} + for iterator.ReadArray() { + item := ReadPrivateLinkPrincipal(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/private_link_principal_type.go b/arohcp/v1alpha1/private_link_principal_type.go new file mode 100644 index 000000000..708c0a9ef --- /dev/null +++ b/arohcp/v1alpha1/private_link_principal_type.go @@ -0,0 +1,263 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// PrivateLinkPrincipalKind is the name of the type used to represent objects +// of type 'private_link_principal'. +const PrivateLinkPrincipalKind = "PrivateLinkPrincipal" + +// PrivateLinkPrincipalLinkKind is the name of the type used to represent links +// to objects of type 'private_link_principal'. +const PrivateLinkPrincipalLinkKind = "PrivateLinkPrincipalLink" + +// PrivateLinkPrincipalNilKind is the name of the type used to nil references +// to objects of type 'private_link_principal'. +const PrivateLinkPrincipalNilKind = "PrivateLinkPrincipalNil" + +// PrivateLinkPrincipal represents the values of the 'private_link_principal' type. +type PrivateLinkPrincipal struct { + bitmap_ uint32 + id string + href string + principal string +} + +// Kind returns the name of the type of the object. +func (o *PrivateLinkPrincipal) Kind() string { + if o == nil { + return PrivateLinkPrincipalNilKind + } + if o.bitmap_&1 != 0 { + return PrivateLinkPrincipalLinkKind + } + return PrivateLinkPrincipalKind +} + +// Link returns true if this is a link. +func (o *PrivateLinkPrincipal) Link() bool { + return o != nil && o.bitmap_&1 != 0 +} + +// ID returns the identifier of the object. +func (o *PrivateLinkPrincipal) ID() string { + if o != nil && o.bitmap_&2 != 0 { + return o.id + } + return "" +} + +// GetID returns the identifier of the object and a flag indicating if the +// identifier has a value. +func (o *PrivateLinkPrincipal) GetID() (value string, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.id + } + return +} + +// HREF returns the link to the object. +func (o *PrivateLinkPrincipal) HREF() string { + if o != nil && o.bitmap_&4 != 0 { + return o.href + } + return "" +} + +// GetHREF returns the link of the object and a flag indicating if the +// link has a value. +func (o *PrivateLinkPrincipal) GetHREF() (value string, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.href + } + return +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *PrivateLinkPrincipal) Empty() bool { + return o == nil || o.bitmap_&^1 == 0 +} + +// Principal returns the value of the 'principal' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// ARN for a principal that is allowed for this Private Link. +func (o *PrivateLinkPrincipal) Principal() string { + if o != nil && o.bitmap_&8 != 0 { + return o.principal + } + return "" +} + +// GetPrincipal returns the value of the 'principal' attribute and +// a flag indicating if the attribute has a value. +// +// ARN for a principal that is allowed for this Private Link. +func (o *PrivateLinkPrincipal) GetPrincipal() (value string, ok bool) { + ok = o != nil && o.bitmap_&8 != 0 + if ok { + value = o.principal + } + return +} + +// PrivateLinkPrincipalListKind is the name of the type used to represent list of objects of +// type 'private_link_principal'. +const PrivateLinkPrincipalListKind = "PrivateLinkPrincipalList" + +// PrivateLinkPrincipalListLinkKind is the name of the type used to represent links to list +// of objects of type 'private_link_principal'. +const PrivateLinkPrincipalListLinkKind = "PrivateLinkPrincipalListLink" + +// PrivateLinkPrincipalNilKind is the name of the type used to nil lists of objects of +// type 'private_link_principal'. +const PrivateLinkPrincipalListNilKind = "PrivateLinkPrincipalListNil" + +// PrivateLinkPrincipalList is a list of values of the 'private_link_principal' type. +type PrivateLinkPrincipalList struct { + href string + link bool + items []*PrivateLinkPrincipal +} + +// Kind returns the name of the type of the object. +func (l *PrivateLinkPrincipalList) Kind() string { + if l == nil { + return PrivateLinkPrincipalListNilKind + } + if l.link { + return PrivateLinkPrincipalListLinkKind + } + return PrivateLinkPrincipalListKind +} + +// Link returns true iif this is a link. +func (l *PrivateLinkPrincipalList) Link() bool { + return l != nil && l.link +} + +// HREF returns the link to the list. +func (l *PrivateLinkPrincipalList) HREF() string { + if l != nil { + return l.href + } + return "" +} + +// GetHREF returns the link of the list and a flag indicating if the +// link has a value. +func (l *PrivateLinkPrincipalList) GetHREF() (value string, ok bool) { + ok = l != nil && l.href != "" + if ok { + value = l.href + } + return +} + +// Len returns the length of the list. +func (l *PrivateLinkPrincipalList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *PrivateLinkPrincipalList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *PrivateLinkPrincipalList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *PrivateLinkPrincipalList) SetItems(items []*PrivateLinkPrincipal) { + l.items = items +} + +// Items returns the items of the list. +func (l *PrivateLinkPrincipalList) Items() []*PrivateLinkPrincipal { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *PrivateLinkPrincipalList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *PrivateLinkPrincipalList) Get(i int) *PrivateLinkPrincipal { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *PrivateLinkPrincipalList) Slice() []*PrivateLinkPrincipal { + var slice []*PrivateLinkPrincipal + if l == nil { + slice = make([]*PrivateLinkPrincipal, 0) + } else { + slice = make([]*PrivateLinkPrincipal, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *PrivateLinkPrincipalList) Each(f func(item *PrivateLinkPrincipal) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *PrivateLinkPrincipalList) Range(f func(index int, item *PrivateLinkPrincipal) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/private_link_principal_type_json.go b/arohcp/v1alpha1/private_link_principal_type_json.go new file mode 100644 index 000000000..08d75ad6f --- /dev/null +++ b/arohcp/v1alpha1/private_link_principal_type_json.go @@ -0,0 +1,120 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalPrivateLinkPrincipal writes a value of the 'private_link_principal' type to the given writer. +func MarshalPrivateLinkPrincipal(object *PrivateLinkPrincipal, writer io.Writer) error { + stream := helpers.NewStream(writer) + WritePrivateLinkPrincipal(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WritePrivateLinkPrincipal writes a value of the 'private_link_principal' type to the given stream. +func WritePrivateLinkPrincipal(object *PrivateLinkPrincipal, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + stream.WriteObjectField("kind") + if object.bitmap_&1 != 0 { + stream.WriteString(PrivateLinkPrincipalLinkKind) + } else { + stream.WriteString(PrivateLinkPrincipalKind) + } + count++ + if object.bitmap_&2 != 0 { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("id") + stream.WriteString(object.id) + count++ + } + if object.bitmap_&4 != 0 { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("href") + stream.WriteString(object.href) + count++ + } + var present_ bool + present_ = object.bitmap_&8 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("principal") + stream.WriteString(object.principal) + } + stream.WriteObjectEnd() +} + +// UnmarshalPrivateLinkPrincipal reads a value of the 'private_link_principal' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalPrivateLinkPrincipal(source interface{}) (object *PrivateLinkPrincipal, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadPrivateLinkPrincipal(iterator) + err = iterator.Error + return +} + +// ReadPrivateLinkPrincipal reads a value of the 'private_link_principal' type from the given iterator. +func ReadPrivateLinkPrincipal(iterator *jsoniter.Iterator) *PrivateLinkPrincipal { + object := &PrivateLinkPrincipal{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "kind": + value := iterator.ReadString() + if value == PrivateLinkPrincipalLinkKind { + object.bitmap_ |= 1 + } + case "id": + object.id = iterator.ReadString() + object.bitmap_ |= 2 + case "href": + object.href = iterator.ReadString() + object.bitmap_ |= 4 + case "principal": + value := iterator.ReadString() + object.principal = value + object.bitmap_ |= 8 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/processor_type_list_type_json.go b/arohcp/v1alpha1/processor_type_list_type_json.go new file mode 100644 index 000000000..b251eb170 --- /dev/null +++ b/arohcp/v1alpha1/processor_type_list_type_json.go @@ -0,0 +1,76 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalProcessorTypeList writes a list of values of the 'processor_type' type to +// the given writer. +func MarshalProcessorTypeList(list []ProcessorType, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteProcessorTypeList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteProcessorTypeList writes a list of value of the 'processor_type' type to +// the given stream. +func WriteProcessorTypeList(list []ProcessorType, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + stream.WriteString(string(value)) + } + stream.WriteArrayEnd() +} + +// UnmarshalProcessorTypeList reads a list of values of the 'processor_type' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalProcessorTypeList(source interface{}) (items []ProcessorType, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadProcessorTypeList(iterator) + err = iterator.Error + return +} + +// ReadProcessorTypeList reads list of values of the ”processor_type' type from +// the given iterator. +func ReadProcessorTypeList(iterator *jsoniter.Iterator) []ProcessorType { + list := []ProcessorType{} + for iterator.ReadArray() { + text := iterator.ReadString() + item := ProcessorType(text) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/processor_type_type.go b/arohcp/v1alpha1/processor_type_type.go new file mode 100644 index 000000000..582314aef --- /dev/null +++ b/arohcp/v1alpha1/processor_type_type.go @@ -0,0 +1,30 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ProcessorType represents the values of the 'processor_type' enumerated type. +type ProcessorType string + +const ( + // Amd64 + ProcessorTypeAMD64 ProcessorType = "amd64" + // Arm64 + ProcessorTypeARM64 ProcessorType = "arm64" +) diff --git a/arohcp/v1alpha1/provision_shard_builder.go b/arohcp/v1alpha1/provision_shard_builder.go new file mode 100644 index 000000000..0be0165f9 --- /dev/null +++ b/arohcp/v1alpha1/provision_shard_builder.go @@ -0,0 +1,295 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + time "time" + + v1 "github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1" +) + +// ProvisionShardBuilder contains the data and logic needed to build 'provision_shard' objects. +// +// Contains the properties of the provision shard, including AWS and GCP related configurations +type ProvisionShardBuilder struct { + bitmap_ uint32 + id string + href string + awsAccountOperatorConfig *ServerConfigBuilder + awsBaseDomain string + gcpBaseDomain string + gcpProjectOperator *ServerConfigBuilder + cloudProvider *v1.CloudProviderBuilder + creationTimestamp time.Time + hiveConfig *ServerConfigBuilder + hypershiftConfig *ServerConfigBuilder + lastUpdateTimestamp time.Time + managementCluster string + region *v1.CloudRegionBuilder + status string +} + +// NewProvisionShard creates a new builder of 'provision_shard' objects. +func NewProvisionShard() *ProvisionShardBuilder { + return &ProvisionShardBuilder{} +} + +// Link sets the flag that indicates if this is a link. +func (b *ProvisionShardBuilder) Link(value bool) *ProvisionShardBuilder { + b.bitmap_ |= 1 + return b +} + +// ID sets the identifier of the object. +func (b *ProvisionShardBuilder) ID(value string) *ProvisionShardBuilder { + b.id = value + b.bitmap_ |= 2 + return b +} + +// HREF sets the link to the object. +func (b *ProvisionShardBuilder) HREF(value string) *ProvisionShardBuilder { + b.href = value + b.bitmap_ |= 4 + return b +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *ProvisionShardBuilder) Empty() bool { + return b == nil || b.bitmap_&^1 == 0 +} + +// AWSAccountOperatorConfig sets the value of the 'AWS_account_operator_config' attribute to the given value. +// +// Representation of a server config +func (b *ProvisionShardBuilder) AWSAccountOperatorConfig(value *ServerConfigBuilder) *ProvisionShardBuilder { + b.awsAccountOperatorConfig = value + if value != nil { + b.bitmap_ |= 8 + } else { + b.bitmap_ &^= 8 + } + return b +} + +// AWSBaseDomain sets the value of the 'AWS_base_domain' attribute to the given value. +func (b *ProvisionShardBuilder) AWSBaseDomain(value string) *ProvisionShardBuilder { + b.awsBaseDomain = value + b.bitmap_ |= 16 + return b +} + +// GCPBaseDomain sets the value of the 'GCP_base_domain' attribute to the given value. +func (b *ProvisionShardBuilder) GCPBaseDomain(value string) *ProvisionShardBuilder { + b.gcpBaseDomain = value + b.bitmap_ |= 32 + return b +} + +// GCPProjectOperator sets the value of the 'GCP_project_operator' attribute to the given value. +// +// Representation of a server config +func (b *ProvisionShardBuilder) GCPProjectOperator(value *ServerConfigBuilder) *ProvisionShardBuilder { + b.gcpProjectOperator = value + if value != nil { + b.bitmap_ |= 64 + } else { + b.bitmap_ &^= 64 + } + return b +} + +// CloudProvider sets the value of the 'cloud_provider' attribute to the given value. +// +// Cloud provider. +func (b *ProvisionShardBuilder) CloudProvider(value *v1.CloudProviderBuilder) *ProvisionShardBuilder { + b.cloudProvider = value + if value != nil { + b.bitmap_ |= 128 + } else { + b.bitmap_ &^= 128 + } + return b +} + +// CreationTimestamp sets the value of the 'creation_timestamp' attribute to the given value. +func (b *ProvisionShardBuilder) CreationTimestamp(value time.Time) *ProvisionShardBuilder { + b.creationTimestamp = value + b.bitmap_ |= 256 + return b +} + +// HiveConfig sets the value of the 'hive_config' attribute to the given value. +// +// Representation of a server config +func (b *ProvisionShardBuilder) HiveConfig(value *ServerConfigBuilder) *ProvisionShardBuilder { + b.hiveConfig = value + if value != nil { + b.bitmap_ |= 512 + } else { + b.bitmap_ &^= 512 + } + return b +} + +// HypershiftConfig sets the value of the 'hypershift_config' attribute to the given value. +// +// Representation of a server config +func (b *ProvisionShardBuilder) HypershiftConfig(value *ServerConfigBuilder) *ProvisionShardBuilder { + b.hypershiftConfig = value + if value != nil { + b.bitmap_ |= 1024 + } else { + b.bitmap_ &^= 1024 + } + return b +} + +// LastUpdateTimestamp sets the value of the 'last_update_timestamp' attribute to the given value. +func (b *ProvisionShardBuilder) LastUpdateTimestamp(value time.Time) *ProvisionShardBuilder { + b.lastUpdateTimestamp = value + b.bitmap_ |= 2048 + return b +} + +// ManagementCluster sets the value of the 'management_cluster' attribute to the given value. +func (b *ProvisionShardBuilder) ManagementCluster(value string) *ProvisionShardBuilder { + b.managementCluster = value + b.bitmap_ |= 4096 + return b +} + +// Region sets the value of the 'region' attribute to the given value. +// +// Description of a region of a cloud provider. +func (b *ProvisionShardBuilder) Region(value *v1.CloudRegionBuilder) *ProvisionShardBuilder { + b.region = value + if value != nil { + b.bitmap_ |= 8192 + } else { + b.bitmap_ &^= 8192 + } + return b +} + +// Status sets the value of the 'status' attribute to the given value. +func (b *ProvisionShardBuilder) Status(value string) *ProvisionShardBuilder { + b.status = value + b.bitmap_ |= 16384 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *ProvisionShardBuilder) Copy(object *ProvisionShard) *ProvisionShardBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.id = object.id + b.href = object.href + if object.awsAccountOperatorConfig != nil { + b.awsAccountOperatorConfig = NewServerConfig().Copy(object.awsAccountOperatorConfig) + } else { + b.awsAccountOperatorConfig = nil + } + b.awsBaseDomain = object.awsBaseDomain + b.gcpBaseDomain = object.gcpBaseDomain + if object.gcpProjectOperator != nil { + b.gcpProjectOperator = NewServerConfig().Copy(object.gcpProjectOperator) + } else { + b.gcpProjectOperator = nil + } + if object.cloudProvider != nil { + b.cloudProvider = v1.NewCloudProvider().Copy(object.cloudProvider) + } else { + b.cloudProvider = nil + } + b.creationTimestamp = object.creationTimestamp + if object.hiveConfig != nil { + b.hiveConfig = NewServerConfig().Copy(object.hiveConfig) + } else { + b.hiveConfig = nil + } + if object.hypershiftConfig != nil { + b.hypershiftConfig = NewServerConfig().Copy(object.hypershiftConfig) + } else { + b.hypershiftConfig = nil + } + b.lastUpdateTimestamp = object.lastUpdateTimestamp + b.managementCluster = object.managementCluster + if object.region != nil { + b.region = v1.NewCloudRegion().Copy(object.region) + } else { + b.region = nil + } + b.status = object.status + return b +} + +// Build creates a 'provision_shard' object using the configuration stored in the builder. +func (b *ProvisionShardBuilder) Build() (object *ProvisionShard, err error) { + object = new(ProvisionShard) + object.id = b.id + object.href = b.href + object.bitmap_ = b.bitmap_ + if b.awsAccountOperatorConfig != nil { + object.awsAccountOperatorConfig, err = b.awsAccountOperatorConfig.Build() + if err != nil { + return + } + } + object.awsBaseDomain = b.awsBaseDomain + object.gcpBaseDomain = b.gcpBaseDomain + if b.gcpProjectOperator != nil { + object.gcpProjectOperator, err = b.gcpProjectOperator.Build() + if err != nil { + return + } + } + if b.cloudProvider != nil { + object.cloudProvider, err = b.cloudProvider.Build() + if err != nil { + return + } + } + object.creationTimestamp = b.creationTimestamp + if b.hiveConfig != nil { + object.hiveConfig, err = b.hiveConfig.Build() + if err != nil { + return + } + } + if b.hypershiftConfig != nil { + object.hypershiftConfig, err = b.hypershiftConfig.Build() + if err != nil { + return + } + } + object.lastUpdateTimestamp = b.lastUpdateTimestamp + object.managementCluster = b.managementCluster + if b.region != nil { + object.region, err = b.region.Build() + if err != nil { + return + } + } + object.status = b.status + return +} diff --git a/arohcp/v1alpha1/provision_shard_list_builder.go b/arohcp/v1alpha1/provision_shard_list_builder.go new file mode 100644 index 000000000..033d9751a --- /dev/null +++ b/arohcp/v1alpha1/provision_shard_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ProvisionShardListBuilder contains the data and logic needed to build +// 'provision_shard' objects. +type ProvisionShardListBuilder struct { + items []*ProvisionShardBuilder +} + +// NewProvisionShardList creates a new builder of 'provision_shard' objects. +func NewProvisionShardList() *ProvisionShardListBuilder { + return new(ProvisionShardListBuilder) +} + +// Items sets the items of the list. +func (b *ProvisionShardListBuilder) Items(values ...*ProvisionShardBuilder) *ProvisionShardListBuilder { + b.items = make([]*ProvisionShardBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *ProvisionShardListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *ProvisionShardListBuilder) Copy(list *ProvisionShardList) *ProvisionShardListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*ProvisionShardBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewProvisionShard().Copy(v) + } + } + return b +} + +// Build creates a list of 'provision_shard' objects using the +// configuration stored in the builder. +func (b *ProvisionShardListBuilder) Build() (list *ProvisionShardList, err error) { + items := make([]*ProvisionShard, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(ProvisionShardList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/provision_shard_list_type_json.go b/arohcp/v1alpha1/provision_shard_list_type_json.go new file mode 100644 index 000000000..4fb89cba7 --- /dev/null +++ b/arohcp/v1alpha1/provision_shard_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalProvisionShardList writes a list of values of the 'provision_shard' type to +// the given writer. +func MarshalProvisionShardList(list []*ProvisionShard, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteProvisionShardList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteProvisionShardList writes a list of value of the 'provision_shard' type to +// the given stream. +func WriteProvisionShardList(list []*ProvisionShard, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteProvisionShard(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalProvisionShardList reads a list of values of the 'provision_shard' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalProvisionShardList(source interface{}) (items []*ProvisionShard, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadProvisionShardList(iterator) + err = iterator.Error + return +} + +// ReadProvisionShardList reads list of values of the ”provision_shard' type from +// the given iterator. +func ReadProvisionShardList(iterator *jsoniter.Iterator) []*ProvisionShard { + list := []*ProvisionShard{} + for iterator.ReadArray() { + item := ReadProvisionShard(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/provision_shard_topology_list_type_json.go b/arohcp/v1alpha1/provision_shard_topology_list_type_json.go new file mode 100644 index 000000000..488930e33 --- /dev/null +++ b/arohcp/v1alpha1/provision_shard_topology_list_type_json.go @@ -0,0 +1,76 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalProvisionShardTopologyList writes a list of values of the 'provision_shard_topology' type to +// the given writer. +func MarshalProvisionShardTopologyList(list []ProvisionShardTopology, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteProvisionShardTopologyList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteProvisionShardTopologyList writes a list of value of the 'provision_shard_topology' type to +// the given stream. +func WriteProvisionShardTopologyList(list []ProvisionShardTopology, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + stream.WriteString(string(value)) + } + stream.WriteArrayEnd() +} + +// UnmarshalProvisionShardTopologyList reads a list of values of the 'provision_shard_topology' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalProvisionShardTopologyList(source interface{}) (items []ProvisionShardTopology, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadProvisionShardTopologyList(iterator) + err = iterator.Error + return +} + +// ReadProvisionShardTopologyList reads list of values of the ”provision_shard_topology' type from +// the given iterator. +func ReadProvisionShardTopologyList(iterator *jsoniter.Iterator) []ProvisionShardTopology { + list := []ProvisionShardTopology{} + for iterator.ReadArray() { + text := iterator.ReadString() + item := ProvisionShardTopology(text) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/provision_shard_topology_type.go b/arohcp/v1alpha1/provision_shard_topology_type.go new file mode 100644 index 000000000..89337d74b --- /dev/null +++ b/arohcp/v1alpha1/provision_shard_topology_type.go @@ -0,0 +1,28 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ProvisionShardTopology represents the values of the 'provision_shard_topology' enumerated type. +type ProvisionShardTopology string + +const ( + // Provision shard for hosted clusters is configured in a "dedicated" topology. + ProvisionShardTopologyDedicated ProvisionShardTopology = "dedicated" +) diff --git a/arohcp/v1alpha1/provision_shard_type.go b/arohcp/v1alpha1/provision_shard_type.go new file mode 100644 index 000000000..7885587b0 --- /dev/null +++ b/arohcp/v1alpha1/provision_shard_type.go @@ -0,0 +1,541 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + time "time" + + v1 "github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1" +) + +// ProvisionShardKind is the name of the type used to represent objects +// of type 'provision_shard'. +const ProvisionShardKind = "ProvisionShard" + +// ProvisionShardLinkKind is the name of the type used to represent links +// to objects of type 'provision_shard'. +const ProvisionShardLinkKind = "ProvisionShardLink" + +// ProvisionShardNilKind is the name of the type used to nil references +// to objects of type 'provision_shard'. +const ProvisionShardNilKind = "ProvisionShardNil" + +// ProvisionShard represents the values of the 'provision_shard' type. +// +// Contains the properties of the provision shard, including AWS and GCP related configurations +type ProvisionShard struct { + bitmap_ uint32 + id string + href string + awsAccountOperatorConfig *ServerConfig + awsBaseDomain string + gcpBaseDomain string + gcpProjectOperator *ServerConfig + cloudProvider *v1.CloudProvider + creationTimestamp time.Time + hiveConfig *ServerConfig + hypershiftConfig *ServerConfig + lastUpdateTimestamp time.Time + managementCluster string + region *v1.CloudRegion + status string +} + +// Kind returns the name of the type of the object. +func (o *ProvisionShard) Kind() string { + if o == nil { + return ProvisionShardNilKind + } + if o.bitmap_&1 != 0 { + return ProvisionShardLinkKind + } + return ProvisionShardKind +} + +// Link returns true if this is a link. +func (o *ProvisionShard) Link() bool { + return o != nil && o.bitmap_&1 != 0 +} + +// ID returns the identifier of the object. +func (o *ProvisionShard) ID() string { + if o != nil && o.bitmap_&2 != 0 { + return o.id + } + return "" +} + +// GetID returns the identifier of the object and a flag indicating if the +// identifier has a value. +func (o *ProvisionShard) GetID() (value string, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.id + } + return +} + +// HREF returns the link to the object. +func (o *ProvisionShard) HREF() string { + if o != nil && o.bitmap_&4 != 0 { + return o.href + } + return "" +} + +// GetHREF returns the link of the object and a flag indicating if the +// link has a value. +func (o *ProvisionShard) GetHREF() (value string, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.href + } + return +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *ProvisionShard) Empty() bool { + return o == nil || o.bitmap_&^1 == 0 +} + +// AWSAccountOperatorConfig returns the value of the 'AWS_account_operator_config' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Contains the configuration for the AWS account operator. +func (o *ProvisionShard) AWSAccountOperatorConfig() *ServerConfig { + if o != nil && o.bitmap_&8 != 0 { + return o.awsAccountOperatorConfig + } + return nil +} + +// GetAWSAccountOperatorConfig returns the value of the 'AWS_account_operator_config' attribute and +// a flag indicating if the attribute has a value. +// +// Contains the configuration for the AWS account operator. +func (o *ProvisionShard) GetAWSAccountOperatorConfig() (value *ServerConfig, ok bool) { + ok = o != nil && o.bitmap_&8 != 0 + if ok { + value = o.awsAccountOperatorConfig + } + return +} + +// AWSBaseDomain returns the value of the 'AWS_base_domain' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Contains the AWS base domain. +func (o *ProvisionShard) AWSBaseDomain() string { + if o != nil && o.bitmap_&16 != 0 { + return o.awsBaseDomain + } + return "" +} + +// GetAWSBaseDomain returns the value of the 'AWS_base_domain' attribute and +// a flag indicating if the attribute has a value. +// +// Contains the AWS base domain. +func (o *ProvisionShard) GetAWSBaseDomain() (value string, ok bool) { + ok = o != nil && o.bitmap_&16 != 0 + if ok { + value = o.awsBaseDomain + } + return +} + +// GCPBaseDomain returns the value of the 'GCP_base_domain' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Contains the GCP base domain. +func (o *ProvisionShard) GCPBaseDomain() string { + if o != nil && o.bitmap_&32 != 0 { + return o.gcpBaseDomain + } + return "" +} + +// GetGCPBaseDomain returns the value of the 'GCP_base_domain' attribute and +// a flag indicating if the attribute has a value. +// +// Contains the GCP base domain. +func (o *ProvisionShard) GetGCPBaseDomain() (value string, ok bool) { + ok = o != nil && o.bitmap_&32 != 0 + if ok { + value = o.gcpBaseDomain + } + return +} + +// GCPProjectOperator returns the value of the 'GCP_project_operator' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Contains the configuration for the GCP project operator. +func (o *ProvisionShard) GCPProjectOperator() *ServerConfig { + if o != nil && o.bitmap_&64 != 0 { + return o.gcpProjectOperator + } + return nil +} + +// GetGCPProjectOperator returns the value of the 'GCP_project_operator' attribute and +// a flag indicating if the attribute has a value. +// +// Contains the configuration for the GCP project operator. +func (o *ProvisionShard) GetGCPProjectOperator() (value *ServerConfig, ok bool) { + ok = o != nil && o.bitmap_&64 != 0 + if ok { + value = o.gcpProjectOperator + } + return +} + +// CloudProvider returns the value of the 'cloud_provider' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Contains the cloud provider name. +func (o *ProvisionShard) CloudProvider() *v1.CloudProvider { + if o != nil && o.bitmap_&128 != 0 { + return o.cloudProvider + } + return nil +} + +// GetCloudProvider returns the value of the 'cloud_provider' attribute and +// a flag indicating if the attribute has a value. +// +// Contains the cloud provider name. +func (o *ProvisionShard) GetCloudProvider() (value *v1.CloudProvider, ok bool) { + ok = o != nil && o.bitmap_&128 != 0 + if ok { + value = o.cloudProvider + } + return +} + +// CreationTimestamp returns the value of the 'creation_timestamp' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Date and time when the provision shard was initially created, using the +// format defined in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt). +func (o *ProvisionShard) CreationTimestamp() time.Time { + if o != nil && o.bitmap_&256 != 0 { + return o.creationTimestamp + } + return time.Time{} +} + +// GetCreationTimestamp returns the value of the 'creation_timestamp' attribute and +// a flag indicating if the attribute has a value. +// +// Date and time when the provision shard was initially created, using the +// format defined in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt). +func (o *ProvisionShard) GetCreationTimestamp() (value time.Time, ok bool) { + ok = o != nil && o.bitmap_&256 != 0 + if ok { + value = o.creationTimestamp + } + return +} + +// HiveConfig returns the value of the 'hive_config' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Contains the configuration for Hive. +func (o *ProvisionShard) HiveConfig() *ServerConfig { + if o != nil && o.bitmap_&512 != 0 { + return o.hiveConfig + } + return nil +} + +// GetHiveConfig returns the value of the 'hive_config' attribute and +// a flag indicating if the attribute has a value. +// +// Contains the configuration for Hive. +func (o *ProvisionShard) GetHiveConfig() (value *ServerConfig, ok bool) { + ok = o != nil && o.bitmap_&512 != 0 + if ok { + value = o.hiveConfig + } + return +} + +// HypershiftConfig returns the value of the 'hypershift_config' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Contains the configuration for Hypershift. +func (o *ProvisionShard) HypershiftConfig() *ServerConfig { + if o != nil && o.bitmap_&1024 != 0 { + return o.hypershiftConfig + } + return nil +} + +// GetHypershiftConfig returns the value of the 'hypershift_config' attribute and +// a flag indicating if the attribute has a value. +// +// Contains the configuration for Hypershift. +func (o *ProvisionShard) GetHypershiftConfig() (value *ServerConfig, ok bool) { + ok = o != nil && o.bitmap_&1024 != 0 + if ok { + value = o.hypershiftConfig + } + return +} + +// LastUpdateTimestamp returns the value of the 'last_update_timestamp' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Date and time when the provision shard was last updated, using the +// format defined in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt). +func (o *ProvisionShard) LastUpdateTimestamp() time.Time { + if o != nil && o.bitmap_&2048 != 0 { + return o.lastUpdateTimestamp + } + return time.Time{} +} + +// GetLastUpdateTimestamp returns the value of the 'last_update_timestamp' attribute and +// a flag indicating if the attribute has a value. +// +// Date and time when the provision shard was last updated, using the +// format defined in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt). +func (o *ProvisionShard) GetLastUpdateTimestamp() (value time.Time, ok bool) { + ok = o != nil && o.bitmap_&2048 != 0 + if ok { + value = o.lastUpdateTimestamp + } + return +} + +// ManagementCluster returns the value of the 'management_cluster' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Contains the name of the management cluster for Hypershift clusters that are assigned to this shard. +// This field is populated by OCM, and must not be overwritten via API. +func (o *ProvisionShard) ManagementCluster() string { + if o != nil && o.bitmap_&4096 != 0 { + return o.managementCluster + } + return "" +} + +// GetManagementCluster returns the value of the 'management_cluster' attribute and +// a flag indicating if the attribute has a value. +// +// Contains the name of the management cluster for Hypershift clusters that are assigned to this shard. +// This field is populated by OCM, and must not be overwritten via API. +func (o *ProvisionShard) GetManagementCluster() (value string, ok bool) { + ok = o != nil && o.bitmap_&4096 != 0 + if ok { + value = o.managementCluster + } + return +} + +// Region returns the value of the 'region' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Contains the cloud-provider region in which the provisioner spins up the cluster. +func (o *ProvisionShard) Region() *v1.CloudRegion { + if o != nil && o.bitmap_&8192 != 0 { + return o.region + } + return nil +} + +// GetRegion returns the value of the 'region' attribute and +// a flag indicating if the attribute has a value. +// +// Contains the cloud-provider region in which the provisioner spins up the cluster. +func (o *ProvisionShard) GetRegion() (value *v1.CloudRegion, ok bool) { + ok = o != nil && o.bitmap_&8192 != 0 + if ok { + value = o.region + } + return +} + +// Status returns the value of the 'status' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Status of the provision shard. Possible values: active/maintenance/offline. +func (o *ProvisionShard) Status() string { + if o != nil && o.bitmap_&16384 != 0 { + return o.status + } + return "" +} + +// GetStatus returns the value of the 'status' attribute and +// a flag indicating if the attribute has a value. +// +// Status of the provision shard. Possible values: active/maintenance/offline. +func (o *ProvisionShard) GetStatus() (value string, ok bool) { + ok = o != nil && o.bitmap_&16384 != 0 + if ok { + value = o.status + } + return +} + +// ProvisionShardListKind is the name of the type used to represent list of objects of +// type 'provision_shard'. +const ProvisionShardListKind = "ProvisionShardList" + +// ProvisionShardListLinkKind is the name of the type used to represent links to list +// of objects of type 'provision_shard'. +const ProvisionShardListLinkKind = "ProvisionShardListLink" + +// ProvisionShardNilKind is the name of the type used to nil lists of objects of +// type 'provision_shard'. +const ProvisionShardListNilKind = "ProvisionShardListNil" + +// ProvisionShardList is a list of values of the 'provision_shard' type. +type ProvisionShardList struct { + href string + link bool + items []*ProvisionShard +} + +// Kind returns the name of the type of the object. +func (l *ProvisionShardList) Kind() string { + if l == nil { + return ProvisionShardListNilKind + } + if l.link { + return ProvisionShardListLinkKind + } + return ProvisionShardListKind +} + +// Link returns true iif this is a link. +func (l *ProvisionShardList) Link() bool { + return l != nil && l.link +} + +// HREF returns the link to the list. +func (l *ProvisionShardList) HREF() string { + if l != nil { + return l.href + } + return "" +} + +// GetHREF returns the link of the list and a flag indicating if the +// link has a value. +func (l *ProvisionShardList) GetHREF() (value string, ok bool) { + ok = l != nil && l.href != "" + if ok { + value = l.href + } + return +} + +// Len returns the length of the list. +func (l *ProvisionShardList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *ProvisionShardList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ProvisionShardList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ProvisionShardList) SetItems(items []*ProvisionShard) { + l.items = items +} + +// Items returns the items of the list. +func (l *ProvisionShardList) Items() []*ProvisionShard { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *ProvisionShardList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *ProvisionShardList) Get(i int) *ProvisionShard { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *ProvisionShardList) Slice() []*ProvisionShard { + var slice []*ProvisionShard + if l == nil { + slice = make([]*ProvisionShard, 0) + } else { + slice = make([]*ProvisionShard, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *ProvisionShardList) Each(f func(item *ProvisionShard) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *ProvisionShardList) Range(f func(index int, item *ProvisionShard) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/provision_shard_type_json.go b/arohcp/v1alpha1/provision_shard_type_json.go new file mode 100644 index 000000000..96ad98d58 --- /dev/null +++ b/arohcp/v1alpha1/provision_shard_type_json.go @@ -0,0 +1,273 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + "time" + + jsoniter "github.com/json-iterator/go" + v1 "github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalProvisionShard writes a value of the 'provision_shard' type to the given writer. +func MarshalProvisionShard(object *ProvisionShard, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteProvisionShard(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteProvisionShard writes a value of the 'provision_shard' type to the given stream. +func WriteProvisionShard(object *ProvisionShard, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + stream.WriteObjectField("kind") + if object.bitmap_&1 != 0 { + stream.WriteString(ProvisionShardLinkKind) + } else { + stream.WriteString(ProvisionShardKind) + } + count++ + if object.bitmap_&2 != 0 { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("id") + stream.WriteString(object.id) + count++ + } + if object.bitmap_&4 != 0 { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("href") + stream.WriteString(object.href) + count++ + } + var present_ bool + present_ = object.bitmap_&8 != 0 && object.awsAccountOperatorConfig != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("aws_account_operator_config") + WriteServerConfig(object.awsAccountOperatorConfig, stream) + count++ + } + present_ = object.bitmap_&16 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("aws_base_domain") + stream.WriteString(object.awsBaseDomain) + count++ + } + present_ = object.bitmap_&32 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("gcp_base_domain") + stream.WriteString(object.gcpBaseDomain) + count++ + } + present_ = object.bitmap_&64 != 0 && object.gcpProjectOperator != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("gcp_project_operator") + WriteServerConfig(object.gcpProjectOperator, stream) + count++ + } + present_ = object.bitmap_&128 != 0 && object.cloudProvider != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("cloud_provider") + v1.WriteCloudProvider(object.cloudProvider, stream) + count++ + } + present_ = object.bitmap_&256 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("creation_timestamp") + stream.WriteString((object.creationTimestamp).Format(time.RFC3339)) + count++ + } + present_ = object.bitmap_&512 != 0 && object.hiveConfig != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("hive_config") + WriteServerConfig(object.hiveConfig, stream) + count++ + } + present_ = object.bitmap_&1024 != 0 && object.hypershiftConfig != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("hypershift_config") + WriteServerConfig(object.hypershiftConfig, stream) + count++ + } + present_ = object.bitmap_&2048 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("last_update_timestamp") + stream.WriteString((object.lastUpdateTimestamp).Format(time.RFC3339)) + count++ + } + present_ = object.bitmap_&4096 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("management_cluster") + stream.WriteString(object.managementCluster) + count++ + } + present_ = object.bitmap_&8192 != 0 && object.region != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("region") + v1.WriteCloudRegion(object.region, stream) + count++ + } + present_ = object.bitmap_&16384 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("status") + stream.WriteString(object.status) + } + stream.WriteObjectEnd() +} + +// UnmarshalProvisionShard reads a value of the 'provision_shard' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalProvisionShard(source interface{}) (object *ProvisionShard, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadProvisionShard(iterator) + err = iterator.Error + return +} + +// ReadProvisionShard reads a value of the 'provision_shard' type from the given iterator. +func ReadProvisionShard(iterator *jsoniter.Iterator) *ProvisionShard { + object := &ProvisionShard{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "kind": + value := iterator.ReadString() + if value == ProvisionShardLinkKind { + object.bitmap_ |= 1 + } + case "id": + object.id = iterator.ReadString() + object.bitmap_ |= 2 + case "href": + object.href = iterator.ReadString() + object.bitmap_ |= 4 + case "aws_account_operator_config": + value := ReadServerConfig(iterator) + object.awsAccountOperatorConfig = value + object.bitmap_ |= 8 + case "aws_base_domain": + value := iterator.ReadString() + object.awsBaseDomain = value + object.bitmap_ |= 16 + case "gcp_base_domain": + value := iterator.ReadString() + object.gcpBaseDomain = value + object.bitmap_ |= 32 + case "gcp_project_operator": + value := ReadServerConfig(iterator) + object.gcpProjectOperator = value + object.bitmap_ |= 64 + case "cloud_provider": + value := v1.ReadCloudProvider(iterator) + object.cloudProvider = value + object.bitmap_ |= 128 + case "creation_timestamp": + text := iterator.ReadString() + value, err := time.Parse(time.RFC3339, text) + if err != nil { + iterator.ReportError("", err.Error()) + } + object.creationTimestamp = value + object.bitmap_ |= 256 + case "hive_config": + value := ReadServerConfig(iterator) + object.hiveConfig = value + object.bitmap_ |= 512 + case "hypershift_config": + value := ReadServerConfig(iterator) + object.hypershiftConfig = value + object.bitmap_ |= 1024 + case "last_update_timestamp": + text := iterator.ReadString() + value, err := time.Parse(time.RFC3339, text) + if err != nil { + iterator.ReportError("", err.Error()) + } + object.lastUpdateTimestamp = value + object.bitmap_ |= 2048 + case "management_cluster": + value := iterator.ReadString() + object.managementCluster = value + object.bitmap_ |= 4096 + case "region": + value := v1.ReadCloudRegion(iterator) + object.region = value + object.bitmap_ |= 8192 + case "status": + value := iterator.ReadString() + object.status = value + object.bitmap_ |= 16384 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/proxy_builder.go b/arohcp/v1alpha1/proxy_builder.go new file mode 100644 index 000000000..33eb7d913 --- /dev/null +++ b/arohcp/v1alpha1/proxy_builder.go @@ -0,0 +1,83 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ProxyBuilder contains the data and logic needed to build 'proxy' objects. +// +// Proxy configuration of a cluster. +type ProxyBuilder struct { + bitmap_ uint32 + httpProxy string + httpsProxy string + noProxy string +} + +// NewProxy creates a new builder of 'proxy' objects. +func NewProxy() *ProxyBuilder { + return &ProxyBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *ProxyBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// HTTPProxy sets the value of the 'HTTP_proxy' attribute to the given value. +func (b *ProxyBuilder) HTTPProxy(value string) *ProxyBuilder { + b.httpProxy = value + b.bitmap_ |= 1 + return b +} + +// HTTPSProxy sets the value of the 'HTTPS_proxy' attribute to the given value. +func (b *ProxyBuilder) HTTPSProxy(value string) *ProxyBuilder { + b.httpsProxy = value + b.bitmap_ |= 2 + return b +} + +// NoProxy sets the value of the 'no_proxy' attribute to the given value. +func (b *ProxyBuilder) NoProxy(value string) *ProxyBuilder { + b.noProxy = value + b.bitmap_ |= 4 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *ProxyBuilder) Copy(object *Proxy) *ProxyBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.httpProxy = object.httpProxy + b.httpsProxy = object.httpsProxy + b.noProxy = object.noProxy + return b +} + +// Build creates a 'proxy' object using the configuration stored in the builder. +func (b *ProxyBuilder) Build() (object *Proxy, err error) { + object = new(Proxy) + object.bitmap_ = b.bitmap_ + object.httpProxy = b.httpProxy + object.httpsProxy = b.httpsProxy + object.noProxy = b.noProxy + return +} diff --git a/arohcp/v1alpha1/proxy_list_builder.go b/arohcp/v1alpha1/proxy_list_builder.go new file mode 100644 index 000000000..44a1923fe --- /dev/null +++ b/arohcp/v1alpha1/proxy_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ProxyListBuilder contains the data and logic needed to build +// 'proxy' objects. +type ProxyListBuilder struct { + items []*ProxyBuilder +} + +// NewProxyList creates a new builder of 'proxy' objects. +func NewProxyList() *ProxyListBuilder { + return new(ProxyListBuilder) +} + +// Items sets the items of the list. +func (b *ProxyListBuilder) Items(values ...*ProxyBuilder) *ProxyListBuilder { + b.items = make([]*ProxyBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *ProxyListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *ProxyListBuilder) Copy(list *ProxyList) *ProxyListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*ProxyBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewProxy().Copy(v) + } + } + return b +} + +// Build creates a list of 'proxy' objects using the +// configuration stored in the builder. +func (b *ProxyListBuilder) Build() (list *ProxyList, err error) { + items := make([]*Proxy, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(ProxyList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/proxy_list_type_json.go b/arohcp/v1alpha1/proxy_list_type_json.go new file mode 100644 index 000000000..f996edded --- /dev/null +++ b/arohcp/v1alpha1/proxy_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalProxyList writes a list of values of the 'proxy' type to +// the given writer. +func MarshalProxyList(list []*Proxy, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteProxyList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteProxyList writes a list of value of the 'proxy' type to +// the given stream. +func WriteProxyList(list []*Proxy, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteProxy(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalProxyList reads a list of values of the 'proxy' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalProxyList(source interface{}) (items []*Proxy, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadProxyList(iterator) + err = iterator.Error + return +} + +// ReadProxyList reads list of values of the ”proxy' type from +// the given iterator. +func ReadProxyList(iterator *jsoniter.Iterator) []*Proxy { + list := []*Proxy{} + for iterator.ReadArray() { + item := ReadProxy(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/proxy_type.go b/arohcp/v1alpha1/proxy_type.go new file mode 100644 index 000000000..df8a49086 --- /dev/null +++ b/arohcp/v1alpha1/proxy_type.go @@ -0,0 +1,215 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// Proxy represents the values of the 'proxy' type. +// +// Proxy configuration of a cluster. +type Proxy struct { + bitmap_ uint32 + httpProxy string + httpsProxy string + noProxy string +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *Proxy) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// HTTPProxy returns the value of the 'HTTP_proxy' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// HTTPProxy is the URL of the proxy for HTTP requests. +func (o *Proxy) HTTPProxy() string { + if o != nil && o.bitmap_&1 != 0 { + return o.httpProxy + } + return "" +} + +// GetHTTPProxy returns the value of the 'HTTP_proxy' attribute and +// a flag indicating if the attribute has a value. +// +// HTTPProxy is the URL of the proxy for HTTP requests. +func (o *Proxy) GetHTTPProxy() (value string, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.httpProxy + } + return +} + +// HTTPSProxy returns the value of the 'HTTPS_proxy' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// HTTPSProxy is the URL of the proxy for HTTPS requests. +func (o *Proxy) HTTPSProxy() string { + if o != nil && o.bitmap_&2 != 0 { + return o.httpsProxy + } + return "" +} + +// GetHTTPSProxy returns the value of the 'HTTPS_proxy' attribute and +// a flag indicating if the attribute has a value. +// +// HTTPSProxy is the URL of the proxy for HTTPS requests. +func (o *Proxy) GetHTTPSProxy() (value string, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.httpsProxy + } + return +} + +// NoProxy returns the value of the 'no_proxy' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// NoProxy is a comma-separated list of domains and CIDRs for which +// the proxy should not be used +func (o *Proxy) NoProxy() string { + if o != nil && o.bitmap_&4 != 0 { + return o.noProxy + } + return "" +} + +// GetNoProxy returns the value of the 'no_proxy' attribute and +// a flag indicating if the attribute has a value. +// +// NoProxy is a comma-separated list of domains and CIDRs for which +// the proxy should not be used +func (o *Proxy) GetNoProxy() (value string, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.noProxy + } + return +} + +// ProxyListKind is the name of the type used to represent list of objects of +// type 'proxy'. +const ProxyListKind = "ProxyList" + +// ProxyListLinkKind is the name of the type used to represent links to list +// of objects of type 'proxy'. +const ProxyListLinkKind = "ProxyListLink" + +// ProxyNilKind is the name of the type used to nil lists of objects of +// type 'proxy'. +const ProxyListNilKind = "ProxyListNil" + +// ProxyList is a list of values of the 'proxy' type. +type ProxyList struct { + href string + link bool + items []*Proxy +} + +// Len returns the length of the list. +func (l *ProxyList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *ProxyList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ProxyList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ProxyList) SetItems(items []*Proxy) { + l.items = items +} + +// Items returns the items of the list. +func (l *ProxyList) Items() []*Proxy { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *ProxyList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *ProxyList) Get(i int) *Proxy { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *ProxyList) Slice() []*Proxy { + var slice []*Proxy + if l == nil { + slice = make([]*Proxy, 0) + } else { + slice = make([]*Proxy, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *ProxyList) Each(f func(item *Proxy) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *ProxyList) Range(f func(index int, item *Proxy) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/proxy_type_json.go b/arohcp/v1alpha1/proxy_type_json.go new file mode 100644 index 000000000..c823630b3 --- /dev/null +++ b/arohcp/v1alpha1/proxy_type_json.go @@ -0,0 +1,112 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalProxy writes a value of the 'proxy' type to the given writer. +func MarshalProxy(object *Proxy, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteProxy(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteProxy writes a value of the 'proxy' type to the given stream. +func WriteProxy(object *Proxy, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("http_proxy") + stream.WriteString(object.httpProxy) + count++ + } + present_ = object.bitmap_&2 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("https_proxy") + stream.WriteString(object.httpsProxy) + count++ + } + present_ = object.bitmap_&4 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("no_proxy") + stream.WriteString(object.noProxy) + } + stream.WriteObjectEnd() +} + +// UnmarshalProxy reads a value of the 'proxy' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalProxy(source interface{}) (object *Proxy, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadProxy(iterator) + err = iterator.Error + return +} + +// ReadProxy reads a value of the 'proxy' type from the given iterator. +func ReadProxy(iterator *jsoniter.Iterator) *Proxy { + object := &Proxy{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "http_proxy": + value := iterator.ReadString() + object.httpProxy = value + object.bitmap_ |= 1 + case "https_proxy": + value := iterator.ReadString() + object.httpsProxy = value + object.bitmap_ |= 2 + case "no_proxy": + value := iterator.ReadString() + object.noProxy = value + object.bitmap_ |= 4 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/registry_allowlist_builder.go b/arohcp/v1alpha1/registry_allowlist_builder.go new file mode 100644 index 000000000..e62f5960b --- /dev/null +++ b/arohcp/v1alpha1/registry_allowlist_builder.go @@ -0,0 +1,137 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + time "time" +) + +// RegistryAllowlistBuilder contains the data and logic needed to build 'registry_allowlist' objects. +// +// RegistryAllowlist represents a single registry allowlist. +type RegistryAllowlistBuilder struct { + bitmap_ uint32 + id string + href string + cloudProvider *CloudProviderBuilder + creationTimestamp time.Time + registries []string +} + +// NewRegistryAllowlist creates a new builder of 'registry_allowlist' objects. +func NewRegistryAllowlist() *RegistryAllowlistBuilder { + return &RegistryAllowlistBuilder{} +} + +// Link sets the flag that indicates if this is a link. +func (b *RegistryAllowlistBuilder) Link(value bool) *RegistryAllowlistBuilder { + b.bitmap_ |= 1 + return b +} + +// ID sets the identifier of the object. +func (b *RegistryAllowlistBuilder) ID(value string) *RegistryAllowlistBuilder { + b.id = value + b.bitmap_ |= 2 + return b +} + +// HREF sets the link to the object. +func (b *RegistryAllowlistBuilder) HREF(value string) *RegistryAllowlistBuilder { + b.href = value + b.bitmap_ |= 4 + return b +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *RegistryAllowlistBuilder) Empty() bool { + return b == nil || b.bitmap_&^1 == 0 +} + +// CloudProvider sets the value of the 'cloud_provider' attribute to the given value. +// +// Cloud provider. +func (b *RegistryAllowlistBuilder) CloudProvider(value *CloudProviderBuilder) *RegistryAllowlistBuilder { + b.cloudProvider = value + if value != nil { + b.bitmap_ |= 8 + } else { + b.bitmap_ &^= 8 + } + return b +} + +// CreationTimestamp sets the value of the 'creation_timestamp' attribute to the given value. +func (b *RegistryAllowlistBuilder) CreationTimestamp(value time.Time) *RegistryAllowlistBuilder { + b.creationTimestamp = value + b.bitmap_ |= 16 + return b +} + +// Registries sets the value of the 'registries' attribute to the given values. +func (b *RegistryAllowlistBuilder) Registries(values ...string) *RegistryAllowlistBuilder { + b.registries = make([]string, len(values)) + copy(b.registries, values) + b.bitmap_ |= 32 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *RegistryAllowlistBuilder) Copy(object *RegistryAllowlist) *RegistryAllowlistBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.id = object.id + b.href = object.href + if object.cloudProvider != nil { + b.cloudProvider = NewCloudProvider().Copy(object.cloudProvider) + } else { + b.cloudProvider = nil + } + b.creationTimestamp = object.creationTimestamp + if object.registries != nil { + b.registries = make([]string, len(object.registries)) + copy(b.registries, object.registries) + } else { + b.registries = nil + } + return b +} + +// Build creates a 'registry_allowlist' object using the configuration stored in the builder. +func (b *RegistryAllowlistBuilder) Build() (object *RegistryAllowlist, err error) { + object = new(RegistryAllowlist) + object.id = b.id + object.href = b.href + object.bitmap_ = b.bitmap_ + if b.cloudProvider != nil { + object.cloudProvider, err = b.cloudProvider.Build() + if err != nil { + return + } + } + object.creationTimestamp = b.creationTimestamp + if b.registries != nil { + object.registries = make([]string, len(b.registries)) + copy(object.registries, b.registries) + } + return +} diff --git a/arohcp/v1alpha1/registry_allowlist_list_builder.go b/arohcp/v1alpha1/registry_allowlist_list_builder.go new file mode 100644 index 000000000..7708a52ed --- /dev/null +++ b/arohcp/v1alpha1/registry_allowlist_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// RegistryAllowlistListBuilder contains the data and logic needed to build +// 'registry_allowlist' objects. +type RegistryAllowlistListBuilder struct { + items []*RegistryAllowlistBuilder +} + +// NewRegistryAllowlistList creates a new builder of 'registry_allowlist' objects. +func NewRegistryAllowlistList() *RegistryAllowlistListBuilder { + return new(RegistryAllowlistListBuilder) +} + +// Items sets the items of the list. +func (b *RegistryAllowlistListBuilder) Items(values ...*RegistryAllowlistBuilder) *RegistryAllowlistListBuilder { + b.items = make([]*RegistryAllowlistBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *RegistryAllowlistListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *RegistryAllowlistListBuilder) Copy(list *RegistryAllowlistList) *RegistryAllowlistListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*RegistryAllowlistBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewRegistryAllowlist().Copy(v) + } + } + return b +} + +// Build creates a list of 'registry_allowlist' objects using the +// configuration stored in the builder. +func (b *RegistryAllowlistListBuilder) Build() (list *RegistryAllowlistList, err error) { + items := make([]*RegistryAllowlist, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(RegistryAllowlistList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/registry_allowlist_list_type_json.go b/arohcp/v1alpha1/registry_allowlist_list_type_json.go new file mode 100644 index 000000000..a6fcda3a1 --- /dev/null +++ b/arohcp/v1alpha1/registry_allowlist_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalRegistryAllowlistList writes a list of values of the 'registry_allowlist' type to +// the given writer. +func MarshalRegistryAllowlistList(list []*RegistryAllowlist, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteRegistryAllowlistList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteRegistryAllowlistList writes a list of value of the 'registry_allowlist' type to +// the given stream. +func WriteRegistryAllowlistList(list []*RegistryAllowlist, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteRegistryAllowlist(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalRegistryAllowlistList reads a list of values of the 'registry_allowlist' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalRegistryAllowlistList(source interface{}) (items []*RegistryAllowlist, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadRegistryAllowlistList(iterator) + err = iterator.Error + return +} + +// ReadRegistryAllowlistList reads list of values of the ”registry_allowlist' type from +// the given iterator. +func ReadRegistryAllowlistList(iterator *jsoniter.Iterator) []*RegistryAllowlist { + list := []*RegistryAllowlist{} + for iterator.ReadArray() { + item := ReadRegistryAllowlist(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/registry_allowlist_type.go b/arohcp/v1alpha1/registry_allowlist_type.go new file mode 100644 index 000000000..2e30c5e80 --- /dev/null +++ b/arohcp/v1alpha1/registry_allowlist_type.go @@ -0,0 +1,317 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + time "time" +) + +// RegistryAllowlistKind is the name of the type used to represent objects +// of type 'registry_allowlist'. +const RegistryAllowlistKind = "RegistryAllowlist" + +// RegistryAllowlistLinkKind is the name of the type used to represent links +// to objects of type 'registry_allowlist'. +const RegistryAllowlistLinkKind = "RegistryAllowlistLink" + +// RegistryAllowlistNilKind is the name of the type used to nil references +// to objects of type 'registry_allowlist'. +const RegistryAllowlistNilKind = "RegistryAllowlistNil" + +// RegistryAllowlist represents the values of the 'registry_allowlist' type. +// +// RegistryAllowlist represents a single registry allowlist. +type RegistryAllowlist struct { + bitmap_ uint32 + id string + href string + cloudProvider *CloudProvider + creationTimestamp time.Time + registries []string +} + +// Kind returns the name of the type of the object. +func (o *RegistryAllowlist) Kind() string { + if o == nil { + return RegistryAllowlistNilKind + } + if o.bitmap_&1 != 0 { + return RegistryAllowlistLinkKind + } + return RegistryAllowlistKind +} + +// Link returns true if this is a link. +func (o *RegistryAllowlist) Link() bool { + return o != nil && o.bitmap_&1 != 0 +} + +// ID returns the identifier of the object. +func (o *RegistryAllowlist) ID() string { + if o != nil && o.bitmap_&2 != 0 { + return o.id + } + return "" +} + +// GetID returns the identifier of the object and a flag indicating if the +// identifier has a value. +func (o *RegistryAllowlist) GetID() (value string, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.id + } + return +} + +// HREF returns the link to the object. +func (o *RegistryAllowlist) HREF() string { + if o != nil && o.bitmap_&4 != 0 { + return o.href + } + return "" +} + +// GetHREF returns the link of the object and a flag indicating if the +// link has a value. +func (o *RegistryAllowlist) GetHREF() (value string, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.href + } + return +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *RegistryAllowlist) Empty() bool { + return o == nil || o.bitmap_&^1 == 0 +} + +// CloudProvider returns the value of the 'cloud_provider' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// CloudProvider is the cloud provider for which this allowlist is valid. +func (o *RegistryAllowlist) CloudProvider() *CloudProvider { + if o != nil && o.bitmap_&8 != 0 { + return o.cloudProvider + } + return nil +} + +// GetCloudProvider returns the value of the 'cloud_provider' attribute and +// a flag indicating if the attribute has a value. +// +// CloudProvider is the cloud provider for which this allowlist is valid. +func (o *RegistryAllowlist) GetCloudProvider() (value *CloudProvider, ok bool) { + ok = o != nil && o.bitmap_&8 != 0 + if ok { + value = o.cloudProvider + } + return +} + +// CreationTimestamp returns the value of the 'creation_timestamp' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// CreationTimestamp is the date and time when the allow list has been created. +func (o *RegistryAllowlist) CreationTimestamp() time.Time { + if o != nil && o.bitmap_&16 != 0 { + return o.creationTimestamp + } + return time.Time{} +} + +// GetCreationTimestamp returns the value of the 'creation_timestamp' attribute and +// a flag indicating if the attribute has a value. +// +// CreationTimestamp is the date and time when the allow list has been created. +func (o *RegistryAllowlist) GetCreationTimestamp() (value time.Time, ok bool) { + ok = o != nil && o.bitmap_&16 != 0 + if ok { + value = o.creationTimestamp + } + return +} + +// Registries returns the value of the 'registries' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Registries is the list of registries contained in this Allowlist. +func (o *RegistryAllowlist) Registries() []string { + if o != nil && o.bitmap_&32 != 0 { + return o.registries + } + return nil +} + +// GetRegistries returns the value of the 'registries' attribute and +// a flag indicating if the attribute has a value. +// +// Registries is the list of registries contained in this Allowlist. +func (o *RegistryAllowlist) GetRegistries() (value []string, ok bool) { + ok = o != nil && o.bitmap_&32 != 0 + if ok { + value = o.registries + } + return +} + +// RegistryAllowlistListKind is the name of the type used to represent list of objects of +// type 'registry_allowlist'. +const RegistryAllowlistListKind = "RegistryAllowlistList" + +// RegistryAllowlistListLinkKind is the name of the type used to represent links to list +// of objects of type 'registry_allowlist'. +const RegistryAllowlistListLinkKind = "RegistryAllowlistListLink" + +// RegistryAllowlistNilKind is the name of the type used to nil lists of objects of +// type 'registry_allowlist'. +const RegistryAllowlistListNilKind = "RegistryAllowlistListNil" + +// RegistryAllowlistList is a list of values of the 'registry_allowlist' type. +type RegistryAllowlistList struct { + href string + link bool + items []*RegistryAllowlist +} + +// Kind returns the name of the type of the object. +func (l *RegistryAllowlistList) Kind() string { + if l == nil { + return RegistryAllowlistListNilKind + } + if l.link { + return RegistryAllowlistListLinkKind + } + return RegistryAllowlistListKind +} + +// Link returns true iif this is a link. +func (l *RegistryAllowlistList) Link() bool { + return l != nil && l.link +} + +// HREF returns the link to the list. +func (l *RegistryAllowlistList) HREF() string { + if l != nil { + return l.href + } + return "" +} + +// GetHREF returns the link of the list and a flag indicating if the +// link has a value. +func (l *RegistryAllowlistList) GetHREF() (value string, ok bool) { + ok = l != nil && l.href != "" + if ok { + value = l.href + } + return +} + +// Len returns the length of the list. +func (l *RegistryAllowlistList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *RegistryAllowlistList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *RegistryAllowlistList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *RegistryAllowlistList) SetItems(items []*RegistryAllowlist) { + l.items = items +} + +// Items returns the items of the list. +func (l *RegistryAllowlistList) Items() []*RegistryAllowlist { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *RegistryAllowlistList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *RegistryAllowlistList) Get(i int) *RegistryAllowlist { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *RegistryAllowlistList) Slice() []*RegistryAllowlist { + var slice []*RegistryAllowlist + if l == nil { + slice = make([]*RegistryAllowlist, 0) + } else { + slice = make([]*RegistryAllowlist, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *RegistryAllowlistList) Each(f func(item *RegistryAllowlist) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *RegistryAllowlistList) Range(f func(index int, item *RegistryAllowlist) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/registry_allowlist_type_json.go b/arohcp/v1alpha1/registry_allowlist_type_json.go new file mode 100644 index 000000000..1e373b991 --- /dev/null +++ b/arohcp/v1alpha1/registry_allowlist_type_json.go @@ -0,0 +1,151 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + "time" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalRegistryAllowlist writes a value of the 'registry_allowlist' type to the given writer. +func MarshalRegistryAllowlist(object *RegistryAllowlist, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteRegistryAllowlist(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteRegistryAllowlist writes a value of the 'registry_allowlist' type to the given stream. +func WriteRegistryAllowlist(object *RegistryAllowlist, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + stream.WriteObjectField("kind") + if object.bitmap_&1 != 0 { + stream.WriteString(RegistryAllowlistLinkKind) + } else { + stream.WriteString(RegistryAllowlistKind) + } + count++ + if object.bitmap_&2 != 0 { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("id") + stream.WriteString(object.id) + count++ + } + if object.bitmap_&4 != 0 { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("href") + stream.WriteString(object.href) + count++ + } + var present_ bool + present_ = object.bitmap_&8 != 0 && object.cloudProvider != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("cloud_provider") + WriteCloudProvider(object.cloudProvider, stream) + count++ + } + present_ = object.bitmap_&16 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("creation_timestamp") + stream.WriteString((object.creationTimestamp).Format(time.RFC3339)) + count++ + } + present_ = object.bitmap_&32 != 0 && object.registries != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("registries") + WriteStringList(object.registries, stream) + } + stream.WriteObjectEnd() +} + +// UnmarshalRegistryAllowlist reads a value of the 'registry_allowlist' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalRegistryAllowlist(source interface{}) (object *RegistryAllowlist, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadRegistryAllowlist(iterator) + err = iterator.Error + return +} + +// ReadRegistryAllowlist reads a value of the 'registry_allowlist' type from the given iterator. +func ReadRegistryAllowlist(iterator *jsoniter.Iterator) *RegistryAllowlist { + object := &RegistryAllowlist{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "kind": + value := iterator.ReadString() + if value == RegistryAllowlistLinkKind { + object.bitmap_ |= 1 + } + case "id": + object.id = iterator.ReadString() + object.bitmap_ |= 2 + case "href": + object.href = iterator.ReadString() + object.bitmap_ |= 4 + case "cloud_provider": + value := ReadCloudProvider(iterator) + object.cloudProvider = value + object.bitmap_ |= 8 + case "creation_timestamp": + text := iterator.ReadString() + value, err := time.Parse(time.RFC3339, text) + if err != nil { + iterator.ReportError("", err.Error()) + } + object.creationTimestamp = value + object.bitmap_ |= 16 + case "registries": + value := ReadStringList(iterator) + object.registries = value + object.bitmap_ |= 32 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/registry_location_builder.go b/arohcp/v1alpha1/registry_location_builder.go new file mode 100644 index 000000000..792f14e0b --- /dev/null +++ b/arohcp/v1alpha1/registry_location_builder.go @@ -0,0 +1,74 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// RegistryLocationBuilder contains the data and logic needed to build 'registry_location' objects. +// +// RegistryLocation contains a location of the registry specified by the registry domain +// name. The domain name might include wildcards, like '*' or '??'. +type RegistryLocationBuilder struct { + bitmap_ uint32 + domainName string + insecure bool +} + +// NewRegistryLocation creates a new builder of 'registry_location' objects. +func NewRegistryLocation() *RegistryLocationBuilder { + return &RegistryLocationBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *RegistryLocationBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// DomainName sets the value of the 'domain_name' attribute to the given value. +func (b *RegistryLocationBuilder) DomainName(value string) *RegistryLocationBuilder { + b.domainName = value + b.bitmap_ |= 1 + return b +} + +// Insecure sets the value of the 'insecure' attribute to the given value. +func (b *RegistryLocationBuilder) Insecure(value bool) *RegistryLocationBuilder { + b.insecure = value + b.bitmap_ |= 2 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *RegistryLocationBuilder) Copy(object *RegistryLocation) *RegistryLocationBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.domainName = object.domainName + b.insecure = object.insecure + return b +} + +// Build creates a 'registry_location' object using the configuration stored in the builder. +func (b *RegistryLocationBuilder) Build() (object *RegistryLocation, err error) { + object = new(RegistryLocation) + object.bitmap_ = b.bitmap_ + object.domainName = b.domainName + object.insecure = b.insecure + return +} diff --git a/arohcp/v1alpha1/registry_location_list_builder.go b/arohcp/v1alpha1/registry_location_list_builder.go new file mode 100644 index 000000000..293fb5274 --- /dev/null +++ b/arohcp/v1alpha1/registry_location_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// RegistryLocationListBuilder contains the data and logic needed to build +// 'registry_location' objects. +type RegistryLocationListBuilder struct { + items []*RegistryLocationBuilder +} + +// NewRegistryLocationList creates a new builder of 'registry_location' objects. +func NewRegistryLocationList() *RegistryLocationListBuilder { + return new(RegistryLocationListBuilder) +} + +// Items sets the items of the list. +func (b *RegistryLocationListBuilder) Items(values ...*RegistryLocationBuilder) *RegistryLocationListBuilder { + b.items = make([]*RegistryLocationBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *RegistryLocationListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *RegistryLocationListBuilder) Copy(list *RegistryLocationList) *RegistryLocationListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*RegistryLocationBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewRegistryLocation().Copy(v) + } + } + return b +} + +// Build creates a list of 'registry_location' objects using the +// configuration stored in the builder. +func (b *RegistryLocationListBuilder) Build() (list *RegistryLocationList, err error) { + items := make([]*RegistryLocation, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(RegistryLocationList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/registry_location_list_type_json.go b/arohcp/v1alpha1/registry_location_list_type_json.go new file mode 100644 index 000000000..cdeb35989 --- /dev/null +++ b/arohcp/v1alpha1/registry_location_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalRegistryLocationList writes a list of values of the 'registry_location' type to +// the given writer. +func MarshalRegistryLocationList(list []*RegistryLocation, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteRegistryLocationList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteRegistryLocationList writes a list of value of the 'registry_location' type to +// the given stream. +func WriteRegistryLocationList(list []*RegistryLocation, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteRegistryLocation(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalRegistryLocationList reads a list of values of the 'registry_location' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalRegistryLocationList(source interface{}) (items []*RegistryLocation, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadRegistryLocationList(iterator) + err = iterator.Error + return +} + +// ReadRegistryLocationList reads list of values of the ”registry_location' type from +// the given iterator. +func ReadRegistryLocationList(iterator *jsoniter.Iterator) []*RegistryLocation { + list := []*RegistryLocation{} + for iterator.ReadArray() { + item := ReadRegistryLocation(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/registry_location_type.go b/arohcp/v1alpha1/registry_location_type.go new file mode 100644 index 000000000..d8d1e3ae0 --- /dev/null +++ b/arohcp/v1alpha1/registry_location_type.go @@ -0,0 +1,196 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// RegistryLocation represents the values of the 'registry_location' type. +// +// RegistryLocation contains a location of the registry specified by the registry domain +// name. The domain name might include wildcards, like '*' or '??'. +type RegistryLocation struct { + bitmap_ uint32 + domainName string + insecure bool +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *RegistryLocation) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// DomainName returns the value of the 'domain_name' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// domainName specifies a domain name for the registry +// In case the registry use non-standard (80 or 443) port, the port should be included +// in the domain name as well. +func (o *RegistryLocation) DomainName() string { + if o != nil && o.bitmap_&1 != 0 { + return o.domainName + } + return "" +} + +// GetDomainName returns the value of the 'domain_name' attribute and +// a flag indicating if the attribute has a value. +// +// domainName specifies a domain name for the registry +// In case the registry use non-standard (80 or 443) port, the port should be included +// in the domain name as well. +func (o *RegistryLocation) GetDomainName() (value string, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.domainName + } + return +} + +// Insecure returns the value of the 'insecure' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// insecure indicates whether the registry is secure (https) or insecure (http) +// By default (if not specified) the registry is assumed as secure. +func (o *RegistryLocation) Insecure() bool { + if o != nil && o.bitmap_&2 != 0 { + return o.insecure + } + return false +} + +// GetInsecure returns the value of the 'insecure' attribute and +// a flag indicating if the attribute has a value. +// +// insecure indicates whether the registry is secure (https) or insecure (http) +// By default (if not specified) the registry is assumed as secure. +func (o *RegistryLocation) GetInsecure() (value bool, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.insecure + } + return +} + +// RegistryLocationListKind is the name of the type used to represent list of objects of +// type 'registry_location'. +const RegistryLocationListKind = "RegistryLocationList" + +// RegistryLocationListLinkKind is the name of the type used to represent links to list +// of objects of type 'registry_location'. +const RegistryLocationListLinkKind = "RegistryLocationListLink" + +// RegistryLocationNilKind is the name of the type used to nil lists of objects of +// type 'registry_location'. +const RegistryLocationListNilKind = "RegistryLocationListNil" + +// RegistryLocationList is a list of values of the 'registry_location' type. +type RegistryLocationList struct { + href string + link bool + items []*RegistryLocation +} + +// Len returns the length of the list. +func (l *RegistryLocationList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *RegistryLocationList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *RegistryLocationList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *RegistryLocationList) SetItems(items []*RegistryLocation) { + l.items = items +} + +// Items returns the items of the list. +func (l *RegistryLocationList) Items() []*RegistryLocation { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *RegistryLocationList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *RegistryLocationList) Get(i int) *RegistryLocation { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *RegistryLocationList) Slice() []*RegistryLocation { + var slice []*RegistryLocation + if l == nil { + slice = make([]*RegistryLocation, 0) + } else { + slice = make([]*RegistryLocation, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *RegistryLocationList) Each(f func(item *RegistryLocation) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *RegistryLocationList) Range(f func(index int, item *RegistryLocation) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/registry_location_type_json.go b/arohcp/v1alpha1/registry_location_type_json.go new file mode 100644 index 000000000..d06ddd563 --- /dev/null +++ b/arohcp/v1alpha1/registry_location_type_json.go @@ -0,0 +1,99 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalRegistryLocation writes a value of the 'registry_location' type to the given writer. +func MarshalRegistryLocation(object *RegistryLocation, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteRegistryLocation(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteRegistryLocation writes a value of the 'registry_location' type to the given stream. +func WriteRegistryLocation(object *RegistryLocation, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("domain_name") + stream.WriteString(object.domainName) + count++ + } + present_ = object.bitmap_&2 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("insecure") + stream.WriteBool(object.insecure) + } + stream.WriteObjectEnd() +} + +// UnmarshalRegistryLocation reads a value of the 'registry_location' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalRegistryLocation(source interface{}) (object *RegistryLocation, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadRegistryLocation(iterator) + err = iterator.Error + return +} + +// ReadRegistryLocation reads a value of the 'registry_location' type from the given iterator. +func ReadRegistryLocation(iterator *jsoniter.Iterator) *RegistryLocation { + object := &RegistryLocation{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "domain_name": + value := iterator.ReadString() + object.domainName = value + object.bitmap_ |= 1 + case "insecure": + value := iterator.ReadBool() + object.insecure = value + object.bitmap_ |= 2 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/registry_sources_builder.go b/arohcp/v1alpha1/registry_sources_builder.go new file mode 100644 index 000000000..0a02e2c73 --- /dev/null +++ b/arohcp/v1alpha1/registry_sources_builder.go @@ -0,0 +1,112 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// RegistrySourcesBuilder contains the data and logic needed to build 'registry_sources' objects. +// +// RegistrySources contains configuration that determines how the container runtime should treat individual +// registries when accessing images for builds and pods. For instance, whether or not to allow insecure access. +// It does not contain configuration for the internal cluster registry. +type RegistrySourcesBuilder struct { + bitmap_ uint32 + allowedRegistries []string + blockedRegistries []string + insecureRegistries []string +} + +// NewRegistrySources creates a new builder of 'registry_sources' objects. +func NewRegistrySources() *RegistrySourcesBuilder { + return &RegistrySourcesBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *RegistrySourcesBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// AllowedRegistries sets the value of the 'allowed_registries' attribute to the given values. +func (b *RegistrySourcesBuilder) AllowedRegistries(values ...string) *RegistrySourcesBuilder { + b.allowedRegistries = make([]string, len(values)) + copy(b.allowedRegistries, values) + b.bitmap_ |= 1 + return b +} + +// BlockedRegistries sets the value of the 'blocked_registries' attribute to the given values. +func (b *RegistrySourcesBuilder) BlockedRegistries(values ...string) *RegistrySourcesBuilder { + b.blockedRegistries = make([]string, len(values)) + copy(b.blockedRegistries, values) + b.bitmap_ |= 2 + return b +} + +// InsecureRegistries sets the value of the 'insecure_registries' attribute to the given values. +func (b *RegistrySourcesBuilder) InsecureRegistries(values ...string) *RegistrySourcesBuilder { + b.insecureRegistries = make([]string, len(values)) + copy(b.insecureRegistries, values) + b.bitmap_ |= 4 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *RegistrySourcesBuilder) Copy(object *RegistrySources) *RegistrySourcesBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + if object.allowedRegistries != nil { + b.allowedRegistries = make([]string, len(object.allowedRegistries)) + copy(b.allowedRegistries, object.allowedRegistries) + } else { + b.allowedRegistries = nil + } + if object.blockedRegistries != nil { + b.blockedRegistries = make([]string, len(object.blockedRegistries)) + copy(b.blockedRegistries, object.blockedRegistries) + } else { + b.blockedRegistries = nil + } + if object.insecureRegistries != nil { + b.insecureRegistries = make([]string, len(object.insecureRegistries)) + copy(b.insecureRegistries, object.insecureRegistries) + } else { + b.insecureRegistries = nil + } + return b +} + +// Build creates a 'registry_sources' object using the configuration stored in the builder. +func (b *RegistrySourcesBuilder) Build() (object *RegistrySources, err error) { + object = new(RegistrySources) + object.bitmap_ = b.bitmap_ + if b.allowedRegistries != nil { + object.allowedRegistries = make([]string, len(b.allowedRegistries)) + copy(object.allowedRegistries, b.allowedRegistries) + } + if b.blockedRegistries != nil { + object.blockedRegistries = make([]string, len(b.blockedRegistries)) + copy(object.blockedRegistries, b.blockedRegistries) + } + if b.insecureRegistries != nil { + object.insecureRegistries = make([]string, len(b.insecureRegistries)) + copy(object.insecureRegistries, b.insecureRegistries) + } + return +} diff --git a/arohcp/v1alpha1/registry_sources_list_builder.go b/arohcp/v1alpha1/registry_sources_list_builder.go new file mode 100644 index 000000000..a5c4f1490 --- /dev/null +++ b/arohcp/v1alpha1/registry_sources_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// RegistrySourcesListBuilder contains the data and logic needed to build +// 'registry_sources' objects. +type RegistrySourcesListBuilder struct { + items []*RegistrySourcesBuilder +} + +// NewRegistrySourcesList creates a new builder of 'registry_sources' objects. +func NewRegistrySourcesList() *RegistrySourcesListBuilder { + return new(RegistrySourcesListBuilder) +} + +// Items sets the items of the list. +func (b *RegistrySourcesListBuilder) Items(values ...*RegistrySourcesBuilder) *RegistrySourcesListBuilder { + b.items = make([]*RegistrySourcesBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *RegistrySourcesListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *RegistrySourcesListBuilder) Copy(list *RegistrySourcesList) *RegistrySourcesListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*RegistrySourcesBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewRegistrySources().Copy(v) + } + } + return b +} + +// Build creates a list of 'registry_sources' objects using the +// configuration stored in the builder. +func (b *RegistrySourcesListBuilder) Build() (list *RegistrySourcesList, err error) { + items := make([]*RegistrySources, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(RegistrySourcesList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/registry_sources_list_type_json.go b/arohcp/v1alpha1/registry_sources_list_type_json.go new file mode 100644 index 000000000..134edc498 --- /dev/null +++ b/arohcp/v1alpha1/registry_sources_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalRegistrySourcesList writes a list of values of the 'registry_sources' type to +// the given writer. +func MarshalRegistrySourcesList(list []*RegistrySources, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteRegistrySourcesList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteRegistrySourcesList writes a list of value of the 'registry_sources' type to +// the given stream. +func WriteRegistrySourcesList(list []*RegistrySources, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteRegistrySources(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalRegistrySourcesList reads a list of values of the 'registry_sources' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalRegistrySourcesList(source interface{}) (items []*RegistrySources, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadRegistrySourcesList(iterator) + err = iterator.Error + return +} + +// ReadRegistrySourcesList reads list of values of the ”registry_sources' type from +// the given iterator. +func ReadRegistrySourcesList(iterator *jsoniter.Iterator) []*RegistrySources { + list := []*RegistrySources{} + for iterator.ReadArray() { + item := ReadRegistrySources(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/registry_sources_type.go b/arohcp/v1alpha1/registry_sources_type.go new file mode 100644 index 000000000..4bf8e4787 --- /dev/null +++ b/arohcp/v1alpha1/registry_sources_type.go @@ -0,0 +1,237 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// RegistrySources represents the values of the 'registry_sources' type. +// +// RegistrySources contains configuration that determines how the container runtime should treat individual +// registries when accessing images for builds and pods. For instance, whether or not to allow insecure access. +// It does not contain configuration for the internal cluster registry. +type RegistrySources struct { + bitmap_ uint32 + allowedRegistries []string + blockedRegistries []string + insecureRegistries []string +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *RegistrySources) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// AllowedRegistries returns the value of the 'allowed_registries' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// AllowedRegistries: registries for which image pull and push actions are allowed. +// To specify all subdomains, add the asterisk (*) wildcard character as a prefix to the domain name. +// For example, *.example.com. You can specify an individual repository within a registry. +// For example: reg1.io/myrepo/myapp:latest. All other registries are blocked. +// Mutually exclusive with `BlockedRegistries` +func (o *RegistrySources) AllowedRegistries() []string { + if o != nil && o.bitmap_&1 != 0 { + return o.allowedRegistries + } + return nil +} + +// GetAllowedRegistries returns the value of the 'allowed_registries' attribute and +// a flag indicating if the attribute has a value. +// +// AllowedRegistries: registries for which image pull and push actions are allowed. +// To specify all subdomains, add the asterisk (*) wildcard character as a prefix to the domain name. +// For example, *.example.com. You can specify an individual repository within a registry. +// For example: reg1.io/myrepo/myapp:latest. All other registries are blocked. +// Mutually exclusive with `BlockedRegistries` +func (o *RegistrySources) GetAllowedRegistries() (value []string, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.allowedRegistries + } + return +} + +// BlockedRegistries returns the value of the 'blocked_registries' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// BlockedRegistries: registries for which image pull and push actions are denied. +// To specify all subdomains, add the asterisk (*) wildcard character as a prefix to the domain name. +// For example, *.example.com. You can specify an individual repository within a registry. +// For example: reg1.io/myrepo/myapp:latest. All other registries are allowed. +// Mutually exclusive with `AllowedRegistries` +func (o *RegistrySources) BlockedRegistries() []string { + if o != nil && o.bitmap_&2 != 0 { + return o.blockedRegistries + } + return nil +} + +// GetBlockedRegistries returns the value of the 'blocked_registries' attribute and +// a flag indicating if the attribute has a value. +// +// BlockedRegistries: registries for which image pull and push actions are denied. +// To specify all subdomains, add the asterisk (*) wildcard character as a prefix to the domain name. +// For example, *.example.com. You can specify an individual repository within a registry. +// For example: reg1.io/myrepo/myapp:latest. All other registries are allowed. +// Mutually exclusive with `AllowedRegistries` +func (o *RegistrySources) GetBlockedRegistries() (value []string, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.blockedRegistries + } + return +} + +// InsecureRegistries returns the value of the 'insecure_registries' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// InsecureRegistries are registries which do not have a valid TLS certificate or only support HTTP connections. +// To specify all subdomains, add the asterisk (*) wildcard character as a prefix to the domain name. +// For example, *.example.com. You can specify an individual repository within a registry. +// For example: reg1.io/myrepo/myapp:latest. +func (o *RegistrySources) InsecureRegistries() []string { + if o != nil && o.bitmap_&4 != 0 { + return o.insecureRegistries + } + return nil +} + +// GetInsecureRegistries returns the value of the 'insecure_registries' attribute and +// a flag indicating if the attribute has a value. +// +// InsecureRegistries are registries which do not have a valid TLS certificate or only support HTTP connections. +// To specify all subdomains, add the asterisk (*) wildcard character as a prefix to the domain name. +// For example, *.example.com. You can specify an individual repository within a registry. +// For example: reg1.io/myrepo/myapp:latest. +func (o *RegistrySources) GetInsecureRegistries() (value []string, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.insecureRegistries + } + return +} + +// RegistrySourcesListKind is the name of the type used to represent list of objects of +// type 'registry_sources'. +const RegistrySourcesListKind = "RegistrySourcesList" + +// RegistrySourcesListLinkKind is the name of the type used to represent links to list +// of objects of type 'registry_sources'. +const RegistrySourcesListLinkKind = "RegistrySourcesListLink" + +// RegistrySourcesNilKind is the name of the type used to nil lists of objects of +// type 'registry_sources'. +const RegistrySourcesListNilKind = "RegistrySourcesListNil" + +// RegistrySourcesList is a list of values of the 'registry_sources' type. +type RegistrySourcesList struct { + href string + link bool + items []*RegistrySources +} + +// Len returns the length of the list. +func (l *RegistrySourcesList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *RegistrySourcesList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *RegistrySourcesList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *RegistrySourcesList) SetItems(items []*RegistrySources) { + l.items = items +} + +// Items returns the items of the list. +func (l *RegistrySourcesList) Items() []*RegistrySources { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *RegistrySourcesList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *RegistrySourcesList) Get(i int) *RegistrySources { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *RegistrySourcesList) Slice() []*RegistrySources { + var slice []*RegistrySources + if l == nil { + slice = make([]*RegistrySources, 0) + } else { + slice = make([]*RegistrySources, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *RegistrySourcesList) Each(f func(item *RegistrySources) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *RegistrySourcesList) Range(f func(index int, item *RegistrySources) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/registry_sources_type_json.go b/arohcp/v1alpha1/registry_sources_type_json.go new file mode 100644 index 000000000..14db52d92 --- /dev/null +++ b/arohcp/v1alpha1/registry_sources_type_json.go @@ -0,0 +1,112 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalRegistrySources writes a value of the 'registry_sources' type to the given writer. +func MarshalRegistrySources(object *RegistrySources, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteRegistrySources(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteRegistrySources writes a value of the 'registry_sources' type to the given stream. +func WriteRegistrySources(object *RegistrySources, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 && object.allowedRegistries != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("allowed_registries") + WriteStringList(object.allowedRegistries, stream) + count++ + } + present_ = object.bitmap_&2 != 0 && object.blockedRegistries != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("blocked_registries") + WriteStringList(object.blockedRegistries, stream) + count++ + } + present_ = object.bitmap_&4 != 0 && object.insecureRegistries != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("insecure_registries") + WriteStringList(object.insecureRegistries, stream) + } + stream.WriteObjectEnd() +} + +// UnmarshalRegistrySources reads a value of the 'registry_sources' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalRegistrySources(source interface{}) (object *RegistrySources, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadRegistrySources(iterator) + err = iterator.Error + return +} + +// ReadRegistrySources reads a value of the 'registry_sources' type from the given iterator. +func ReadRegistrySources(iterator *jsoniter.Iterator) *RegistrySources { + object := &RegistrySources{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "allowed_registries": + value := ReadStringList(iterator) + object.allowedRegistries = value + object.bitmap_ |= 1 + case "blocked_registries": + value := ReadStringList(iterator) + object.blockedRegistries = value + object.bitmap_ |= 2 + case "insecure_registries": + value := ReadStringList(iterator) + object.insecureRegistries = value + object.bitmap_ |= 4 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/root_client.go b/arohcp/v1alpha1/root_client.go new file mode 100644 index 000000000..2619fbb08 --- /dev/null +++ b/arohcp/v1alpha1/root_client.go @@ -0,0 +1,59 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "net/http" + "path" +) + +// Client is the client of the 'root' resource. +// +// Root of the tree of resources of the aro_hcp service. +type Client struct { + transport http.RoundTripper + path string +} + +// NewClient creates a new client for the 'root' +// resource using the given transport to send the requests and receive the +// responses. +func NewClient(transport http.RoundTripper, path string) *Client { + return &Client{ + transport: transport, + path: path, + } +} + +// Creates a new request for the method that retrieves the metadata. +func (c *Client) Get() *MetadataRequest { + return &MetadataRequest{ + transport: c.transport, + path: c.path, + } +} + +// Clusters returns the target 'clusters' resource. +func (c *Client) Clusters() *ClustersClient { + return NewClustersClient( + c.transport, + path.Join(c.path, "clusters"), + ) +} diff --git a/arohcp/v1alpha1/root_resource_json.go b/arohcp/v1alpha1/root_resource_json.go new file mode 100644 index 000000000..152493615 --- /dev/null +++ b/arohcp/v1alpha1/root_resource_json.go @@ -0,0 +1,20 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 diff --git a/arohcp/v1alpha1/root_volume_builder.go b/arohcp/v1alpha1/root_volume_builder.go new file mode 100644 index 000000000..132353d09 --- /dev/null +++ b/arohcp/v1alpha1/root_volume_builder.go @@ -0,0 +1,103 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// RootVolumeBuilder contains the data and logic needed to build 'root_volume' objects. +// +// Root volume capabilities. +type RootVolumeBuilder struct { + bitmap_ uint32 + aws *AWSVolumeBuilder + gcp *GCPVolumeBuilder +} + +// NewRootVolume creates a new builder of 'root_volume' objects. +func NewRootVolume() *RootVolumeBuilder { + return &RootVolumeBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *RootVolumeBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// AWS sets the value of the 'AWS' attribute to the given value. +// +// Holds settings for an AWS storage volume. +func (b *RootVolumeBuilder) AWS(value *AWSVolumeBuilder) *RootVolumeBuilder { + b.aws = value + if value != nil { + b.bitmap_ |= 1 + } else { + b.bitmap_ &^= 1 + } + return b +} + +// GCP sets the value of the 'GCP' attribute to the given value. +// +// Holds settings for an GCP storage volume. +func (b *RootVolumeBuilder) GCP(value *GCPVolumeBuilder) *RootVolumeBuilder { + b.gcp = value + if value != nil { + b.bitmap_ |= 2 + } else { + b.bitmap_ &^= 2 + } + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *RootVolumeBuilder) Copy(object *RootVolume) *RootVolumeBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + if object.aws != nil { + b.aws = NewAWSVolume().Copy(object.aws) + } else { + b.aws = nil + } + if object.gcp != nil { + b.gcp = NewGCPVolume().Copy(object.gcp) + } else { + b.gcp = nil + } + return b +} + +// Build creates a 'root_volume' object using the configuration stored in the builder. +func (b *RootVolumeBuilder) Build() (object *RootVolume, err error) { + object = new(RootVolume) + object.bitmap_ = b.bitmap_ + if b.aws != nil { + object.aws, err = b.aws.Build() + if err != nil { + return + } + } + if b.gcp != nil { + object.gcp, err = b.gcp.Build() + if err != nil { + return + } + } + return +} diff --git a/arohcp/v1alpha1/root_volume_list_builder.go b/arohcp/v1alpha1/root_volume_list_builder.go new file mode 100644 index 000000000..db2520a3b --- /dev/null +++ b/arohcp/v1alpha1/root_volume_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// RootVolumeListBuilder contains the data and logic needed to build +// 'root_volume' objects. +type RootVolumeListBuilder struct { + items []*RootVolumeBuilder +} + +// NewRootVolumeList creates a new builder of 'root_volume' objects. +func NewRootVolumeList() *RootVolumeListBuilder { + return new(RootVolumeListBuilder) +} + +// Items sets the items of the list. +func (b *RootVolumeListBuilder) Items(values ...*RootVolumeBuilder) *RootVolumeListBuilder { + b.items = make([]*RootVolumeBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *RootVolumeListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *RootVolumeListBuilder) Copy(list *RootVolumeList) *RootVolumeListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*RootVolumeBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewRootVolume().Copy(v) + } + } + return b +} + +// Build creates a list of 'root_volume' objects using the +// configuration stored in the builder. +func (b *RootVolumeListBuilder) Build() (list *RootVolumeList, err error) { + items := make([]*RootVolume, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(RootVolumeList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/root_volume_list_type_json.go b/arohcp/v1alpha1/root_volume_list_type_json.go new file mode 100644 index 000000000..056354c57 --- /dev/null +++ b/arohcp/v1alpha1/root_volume_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalRootVolumeList writes a list of values of the 'root_volume' type to +// the given writer. +func MarshalRootVolumeList(list []*RootVolume, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteRootVolumeList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteRootVolumeList writes a list of value of the 'root_volume' type to +// the given stream. +func WriteRootVolumeList(list []*RootVolume, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteRootVolume(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalRootVolumeList reads a list of values of the 'root_volume' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalRootVolumeList(source interface{}) (items []*RootVolume, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadRootVolumeList(iterator) + err = iterator.Error + return +} + +// ReadRootVolumeList reads list of values of the ”root_volume' type from +// the given iterator. +func ReadRootVolumeList(iterator *jsoniter.Iterator) []*RootVolume { + list := []*RootVolume{} + for iterator.ReadArray() { + item := ReadRootVolume(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/root_volume_type.go b/arohcp/v1alpha1/root_volume_type.go new file mode 100644 index 000000000..8085cf422 --- /dev/null +++ b/arohcp/v1alpha1/root_volume_type.go @@ -0,0 +1,189 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// RootVolume represents the values of the 'root_volume' type. +// +// Root volume capabilities. +type RootVolume struct { + bitmap_ uint32 + aws *AWSVolume + gcp *GCPVolume +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *RootVolume) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// AWS returns the value of the 'AWS' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// AWS volume specification +func (o *RootVolume) AWS() *AWSVolume { + if o != nil && o.bitmap_&1 != 0 { + return o.aws + } + return nil +} + +// GetAWS returns the value of the 'AWS' attribute and +// a flag indicating if the attribute has a value. +// +// AWS volume specification +func (o *RootVolume) GetAWS() (value *AWSVolume, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.aws + } + return +} + +// GCP returns the value of the 'GCP' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// GCP Volume specification +func (o *RootVolume) GCP() *GCPVolume { + if o != nil && o.bitmap_&2 != 0 { + return o.gcp + } + return nil +} + +// GetGCP returns the value of the 'GCP' attribute and +// a flag indicating if the attribute has a value. +// +// GCP Volume specification +func (o *RootVolume) GetGCP() (value *GCPVolume, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.gcp + } + return +} + +// RootVolumeListKind is the name of the type used to represent list of objects of +// type 'root_volume'. +const RootVolumeListKind = "RootVolumeList" + +// RootVolumeListLinkKind is the name of the type used to represent links to list +// of objects of type 'root_volume'. +const RootVolumeListLinkKind = "RootVolumeListLink" + +// RootVolumeNilKind is the name of the type used to nil lists of objects of +// type 'root_volume'. +const RootVolumeListNilKind = "RootVolumeListNil" + +// RootVolumeList is a list of values of the 'root_volume' type. +type RootVolumeList struct { + href string + link bool + items []*RootVolume +} + +// Len returns the length of the list. +func (l *RootVolumeList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *RootVolumeList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *RootVolumeList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *RootVolumeList) SetItems(items []*RootVolume) { + l.items = items +} + +// Items returns the items of the list. +func (l *RootVolumeList) Items() []*RootVolume { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *RootVolumeList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *RootVolumeList) Get(i int) *RootVolume { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *RootVolumeList) Slice() []*RootVolume { + var slice []*RootVolume + if l == nil { + slice = make([]*RootVolume, 0) + } else { + slice = make([]*RootVolume, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *RootVolumeList) Each(f func(item *RootVolume) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *RootVolumeList) Range(f func(index int, item *RootVolume) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/root_volume_type_json.go b/arohcp/v1alpha1/root_volume_type_json.go new file mode 100644 index 000000000..a39c88fe4 --- /dev/null +++ b/arohcp/v1alpha1/root_volume_type_json.go @@ -0,0 +1,99 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalRootVolume writes a value of the 'root_volume' type to the given writer. +func MarshalRootVolume(object *RootVolume, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteRootVolume(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteRootVolume writes a value of the 'root_volume' type to the given stream. +func WriteRootVolume(object *RootVolume, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 && object.aws != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("aws") + WriteAWSVolume(object.aws, stream) + count++ + } + present_ = object.bitmap_&2 != 0 && object.gcp != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("gcp") + WriteGCPVolume(object.gcp, stream) + } + stream.WriteObjectEnd() +} + +// UnmarshalRootVolume reads a value of the 'root_volume' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalRootVolume(source interface{}) (object *RootVolume, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadRootVolume(iterator) + err = iterator.Error + return +} + +// ReadRootVolume reads a value of the 'root_volume' type from the given iterator. +func ReadRootVolume(iterator *jsoniter.Iterator) *RootVolume { + object := &RootVolume{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "aws": + value := ReadAWSVolume(iterator) + object.aws = value + object.bitmap_ |= 1 + case "gcp": + value := ReadGCPVolume(iterator) + object.gcp = value + object.bitmap_ |= 2 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/server_config_builder.go b/arohcp/v1alpha1/server_config_builder.go new file mode 100644 index 000000000..8639d9046 --- /dev/null +++ b/arohcp/v1alpha1/server_config_builder.go @@ -0,0 +1,134 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ServerConfigBuilder contains the data and logic needed to build 'server_config' objects. +// +// Representation of a server config +type ServerConfigBuilder struct { + bitmap_ uint32 + id string + href string + awsShard *AWSShardBuilder + kubeconfig string + server string + topology ProvisionShardTopology +} + +// NewServerConfig creates a new builder of 'server_config' objects. +func NewServerConfig() *ServerConfigBuilder { + return &ServerConfigBuilder{} +} + +// Link sets the flag that indicates if this is a link. +func (b *ServerConfigBuilder) Link(value bool) *ServerConfigBuilder { + b.bitmap_ |= 1 + return b +} + +// ID sets the identifier of the object. +func (b *ServerConfigBuilder) ID(value string) *ServerConfigBuilder { + b.id = value + b.bitmap_ |= 2 + return b +} + +// HREF sets the link to the object. +func (b *ServerConfigBuilder) HREF(value string) *ServerConfigBuilder { + b.href = value + b.bitmap_ |= 4 + return b +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *ServerConfigBuilder) Empty() bool { + return b == nil || b.bitmap_&^1 == 0 +} + +// AWSShard sets the value of the 'AWS_shard' attribute to the given value. +// +// Config for AWS provision shards +func (b *ServerConfigBuilder) AWSShard(value *AWSShardBuilder) *ServerConfigBuilder { + b.awsShard = value + if value != nil { + b.bitmap_ |= 8 + } else { + b.bitmap_ &^= 8 + } + return b +} + +// Kubeconfig sets the value of the 'kubeconfig' attribute to the given value. +func (b *ServerConfigBuilder) Kubeconfig(value string) *ServerConfigBuilder { + b.kubeconfig = value + b.bitmap_ |= 16 + return b +} + +// Server sets the value of the 'server' attribute to the given value. +func (b *ServerConfigBuilder) Server(value string) *ServerConfigBuilder { + b.server = value + b.bitmap_ |= 32 + return b +} + +// Topology sets the value of the 'topology' attribute to the given value. +func (b *ServerConfigBuilder) Topology(value ProvisionShardTopology) *ServerConfigBuilder { + b.topology = value + b.bitmap_ |= 64 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *ServerConfigBuilder) Copy(object *ServerConfig) *ServerConfigBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.id = object.id + b.href = object.href + if object.awsShard != nil { + b.awsShard = NewAWSShard().Copy(object.awsShard) + } else { + b.awsShard = nil + } + b.kubeconfig = object.kubeconfig + b.server = object.server + b.topology = object.topology + return b +} + +// Build creates a 'server_config' object using the configuration stored in the builder. +func (b *ServerConfigBuilder) Build() (object *ServerConfig, err error) { + object = new(ServerConfig) + object.id = b.id + object.href = b.href + object.bitmap_ = b.bitmap_ + if b.awsShard != nil { + object.awsShard, err = b.awsShard.Build() + if err != nil { + return + } + } + object.kubeconfig = b.kubeconfig + object.server = b.server + object.topology = b.topology + return +} diff --git a/arohcp/v1alpha1/server_config_list_builder.go b/arohcp/v1alpha1/server_config_list_builder.go new file mode 100644 index 000000000..5f38f04f1 --- /dev/null +++ b/arohcp/v1alpha1/server_config_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ServerConfigListBuilder contains the data and logic needed to build +// 'server_config' objects. +type ServerConfigListBuilder struct { + items []*ServerConfigBuilder +} + +// NewServerConfigList creates a new builder of 'server_config' objects. +func NewServerConfigList() *ServerConfigListBuilder { + return new(ServerConfigListBuilder) +} + +// Items sets the items of the list. +func (b *ServerConfigListBuilder) Items(values ...*ServerConfigBuilder) *ServerConfigListBuilder { + b.items = make([]*ServerConfigBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *ServerConfigListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *ServerConfigListBuilder) Copy(list *ServerConfigList) *ServerConfigListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*ServerConfigBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewServerConfig().Copy(v) + } + } + return b +} + +// Build creates a list of 'server_config' objects using the +// configuration stored in the builder. +func (b *ServerConfigListBuilder) Build() (list *ServerConfigList, err error) { + items := make([]*ServerConfig, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(ServerConfigList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/server_config_list_type_json.go b/arohcp/v1alpha1/server_config_list_type_json.go new file mode 100644 index 000000000..0fee0afc6 --- /dev/null +++ b/arohcp/v1alpha1/server_config_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalServerConfigList writes a list of values of the 'server_config' type to +// the given writer. +func MarshalServerConfigList(list []*ServerConfig, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteServerConfigList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteServerConfigList writes a list of value of the 'server_config' type to +// the given stream. +func WriteServerConfigList(list []*ServerConfig, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteServerConfig(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalServerConfigList reads a list of values of the 'server_config' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalServerConfigList(source interface{}) (items []*ServerConfig, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadServerConfigList(iterator) + err = iterator.Error + return +} + +// ReadServerConfigList reads list of values of the ”server_config' type from +// the given iterator. +func ReadServerConfigList(iterator *jsoniter.Iterator) []*ServerConfig { + list := []*ServerConfig{} + for iterator.ReadArray() { + item := ReadServerConfig(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/server_config_type.go b/arohcp/v1alpha1/server_config_type.go new file mode 100644 index 000000000..0384bfb54 --- /dev/null +++ b/arohcp/v1alpha1/server_config_type.go @@ -0,0 +1,337 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ServerConfigKind is the name of the type used to represent objects +// of type 'server_config'. +const ServerConfigKind = "ServerConfig" + +// ServerConfigLinkKind is the name of the type used to represent links +// to objects of type 'server_config'. +const ServerConfigLinkKind = "ServerConfigLink" + +// ServerConfigNilKind is the name of the type used to nil references +// to objects of type 'server_config'. +const ServerConfigNilKind = "ServerConfigNil" + +// ServerConfig represents the values of the 'server_config' type. +// +// Representation of a server config +type ServerConfig struct { + bitmap_ uint32 + id string + href string + awsShard *AWSShard + kubeconfig string + server string + topology ProvisionShardTopology +} + +// Kind returns the name of the type of the object. +func (o *ServerConfig) Kind() string { + if o == nil { + return ServerConfigNilKind + } + if o.bitmap_&1 != 0 { + return ServerConfigLinkKind + } + return ServerConfigKind +} + +// Link returns true if this is a link. +func (o *ServerConfig) Link() bool { + return o != nil && o.bitmap_&1 != 0 +} + +// ID returns the identifier of the object. +func (o *ServerConfig) ID() string { + if o != nil && o.bitmap_&2 != 0 { + return o.id + } + return "" +} + +// GetID returns the identifier of the object and a flag indicating if the +// identifier has a value. +func (o *ServerConfig) GetID() (value string, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.id + } + return +} + +// HREF returns the link to the object. +func (o *ServerConfig) HREF() string { + if o != nil && o.bitmap_&4 != 0 { + return o.href + } + return "" +} + +// GetHREF returns the link of the object and a flag indicating if the +// link has a value. +func (o *ServerConfig) GetHREF() (value string, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.href + } + return +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *ServerConfig) Empty() bool { + return o == nil || o.bitmap_&^1 == 0 +} + +// AWSShard returns the value of the 'AWS_shard' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Config for AWS provision shards +func (o *ServerConfig) AWSShard() *AWSShard { + if o != nil && o.bitmap_&8 != 0 { + return o.awsShard + } + return nil +} + +// GetAWSShard returns the value of the 'AWS_shard' attribute and +// a flag indicating if the attribute has a value. +// +// Config for AWS provision shards +func (o *ServerConfig) GetAWSShard() (value *AWSShard, ok bool) { + ok = o != nil && o.bitmap_&8 != 0 + if ok { + value = o.awsShard + } + return +} + +// Kubeconfig returns the value of the 'kubeconfig' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The kubeconfig of the server. +func (o *ServerConfig) Kubeconfig() string { + if o != nil && o.bitmap_&16 != 0 { + return o.kubeconfig + } + return "" +} + +// GetKubeconfig returns the value of the 'kubeconfig' attribute and +// a flag indicating if the attribute has a value. +// +// The kubeconfig of the server. +func (o *ServerConfig) GetKubeconfig() (value string, ok bool) { + ok = o != nil && o.bitmap_&16 != 0 + if ok { + value = o.kubeconfig + } + return +} + +// Server returns the value of the 'server' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The URL of the server. +func (o *ServerConfig) Server() string { + if o != nil && o.bitmap_&32 != 0 { + return o.server + } + return "" +} + +// GetServer returns the value of the 'server' attribute and +// a flag indicating if the attribute has a value. +// +// The URL of the server. +func (o *ServerConfig) GetServer() (value string, ok bool) { + ok = o != nil && o.bitmap_&32 != 0 + if ok { + value = o.server + } + return +} + +// Topology returns the value of the 'topology' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// The topology of a provision shard (Optional). +func (o *ServerConfig) Topology() ProvisionShardTopology { + if o != nil && o.bitmap_&64 != 0 { + return o.topology + } + return ProvisionShardTopology("") +} + +// GetTopology returns the value of the 'topology' attribute and +// a flag indicating if the attribute has a value. +// +// The topology of a provision shard (Optional). +func (o *ServerConfig) GetTopology() (value ProvisionShardTopology, ok bool) { + ok = o != nil && o.bitmap_&64 != 0 + if ok { + value = o.topology + } + return +} + +// ServerConfigListKind is the name of the type used to represent list of objects of +// type 'server_config'. +const ServerConfigListKind = "ServerConfigList" + +// ServerConfigListLinkKind is the name of the type used to represent links to list +// of objects of type 'server_config'. +const ServerConfigListLinkKind = "ServerConfigListLink" + +// ServerConfigNilKind is the name of the type used to nil lists of objects of +// type 'server_config'. +const ServerConfigListNilKind = "ServerConfigListNil" + +// ServerConfigList is a list of values of the 'server_config' type. +type ServerConfigList struct { + href string + link bool + items []*ServerConfig +} + +// Kind returns the name of the type of the object. +func (l *ServerConfigList) Kind() string { + if l == nil { + return ServerConfigListNilKind + } + if l.link { + return ServerConfigListLinkKind + } + return ServerConfigListKind +} + +// Link returns true iif this is a link. +func (l *ServerConfigList) Link() bool { + return l != nil && l.link +} + +// HREF returns the link to the list. +func (l *ServerConfigList) HREF() string { + if l != nil { + return l.href + } + return "" +} + +// GetHREF returns the link of the list and a flag indicating if the +// link has a value. +func (l *ServerConfigList) GetHREF() (value string, ok bool) { + ok = l != nil && l.href != "" + if ok { + value = l.href + } + return +} + +// Len returns the length of the list. +func (l *ServerConfigList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *ServerConfigList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ServerConfigList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ServerConfigList) SetItems(items []*ServerConfig) { + l.items = items +} + +// Items returns the items of the list. +func (l *ServerConfigList) Items() []*ServerConfig { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *ServerConfigList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *ServerConfigList) Get(i int) *ServerConfig { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *ServerConfigList) Slice() []*ServerConfig { + var slice []*ServerConfig + if l == nil { + slice = make([]*ServerConfig, 0) + } else { + slice = make([]*ServerConfig, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *ServerConfigList) Each(f func(item *ServerConfig) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *ServerConfigList) Range(f func(index int, item *ServerConfig) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/server_config_type_json.go b/arohcp/v1alpha1/server_config_type_json.go new file mode 100644 index 000000000..b33b0bb69 --- /dev/null +++ b/arohcp/v1alpha1/server_config_type_json.go @@ -0,0 +1,160 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalServerConfig writes a value of the 'server_config' type to the given writer. +func MarshalServerConfig(object *ServerConfig, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteServerConfig(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteServerConfig writes a value of the 'server_config' type to the given stream. +func WriteServerConfig(object *ServerConfig, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + stream.WriteObjectField("kind") + if object.bitmap_&1 != 0 { + stream.WriteString(ServerConfigLinkKind) + } else { + stream.WriteString(ServerConfigKind) + } + count++ + if object.bitmap_&2 != 0 { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("id") + stream.WriteString(object.id) + count++ + } + if object.bitmap_&4 != 0 { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("href") + stream.WriteString(object.href) + count++ + } + var present_ bool + present_ = object.bitmap_&8 != 0 && object.awsShard != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("aws_shard") + WriteAWSShard(object.awsShard, stream) + count++ + } + present_ = object.bitmap_&16 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("kubeconfig") + stream.WriteString(object.kubeconfig) + count++ + } + present_ = object.bitmap_&32 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("server") + stream.WriteString(object.server) + count++ + } + present_ = object.bitmap_&64 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("topology") + stream.WriteString(string(object.topology)) + } + stream.WriteObjectEnd() +} + +// UnmarshalServerConfig reads a value of the 'server_config' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalServerConfig(source interface{}) (object *ServerConfig, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadServerConfig(iterator) + err = iterator.Error + return +} + +// ReadServerConfig reads a value of the 'server_config' type from the given iterator. +func ReadServerConfig(iterator *jsoniter.Iterator) *ServerConfig { + object := &ServerConfig{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "kind": + value := iterator.ReadString() + if value == ServerConfigLinkKind { + object.bitmap_ |= 1 + } + case "id": + object.id = iterator.ReadString() + object.bitmap_ |= 2 + case "href": + object.href = iterator.ReadString() + object.bitmap_ |= 4 + case "aws_shard": + value := ReadAWSShard(iterator) + object.awsShard = value + object.bitmap_ |= 8 + case "kubeconfig": + value := iterator.ReadString() + object.kubeconfig = value + object.bitmap_ |= 16 + case "server": + value := iterator.ReadString() + object.server = value + object.bitmap_ |= 32 + case "topology": + text := iterator.ReadString() + value := ProvisionShardTopology(text) + object.topology = value + object.bitmap_ |= 64 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/string_list_type_json.go b/arohcp/v1alpha1/string_list_type_json.go new file mode 100644 index 000000000..a01a7bc5f --- /dev/null +++ b/arohcp/v1alpha1/string_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalStringList writes a list of values of the 'string' type to +// the given writer. +func MarshalStringList(list []string, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteStringList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteStringList writes a list of value of the 'string' type to +// the given stream. +func WriteStringList(list []string, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + stream.WriteString(value) + } + stream.WriteArrayEnd() +} + +// UnmarshalStringList reads a list of values of the 'string' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalStringList(source interface{}) (items []string, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadStringList(iterator) + err = iterator.Error + return +} + +// ReadStringList reads list of values of the ”string' type from +// the given iterator. +func ReadStringList(iterator *jsoniter.Iterator) []string { + list := []string{} + for iterator.ReadArray() { + item := iterator.ReadString() + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/sts_builder.go b/arohcp/v1alpha1/sts_builder.go new file mode 100644 index 000000000..8eb1703ae --- /dev/null +++ b/arohcp/v1alpha1/sts_builder.go @@ -0,0 +1,219 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// STSBuilder contains the data and logic needed to build 'STS' objects. +// +// Contains the necessary attributes to support role-based authentication on AWS. +type STSBuilder struct { + bitmap_ uint32 + oidcEndpointURL string + externalID string + instanceIAMRoles *InstanceIAMRolesBuilder + oidcConfig *OidcConfigBuilder + operatorIAMRoles []*OperatorIAMRoleBuilder + operatorRolePrefix string + permissionBoundary string + roleARN string + supportRoleARN string + autoMode bool + enabled bool + managedPolicies bool +} + +// NewSTS creates a new builder of 'STS' objects. +func NewSTS() *STSBuilder { + return &STSBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *STSBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// OIDCEndpointURL sets the value of the 'OIDC_endpoint_URL' attribute to the given value. +func (b *STSBuilder) OIDCEndpointURL(value string) *STSBuilder { + b.oidcEndpointURL = value + b.bitmap_ |= 1 + return b +} + +// AutoMode sets the value of the 'auto_mode' attribute to the given value. +func (b *STSBuilder) AutoMode(value bool) *STSBuilder { + b.autoMode = value + b.bitmap_ |= 2 + return b +} + +// Enabled sets the value of the 'enabled' attribute to the given value. +func (b *STSBuilder) Enabled(value bool) *STSBuilder { + b.enabled = value + b.bitmap_ |= 4 + return b +} + +// ExternalID sets the value of the 'external_ID' attribute to the given value. +func (b *STSBuilder) ExternalID(value string) *STSBuilder { + b.externalID = value + b.bitmap_ |= 8 + return b +} + +// InstanceIAMRoles sets the value of the 'instance_IAM_roles' attribute to the given value. +// +// Contains the necessary attributes to support role-based authentication on AWS. +func (b *STSBuilder) InstanceIAMRoles(value *InstanceIAMRolesBuilder) *STSBuilder { + b.instanceIAMRoles = value + if value != nil { + b.bitmap_ |= 16 + } else { + b.bitmap_ &^= 16 + } + return b +} + +// ManagedPolicies sets the value of the 'managed_policies' attribute to the given value. +func (b *STSBuilder) ManagedPolicies(value bool) *STSBuilder { + b.managedPolicies = value + b.bitmap_ |= 32 + return b +} + +// OidcConfig sets the value of the 'oidc_config' attribute to the given value. +// +// Contains the necessary attributes to support oidc configuration hosting under Red Hat or registering a Customer's byo oidc config. +func (b *STSBuilder) OidcConfig(value *OidcConfigBuilder) *STSBuilder { + b.oidcConfig = value + if value != nil { + b.bitmap_ |= 64 + } else { + b.bitmap_ &^= 64 + } + return b +} + +// OperatorIAMRoles sets the value of the 'operator_IAM_roles' attribute to the given values. +func (b *STSBuilder) OperatorIAMRoles(values ...*OperatorIAMRoleBuilder) *STSBuilder { + b.operatorIAMRoles = make([]*OperatorIAMRoleBuilder, len(values)) + copy(b.operatorIAMRoles, values) + b.bitmap_ |= 128 + return b +} + +// OperatorRolePrefix sets the value of the 'operator_role_prefix' attribute to the given value. +func (b *STSBuilder) OperatorRolePrefix(value string) *STSBuilder { + b.operatorRolePrefix = value + b.bitmap_ |= 256 + return b +} + +// PermissionBoundary sets the value of the 'permission_boundary' attribute to the given value. +func (b *STSBuilder) PermissionBoundary(value string) *STSBuilder { + b.permissionBoundary = value + b.bitmap_ |= 512 + return b +} + +// RoleARN sets the value of the 'role_ARN' attribute to the given value. +func (b *STSBuilder) RoleARN(value string) *STSBuilder { + b.roleARN = value + b.bitmap_ |= 1024 + return b +} + +// SupportRoleARN sets the value of the 'support_role_ARN' attribute to the given value. +func (b *STSBuilder) SupportRoleARN(value string) *STSBuilder { + b.supportRoleARN = value + b.bitmap_ |= 2048 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *STSBuilder) Copy(object *STS) *STSBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.oidcEndpointURL = object.oidcEndpointURL + b.autoMode = object.autoMode + b.enabled = object.enabled + b.externalID = object.externalID + if object.instanceIAMRoles != nil { + b.instanceIAMRoles = NewInstanceIAMRoles().Copy(object.instanceIAMRoles) + } else { + b.instanceIAMRoles = nil + } + b.managedPolicies = object.managedPolicies + if object.oidcConfig != nil { + b.oidcConfig = NewOidcConfig().Copy(object.oidcConfig) + } else { + b.oidcConfig = nil + } + if object.operatorIAMRoles != nil { + b.operatorIAMRoles = make([]*OperatorIAMRoleBuilder, len(object.operatorIAMRoles)) + for i, v := range object.operatorIAMRoles { + b.operatorIAMRoles[i] = NewOperatorIAMRole().Copy(v) + } + } else { + b.operatorIAMRoles = nil + } + b.operatorRolePrefix = object.operatorRolePrefix + b.permissionBoundary = object.permissionBoundary + b.roleARN = object.roleARN + b.supportRoleARN = object.supportRoleARN + return b +} + +// Build creates a 'STS' object using the configuration stored in the builder. +func (b *STSBuilder) Build() (object *STS, err error) { + object = new(STS) + object.bitmap_ = b.bitmap_ + object.oidcEndpointURL = b.oidcEndpointURL + object.autoMode = b.autoMode + object.enabled = b.enabled + object.externalID = b.externalID + if b.instanceIAMRoles != nil { + object.instanceIAMRoles, err = b.instanceIAMRoles.Build() + if err != nil { + return + } + } + object.managedPolicies = b.managedPolicies + if b.oidcConfig != nil { + object.oidcConfig, err = b.oidcConfig.Build() + if err != nil { + return + } + } + if b.operatorIAMRoles != nil { + object.operatorIAMRoles = make([]*OperatorIAMRole, len(b.operatorIAMRoles)) + for i, v := range b.operatorIAMRoles { + object.operatorIAMRoles[i], err = v.Build() + if err != nil { + return + } + } + } + object.operatorRolePrefix = b.operatorRolePrefix + object.permissionBoundary = b.permissionBoundary + object.roleARN = b.roleARN + object.supportRoleARN = b.supportRoleARN + return +} diff --git a/arohcp/v1alpha1/sts_list_builder.go b/arohcp/v1alpha1/sts_list_builder.go new file mode 100644 index 000000000..92edb89b4 --- /dev/null +++ b/arohcp/v1alpha1/sts_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// STSListBuilder contains the data and logic needed to build +// 'STS' objects. +type STSListBuilder struct { + items []*STSBuilder +} + +// NewSTSList creates a new builder of 'STS' objects. +func NewSTSList() *STSListBuilder { + return new(STSListBuilder) +} + +// Items sets the items of the list. +func (b *STSListBuilder) Items(values ...*STSBuilder) *STSListBuilder { + b.items = make([]*STSBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *STSListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *STSListBuilder) Copy(list *STSList) *STSListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*STSBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewSTS().Copy(v) + } + } + return b +} + +// Build creates a list of 'STS' objects using the +// configuration stored in the builder. +func (b *STSListBuilder) Build() (list *STSList, err error) { + items := make([]*STS, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(STSList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/sts_list_type_json.go b/arohcp/v1alpha1/sts_list_type_json.go new file mode 100644 index 000000000..c698440ef --- /dev/null +++ b/arohcp/v1alpha1/sts_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalSTSList writes a list of values of the 'STS' type to +// the given writer. +func MarshalSTSList(list []*STS, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteSTSList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteSTSList writes a list of value of the 'STS' type to +// the given stream. +func WriteSTSList(list []*STS, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteSTS(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalSTSList reads a list of values of the 'STS' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalSTSList(source interface{}) (items []*STS, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadSTSList(iterator) + err = iterator.Error + return +} + +// ReadSTSList reads list of values of the ”STS' type from +// the given iterator. +func ReadSTSList(iterator *jsoniter.Iterator) []*STS { + list := []*STS{} + for iterator.ReadArray() { + item := ReadSTS(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/sts_type.go b/arohcp/v1alpha1/sts_type.go new file mode 100644 index 000000000..5bb412a6a --- /dev/null +++ b/arohcp/v1alpha1/sts_type.go @@ -0,0 +1,429 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// STS represents the values of the 'STS' type. +// +// Contains the necessary attributes to support role-based authentication on AWS. +type STS struct { + bitmap_ uint32 + oidcEndpointURL string + externalID string + instanceIAMRoles *InstanceIAMRoles + oidcConfig *OidcConfig + operatorIAMRoles []*OperatorIAMRole + operatorRolePrefix string + permissionBoundary string + roleARN string + supportRoleARN string + autoMode bool + enabled bool + managedPolicies bool +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *STS) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// OIDCEndpointURL returns the value of the 'OIDC_endpoint_URL' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// URL of the location where OIDC configuration and keys are available +func (o *STS) OIDCEndpointURL() string { + if o != nil && o.bitmap_&1 != 0 { + return o.oidcEndpointURL + } + return "" +} + +// GetOIDCEndpointURL returns the value of the 'OIDC_endpoint_URL' attribute and +// a flag indicating if the attribute has a value. +// +// URL of the location where OIDC configuration and keys are available +func (o *STS) GetOIDCEndpointURL() (value string, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.oidcEndpointURL + } + return +} + +// AutoMode returns the value of the 'auto_mode' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Auto creation mode for cluster - OCM will create the operator roles and OIDC provider. false by default. +func (o *STS) AutoMode() bool { + if o != nil && o.bitmap_&2 != 0 { + return o.autoMode + } + return false +} + +// GetAutoMode returns the value of the 'auto_mode' attribute and +// a flag indicating if the attribute has a value. +// +// Auto creation mode for cluster - OCM will create the operator roles and OIDC provider. false by default. +func (o *STS) GetAutoMode() (value bool, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.autoMode + } + return +} + +// Enabled returns the value of the 'enabled' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// If STS is enabled or disabled +func (o *STS) Enabled() bool { + if o != nil && o.bitmap_&4 != 0 { + return o.enabled + } + return false +} + +// GetEnabled returns the value of the 'enabled' attribute and +// a flag indicating if the attribute has a value. +// +// If STS is enabled or disabled +func (o *STS) GetEnabled() (value bool, ok bool) { + ok = o != nil && o.bitmap_&4 != 0 + if ok { + value = o.enabled + } + return +} + +// ExternalID returns the value of the 'external_ID' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Optional unique identifier when assuming role in another account +func (o *STS) ExternalID() string { + if o != nil && o.bitmap_&8 != 0 { + return o.externalID + } + return "" +} + +// GetExternalID returns the value of the 'external_ID' attribute and +// a flag indicating if the attribute has a value. +// +// Optional unique identifier when assuming role in another account +func (o *STS) GetExternalID() (value string, ok bool) { + ok = o != nil && o.bitmap_&8 != 0 + if ok { + value = o.externalID + } + return +} + +// InstanceIAMRoles returns the value of the 'instance_IAM_roles' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Instance IAM roles to use for the instance profiles of the master and worker instances +func (o *STS) InstanceIAMRoles() *InstanceIAMRoles { + if o != nil && o.bitmap_&16 != 0 { + return o.instanceIAMRoles + } + return nil +} + +// GetInstanceIAMRoles returns the value of the 'instance_IAM_roles' attribute and +// a flag indicating if the attribute has a value. +// +// Instance IAM roles to use for the instance profiles of the master and worker instances +func (o *STS) GetInstanceIAMRoles() (value *InstanceIAMRoles, ok bool) { + ok = o != nil && o.bitmap_&16 != 0 + if ok { + value = o.instanceIAMRoles + } + return +} + +// ManagedPolicies returns the value of the 'managed_policies' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// If true, cluster account and operator roles have managed policies attached. +func (o *STS) ManagedPolicies() bool { + if o != nil && o.bitmap_&32 != 0 { + return o.managedPolicies + } + return false +} + +// GetManagedPolicies returns the value of the 'managed_policies' attribute and +// a flag indicating if the attribute has a value. +// +// If true, cluster account and operator roles have managed policies attached. +func (o *STS) GetManagedPolicies() (value bool, ok bool) { + ok = o != nil && o.bitmap_&32 != 0 + if ok { + value = o.managedPolicies + } + return +} + +// OidcConfig returns the value of the 'oidc_config' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Registered Oidc Config, if available holds information related to the oidc config. +func (o *STS) OidcConfig() *OidcConfig { + if o != nil && o.bitmap_&64 != 0 { + return o.oidcConfig + } + return nil +} + +// GetOidcConfig returns the value of the 'oidc_config' attribute and +// a flag indicating if the attribute has a value. +// +// Registered Oidc Config, if available holds information related to the oidc config. +func (o *STS) GetOidcConfig() (value *OidcConfig, ok bool) { + ok = o != nil && o.bitmap_&64 != 0 + if ok { + value = o.oidcConfig + } + return +} + +// OperatorIAMRoles returns the value of the 'operator_IAM_roles' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// List of roles necessary to access the AWS resources of the various operators used during installation +func (o *STS) OperatorIAMRoles() []*OperatorIAMRole { + if o != nil && o.bitmap_&128 != 0 { + return o.operatorIAMRoles + } + return nil +} + +// GetOperatorIAMRoles returns the value of the 'operator_IAM_roles' attribute and +// a flag indicating if the attribute has a value. +// +// List of roles necessary to access the AWS resources of the various operators used during installation +func (o *STS) GetOperatorIAMRoles() (value []*OperatorIAMRole, ok bool) { + ok = o != nil && o.bitmap_&128 != 0 + if ok { + value = o.operatorIAMRoles + } + return +} + +// OperatorRolePrefix returns the value of the 'operator_role_prefix' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Optional user provided prefix for operator roles. +func (o *STS) OperatorRolePrefix() string { + if o != nil && o.bitmap_&256 != 0 { + return o.operatorRolePrefix + } + return "" +} + +// GetOperatorRolePrefix returns the value of the 'operator_role_prefix' attribute and +// a flag indicating if the attribute has a value. +// +// Optional user provided prefix for operator roles. +func (o *STS) GetOperatorRolePrefix() (value string, ok bool) { + ok = o != nil && o.bitmap_&256 != 0 + if ok { + value = o.operatorRolePrefix + } + return +} + +// PermissionBoundary returns the value of the 'permission_boundary' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Optional user provided permission boundary. +func (o *STS) PermissionBoundary() string { + if o != nil && o.bitmap_&512 != 0 { + return o.permissionBoundary + } + return "" +} + +// GetPermissionBoundary returns the value of the 'permission_boundary' attribute and +// a flag indicating if the attribute has a value. +// +// Optional user provided permission boundary. +func (o *STS) GetPermissionBoundary() (value string, ok bool) { + ok = o != nil && o.bitmap_&512 != 0 + if ok { + value = o.permissionBoundary + } + return +} + +// RoleARN returns the value of the 'role_ARN' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// ARN of the AWS role to assume when installing the cluster +func (o *STS) RoleARN() string { + if o != nil && o.bitmap_&1024 != 0 { + return o.roleARN + } + return "" +} + +// GetRoleARN returns the value of the 'role_ARN' attribute and +// a flag indicating if the attribute has a value. +// +// ARN of the AWS role to assume when installing the cluster +func (o *STS) GetRoleARN() (value string, ok bool) { + ok = o != nil && o.bitmap_&1024 != 0 + if ok { + value = o.roleARN + } + return +} + +// SupportRoleARN returns the value of the 'support_role_ARN' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// ARN of the AWS role used by SREs to access the cluster AWS account in order to provide support +func (o *STS) SupportRoleARN() string { + if o != nil && o.bitmap_&2048 != 0 { + return o.supportRoleARN + } + return "" +} + +// GetSupportRoleARN returns the value of the 'support_role_ARN' attribute and +// a flag indicating if the attribute has a value. +// +// ARN of the AWS role used by SREs to access the cluster AWS account in order to provide support +func (o *STS) GetSupportRoleARN() (value string, ok bool) { + ok = o != nil && o.bitmap_&2048 != 0 + if ok { + value = o.supportRoleARN + } + return +} + +// STSListKind is the name of the type used to represent list of objects of +// type 'STS'. +const STSListKind = "STSList" + +// STSListLinkKind is the name of the type used to represent links to list +// of objects of type 'STS'. +const STSListLinkKind = "STSListLink" + +// STSNilKind is the name of the type used to nil lists of objects of +// type 'STS'. +const STSListNilKind = "STSListNil" + +// STSList is a list of values of the 'STS' type. +type STSList struct { + href string + link bool + items []*STS +} + +// Len returns the length of the list. +func (l *STSList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *STSList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *STSList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *STSList) SetItems(items []*STS) { + l.items = items +} + +// Items returns the items of the list. +func (l *STSList) Items() []*STS { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *STSList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *STSList) Get(i int) *STS { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *STSList) Slice() []*STS { + var slice []*STS + if l == nil { + slice = make([]*STS, 0) + } else { + slice = make([]*STS, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *STSList) Each(f func(item *STS) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *STSList) Range(f func(index int, item *STS) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/sts_type_json.go b/arohcp/v1alpha1/sts_type_json.go new file mode 100644 index 000000000..a5039e612 --- /dev/null +++ b/arohcp/v1alpha1/sts_type_json.go @@ -0,0 +1,229 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalSTS writes a value of the 'STS' type to the given writer. +func MarshalSTS(object *STS, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteSTS(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteSTS writes a value of the 'STS' type to the given stream. +func WriteSTS(object *STS, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("oidc_endpoint_url") + stream.WriteString(object.oidcEndpointURL) + count++ + } + present_ = object.bitmap_&2 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("auto_mode") + stream.WriteBool(object.autoMode) + count++ + } + present_ = object.bitmap_&4 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("enabled") + stream.WriteBool(object.enabled) + count++ + } + present_ = object.bitmap_&8 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("external_id") + stream.WriteString(object.externalID) + count++ + } + present_ = object.bitmap_&16 != 0 && object.instanceIAMRoles != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("instance_iam_roles") + WriteInstanceIAMRoles(object.instanceIAMRoles, stream) + count++ + } + present_ = object.bitmap_&32 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("managed_policies") + stream.WriteBool(object.managedPolicies) + count++ + } + present_ = object.bitmap_&64 != 0 && object.oidcConfig != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("oidc_config") + WriteOidcConfig(object.oidcConfig, stream) + count++ + } + present_ = object.bitmap_&128 != 0 && object.operatorIAMRoles != nil + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("operator_iam_roles") + WriteOperatorIAMRoleList(object.operatorIAMRoles, stream) + count++ + } + present_ = object.bitmap_&256 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("operator_role_prefix") + stream.WriteString(object.operatorRolePrefix) + count++ + } + present_ = object.bitmap_&512 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("permission_boundary") + stream.WriteString(object.permissionBoundary) + count++ + } + present_ = object.bitmap_&1024 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("role_arn") + stream.WriteString(object.roleARN) + count++ + } + present_ = object.bitmap_&2048 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("support_role_arn") + stream.WriteString(object.supportRoleARN) + } + stream.WriteObjectEnd() +} + +// UnmarshalSTS reads a value of the 'STS' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalSTS(source interface{}) (object *STS, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadSTS(iterator) + err = iterator.Error + return +} + +// ReadSTS reads a value of the 'STS' type from the given iterator. +func ReadSTS(iterator *jsoniter.Iterator) *STS { + object := &STS{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "oidc_endpoint_url": + value := iterator.ReadString() + object.oidcEndpointURL = value + object.bitmap_ |= 1 + case "auto_mode": + value := iterator.ReadBool() + object.autoMode = value + object.bitmap_ |= 2 + case "enabled": + value := iterator.ReadBool() + object.enabled = value + object.bitmap_ |= 4 + case "external_id": + value := iterator.ReadString() + object.externalID = value + object.bitmap_ |= 8 + case "instance_iam_roles": + value := ReadInstanceIAMRoles(iterator) + object.instanceIAMRoles = value + object.bitmap_ |= 16 + case "managed_policies": + value := iterator.ReadBool() + object.managedPolicies = value + object.bitmap_ |= 32 + case "oidc_config": + value := ReadOidcConfig(iterator) + object.oidcConfig = value + object.bitmap_ |= 64 + case "operator_iam_roles": + value := ReadOperatorIAMRoleList(iterator) + object.operatorIAMRoles = value + object.bitmap_ |= 128 + case "operator_role_prefix": + value := iterator.ReadString() + object.operatorRolePrefix = value + object.bitmap_ |= 256 + case "permission_boundary": + value := iterator.ReadString() + object.permissionBoundary = value + object.bitmap_ |= 512 + case "role_arn": + value := iterator.ReadString() + object.roleARN = value + object.bitmap_ |= 1024 + case "support_role_arn": + value := iterator.ReadString() + object.supportRoleARN = value + object.bitmap_ |= 2048 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/arohcp/v1alpha1/value_builder.go b/arohcp/v1alpha1/value_builder.go new file mode 100644 index 000000000..cfa1bcbdb --- /dev/null +++ b/arohcp/v1alpha1/value_builder.go @@ -0,0 +1,90 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ValueBuilder contains the data and logic needed to build 'value' objects. +// +// Numeric value and the unit used to measure it. +// +// Units are not mandatory, and they're not specified for some resources. For +// resources that use bytes, the accepted units are: +// +// - 1 B = 1 byte +// - 1 KB = 10^3 bytes +// - 1 MB = 10^6 bytes +// - 1 GB = 10^9 bytes +// - 1 TB = 10^12 bytes +// - 1 PB = 10^15 bytes +// +// - 1 B = 1 byte +// - 1 KiB = 2^10 bytes +// - 1 MiB = 2^20 bytes +// - 1 GiB = 2^30 bytes +// - 1 TiB = 2^40 bytes +// - 1 PiB = 2^50 bytes +type ValueBuilder struct { + bitmap_ uint32 + unit string + value float64 +} + +// NewValue creates a new builder of 'value' objects. +func NewValue() *ValueBuilder { + return &ValueBuilder{} +} + +// Empty returns true if the builder is empty, i.e. no attribute has a value. +func (b *ValueBuilder) Empty() bool { + return b == nil || b.bitmap_ == 0 +} + +// Unit sets the value of the 'unit' attribute to the given value. +func (b *ValueBuilder) Unit(value string) *ValueBuilder { + b.unit = value + b.bitmap_ |= 1 + return b +} + +// Value sets the value of the 'value' attribute to the given value. +func (b *ValueBuilder) Value(value float64) *ValueBuilder { + b.value = value + b.bitmap_ |= 2 + return b +} + +// Copy copies the attributes of the given object into this builder, discarding any previous values. +func (b *ValueBuilder) Copy(object *Value) *ValueBuilder { + if object == nil { + return b + } + b.bitmap_ = object.bitmap_ + b.unit = object.unit + b.value = object.value + return b +} + +// Build creates a 'value' object using the configuration stored in the builder. +func (b *ValueBuilder) Build() (object *Value, err error) { + object = new(Value) + object.bitmap_ = b.bitmap_ + object.unit = b.unit + object.value = b.value + return +} diff --git a/arohcp/v1alpha1/value_list_builder.go b/arohcp/v1alpha1/value_list_builder.go new file mode 100644 index 000000000..5e9f0228b --- /dev/null +++ b/arohcp/v1alpha1/value_list_builder.go @@ -0,0 +1,71 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// ValueListBuilder contains the data and logic needed to build +// 'value' objects. +type ValueListBuilder struct { + items []*ValueBuilder +} + +// NewValueList creates a new builder of 'value' objects. +func NewValueList() *ValueListBuilder { + return new(ValueListBuilder) +} + +// Items sets the items of the list. +func (b *ValueListBuilder) Items(values ...*ValueBuilder) *ValueListBuilder { + b.items = make([]*ValueBuilder, len(values)) + copy(b.items, values) + return b +} + +// Empty returns true if the list is empty. +func (b *ValueListBuilder) Empty() bool { + return b == nil || len(b.items) == 0 +} + +// Copy copies the items of the given list into this builder, discarding any previous items. +func (b *ValueListBuilder) Copy(list *ValueList) *ValueListBuilder { + if list == nil || list.items == nil { + b.items = nil + } else { + b.items = make([]*ValueBuilder, len(list.items)) + for i, v := range list.items { + b.items[i] = NewValue().Copy(v) + } + } + return b +} + +// Build creates a list of 'value' objects using the +// configuration stored in the builder. +func (b *ValueListBuilder) Build() (list *ValueList, err error) { + items := make([]*Value, len(b.items)) + for i, item := range b.items { + items[i], err = item.Build() + if err != nil { + return + } + } + list = new(ValueList) + list.items = items + return +} diff --git a/arohcp/v1alpha1/value_list_type_json.go b/arohcp/v1alpha1/value_list_type_json.go new file mode 100644 index 000000000..6a8daaf38 --- /dev/null +++ b/arohcp/v1alpha1/value_list_type_json.go @@ -0,0 +1,75 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalValueList writes a list of values of the 'value' type to +// the given writer. +func MarshalValueList(list []*Value, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteValueList(list, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteValueList writes a list of value of the 'value' type to +// the given stream. +func WriteValueList(list []*Value, stream *jsoniter.Stream) { + stream.WriteArrayStart() + for i, value := range list { + if i > 0 { + stream.WriteMore() + } + WriteValue(value, stream) + } + stream.WriteArrayEnd() +} + +// UnmarshalValueList reads a list of values of the 'value' type +// from the given source, which can be a slice of bytes, a string or a reader. +func UnmarshalValueList(source interface{}) (items []*Value, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + items = ReadValueList(iterator) + err = iterator.Error + return +} + +// ReadValueList reads list of values of the ”value' type from +// the given iterator. +func ReadValueList(iterator *jsoniter.Iterator) []*Value { + list := []*Value{} + for iterator.ReadArray() { + item := ReadValue(iterator) + list = append(list, item) + } + return list +} diff --git a/arohcp/v1alpha1/value_type.go b/arohcp/v1alpha1/value_type.go new file mode 100644 index 000000000..4a3893f8e --- /dev/null +++ b/arohcp/v1alpha1/value_type.go @@ -0,0 +1,206 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +// Value represents the values of the 'value' type. +// +// Numeric value and the unit used to measure it. +// +// Units are not mandatory, and they're not specified for some resources. For +// resources that use bytes, the accepted units are: +// +// - 1 B = 1 byte +// - 1 KB = 10^3 bytes +// - 1 MB = 10^6 bytes +// - 1 GB = 10^9 bytes +// - 1 TB = 10^12 bytes +// - 1 PB = 10^15 bytes +// +// - 1 B = 1 byte +// - 1 KiB = 2^10 bytes +// - 1 MiB = 2^20 bytes +// - 1 GiB = 2^30 bytes +// - 1 TiB = 2^40 bytes +// - 1 PiB = 2^50 bytes +type Value struct { + bitmap_ uint32 + unit string + value float64 +} + +// Empty returns true if the object is empty, i.e. no attribute has a value. +func (o *Value) Empty() bool { + return o == nil || o.bitmap_ == 0 +} + +// Unit returns the value of the 'unit' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Name of the unit used to measure the value. +func (o *Value) Unit() string { + if o != nil && o.bitmap_&1 != 0 { + return o.unit + } + return "" +} + +// GetUnit returns the value of the 'unit' attribute and +// a flag indicating if the attribute has a value. +// +// Name of the unit used to measure the value. +func (o *Value) GetUnit() (value string, ok bool) { + ok = o != nil && o.bitmap_&1 != 0 + if ok { + value = o.unit + } + return +} + +// Value returns the value of the 'value' attribute, or +// the zero value of the type if the attribute doesn't have a value. +// +// Numeric value. +func (o *Value) Value() float64 { + if o != nil && o.bitmap_&2 != 0 { + return o.value + } + return 0.0 +} + +// GetValue returns the value of the 'value' attribute and +// a flag indicating if the attribute has a value. +// +// Numeric value. +func (o *Value) GetValue() (value float64, ok bool) { + ok = o != nil && o.bitmap_&2 != 0 + if ok { + value = o.value + } + return +} + +// ValueListKind is the name of the type used to represent list of objects of +// type 'value'. +const ValueListKind = "ValueList" + +// ValueListLinkKind is the name of the type used to represent links to list +// of objects of type 'value'. +const ValueListLinkKind = "ValueListLink" + +// ValueNilKind is the name of the type used to nil lists of objects of +// type 'value'. +const ValueListNilKind = "ValueListNil" + +// ValueList is a list of values of the 'value' type. +type ValueList struct { + href string + link bool + items []*Value +} + +// Len returns the length of the list. +func (l *ValueList) Len() int { + if l == nil { + return 0 + } + return len(l.items) +} + +// Items sets the items of the list. +func (l *ValueList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ValueList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ValueList) SetItems(items []*Value) { + l.items = items +} + +// Items returns the items of the list. +func (l *ValueList) Items() []*Value { + if l == nil { + return nil + } + return l.items +} + +// Empty returns true if the list is empty. +func (l *ValueList) Empty() bool { + return l == nil || len(l.items) == 0 +} + +// Get returns the item of the list with the given index. If there is no item with +// that index it returns nil. +func (l *ValueList) Get(i int) *Value { + if l == nil || i < 0 || i >= len(l.items) { + return nil + } + return l.items[i] +} + +// Slice returns an slice containing the items of the list. The returned slice is a +// copy of the one used internally, so it can be modified without affecting the +// internal representation. +// +// If you don't need to modify the returned slice consider using the Each or Range +// functions, as they don't need to allocate a new slice. +func (l *ValueList) Slice() []*Value { + var slice []*Value + if l == nil { + slice = make([]*Value, 0) + } else { + slice = make([]*Value, len(l.items)) + copy(slice, l.items) + } + return slice +} + +// Each runs the given function for each item of the list, in order. If the function +// returns false the iteration stops, otherwise it continues till all the elements +// of the list have been processed. +func (l *ValueList) Each(f func(item *Value) bool) { + if l == nil { + return + } + for _, item := range l.items { + if !f(item) { + break + } + } +} + +// Range runs the given function for each index and item of the list, in order. If +// the function returns false the iteration stops, otherwise it continues till all +// the elements of the list have been processed. +func (l *ValueList) Range(f func(index int, item *Value) bool) { + if l == nil { + return + } + for index, item := range l.items { + if !f(index, item) { + break + } + } +} diff --git a/arohcp/v1alpha1/value_type_json.go b/arohcp/v1alpha1/value_type_json.go new file mode 100644 index 000000000..0333fe511 --- /dev/null +++ b/arohcp/v1alpha1/value_type_json.go @@ -0,0 +1,99 @@ +/* +Copyright (c) 2020 Red Hat, Inc. + +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. +*/ + +// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all +// your changes will be lost when the file is generated again. + +package v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1 + +import ( + "io" + + jsoniter "github.com/json-iterator/go" + "github.com/openshift-online/ocm-sdk-go/helpers" +) + +// MarshalValue writes a value of the 'value' type to the given writer. +func MarshalValue(object *Value, writer io.Writer) error { + stream := helpers.NewStream(writer) + WriteValue(object, stream) + err := stream.Flush() + if err != nil { + return err + } + return stream.Error +} + +// WriteValue writes a value of the 'value' type to the given stream. +func WriteValue(object *Value, stream *jsoniter.Stream) { + count := 0 + stream.WriteObjectStart() + var present_ bool + present_ = object.bitmap_&1 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("unit") + stream.WriteString(object.unit) + count++ + } + present_ = object.bitmap_&2 != 0 + if present_ { + if count > 0 { + stream.WriteMore() + } + stream.WriteObjectField("value") + stream.WriteFloat64(object.value) + } + stream.WriteObjectEnd() +} + +// UnmarshalValue reads a value of the 'value' type from the given +// source, which can be an slice of bytes, a string or a reader. +func UnmarshalValue(source interface{}) (object *Value, err error) { + iterator, err := helpers.NewIterator(source) + if err != nil { + return + } + object = ReadValue(iterator) + err = iterator.Error + return +} + +// ReadValue reads a value of the 'value' type from the given iterator. +func ReadValue(iterator *jsoniter.Iterator) *Value { + object := &Value{} + for { + field := iterator.ReadObject() + if field == "" { + break + } + switch field { + case "unit": + value := iterator.ReadString() + object.unit = value + object.bitmap_ |= 1 + case "value": + value := iterator.ReadFloat64() + object.value = value + object.bitmap_ |= 2 + default: + iterator.ReadAny() + } + } + return object +} diff --git a/authorizations/v1/access_review_request_list_type_json.go b/authorizations/v1/access_review_request_list_type_json.go index 6b30ca34d..2eaa0610d 100644 --- a/authorizations/v1/access_review_request_list_type_json.go +++ b/authorizations/v1/access_review_request_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAccessReviewRequestList(list []*AccessReviewRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAccessReviewRequestList(list, stream) + WriteAccessReviewRequestList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAccessReviewRequestList(list []*AccessReviewRequest, writer io.Write return stream.Error } -// writeAccessReviewRequestList writes a list of value of the 'access_review_request' type to +// WriteAccessReviewRequestList writes a list of value of the 'access_review_request' type to // the given stream. -func writeAccessReviewRequestList(list []*AccessReviewRequest, stream *jsoniter.Stream) { +func WriteAccessReviewRequestList(list []*AccessReviewRequest, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAccessReviewRequest(value, stream) + WriteAccessReviewRequest(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAccessReviewRequestList(source interface{}) (items []*AccessReview if err != nil { return } - items = readAccessReviewRequestList(iterator) + items = ReadAccessReviewRequestList(iterator) err = iterator.Error return } -// readAccessReviewRequestList reads list of values of the ”access_review_request' type from +// ReadAccessReviewRequestList reads list of values of the ”access_review_request' type from // the given iterator. -func readAccessReviewRequestList(iterator *jsoniter.Iterator) []*AccessReviewRequest { +func ReadAccessReviewRequestList(iterator *jsoniter.Iterator) []*AccessReviewRequest { list := []*AccessReviewRequest{} for iterator.ReadArray() { - item := readAccessReviewRequest(iterator) + item := ReadAccessReviewRequest(iterator) list = append(list, item) } return list diff --git a/authorizations/v1/access_review_request_type.go b/authorizations/v1/access_review_request_type.go index 8a75e5d18..35df2ee46 100644 --- a/authorizations/v1/access_review_request_type.go +++ b/authorizations/v1/access_review_request_type.go @@ -228,6 +228,29 @@ func (l *AccessReviewRequestList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AccessReviewRequestList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AccessReviewRequestList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AccessReviewRequestList) SetItems(items []*AccessReviewRequest) { + l.items = items +} + +// Items returns the items of the list. +func (l *AccessReviewRequestList) Items() []*AccessReviewRequest { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AccessReviewRequestList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/authorizations/v1/access_review_request_type_json.go b/authorizations/v1/access_review_request_type_json.go index 2f31c6ebd..3023d3b2e 100644 --- a/authorizations/v1/access_review_request_type_json.go +++ b/authorizations/v1/access_review_request_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAccessReviewRequest writes a value of the 'access_review_request' type to the given writer. func MarshalAccessReviewRequest(object *AccessReviewRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAccessReviewRequest(object, stream) + WriteAccessReviewRequest(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAccessReviewRequest(object *AccessReviewRequest, writer io.Writer) e return stream.Error } -// writeAccessReviewRequest writes a value of the 'access_review_request' type to the given stream. -func writeAccessReviewRequest(object *AccessReviewRequest, stream *jsoniter.Stream) { +// WriteAccessReviewRequest writes a value of the 'access_review_request' type to the given stream. +func WriteAccessReviewRequest(object *AccessReviewRequest, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -114,13 +114,13 @@ func UnmarshalAccessReviewRequest(source interface{}) (object *AccessReviewReque if err != nil { return } - object = readAccessReviewRequest(iterator) + object = ReadAccessReviewRequest(iterator) err = iterator.Error return } -// readAccessReviewRequest reads a value of the 'access_review_request' type from the given iterator. -func readAccessReviewRequest(iterator *jsoniter.Iterator) *AccessReviewRequest { +// ReadAccessReviewRequest reads a value of the 'access_review_request' type from the given iterator. +func ReadAccessReviewRequest(iterator *jsoniter.Iterator) *AccessReviewRequest { object := &AccessReviewRequest{} for { field := iterator.ReadObject() diff --git a/authorizations/v1/access_review_response_list_type_json.go b/authorizations/v1/access_review_response_list_type_json.go index d6e8d0bcb..c39aef0a2 100644 --- a/authorizations/v1/access_review_response_list_type_json.go +++ b/authorizations/v1/access_review_response_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAccessReviewResponseList(list []*AccessReviewResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAccessReviewResponseList(list, stream) + WriteAccessReviewResponseList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAccessReviewResponseList(list []*AccessReviewResponse, writer io.Wri return stream.Error } -// writeAccessReviewResponseList writes a list of value of the 'access_review_response' type to +// WriteAccessReviewResponseList writes a list of value of the 'access_review_response' type to // the given stream. -func writeAccessReviewResponseList(list []*AccessReviewResponse, stream *jsoniter.Stream) { +func WriteAccessReviewResponseList(list []*AccessReviewResponse, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAccessReviewResponse(value, stream) + WriteAccessReviewResponse(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAccessReviewResponseList(source interface{}) (items []*AccessRevie if err != nil { return } - items = readAccessReviewResponseList(iterator) + items = ReadAccessReviewResponseList(iterator) err = iterator.Error return } -// readAccessReviewResponseList reads list of values of the ”access_review_response' type from +// ReadAccessReviewResponseList reads list of values of the ”access_review_response' type from // the given iterator. -func readAccessReviewResponseList(iterator *jsoniter.Iterator) []*AccessReviewResponse { +func ReadAccessReviewResponseList(iterator *jsoniter.Iterator) []*AccessReviewResponse { list := []*AccessReviewResponse{} for iterator.ReadArray() { - item := readAccessReviewResponse(iterator) + item := ReadAccessReviewResponse(iterator) list = append(list, item) } return list diff --git a/authorizations/v1/access_review_response_type.go b/authorizations/v1/access_review_response_type.go index 06138748f..695ba725c 100644 --- a/authorizations/v1/access_review_response_type.go +++ b/authorizations/v1/access_review_response_type.go @@ -300,6 +300,29 @@ func (l *AccessReviewResponseList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AccessReviewResponseList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AccessReviewResponseList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AccessReviewResponseList) SetItems(items []*AccessReviewResponse) { + l.items = items +} + +// Items returns the items of the list. +func (l *AccessReviewResponseList) Items() []*AccessReviewResponse { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AccessReviewResponseList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/authorizations/v1/access_review_response_type_json.go b/authorizations/v1/access_review_response_type_json.go index 604b50b4f..7f4f5dae8 100644 --- a/authorizations/v1/access_review_response_type_json.go +++ b/authorizations/v1/access_review_response_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAccessReviewResponse writes a value of the 'access_review_response' type to the given writer. func MarshalAccessReviewResponse(object *AccessReviewResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAccessReviewResponse(object, stream) + WriteAccessReviewResponse(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAccessReviewResponse(object *AccessReviewResponse, writer io.Writer) return stream.Error } -// writeAccessReviewResponse writes a value of the 'access_review_response' type to the given stream. -func writeAccessReviewResponse(object *AccessReviewResponse, stream *jsoniter.Stream) { +// WriteAccessReviewResponse writes a value of the 'access_review_response' type to the given stream. +func WriteAccessReviewResponse(object *AccessReviewResponse, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -141,13 +141,13 @@ func UnmarshalAccessReviewResponse(source interface{}) (object *AccessReviewResp if err != nil { return } - object = readAccessReviewResponse(iterator) + object = ReadAccessReviewResponse(iterator) err = iterator.Error return } -// readAccessReviewResponse reads a value of the 'access_review_response' type from the given iterator. -func readAccessReviewResponse(iterator *jsoniter.Iterator) *AccessReviewResponse { +// ReadAccessReviewResponse reads a value of the 'access_review_response' type from the given iterator. +func ReadAccessReviewResponse(iterator *jsoniter.Iterator) *AccessReviewResponse { object := &AccessReviewResponse{} for { field := iterator.ReadObject() diff --git a/authorizations/v1/boolean_list_type_json.go b/authorizations/v1/boolean_list_type_json.go index acef20252..d4a93dfe1 100644 --- a/authorizations/v1/boolean_list_type_json.go +++ b/authorizations/v1/boolean_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalBooleanList(list []bool, writer io.Writer) error { stream := helpers.NewStream(writer) - writeBooleanList(list, stream) + WriteBooleanList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalBooleanList(list []bool, writer io.Writer) error { return stream.Error } -// writeBooleanList writes a list of value of the 'boolean' type to +// WriteBooleanList writes a list of value of the 'boolean' type to // the given stream. -func writeBooleanList(list []bool, stream *jsoniter.Stream) { +func WriteBooleanList(list []bool, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalBooleanList(source interface{}) (items []bool, err error) { if err != nil { return } - items = readBooleanList(iterator) + items = ReadBooleanList(iterator) err = iterator.Error return } -// readBooleanList reads list of values of the ”boolean' type from +// ReadBooleanList reads list of values of the ”boolean' type from // the given iterator. -func readBooleanList(iterator *jsoniter.Iterator) []bool { +func ReadBooleanList(iterator *jsoniter.Iterator) []bool { list := []bool{} for iterator.ReadArray() { item := iterator.ReadBool() diff --git a/authorizations/v1/capability_review_request_list_type_json.go b/authorizations/v1/capability_review_request_list_type_json.go index cbf5977d9..8998da32e 100644 --- a/authorizations/v1/capability_review_request_list_type_json.go +++ b/authorizations/v1/capability_review_request_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalCapabilityReviewRequestList(list []*CapabilityReviewRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCapabilityReviewRequestList(list, stream) + WriteCapabilityReviewRequestList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalCapabilityReviewRequestList(list []*CapabilityReviewRequest, writer return stream.Error } -// writeCapabilityReviewRequestList writes a list of value of the 'capability_review_request' type to +// WriteCapabilityReviewRequestList writes a list of value of the 'capability_review_request' type to // the given stream. -func writeCapabilityReviewRequestList(list []*CapabilityReviewRequest, stream *jsoniter.Stream) { +func WriteCapabilityReviewRequestList(list []*CapabilityReviewRequest, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeCapabilityReviewRequest(value, stream) + WriteCapabilityReviewRequest(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalCapabilityReviewRequestList(source interface{}) (items []*Capabili if err != nil { return } - items = readCapabilityReviewRequestList(iterator) + items = ReadCapabilityReviewRequestList(iterator) err = iterator.Error return } -// readCapabilityReviewRequestList reads list of values of the ”capability_review_request' type from +// ReadCapabilityReviewRequestList reads list of values of the ”capability_review_request' type from // the given iterator. -func readCapabilityReviewRequestList(iterator *jsoniter.Iterator) []*CapabilityReviewRequest { +func ReadCapabilityReviewRequestList(iterator *jsoniter.Iterator) []*CapabilityReviewRequest { list := []*CapabilityReviewRequest{} for iterator.ReadArray() { - item := readCapabilityReviewRequest(iterator) + item := ReadCapabilityReviewRequest(iterator) list = append(list, item) } return list diff --git a/authorizations/v1/capability_review_request_type.go b/authorizations/v1/capability_review_request_type.go index b354a5276..96927421a 100644 --- a/authorizations/v1/capability_review_request_type.go +++ b/authorizations/v1/capability_review_request_type.go @@ -228,6 +228,29 @@ func (l *CapabilityReviewRequestList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *CapabilityReviewRequestList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *CapabilityReviewRequestList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *CapabilityReviewRequestList) SetItems(items []*CapabilityReviewRequest) { + l.items = items +} + +// Items returns the items of the list. +func (l *CapabilityReviewRequestList) Items() []*CapabilityReviewRequest { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *CapabilityReviewRequestList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/authorizations/v1/capability_review_request_type_json.go b/authorizations/v1/capability_review_request_type_json.go index cc936a14b..a3714ee86 100644 --- a/authorizations/v1/capability_review_request_type_json.go +++ b/authorizations/v1/capability_review_request_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalCapabilityReviewRequest writes a value of the 'capability_review_request' type to the given writer. func MarshalCapabilityReviewRequest(object *CapabilityReviewRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCapabilityReviewRequest(object, stream) + WriteCapabilityReviewRequest(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalCapabilityReviewRequest(object *CapabilityReviewRequest, writer io.W return stream.Error } -// writeCapabilityReviewRequest writes a value of the 'capability_review_request' type to the given stream. -func writeCapabilityReviewRequest(object *CapabilityReviewRequest, stream *jsoniter.Stream) { +// WriteCapabilityReviewRequest writes a value of the 'capability_review_request' type to the given stream. +func WriteCapabilityReviewRequest(object *CapabilityReviewRequest, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -114,13 +114,13 @@ func UnmarshalCapabilityReviewRequest(source interface{}) (object *CapabilityRev if err != nil { return } - object = readCapabilityReviewRequest(iterator) + object = ReadCapabilityReviewRequest(iterator) err = iterator.Error return } -// readCapabilityReviewRequest reads a value of the 'capability_review_request' type from the given iterator. -func readCapabilityReviewRequest(iterator *jsoniter.Iterator) *CapabilityReviewRequest { +// ReadCapabilityReviewRequest reads a value of the 'capability_review_request' type from the given iterator. +func ReadCapabilityReviewRequest(iterator *jsoniter.Iterator) *CapabilityReviewRequest { object := &CapabilityReviewRequest{} for { field := iterator.ReadObject() diff --git a/authorizations/v1/capability_review_response_list_type_json.go b/authorizations/v1/capability_review_response_list_type_json.go index ee1c832aa..90201b3d0 100644 --- a/authorizations/v1/capability_review_response_list_type_json.go +++ b/authorizations/v1/capability_review_response_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalCapabilityReviewResponseList(list []*CapabilityReviewResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCapabilityReviewResponseList(list, stream) + WriteCapabilityReviewResponseList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalCapabilityReviewResponseList(list []*CapabilityReviewResponse, write return stream.Error } -// writeCapabilityReviewResponseList writes a list of value of the 'capability_review_response' type to +// WriteCapabilityReviewResponseList writes a list of value of the 'capability_review_response' type to // the given stream. -func writeCapabilityReviewResponseList(list []*CapabilityReviewResponse, stream *jsoniter.Stream) { +func WriteCapabilityReviewResponseList(list []*CapabilityReviewResponse, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeCapabilityReviewResponse(value, stream) + WriteCapabilityReviewResponse(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalCapabilityReviewResponseList(source interface{}) (items []*Capabil if err != nil { return } - items = readCapabilityReviewResponseList(iterator) + items = ReadCapabilityReviewResponseList(iterator) err = iterator.Error return } -// readCapabilityReviewResponseList reads list of values of the ”capability_review_response' type from +// ReadCapabilityReviewResponseList reads list of values of the ”capability_review_response' type from // the given iterator. -func readCapabilityReviewResponseList(iterator *jsoniter.Iterator) []*CapabilityReviewResponse { +func ReadCapabilityReviewResponseList(iterator *jsoniter.Iterator) []*CapabilityReviewResponse { list := []*CapabilityReviewResponse{} for iterator.ReadArray() { - item := readCapabilityReviewResponse(iterator) + item := ReadCapabilityReviewResponse(iterator) list = append(list, item) } return list diff --git a/authorizations/v1/capability_review_response_type.go b/authorizations/v1/capability_review_response_type.go index 55716bed7..423d45bc2 100644 --- a/authorizations/v1/capability_review_response_type.go +++ b/authorizations/v1/capability_review_response_type.go @@ -78,6 +78,29 @@ func (l *CapabilityReviewResponseList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *CapabilityReviewResponseList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *CapabilityReviewResponseList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *CapabilityReviewResponseList) SetItems(items []*CapabilityReviewResponse) { + l.items = items +} + +// Items returns the items of the list. +func (l *CapabilityReviewResponseList) Items() []*CapabilityReviewResponse { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *CapabilityReviewResponseList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/authorizations/v1/capability_review_response_type_json.go b/authorizations/v1/capability_review_response_type_json.go index a99e20c1d..7af17aa8b 100644 --- a/authorizations/v1/capability_review_response_type_json.go +++ b/authorizations/v1/capability_review_response_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalCapabilityReviewResponse writes a value of the 'capability_review_response' type to the given writer. func MarshalCapabilityReviewResponse(object *CapabilityReviewResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCapabilityReviewResponse(object, stream) + WriteCapabilityReviewResponse(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalCapabilityReviewResponse(object *CapabilityReviewResponse, writer io return stream.Error } -// writeCapabilityReviewResponse writes a value of the 'capability_review_response' type to the given stream. -func writeCapabilityReviewResponse(object *CapabilityReviewResponse, stream *jsoniter.Stream) { +// WriteCapabilityReviewResponse writes a value of the 'capability_review_response' type to the given stream. +func WriteCapabilityReviewResponse(object *CapabilityReviewResponse, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalCapabilityReviewResponse(source interface{}) (object *CapabilityRe if err != nil { return } - object = readCapabilityReviewResponse(iterator) + object = ReadCapabilityReviewResponse(iterator) err = iterator.Error return } -// readCapabilityReviewResponse reads a value of the 'capability_review_response' type from the given iterator. -func readCapabilityReviewResponse(iterator *jsoniter.Iterator) *CapabilityReviewResponse { +// ReadCapabilityReviewResponse reads a value of the 'capability_review_response' type from the given iterator. +func ReadCapabilityReviewResponse(iterator *jsoniter.Iterator) *CapabilityReviewResponse { object := &CapabilityReviewResponse{} for { field := iterator.ReadObject() diff --git a/authorizations/v1/date_list_type_json.go b/authorizations/v1/date_list_type_json.go index adaa14bc0..c137ed137 100644 --- a/authorizations/v1/date_list_type_json.go +++ b/authorizations/v1/date_list_type_json.go @@ -31,7 +31,7 @@ import ( // the given writer. func MarshalDateList(list []time.Time, writer io.Writer) error { stream := helpers.NewStream(writer) - writeDateList(list, stream) + WriteDateList(list, stream) err := stream.Flush() if err != nil { return err @@ -39,9 +39,9 @@ func MarshalDateList(list []time.Time, writer io.Writer) error { return stream.Error } -// writeDateList writes a list of value of the 'date' type to +// WriteDateList writes a list of value of the 'date' type to // the given stream. -func writeDateList(list []time.Time, stream *jsoniter.Stream) { +func WriteDateList(list []time.Time, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -59,14 +59,14 @@ func UnmarshalDateList(source interface{}) (items []time.Time, err error) { if err != nil { return } - items = readDateList(iterator) + items = ReadDateList(iterator) err = iterator.Error return } -// readDateList reads list of values of the ”date' type from +// ReadDateList reads list of values of the ”date' type from // the given iterator. -func readDateList(iterator *jsoniter.Iterator) []time.Time { +func ReadDateList(iterator *jsoniter.Iterator) []time.Time { list := []time.Time{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/authorizations/v1/export_control_review_request_list_type_json.go b/authorizations/v1/export_control_review_request_list_type_json.go index 95b769d39..c20d1dcd3 100644 --- a/authorizations/v1/export_control_review_request_list_type_json.go +++ b/authorizations/v1/export_control_review_request_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalExportControlReviewRequestList(list []*ExportControlReviewRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeExportControlReviewRequestList(list, stream) + WriteExportControlReviewRequestList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalExportControlReviewRequestList(list []*ExportControlReviewRequest, w return stream.Error } -// writeExportControlReviewRequestList writes a list of value of the 'export_control_review_request' type to +// WriteExportControlReviewRequestList writes a list of value of the 'export_control_review_request' type to // the given stream. -func writeExportControlReviewRequestList(list []*ExportControlReviewRequest, stream *jsoniter.Stream) { +func WriteExportControlReviewRequestList(list []*ExportControlReviewRequest, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeExportControlReviewRequest(value, stream) + WriteExportControlReviewRequest(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalExportControlReviewRequestList(source interface{}) (items []*Expor if err != nil { return } - items = readExportControlReviewRequestList(iterator) + items = ReadExportControlReviewRequestList(iterator) err = iterator.Error return } -// readExportControlReviewRequestList reads list of values of the ”export_control_review_request' type from +// ReadExportControlReviewRequestList reads list of values of the ”export_control_review_request' type from // the given iterator. -func readExportControlReviewRequestList(iterator *jsoniter.Iterator) []*ExportControlReviewRequest { +func ReadExportControlReviewRequestList(iterator *jsoniter.Iterator) []*ExportControlReviewRequest { list := []*ExportControlReviewRequest{} for iterator.ReadArray() { - item := readExportControlReviewRequest(iterator) + item := ReadExportControlReviewRequest(iterator) list = append(list, item) } return list diff --git a/authorizations/v1/export_control_review_request_type.go b/authorizations/v1/export_control_review_request_type.go index 05693bca3..17dac24c5 100644 --- a/authorizations/v1/export_control_review_request_type.go +++ b/authorizations/v1/export_control_review_request_type.go @@ -76,6 +76,29 @@ func (l *ExportControlReviewRequestList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ExportControlReviewRequestList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ExportControlReviewRequestList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ExportControlReviewRequestList) SetItems(items []*ExportControlReviewRequest) { + l.items = items +} + +// Items returns the items of the list. +func (l *ExportControlReviewRequestList) Items() []*ExportControlReviewRequest { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ExportControlReviewRequestList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/authorizations/v1/export_control_review_request_type_json.go b/authorizations/v1/export_control_review_request_type_json.go index 25cdf0e34..3897bd7a5 100644 --- a/authorizations/v1/export_control_review_request_type_json.go +++ b/authorizations/v1/export_control_review_request_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalExportControlReviewRequest writes a value of the 'export_control_review_request' type to the given writer. func MarshalExportControlReviewRequest(object *ExportControlReviewRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeExportControlReviewRequest(object, stream) + WriteExportControlReviewRequest(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalExportControlReviewRequest(object *ExportControlReviewRequest, write return stream.Error } -// writeExportControlReviewRequest writes a value of the 'export_control_review_request' type to the given stream. -func writeExportControlReviewRequest(object *ExportControlReviewRequest, stream *jsoniter.Stream) { +// WriteExportControlReviewRequest writes a value of the 'export_control_review_request' type to the given stream. +func WriteExportControlReviewRequest(object *ExportControlReviewRequest, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalExportControlReviewRequest(source interface{}) (object *ExportCont if err != nil { return } - object = readExportControlReviewRequest(iterator) + object = ReadExportControlReviewRequest(iterator) err = iterator.Error return } -// readExportControlReviewRequest reads a value of the 'export_control_review_request' type from the given iterator. -func readExportControlReviewRequest(iterator *jsoniter.Iterator) *ExportControlReviewRequest { +// ReadExportControlReviewRequest reads a value of the 'export_control_review_request' type from the given iterator. +func ReadExportControlReviewRequest(iterator *jsoniter.Iterator) *ExportControlReviewRequest { object := &ExportControlReviewRequest{} for { field := iterator.ReadObject() diff --git a/authorizations/v1/export_control_review_response_list_type_json.go b/authorizations/v1/export_control_review_response_list_type_json.go index 93e56d575..682f11798 100644 --- a/authorizations/v1/export_control_review_response_list_type_json.go +++ b/authorizations/v1/export_control_review_response_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalExportControlReviewResponseList(list []*ExportControlReviewResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeExportControlReviewResponseList(list, stream) + WriteExportControlReviewResponseList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalExportControlReviewResponseList(list []*ExportControlReviewResponse, return stream.Error } -// writeExportControlReviewResponseList writes a list of value of the 'export_control_review_response' type to +// WriteExportControlReviewResponseList writes a list of value of the 'export_control_review_response' type to // the given stream. -func writeExportControlReviewResponseList(list []*ExportControlReviewResponse, stream *jsoniter.Stream) { +func WriteExportControlReviewResponseList(list []*ExportControlReviewResponse, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeExportControlReviewResponse(value, stream) + WriteExportControlReviewResponse(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalExportControlReviewResponseList(source interface{}) (items []*Expo if err != nil { return } - items = readExportControlReviewResponseList(iterator) + items = ReadExportControlReviewResponseList(iterator) err = iterator.Error return } -// readExportControlReviewResponseList reads list of values of the ”export_control_review_response' type from +// ReadExportControlReviewResponseList reads list of values of the ”export_control_review_response' type from // the given iterator. -func readExportControlReviewResponseList(iterator *jsoniter.Iterator) []*ExportControlReviewResponse { +func ReadExportControlReviewResponseList(iterator *jsoniter.Iterator) []*ExportControlReviewResponse { list := []*ExportControlReviewResponse{} for iterator.ReadArray() { - item := readExportControlReviewResponse(iterator) + item := ReadExportControlReviewResponse(iterator) list = append(list, item) } return list diff --git a/authorizations/v1/export_control_review_response_type.go b/authorizations/v1/export_control_review_response_type.go index c71c9a699..52abbedbe 100644 --- a/authorizations/v1/export_control_review_response_type.go +++ b/authorizations/v1/export_control_review_response_type.go @@ -76,6 +76,29 @@ func (l *ExportControlReviewResponseList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ExportControlReviewResponseList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ExportControlReviewResponseList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ExportControlReviewResponseList) SetItems(items []*ExportControlReviewResponse) { + l.items = items +} + +// Items returns the items of the list. +func (l *ExportControlReviewResponseList) Items() []*ExportControlReviewResponse { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ExportControlReviewResponseList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/authorizations/v1/export_control_review_response_type_json.go b/authorizations/v1/export_control_review_response_type_json.go index dc5a51850..49818b19c 100644 --- a/authorizations/v1/export_control_review_response_type_json.go +++ b/authorizations/v1/export_control_review_response_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalExportControlReviewResponse writes a value of the 'export_control_review_response' type to the given writer. func MarshalExportControlReviewResponse(object *ExportControlReviewResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeExportControlReviewResponse(object, stream) + WriteExportControlReviewResponse(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalExportControlReviewResponse(object *ExportControlReviewResponse, wri return stream.Error } -// writeExportControlReviewResponse writes a value of the 'export_control_review_response' type to the given stream. -func writeExportControlReviewResponse(object *ExportControlReviewResponse, stream *jsoniter.Stream) { +// WriteExportControlReviewResponse writes a value of the 'export_control_review_response' type to the given stream. +func WriteExportControlReviewResponse(object *ExportControlReviewResponse, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalExportControlReviewResponse(source interface{}) (object *ExportCon if err != nil { return } - object = readExportControlReviewResponse(iterator) + object = ReadExportControlReviewResponse(iterator) err = iterator.Error return } -// readExportControlReviewResponse reads a value of the 'export_control_review_response' type from the given iterator. -func readExportControlReviewResponse(iterator *jsoniter.Iterator) *ExportControlReviewResponse { +// ReadExportControlReviewResponse reads a value of the 'export_control_review_response' type from the given iterator. +func ReadExportControlReviewResponse(iterator *jsoniter.Iterator) *ExportControlReviewResponse { object := &ExportControlReviewResponse{} for { field := iterator.ReadObject() diff --git a/authorizations/v1/feature_review_request_list_type_json.go b/authorizations/v1/feature_review_request_list_type_json.go index a38e29bc7..eb21277d5 100644 --- a/authorizations/v1/feature_review_request_list_type_json.go +++ b/authorizations/v1/feature_review_request_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalFeatureReviewRequestList(list []*FeatureReviewRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeFeatureReviewRequestList(list, stream) + WriteFeatureReviewRequestList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalFeatureReviewRequestList(list []*FeatureReviewRequest, writer io.Wri return stream.Error } -// writeFeatureReviewRequestList writes a list of value of the 'feature_review_request' type to +// WriteFeatureReviewRequestList writes a list of value of the 'feature_review_request' type to // the given stream. -func writeFeatureReviewRequestList(list []*FeatureReviewRequest, stream *jsoniter.Stream) { +func WriteFeatureReviewRequestList(list []*FeatureReviewRequest, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeFeatureReviewRequest(value, stream) + WriteFeatureReviewRequest(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalFeatureReviewRequestList(source interface{}) (items []*FeatureRevi if err != nil { return } - items = readFeatureReviewRequestList(iterator) + items = ReadFeatureReviewRequestList(iterator) err = iterator.Error return } -// readFeatureReviewRequestList reads list of values of the ”feature_review_request' type from +// ReadFeatureReviewRequestList reads list of values of the ”feature_review_request' type from // the given iterator. -func readFeatureReviewRequestList(iterator *jsoniter.Iterator) []*FeatureReviewRequest { +func ReadFeatureReviewRequestList(iterator *jsoniter.Iterator) []*FeatureReviewRequest { list := []*FeatureReviewRequest{} for iterator.ReadArray() { - item := readFeatureReviewRequest(iterator) + item := ReadFeatureReviewRequest(iterator) list = append(list, item) } return list diff --git a/authorizations/v1/feature_review_request_type.go b/authorizations/v1/feature_review_request_type.go index 5f0b89d81..222b9c558 100644 --- a/authorizations/v1/feature_review_request_type.go +++ b/authorizations/v1/feature_review_request_type.go @@ -130,6 +130,29 @@ func (l *FeatureReviewRequestList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *FeatureReviewRequestList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *FeatureReviewRequestList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *FeatureReviewRequestList) SetItems(items []*FeatureReviewRequest) { + l.items = items +} + +// Items returns the items of the list. +func (l *FeatureReviewRequestList) Items() []*FeatureReviewRequest { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *FeatureReviewRequestList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/authorizations/v1/feature_review_request_type_json.go b/authorizations/v1/feature_review_request_type_json.go index 9e8e31f23..21a98fa0e 100644 --- a/authorizations/v1/feature_review_request_type_json.go +++ b/authorizations/v1/feature_review_request_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalFeatureReviewRequest writes a value of the 'feature_review_request' type to the given writer. func MarshalFeatureReviewRequest(object *FeatureReviewRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeFeatureReviewRequest(object, stream) + WriteFeatureReviewRequest(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalFeatureReviewRequest(object *FeatureReviewRequest, writer io.Writer) return stream.Error } -// writeFeatureReviewRequest writes a value of the 'feature_review_request' type to the given stream. -func writeFeatureReviewRequest(object *FeatureReviewRequest, stream *jsoniter.Stream) { +// WriteFeatureReviewRequest writes a value of the 'feature_review_request' type to the given stream. +func WriteFeatureReviewRequest(object *FeatureReviewRequest, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -78,13 +78,13 @@ func UnmarshalFeatureReviewRequest(source interface{}) (object *FeatureReviewReq if err != nil { return } - object = readFeatureReviewRequest(iterator) + object = ReadFeatureReviewRequest(iterator) err = iterator.Error return } -// readFeatureReviewRequest reads a value of the 'feature_review_request' type from the given iterator. -func readFeatureReviewRequest(iterator *jsoniter.Iterator) *FeatureReviewRequest { +// ReadFeatureReviewRequest reads a value of the 'feature_review_request' type from the given iterator. +func ReadFeatureReviewRequest(iterator *jsoniter.Iterator) *FeatureReviewRequest { object := &FeatureReviewRequest{} for { field := iterator.ReadObject() diff --git a/authorizations/v1/feature_review_response_list_type_json.go b/authorizations/v1/feature_review_response_list_type_json.go index a1b946a9c..b85def6b9 100644 --- a/authorizations/v1/feature_review_response_list_type_json.go +++ b/authorizations/v1/feature_review_response_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalFeatureReviewResponseList(list []*FeatureReviewResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeFeatureReviewResponseList(list, stream) + WriteFeatureReviewResponseList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalFeatureReviewResponseList(list []*FeatureReviewResponse, writer io.W return stream.Error } -// writeFeatureReviewResponseList writes a list of value of the 'feature_review_response' type to +// WriteFeatureReviewResponseList writes a list of value of the 'feature_review_response' type to // the given stream. -func writeFeatureReviewResponseList(list []*FeatureReviewResponse, stream *jsoniter.Stream) { +func WriteFeatureReviewResponseList(list []*FeatureReviewResponse, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeFeatureReviewResponse(value, stream) + WriteFeatureReviewResponse(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalFeatureReviewResponseList(source interface{}) (items []*FeatureRev if err != nil { return } - items = readFeatureReviewResponseList(iterator) + items = ReadFeatureReviewResponseList(iterator) err = iterator.Error return } -// readFeatureReviewResponseList reads list of values of the ”feature_review_response' type from +// ReadFeatureReviewResponseList reads list of values of the ”feature_review_response' type from // the given iterator. -func readFeatureReviewResponseList(iterator *jsoniter.Iterator) []*FeatureReviewResponse { +func ReadFeatureReviewResponseList(iterator *jsoniter.Iterator) []*FeatureReviewResponse { list := []*FeatureReviewResponse{} for iterator.ReadArray() { - item := readFeatureReviewResponse(iterator) + item := ReadFeatureReviewResponse(iterator) list = append(list, item) } return list diff --git a/authorizations/v1/feature_review_response_type.go b/authorizations/v1/feature_review_response_type.go index cf57bd104..eee423b67 100644 --- a/authorizations/v1/feature_review_response_type.go +++ b/authorizations/v1/feature_review_response_type.go @@ -106,6 +106,29 @@ func (l *FeatureReviewResponseList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *FeatureReviewResponseList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *FeatureReviewResponseList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *FeatureReviewResponseList) SetItems(items []*FeatureReviewResponse) { + l.items = items +} + +// Items returns the items of the list. +func (l *FeatureReviewResponseList) Items() []*FeatureReviewResponse { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *FeatureReviewResponseList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/authorizations/v1/feature_review_response_type_json.go b/authorizations/v1/feature_review_response_type_json.go index 86d32f8a9..aeb5b2514 100644 --- a/authorizations/v1/feature_review_response_type_json.go +++ b/authorizations/v1/feature_review_response_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalFeatureReviewResponse writes a value of the 'feature_review_response' type to the given writer. func MarshalFeatureReviewResponse(object *FeatureReviewResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeFeatureReviewResponse(object, stream) + WriteFeatureReviewResponse(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalFeatureReviewResponse(object *FeatureReviewResponse, writer io.Write return stream.Error } -// writeFeatureReviewResponse writes a value of the 'feature_review_response' type to the given stream. -func writeFeatureReviewResponse(object *FeatureReviewResponse, stream *jsoniter.Stream) { +// WriteFeatureReviewResponse writes a value of the 'feature_review_response' type to the given stream. +func WriteFeatureReviewResponse(object *FeatureReviewResponse, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalFeatureReviewResponse(source interface{}) (object *FeatureReviewRe if err != nil { return } - object = readFeatureReviewResponse(iterator) + object = ReadFeatureReviewResponse(iterator) err = iterator.Error return } -// readFeatureReviewResponse reads a value of the 'feature_review_response' type from the given iterator. -func readFeatureReviewResponse(iterator *jsoniter.Iterator) *FeatureReviewResponse { +// ReadFeatureReviewResponse reads a value of the 'feature_review_response' type from the given iterator. +func ReadFeatureReviewResponse(iterator *jsoniter.Iterator) *FeatureReviewResponse { object := &FeatureReviewResponse{} for { field := iterator.ReadObject() diff --git a/authorizations/v1/float_list_type_json.go b/authorizations/v1/float_list_type_json.go index 4dec73fc7..53e48cfff 100644 --- a/authorizations/v1/float_list_type_json.go +++ b/authorizations/v1/float_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalFloatList(list []float64, writer io.Writer) error { stream := helpers.NewStream(writer) - writeFloatList(list, stream) + WriteFloatList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalFloatList(list []float64, writer io.Writer) error { return stream.Error } -// writeFloatList writes a list of value of the 'float' type to +// WriteFloatList writes a list of value of the 'float' type to // the given stream. -func writeFloatList(list []float64, stream *jsoniter.Stream) { +func WriteFloatList(list []float64, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalFloatList(source interface{}) (items []float64, err error) { if err != nil { return } - items = readFloatList(iterator) + items = ReadFloatList(iterator) err = iterator.Error return } -// readFloatList reads list of values of the ”float' type from +// ReadFloatList reads list of values of the ”float' type from // the given iterator. -func readFloatList(iterator *jsoniter.Iterator) []float64 { +func ReadFloatList(iterator *jsoniter.Iterator) []float64 { list := []float64{} for iterator.ReadArray() { item := iterator.ReadFloat64() diff --git a/authorizations/v1/integer_list_type_json.go b/authorizations/v1/integer_list_type_json.go index 02abb6797..ea825422b 100644 --- a/authorizations/v1/integer_list_type_json.go +++ b/authorizations/v1/integer_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalIntegerList(list []int, writer io.Writer) error { stream := helpers.NewStream(writer) - writeIntegerList(list, stream) + WriteIntegerList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalIntegerList(list []int, writer io.Writer) error { return stream.Error } -// writeIntegerList writes a list of value of the 'integer' type to +// WriteIntegerList writes a list of value of the 'integer' type to // the given stream. -func writeIntegerList(list []int, stream *jsoniter.Stream) { +func WriteIntegerList(list []int, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalIntegerList(source interface{}) (items []int, err error) { if err != nil { return } - items = readIntegerList(iterator) + items = ReadIntegerList(iterator) err = iterator.Error return } -// readIntegerList reads list of values of the ”integer' type from +// ReadIntegerList reads list of values of the ”integer' type from // the given iterator. -func readIntegerList(iterator *jsoniter.Iterator) []int { +func ReadIntegerList(iterator *jsoniter.Iterator) []int { list := []int{} for iterator.ReadArray() { item := iterator.ReadInt() diff --git a/authorizations/v1/interface_list_type_json.go b/authorizations/v1/interface_list_type_json.go index 12fb9c1a5..5e868a1be 100644 --- a/authorizations/v1/interface_list_type_json.go +++ b/authorizations/v1/interface_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalInterfaceList(list []interface{}, writer io.Writer) error { stream := helpers.NewStream(writer) - writeInterfaceList(list, stream) + WriteInterfaceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalInterfaceList(list []interface{}, writer io.Writer) error { return stream.Error } -// writeInterfaceList writes a list of value of the 'interface' type to +// WriteInterfaceList writes a list of value of the 'interface' type to // the given stream. -func writeInterfaceList(list []interface{}, stream *jsoniter.Stream) { +func WriteInterfaceList(list []interface{}, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalInterfaceList(source interface{}) (items []interface{}, err error) if err != nil { return } - items = readInterfaceList(iterator) + items = ReadInterfaceList(iterator) err = iterator.Error return } -// readInterfaceList reads list of values of the ”interface' type from +// ReadInterfaceList reads list of values of the ”interface' type from // the given iterator. -func readInterfaceList(iterator *jsoniter.Iterator) []interface{} { +func ReadInterfaceList(iterator *jsoniter.Iterator) []interface{} { list := []interface{}{} for iterator.ReadArray() { var item interface{} diff --git a/authorizations/v1/long_list_type_json.go b/authorizations/v1/long_list_type_json.go index 4ae1f6c11..4aa1fdfc4 100644 --- a/authorizations/v1/long_list_type_json.go +++ b/authorizations/v1/long_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalLongList(list []int64, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLongList(list, stream) + WriteLongList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalLongList(list []int64, writer io.Writer) error { return stream.Error } -// writeLongList writes a list of value of the 'long' type to +// WriteLongList writes a list of value of the 'long' type to // the given stream. -func writeLongList(list []int64, stream *jsoniter.Stream) { +func WriteLongList(list []int64, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalLongList(source interface{}) (items []int64, err error) { if err != nil { return } - items = readLongList(iterator) + items = ReadLongList(iterator) err = iterator.Error return } -// readLongList reads list of values of the ”long' type from +// ReadLongList reads list of values of the ”long' type from // the given iterator. -func readLongList(iterator *jsoniter.Iterator) []int64 { +func ReadLongList(iterator *jsoniter.Iterator) []int64 { list := []int64{} for iterator.ReadArray() { item := iterator.ReadInt64() diff --git a/authorizations/v1/resource_review_list_type_json.go b/authorizations/v1/resource_review_list_type_json.go index 6bac9241a..d6e4d002f 100644 --- a/authorizations/v1/resource_review_list_type_json.go +++ b/authorizations/v1/resource_review_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalResourceReviewList(list []*ResourceReview, writer io.Writer) error { stream := helpers.NewStream(writer) - writeResourceReviewList(list, stream) + WriteResourceReviewList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalResourceReviewList(list []*ResourceReview, writer io.Writer) error { return stream.Error } -// writeResourceReviewList writes a list of value of the 'resource_review' type to +// WriteResourceReviewList writes a list of value of the 'resource_review' type to // the given stream. -func writeResourceReviewList(list []*ResourceReview, stream *jsoniter.Stream) { +func WriteResourceReviewList(list []*ResourceReview, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeResourceReview(value, stream) + WriteResourceReview(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalResourceReviewList(source interface{}) (items []*ResourceReview, e if err != nil { return } - items = readResourceReviewList(iterator) + items = ReadResourceReviewList(iterator) err = iterator.Error return } -// readResourceReviewList reads list of values of the ”resource_review' type from +// ReadResourceReviewList reads list of values of the ”resource_review' type from // the given iterator. -func readResourceReviewList(iterator *jsoniter.Iterator) []*ResourceReview { +func ReadResourceReviewList(iterator *jsoniter.Iterator) []*ResourceReview { list := []*ResourceReview{} for iterator.ReadArray() { - item := readResourceReview(iterator) + item := ReadResourceReview(iterator) list = append(list, item) } return list diff --git a/authorizations/v1/resource_review_request_list_type_json.go b/authorizations/v1/resource_review_request_list_type_json.go index 2cfd85076..cc287780a 100644 --- a/authorizations/v1/resource_review_request_list_type_json.go +++ b/authorizations/v1/resource_review_request_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalResourceReviewRequestList(list []*ResourceReviewRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeResourceReviewRequestList(list, stream) + WriteResourceReviewRequestList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalResourceReviewRequestList(list []*ResourceReviewRequest, writer io.W return stream.Error } -// writeResourceReviewRequestList writes a list of value of the 'resource_review_request' type to +// WriteResourceReviewRequestList writes a list of value of the 'resource_review_request' type to // the given stream. -func writeResourceReviewRequestList(list []*ResourceReviewRequest, stream *jsoniter.Stream) { +func WriteResourceReviewRequestList(list []*ResourceReviewRequest, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeResourceReviewRequest(value, stream) + WriteResourceReviewRequest(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalResourceReviewRequestList(source interface{}) (items []*ResourceRe if err != nil { return } - items = readResourceReviewRequestList(iterator) + items = ReadResourceReviewRequestList(iterator) err = iterator.Error return } -// readResourceReviewRequestList reads list of values of the ”resource_review_request' type from +// ReadResourceReviewRequestList reads list of values of the ”resource_review_request' type from // the given iterator. -func readResourceReviewRequestList(iterator *jsoniter.Iterator) []*ResourceReviewRequest { +func ReadResourceReviewRequestList(iterator *jsoniter.Iterator) []*ResourceReviewRequest { list := []*ResourceReviewRequest{} for iterator.ReadArray() { - item := readResourceReviewRequest(iterator) + item := ReadResourceReviewRequest(iterator) list = append(list, item) } return list diff --git a/authorizations/v1/resource_review_request_type.go b/authorizations/v1/resource_review_request_type.go index 3f72cd589..4d0069c83 100644 --- a/authorizations/v1/resource_review_request_type.go +++ b/authorizations/v1/resource_review_request_type.go @@ -180,6 +180,29 @@ func (l *ResourceReviewRequestList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ResourceReviewRequestList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ResourceReviewRequestList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ResourceReviewRequestList) SetItems(items []*ResourceReviewRequest) { + l.items = items +} + +// Items returns the items of the list. +func (l *ResourceReviewRequestList) Items() []*ResourceReviewRequest { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ResourceReviewRequestList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/authorizations/v1/resource_review_request_type_json.go b/authorizations/v1/resource_review_request_type_json.go index c9e981938..c334b5b20 100644 --- a/authorizations/v1/resource_review_request_type_json.go +++ b/authorizations/v1/resource_review_request_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalResourceReviewRequest writes a value of the 'resource_review_request' type to the given writer. func MarshalResourceReviewRequest(object *ResourceReviewRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeResourceReviewRequest(object, stream) + WriteResourceReviewRequest(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalResourceReviewRequest(object *ResourceReviewRequest, writer io.Write return stream.Error } -// writeResourceReviewRequest writes a value of the 'resource_review_request' type to the given stream. -func writeResourceReviewRequest(object *ResourceReviewRequest, stream *jsoniter.Stream) { +// WriteResourceReviewRequest writes a value of the 'resource_review_request' type to the given stream. +func WriteResourceReviewRequest(object *ResourceReviewRequest, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -66,7 +66,7 @@ func writeResourceReviewRequest(object *ResourceReviewRequest, stream *jsoniter. stream.WriteMore() } stream.WriteObjectField("exclude_subscription_statuses") - writeSubscriptionStatusList(object.excludeSubscriptionStatuses, stream) + WriteSubscriptionStatusList(object.excludeSubscriptionStatuses, stream) count++ } present_ = object.bitmap_&8 != 0 @@ -96,13 +96,13 @@ func UnmarshalResourceReviewRequest(source interface{}) (object *ResourceReviewR if err != nil { return } - object = readResourceReviewRequest(iterator) + object = ReadResourceReviewRequest(iterator) err = iterator.Error return } -// readResourceReviewRequest reads a value of the 'resource_review_request' type from the given iterator. -func readResourceReviewRequest(iterator *jsoniter.Iterator) *ResourceReviewRequest { +// ReadResourceReviewRequest reads a value of the 'resource_review_request' type from the given iterator. +func ReadResourceReviewRequest(iterator *jsoniter.Iterator) *ResourceReviewRequest { object := &ResourceReviewRequest{} for { field := iterator.ReadObject() @@ -119,7 +119,7 @@ func readResourceReviewRequest(iterator *jsoniter.Iterator) *ResourceReviewReque object.action = value object.bitmap_ |= 2 case "exclude_subscription_statuses": - value := readSubscriptionStatusList(iterator) + value := ReadSubscriptionStatusList(iterator) object.excludeSubscriptionStatuses = value object.bitmap_ |= 4 case "reduce_cluster_list": diff --git a/authorizations/v1/resource_review_type.go b/authorizations/v1/resource_review_type.go index f7ba2f209..8eb639b63 100644 --- a/authorizations/v1/resource_review_type.go +++ b/authorizations/v1/resource_review_type.go @@ -228,6 +228,29 @@ func (l *ResourceReviewList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ResourceReviewList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ResourceReviewList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ResourceReviewList) SetItems(items []*ResourceReview) { + l.items = items +} + +// Items returns the items of the list. +func (l *ResourceReviewList) Items() []*ResourceReview { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ResourceReviewList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/authorizations/v1/resource_review_type_json.go b/authorizations/v1/resource_review_type_json.go index c15b67671..a7ad8e444 100644 --- a/authorizations/v1/resource_review_type_json.go +++ b/authorizations/v1/resource_review_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalResourceReview writes a value of the 'resource_review' type to the given writer. func MarshalResourceReview(object *ResourceReview, writer io.Writer) error { stream := helpers.NewStream(writer) - writeResourceReview(object, stream) + WriteResourceReview(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalResourceReview(object *ResourceReview, writer io.Writer) error { return stream.Error } -// writeResourceReview writes a value of the 'resource_review' type to the given stream. -func writeResourceReview(object *ResourceReview, stream *jsoniter.Stream) { +// WriteResourceReview writes a value of the 'resource_review' type to the given stream. +func WriteResourceReview(object *ResourceReview, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -66,7 +66,7 @@ func writeResourceReview(object *ResourceReview, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("cluster_ids") - writeStringList(object.clusterIDs, stream) + WriteStringList(object.clusterIDs, stream) count++ } present_ = object.bitmap_&8 != 0 && object.clusterUUIDs != nil @@ -75,7 +75,7 @@ func writeResourceReview(object *ResourceReview, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("cluster_uuids") - writeStringList(object.clusterUUIDs, stream) + WriteStringList(object.clusterUUIDs, stream) count++ } present_ = object.bitmap_&16 != 0 && object.organizationIDs != nil @@ -84,7 +84,7 @@ func writeResourceReview(object *ResourceReview, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("organization_ids") - writeStringList(object.organizationIDs, stream) + WriteStringList(object.organizationIDs, stream) count++ } present_ = object.bitmap_&32 != 0 @@ -102,7 +102,7 @@ func writeResourceReview(object *ResourceReview, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("subscription_ids") - writeStringList(object.subscriptionIDs, stream) + WriteStringList(object.subscriptionIDs, stream) } stream.WriteObjectEnd() } @@ -114,13 +114,13 @@ func UnmarshalResourceReview(source interface{}) (object *ResourceReview, err er if err != nil { return } - object = readResourceReview(iterator) + object = ReadResourceReview(iterator) err = iterator.Error return } -// readResourceReview reads a value of the 'resource_review' type from the given iterator. -func readResourceReview(iterator *jsoniter.Iterator) *ResourceReview { +// ReadResourceReview reads a value of the 'resource_review' type from the given iterator. +func ReadResourceReview(iterator *jsoniter.Iterator) *ResourceReview { object := &ResourceReview{} for { field := iterator.ReadObject() @@ -137,15 +137,15 @@ func readResourceReview(iterator *jsoniter.Iterator) *ResourceReview { object.action = value object.bitmap_ |= 2 case "cluster_ids": - value := readStringList(iterator) + value := ReadStringList(iterator) object.clusterIDs = value object.bitmap_ |= 4 case "cluster_uuids": - value := readStringList(iterator) + value := ReadStringList(iterator) object.clusterUUIDs = value object.bitmap_ |= 8 case "organization_ids": - value := readStringList(iterator) + value := ReadStringList(iterator) object.organizationIDs = value object.bitmap_ |= 16 case "resource_type": @@ -153,7 +153,7 @@ func readResourceReview(iterator *jsoniter.Iterator) *ResourceReview { object.resourceType = value object.bitmap_ |= 32 case "subscription_ids": - value := readStringList(iterator) + value := ReadStringList(iterator) object.subscriptionIDs = value object.bitmap_ |= 64 default: diff --git a/authorizations/v1/self_access_review_request_list_type_json.go b/authorizations/v1/self_access_review_request_list_type_json.go index 3f80b008d..da98ee494 100644 --- a/authorizations/v1/self_access_review_request_list_type_json.go +++ b/authorizations/v1/self_access_review_request_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSelfAccessReviewRequestList(list []*SelfAccessReviewRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSelfAccessReviewRequestList(list, stream) + WriteSelfAccessReviewRequestList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalSelfAccessReviewRequestList(list []*SelfAccessReviewRequest, writer return stream.Error } -// writeSelfAccessReviewRequestList writes a list of value of the 'self_access_review_request' type to +// WriteSelfAccessReviewRequestList writes a list of value of the 'self_access_review_request' type to // the given stream. -func writeSelfAccessReviewRequestList(list []*SelfAccessReviewRequest, stream *jsoniter.Stream) { +func WriteSelfAccessReviewRequestList(list []*SelfAccessReviewRequest, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeSelfAccessReviewRequest(value, stream) + WriteSelfAccessReviewRequest(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalSelfAccessReviewRequestList(source interface{}) (items []*SelfAcce if err != nil { return } - items = readSelfAccessReviewRequestList(iterator) + items = ReadSelfAccessReviewRequestList(iterator) err = iterator.Error return } -// readSelfAccessReviewRequestList reads list of values of the ”self_access_review_request' type from +// ReadSelfAccessReviewRequestList reads list of values of the ”self_access_review_request' type from // the given iterator. -func readSelfAccessReviewRequestList(iterator *jsoniter.Iterator) []*SelfAccessReviewRequest { +func ReadSelfAccessReviewRequestList(iterator *jsoniter.Iterator) []*SelfAccessReviewRequest { list := []*SelfAccessReviewRequest{} for iterator.ReadArray() { - item := readSelfAccessReviewRequest(iterator) + item := ReadSelfAccessReviewRequest(iterator) list = append(list, item) } return list diff --git a/authorizations/v1/self_access_review_request_type.go b/authorizations/v1/self_access_review_request_type.go index ff5903145..26cf94865 100644 --- a/authorizations/v1/self_access_review_request_type.go +++ b/authorizations/v1/self_access_review_request_type.go @@ -204,6 +204,29 @@ func (l *SelfAccessReviewRequestList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *SelfAccessReviewRequestList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *SelfAccessReviewRequestList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *SelfAccessReviewRequestList) SetItems(items []*SelfAccessReviewRequest) { + l.items = items +} + +// Items returns the items of the list. +func (l *SelfAccessReviewRequestList) Items() []*SelfAccessReviewRequest { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *SelfAccessReviewRequestList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/authorizations/v1/self_access_review_request_type_json.go b/authorizations/v1/self_access_review_request_type_json.go index 91e222868..3a80228c0 100644 --- a/authorizations/v1/self_access_review_request_type_json.go +++ b/authorizations/v1/self_access_review_request_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalSelfAccessReviewRequest writes a value of the 'self_access_review_request' type to the given writer. func MarshalSelfAccessReviewRequest(object *SelfAccessReviewRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSelfAccessReviewRequest(object, stream) + WriteSelfAccessReviewRequest(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalSelfAccessReviewRequest(object *SelfAccessReviewRequest, writer io.W return stream.Error } -// writeSelfAccessReviewRequest writes a value of the 'self_access_review_request' type to the given stream. -func writeSelfAccessReviewRequest(object *SelfAccessReviewRequest, stream *jsoniter.Stream) { +// WriteSelfAccessReviewRequest writes a value of the 'self_access_review_request' type to the given stream. +func WriteSelfAccessReviewRequest(object *SelfAccessReviewRequest, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -105,13 +105,13 @@ func UnmarshalSelfAccessReviewRequest(source interface{}) (object *SelfAccessRev if err != nil { return } - object = readSelfAccessReviewRequest(iterator) + object = ReadSelfAccessReviewRequest(iterator) err = iterator.Error return } -// readSelfAccessReviewRequest reads a value of the 'self_access_review_request' type from the given iterator. -func readSelfAccessReviewRequest(iterator *jsoniter.Iterator) *SelfAccessReviewRequest { +// ReadSelfAccessReviewRequest reads a value of the 'self_access_review_request' type from the given iterator. +func ReadSelfAccessReviewRequest(iterator *jsoniter.Iterator) *SelfAccessReviewRequest { object := &SelfAccessReviewRequest{} for { field := iterator.ReadObject() diff --git a/authorizations/v1/self_access_review_response_list_type_json.go b/authorizations/v1/self_access_review_response_list_type_json.go index a051b4922..67327c996 100644 --- a/authorizations/v1/self_access_review_response_list_type_json.go +++ b/authorizations/v1/self_access_review_response_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSelfAccessReviewResponseList(list []*SelfAccessReviewResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSelfAccessReviewResponseList(list, stream) + WriteSelfAccessReviewResponseList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalSelfAccessReviewResponseList(list []*SelfAccessReviewResponse, write return stream.Error } -// writeSelfAccessReviewResponseList writes a list of value of the 'self_access_review_response' type to +// WriteSelfAccessReviewResponseList writes a list of value of the 'self_access_review_response' type to // the given stream. -func writeSelfAccessReviewResponseList(list []*SelfAccessReviewResponse, stream *jsoniter.Stream) { +func WriteSelfAccessReviewResponseList(list []*SelfAccessReviewResponse, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeSelfAccessReviewResponse(value, stream) + WriteSelfAccessReviewResponse(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalSelfAccessReviewResponseList(source interface{}) (items []*SelfAcc if err != nil { return } - items = readSelfAccessReviewResponseList(iterator) + items = ReadSelfAccessReviewResponseList(iterator) err = iterator.Error return } -// readSelfAccessReviewResponseList reads list of values of the ”self_access_review_response' type from +// ReadSelfAccessReviewResponseList reads list of values of the ”self_access_review_response' type from // the given iterator. -func readSelfAccessReviewResponseList(iterator *jsoniter.Iterator) []*SelfAccessReviewResponse { +func ReadSelfAccessReviewResponseList(iterator *jsoniter.Iterator) []*SelfAccessReviewResponse { list := []*SelfAccessReviewResponse{} for iterator.ReadArray() { - item := readSelfAccessReviewResponse(iterator) + item := ReadSelfAccessReviewResponse(iterator) list = append(list, item) } return list diff --git a/authorizations/v1/self_access_review_response_type.go b/authorizations/v1/self_access_review_response_type.go index be09f74db..fdc29ae25 100644 --- a/authorizations/v1/self_access_review_response_type.go +++ b/authorizations/v1/self_access_review_response_type.go @@ -276,6 +276,29 @@ func (l *SelfAccessReviewResponseList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *SelfAccessReviewResponseList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *SelfAccessReviewResponseList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *SelfAccessReviewResponseList) SetItems(items []*SelfAccessReviewResponse) { + l.items = items +} + +// Items returns the items of the list. +func (l *SelfAccessReviewResponseList) Items() []*SelfAccessReviewResponse { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *SelfAccessReviewResponseList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/authorizations/v1/self_access_review_response_type_json.go b/authorizations/v1/self_access_review_response_type_json.go index fc173be6f..76e63d7db 100644 --- a/authorizations/v1/self_access_review_response_type_json.go +++ b/authorizations/v1/self_access_review_response_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalSelfAccessReviewResponse writes a value of the 'self_access_review_response' type to the given writer. func MarshalSelfAccessReviewResponse(object *SelfAccessReviewResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSelfAccessReviewResponse(object, stream) + WriteSelfAccessReviewResponse(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalSelfAccessReviewResponse(object *SelfAccessReviewResponse, writer io return stream.Error } -// writeSelfAccessReviewResponse writes a value of the 'self_access_review_response' type to the given stream. -func writeSelfAccessReviewResponse(object *SelfAccessReviewResponse, stream *jsoniter.Stream) { +// WriteSelfAccessReviewResponse writes a value of the 'self_access_review_response' type to the given stream. +func WriteSelfAccessReviewResponse(object *SelfAccessReviewResponse, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -132,13 +132,13 @@ func UnmarshalSelfAccessReviewResponse(source interface{}) (object *SelfAccessRe if err != nil { return } - object = readSelfAccessReviewResponse(iterator) + object = ReadSelfAccessReviewResponse(iterator) err = iterator.Error return } -// readSelfAccessReviewResponse reads a value of the 'self_access_review_response' type from the given iterator. -func readSelfAccessReviewResponse(iterator *jsoniter.Iterator) *SelfAccessReviewResponse { +// ReadSelfAccessReviewResponse reads a value of the 'self_access_review_response' type from the given iterator. +func ReadSelfAccessReviewResponse(iterator *jsoniter.Iterator) *SelfAccessReviewResponse { object := &SelfAccessReviewResponse{} for { field := iterator.ReadObject() diff --git a/authorizations/v1/self_capability_review_request_list_type_json.go b/authorizations/v1/self_capability_review_request_list_type_json.go index 5afb08df0..8bf4f1906 100644 --- a/authorizations/v1/self_capability_review_request_list_type_json.go +++ b/authorizations/v1/self_capability_review_request_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSelfCapabilityReviewRequestList(list []*SelfCapabilityReviewRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSelfCapabilityReviewRequestList(list, stream) + WriteSelfCapabilityReviewRequestList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalSelfCapabilityReviewRequestList(list []*SelfCapabilityReviewRequest, return stream.Error } -// writeSelfCapabilityReviewRequestList writes a list of value of the 'self_capability_review_request' type to +// WriteSelfCapabilityReviewRequestList writes a list of value of the 'self_capability_review_request' type to // the given stream. -func writeSelfCapabilityReviewRequestList(list []*SelfCapabilityReviewRequest, stream *jsoniter.Stream) { +func WriteSelfCapabilityReviewRequestList(list []*SelfCapabilityReviewRequest, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeSelfCapabilityReviewRequest(value, stream) + WriteSelfCapabilityReviewRequest(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalSelfCapabilityReviewRequestList(source interface{}) (items []*Self if err != nil { return } - items = readSelfCapabilityReviewRequestList(iterator) + items = ReadSelfCapabilityReviewRequestList(iterator) err = iterator.Error return } -// readSelfCapabilityReviewRequestList reads list of values of the ”self_capability_review_request' type from +// ReadSelfCapabilityReviewRequestList reads list of values of the ”self_capability_review_request' type from // the given iterator. -func readSelfCapabilityReviewRequestList(iterator *jsoniter.Iterator) []*SelfCapabilityReviewRequest { +func ReadSelfCapabilityReviewRequestList(iterator *jsoniter.Iterator) []*SelfCapabilityReviewRequest { list := []*SelfCapabilityReviewRequest{} for iterator.ReadArray() { - item := readSelfCapabilityReviewRequest(iterator) + item := ReadSelfCapabilityReviewRequest(iterator) list = append(list, item) } return list diff --git a/authorizations/v1/self_capability_review_request_type.go b/authorizations/v1/self_capability_review_request_type.go index 0918a7012..eaa18c215 100644 --- a/authorizations/v1/self_capability_review_request_type.go +++ b/authorizations/v1/self_capability_review_request_type.go @@ -228,6 +228,29 @@ func (l *SelfCapabilityReviewRequestList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *SelfCapabilityReviewRequestList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *SelfCapabilityReviewRequestList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *SelfCapabilityReviewRequestList) SetItems(items []*SelfCapabilityReviewRequest) { + l.items = items +} + +// Items returns the items of the list. +func (l *SelfCapabilityReviewRequestList) Items() []*SelfCapabilityReviewRequest { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *SelfCapabilityReviewRequestList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/authorizations/v1/self_capability_review_request_type_json.go b/authorizations/v1/self_capability_review_request_type_json.go index c3c305220..69ebe4e01 100644 --- a/authorizations/v1/self_capability_review_request_type_json.go +++ b/authorizations/v1/self_capability_review_request_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalSelfCapabilityReviewRequest writes a value of the 'self_capability_review_request' type to the given writer. func MarshalSelfCapabilityReviewRequest(object *SelfCapabilityReviewRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSelfCapabilityReviewRequest(object, stream) + WriteSelfCapabilityReviewRequest(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalSelfCapabilityReviewRequest(object *SelfCapabilityReviewRequest, wri return stream.Error } -// writeSelfCapabilityReviewRequest writes a value of the 'self_capability_review_request' type to the given stream. -func writeSelfCapabilityReviewRequest(object *SelfCapabilityReviewRequest, stream *jsoniter.Stream) { +// WriteSelfCapabilityReviewRequest writes a value of the 'self_capability_review_request' type to the given stream. +func WriteSelfCapabilityReviewRequest(object *SelfCapabilityReviewRequest, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -114,13 +114,13 @@ func UnmarshalSelfCapabilityReviewRequest(source interface{}) (object *SelfCapab if err != nil { return } - object = readSelfCapabilityReviewRequest(iterator) + object = ReadSelfCapabilityReviewRequest(iterator) err = iterator.Error return } -// readSelfCapabilityReviewRequest reads a value of the 'self_capability_review_request' type from the given iterator. -func readSelfCapabilityReviewRequest(iterator *jsoniter.Iterator) *SelfCapabilityReviewRequest { +// ReadSelfCapabilityReviewRequest reads a value of the 'self_capability_review_request' type from the given iterator. +func ReadSelfCapabilityReviewRequest(iterator *jsoniter.Iterator) *SelfCapabilityReviewRequest { object := &SelfCapabilityReviewRequest{} for { field := iterator.ReadObject() diff --git a/authorizations/v1/self_capability_review_response_list_type_json.go b/authorizations/v1/self_capability_review_response_list_type_json.go index c129e3d9c..d6eab8634 100644 --- a/authorizations/v1/self_capability_review_response_list_type_json.go +++ b/authorizations/v1/self_capability_review_response_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSelfCapabilityReviewResponseList(list []*SelfCapabilityReviewResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSelfCapabilityReviewResponseList(list, stream) + WriteSelfCapabilityReviewResponseList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalSelfCapabilityReviewResponseList(list []*SelfCapabilityReviewRespons return stream.Error } -// writeSelfCapabilityReviewResponseList writes a list of value of the 'self_capability_review_response' type to +// WriteSelfCapabilityReviewResponseList writes a list of value of the 'self_capability_review_response' type to // the given stream. -func writeSelfCapabilityReviewResponseList(list []*SelfCapabilityReviewResponse, stream *jsoniter.Stream) { +func WriteSelfCapabilityReviewResponseList(list []*SelfCapabilityReviewResponse, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeSelfCapabilityReviewResponse(value, stream) + WriteSelfCapabilityReviewResponse(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalSelfCapabilityReviewResponseList(source interface{}) (items []*Sel if err != nil { return } - items = readSelfCapabilityReviewResponseList(iterator) + items = ReadSelfCapabilityReviewResponseList(iterator) err = iterator.Error return } -// readSelfCapabilityReviewResponseList reads list of values of the ”self_capability_review_response' type from +// ReadSelfCapabilityReviewResponseList reads list of values of the ”self_capability_review_response' type from // the given iterator. -func readSelfCapabilityReviewResponseList(iterator *jsoniter.Iterator) []*SelfCapabilityReviewResponse { +func ReadSelfCapabilityReviewResponseList(iterator *jsoniter.Iterator) []*SelfCapabilityReviewResponse { list := []*SelfCapabilityReviewResponse{} for iterator.ReadArray() { - item := readSelfCapabilityReviewResponse(iterator) + item := ReadSelfCapabilityReviewResponse(iterator) list = append(list, item) } return list diff --git a/authorizations/v1/self_capability_review_response_type.go b/authorizations/v1/self_capability_review_response_type.go index 439039cad..40e96afbd 100644 --- a/authorizations/v1/self_capability_review_response_type.go +++ b/authorizations/v1/self_capability_review_response_type.go @@ -78,6 +78,29 @@ func (l *SelfCapabilityReviewResponseList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *SelfCapabilityReviewResponseList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *SelfCapabilityReviewResponseList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *SelfCapabilityReviewResponseList) SetItems(items []*SelfCapabilityReviewResponse) { + l.items = items +} + +// Items returns the items of the list. +func (l *SelfCapabilityReviewResponseList) Items() []*SelfCapabilityReviewResponse { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *SelfCapabilityReviewResponseList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/authorizations/v1/self_capability_review_response_type_json.go b/authorizations/v1/self_capability_review_response_type_json.go index a07f70ee4..3f9d60b60 100644 --- a/authorizations/v1/self_capability_review_response_type_json.go +++ b/authorizations/v1/self_capability_review_response_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalSelfCapabilityReviewResponse writes a value of the 'self_capability_review_response' type to the given writer. func MarshalSelfCapabilityReviewResponse(object *SelfCapabilityReviewResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSelfCapabilityReviewResponse(object, stream) + WriteSelfCapabilityReviewResponse(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalSelfCapabilityReviewResponse(object *SelfCapabilityReviewResponse, w return stream.Error } -// writeSelfCapabilityReviewResponse writes a value of the 'self_capability_review_response' type to the given stream. -func writeSelfCapabilityReviewResponse(object *SelfCapabilityReviewResponse, stream *jsoniter.Stream) { +// WriteSelfCapabilityReviewResponse writes a value of the 'self_capability_review_response' type to the given stream. +func WriteSelfCapabilityReviewResponse(object *SelfCapabilityReviewResponse, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalSelfCapabilityReviewResponse(source interface{}) (object *SelfCapa if err != nil { return } - object = readSelfCapabilityReviewResponse(iterator) + object = ReadSelfCapabilityReviewResponse(iterator) err = iterator.Error return } -// readSelfCapabilityReviewResponse reads a value of the 'self_capability_review_response' type from the given iterator. -func readSelfCapabilityReviewResponse(iterator *jsoniter.Iterator) *SelfCapabilityReviewResponse { +// ReadSelfCapabilityReviewResponse reads a value of the 'self_capability_review_response' type from the given iterator. +func ReadSelfCapabilityReviewResponse(iterator *jsoniter.Iterator) *SelfCapabilityReviewResponse { object := &SelfCapabilityReviewResponse{} for { field := iterator.ReadObject() diff --git a/authorizations/v1/self_feature_review_request_list_type_json.go b/authorizations/v1/self_feature_review_request_list_type_json.go index 6b3ab9596..9f65e2dbd 100644 --- a/authorizations/v1/self_feature_review_request_list_type_json.go +++ b/authorizations/v1/self_feature_review_request_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSelfFeatureReviewRequestList(list []*SelfFeatureReviewRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSelfFeatureReviewRequestList(list, stream) + WriteSelfFeatureReviewRequestList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalSelfFeatureReviewRequestList(list []*SelfFeatureReviewRequest, write return stream.Error } -// writeSelfFeatureReviewRequestList writes a list of value of the 'self_feature_review_request' type to +// WriteSelfFeatureReviewRequestList writes a list of value of the 'self_feature_review_request' type to // the given stream. -func writeSelfFeatureReviewRequestList(list []*SelfFeatureReviewRequest, stream *jsoniter.Stream) { +func WriteSelfFeatureReviewRequestList(list []*SelfFeatureReviewRequest, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeSelfFeatureReviewRequest(value, stream) + WriteSelfFeatureReviewRequest(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalSelfFeatureReviewRequestList(source interface{}) (items []*SelfFea if err != nil { return } - items = readSelfFeatureReviewRequestList(iterator) + items = ReadSelfFeatureReviewRequestList(iterator) err = iterator.Error return } -// readSelfFeatureReviewRequestList reads list of values of the ”self_feature_review_request' type from +// ReadSelfFeatureReviewRequestList reads list of values of the ”self_feature_review_request' type from // the given iterator. -func readSelfFeatureReviewRequestList(iterator *jsoniter.Iterator) []*SelfFeatureReviewRequest { +func ReadSelfFeatureReviewRequestList(iterator *jsoniter.Iterator) []*SelfFeatureReviewRequest { list := []*SelfFeatureReviewRequest{} for iterator.ReadArray() { - item := readSelfFeatureReviewRequest(iterator) + item := ReadSelfFeatureReviewRequest(iterator) list = append(list, item) } return list diff --git a/authorizations/v1/self_feature_review_request_type.go b/authorizations/v1/self_feature_review_request_type.go index f0892f35c..7ad5ebd31 100644 --- a/authorizations/v1/self_feature_review_request_type.go +++ b/authorizations/v1/self_feature_review_request_type.go @@ -82,6 +82,29 @@ func (l *SelfFeatureReviewRequestList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *SelfFeatureReviewRequestList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *SelfFeatureReviewRequestList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *SelfFeatureReviewRequestList) SetItems(items []*SelfFeatureReviewRequest) { + l.items = items +} + +// Items returns the items of the list. +func (l *SelfFeatureReviewRequestList) Items() []*SelfFeatureReviewRequest { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *SelfFeatureReviewRequestList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/authorizations/v1/self_feature_review_request_type_json.go b/authorizations/v1/self_feature_review_request_type_json.go index 57442ad99..4007be1e2 100644 --- a/authorizations/v1/self_feature_review_request_type_json.go +++ b/authorizations/v1/self_feature_review_request_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalSelfFeatureReviewRequest writes a value of the 'self_feature_review_request' type to the given writer. func MarshalSelfFeatureReviewRequest(object *SelfFeatureReviewRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSelfFeatureReviewRequest(object, stream) + WriteSelfFeatureReviewRequest(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalSelfFeatureReviewRequest(object *SelfFeatureReviewRequest, writer io return stream.Error } -// writeSelfFeatureReviewRequest writes a value of the 'self_feature_review_request' type to the given stream. -func writeSelfFeatureReviewRequest(object *SelfFeatureReviewRequest, stream *jsoniter.Stream) { +// WriteSelfFeatureReviewRequest writes a value of the 'self_feature_review_request' type to the given stream. +func WriteSelfFeatureReviewRequest(object *SelfFeatureReviewRequest, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalSelfFeatureReviewRequest(source interface{}) (object *SelfFeatureR if err != nil { return } - object = readSelfFeatureReviewRequest(iterator) + object = ReadSelfFeatureReviewRequest(iterator) err = iterator.Error return } -// readSelfFeatureReviewRequest reads a value of the 'self_feature_review_request' type from the given iterator. -func readSelfFeatureReviewRequest(iterator *jsoniter.Iterator) *SelfFeatureReviewRequest { +// ReadSelfFeatureReviewRequest reads a value of the 'self_feature_review_request' type from the given iterator. +func ReadSelfFeatureReviewRequest(iterator *jsoniter.Iterator) *SelfFeatureReviewRequest { object := &SelfFeatureReviewRequest{} for { field := iterator.ReadObject() diff --git a/authorizations/v1/self_feature_review_response_list_type_json.go b/authorizations/v1/self_feature_review_response_list_type_json.go index b7716111f..419dcc6ec 100644 --- a/authorizations/v1/self_feature_review_response_list_type_json.go +++ b/authorizations/v1/self_feature_review_response_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSelfFeatureReviewResponseList(list []*SelfFeatureReviewResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSelfFeatureReviewResponseList(list, stream) + WriteSelfFeatureReviewResponseList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalSelfFeatureReviewResponseList(list []*SelfFeatureReviewResponse, wri return stream.Error } -// writeSelfFeatureReviewResponseList writes a list of value of the 'self_feature_review_response' type to +// WriteSelfFeatureReviewResponseList writes a list of value of the 'self_feature_review_response' type to // the given stream. -func writeSelfFeatureReviewResponseList(list []*SelfFeatureReviewResponse, stream *jsoniter.Stream) { +func WriteSelfFeatureReviewResponseList(list []*SelfFeatureReviewResponse, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeSelfFeatureReviewResponse(value, stream) + WriteSelfFeatureReviewResponse(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalSelfFeatureReviewResponseList(source interface{}) (items []*SelfFe if err != nil { return } - items = readSelfFeatureReviewResponseList(iterator) + items = ReadSelfFeatureReviewResponseList(iterator) err = iterator.Error return } -// readSelfFeatureReviewResponseList reads list of values of the ”self_feature_review_response' type from +// ReadSelfFeatureReviewResponseList reads list of values of the ”self_feature_review_response' type from // the given iterator. -func readSelfFeatureReviewResponseList(iterator *jsoniter.Iterator) []*SelfFeatureReviewResponse { +func ReadSelfFeatureReviewResponseList(iterator *jsoniter.Iterator) []*SelfFeatureReviewResponse { list := []*SelfFeatureReviewResponse{} for iterator.ReadArray() { - item := readSelfFeatureReviewResponse(iterator) + item := ReadSelfFeatureReviewResponse(iterator) list = append(list, item) } return list diff --git a/authorizations/v1/self_feature_review_response_type.go b/authorizations/v1/self_feature_review_response_type.go index 1edf41a8e..4e2bb18c6 100644 --- a/authorizations/v1/self_feature_review_response_type.go +++ b/authorizations/v1/self_feature_review_response_type.go @@ -106,6 +106,29 @@ func (l *SelfFeatureReviewResponseList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *SelfFeatureReviewResponseList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *SelfFeatureReviewResponseList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *SelfFeatureReviewResponseList) SetItems(items []*SelfFeatureReviewResponse) { + l.items = items +} + +// Items returns the items of the list. +func (l *SelfFeatureReviewResponseList) Items() []*SelfFeatureReviewResponse { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *SelfFeatureReviewResponseList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/authorizations/v1/self_feature_review_response_type_json.go b/authorizations/v1/self_feature_review_response_type_json.go index 6c9a02980..95a700f8c 100644 --- a/authorizations/v1/self_feature_review_response_type_json.go +++ b/authorizations/v1/self_feature_review_response_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalSelfFeatureReviewResponse writes a value of the 'self_feature_review_response' type to the given writer. func MarshalSelfFeatureReviewResponse(object *SelfFeatureReviewResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSelfFeatureReviewResponse(object, stream) + WriteSelfFeatureReviewResponse(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalSelfFeatureReviewResponse(object *SelfFeatureReviewResponse, writer return stream.Error } -// writeSelfFeatureReviewResponse writes a value of the 'self_feature_review_response' type to the given stream. -func writeSelfFeatureReviewResponse(object *SelfFeatureReviewResponse, stream *jsoniter.Stream) { +// WriteSelfFeatureReviewResponse writes a value of the 'self_feature_review_response' type to the given stream. +func WriteSelfFeatureReviewResponse(object *SelfFeatureReviewResponse, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalSelfFeatureReviewResponse(source interface{}) (object *SelfFeature if err != nil { return } - object = readSelfFeatureReviewResponse(iterator) + object = ReadSelfFeatureReviewResponse(iterator) err = iterator.Error return } -// readSelfFeatureReviewResponse reads a value of the 'self_feature_review_response' type from the given iterator. -func readSelfFeatureReviewResponse(iterator *jsoniter.Iterator) *SelfFeatureReviewResponse { +// ReadSelfFeatureReviewResponse reads a value of the 'self_feature_review_response' type from the given iterator. +func ReadSelfFeatureReviewResponse(iterator *jsoniter.Iterator) *SelfFeatureReviewResponse { object := &SelfFeatureReviewResponse{} for { field := iterator.ReadObject() diff --git a/authorizations/v1/self_terms_review_request_list_type_json.go b/authorizations/v1/self_terms_review_request_list_type_json.go index dad6af13e..546a3072a 100644 --- a/authorizations/v1/self_terms_review_request_list_type_json.go +++ b/authorizations/v1/self_terms_review_request_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSelfTermsReviewRequestList(list []*SelfTermsReviewRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSelfTermsReviewRequestList(list, stream) + WriteSelfTermsReviewRequestList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalSelfTermsReviewRequestList(list []*SelfTermsReviewRequest, writer io return stream.Error } -// writeSelfTermsReviewRequestList writes a list of value of the 'self_terms_review_request' type to +// WriteSelfTermsReviewRequestList writes a list of value of the 'self_terms_review_request' type to // the given stream. -func writeSelfTermsReviewRequestList(list []*SelfTermsReviewRequest, stream *jsoniter.Stream) { +func WriteSelfTermsReviewRequestList(list []*SelfTermsReviewRequest, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeSelfTermsReviewRequest(value, stream) + WriteSelfTermsReviewRequest(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalSelfTermsReviewRequestList(source interface{}) (items []*SelfTerms if err != nil { return } - items = readSelfTermsReviewRequestList(iterator) + items = ReadSelfTermsReviewRequestList(iterator) err = iterator.Error return } -// readSelfTermsReviewRequestList reads list of values of the ”self_terms_review_request' type from +// ReadSelfTermsReviewRequestList reads list of values of the ”self_terms_review_request' type from // the given iterator. -func readSelfTermsReviewRequestList(iterator *jsoniter.Iterator) []*SelfTermsReviewRequest { +func ReadSelfTermsReviewRequestList(iterator *jsoniter.Iterator) []*SelfTermsReviewRequest { list := []*SelfTermsReviewRequest{} for iterator.ReadArray() { - item := readSelfTermsReviewRequest(iterator) + item := ReadSelfTermsReviewRequest(iterator) list = append(list, item) } return list diff --git a/authorizations/v1/self_terms_review_request_type.go b/authorizations/v1/self_terms_review_request_type.go index 386e5bc71..4d946b1b5 100644 --- a/authorizations/v1/self_terms_review_request_type.go +++ b/authorizations/v1/self_terms_review_request_type.go @@ -107,6 +107,29 @@ func (l *SelfTermsReviewRequestList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *SelfTermsReviewRequestList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *SelfTermsReviewRequestList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *SelfTermsReviewRequestList) SetItems(items []*SelfTermsReviewRequest) { + l.items = items +} + +// Items returns the items of the list. +func (l *SelfTermsReviewRequestList) Items() []*SelfTermsReviewRequest { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *SelfTermsReviewRequestList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/authorizations/v1/self_terms_review_request_type_json.go b/authorizations/v1/self_terms_review_request_type_json.go index 47206d4bf..102c8939d 100644 --- a/authorizations/v1/self_terms_review_request_type_json.go +++ b/authorizations/v1/self_terms_review_request_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalSelfTermsReviewRequest writes a value of the 'self_terms_review_request' type to the given writer. func MarshalSelfTermsReviewRequest(object *SelfTermsReviewRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSelfTermsReviewRequest(object, stream) + WriteSelfTermsReviewRequest(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalSelfTermsReviewRequest(object *SelfTermsReviewRequest, writer io.Wri return stream.Error } -// writeSelfTermsReviewRequest writes a value of the 'self_terms_review_request' type to the given stream. -func writeSelfTermsReviewRequest(object *SelfTermsReviewRequest, stream *jsoniter.Stream) { +// WriteSelfTermsReviewRequest writes a value of the 'self_terms_review_request' type to the given stream. +func WriteSelfTermsReviewRequest(object *SelfTermsReviewRequest, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalSelfTermsReviewRequest(source interface{}) (object *SelfTermsRevie if err != nil { return } - object = readSelfTermsReviewRequest(iterator) + object = ReadSelfTermsReviewRequest(iterator) err = iterator.Error return } -// readSelfTermsReviewRequest reads a value of the 'self_terms_review_request' type from the given iterator. -func readSelfTermsReviewRequest(iterator *jsoniter.Iterator) *SelfTermsReviewRequest { +// ReadSelfTermsReviewRequest reads a value of the 'self_terms_review_request' type from the given iterator. +func ReadSelfTermsReviewRequest(iterator *jsoniter.Iterator) *SelfTermsReviewRequest { object := &SelfTermsReviewRequest{} for { field := iterator.ReadObject() diff --git a/authorizations/v1/string_list_type_json.go b/authorizations/v1/string_list_type_json.go index 334494919..8ad3cdfc7 100644 --- a/authorizations/v1/string_list_type_json.go +++ b/authorizations/v1/string_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalStringList(list []string, writer io.Writer) error { stream := helpers.NewStream(writer) - writeStringList(list, stream) + WriteStringList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalStringList(list []string, writer io.Writer) error { return stream.Error } -// writeStringList writes a list of value of the 'string' type to +// WriteStringList writes a list of value of the 'string' type to // the given stream. -func writeStringList(list []string, stream *jsoniter.Stream) { +func WriteStringList(list []string, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalStringList(source interface{}) (items []string, err error) { if err != nil { return } - items = readStringList(iterator) + items = ReadStringList(iterator) err = iterator.Error return } -// readStringList reads list of values of the ”string' type from +// ReadStringList reads list of values of the ”string' type from // the given iterator. -func readStringList(iterator *jsoniter.Iterator) []string { +func ReadStringList(iterator *jsoniter.Iterator) []string { list := []string{} for iterator.ReadArray() { item := iterator.ReadString() diff --git a/authorizations/v1/subscription_status_list_type_json.go b/authorizations/v1/subscription_status_list_type_json.go index d122b1395..fc5d4447e 100644 --- a/authorizations/v1/subscription_status_list_type_json.go +++ b/authorizations/v1/subscription_status_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSubscriptionStatusList(list []SubscriptionStatus, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSubscriptionStatusList(list, stream) + WriteSubscriptionStatusList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalSubscriptionStatusList(list []SubscriptionStatus, writer io.Writer) return stream.Error } -// writeSubscriptionStatusList writes a list of value of the 'subscription_status' type to +// WriteSubscriptionStatusList writes a list of value of the 'subscription_status' type to // the given stream. -func writeSubscriptionStatusList(list []SubscriptionStatus, stream *jsoniter.Stream) { +func WriteSubscriptionStatusList(list []SubscriptionStatus, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalSubscriptionStatusList(source interface{}) (items []SubscriptionSt if err != nil { return } - items = readSubscriptionStatusList(iterator) + items = ReadSubscriptionStatusList(iterator) err = iterator.Error return } -// readSubscriptionStatusList reads list of values of the ”subscription_status' type from +// ReadSubscriptionStatusList reads list of values of the ”subscription_status' type from // the given iterator. -func readSubscriptionStatusList(iterator *jsoniter.Iterator) []SubscriptionStatus { +func ReadSubscriptionStatusList(iterator *jsoniter.Iterator) []SubscriptionStatus { list := []SubscriptionStatus{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/authorizations/v1/terms_review_request_list_type_json.go b/authorizations/v1/terms_review_request_list_type_json.go index 74cf75243..a7aeb22ea 100644 --- a/authorizations/v1/terms_review_request_list_type_json.go +++ b/authorizations/v1/terms_review_request_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalTermsReviewRequestList(list []*TermsReviewRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeTermsReviewRequestList(list, stream) + WriteTermsReviewRequestList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalTermsReviewRequestList(list []*TermsReviewRequest, writer io.Writer) return stream.Error } -// writeTermsReviewRequestList writes a list of value of the 'terms_review_request' type to +// WriteTermsReviewRequestList writes a list of value of the 'terms_review_request' type to // the given stream. -func writeTermsReviewRequestList(list []*TermsReviewRequest, stream *jsoniter.Stream) { +func WriteTermsReviewRequestList(list []*TermsReviewRequest, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeTermsReviewRequest(value, stream) + WriteTermsReviewRequest(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalTermsReviewRequestList(source interface{}) (items []*TermsReviewRe if err != nil { return } - items = readTermsReviewRequestList(iterator) + items = ReadTermsReviewRequestList(iterator) err = iterator.Error return } -// readTermsReviewRequestList reads list of values of the ”terms_review_request' type from +// ReadTermsReviewRequestList reads list of values of the ”terms_review_request' type from // the given iterator. -func readTermsReviewRequestList(iterator *jsoniter.Iterator) []*TermsReviewRequest { +func ReadTermsReviewRequestList(iterator *jsoniter.Iterator) []*TermsReviewRequest { list := []*TermsReviewRequest{} for iterator.ReadArray() { - item := readTermsReviewRequest(iterator) + item := ReadTermsReviewRequest(iterator) list = append(list, item) } return list diff --git a/authorizations/v1/terms_review_request_type.go b/authorizations/v1/terms_review_request_type.go index ce8ba1695..f4f0ade05 100644 --- a/authorizations/v1/terms_review_request_type.go +++ b/authorizations/v1/terms_review_request_type.go @@ -155,6 +155,29 @@ func (l *TermsReviewRequestList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *TermsReviewRequestList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *TermsReviewRequestList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *TermsReviewRequestList) SetItems(items []*TermsReviewRequest) { + l.items = items +} + +// Items returns the items of the list. +func (l *TermsReviewRequestList) Items() []*TermsReviewRequest { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *TermsReviewRequestList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/authorizations/v1/terms_review_request_type_json.go b/authorizations/v1/terms_review_request_type_json.go index 11eb4a733..e534a5de6 100644 --- a/authorizations/v1/terms_review_request_type_json.go +++ b/authorizations/v1/terms_review_request_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalTermsReviewRequest writes a value of the 'terms_review_request' type to the given writer. func MarshalTermsReviewRequest(object *TermsReviewRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeTermsReviewRequest(object, stream) + WriteTermsReviewRequest(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalTermsReviewRequest(object *TermsReviewRequest, writer io.Writer) err return stream.Error } -// writeTermsReviewRequest writes a value of the 'terms_review_request' type to the given stream. -func writeTermsReviewRequest(object *TermsReviewRequest, stream *jsoniter.Stream) { +// WriteTermsReviewRequest writes a value of the 'terms_review_request' type to the given stream. +func WriteTermsReviewRequest(object *TermsReviewRequest, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -87,13 +87,13 @@ func UnmarshalTermsReviewRequest(source interface{}) (object *TermsReviewRequest if err != nil { return } - object = readTermsReviewRequest(iterator) + object = ReadTermsReviewRequest(iterator) err = iterator.Error return } -// readTermsReviewRequest reads a value of the 'terms_review_request' type from the given iterator. -func readTermsReviewRequest(iterator *jsoniter.Iterator) *TermsReviewRequest { +// ReadTermsReviewRequest reads a value of the 'terms_review_request' type from the given iterator. +func ReadTermsReviewRequest(iterator *jsoniter.Iterator) *TermsReviewRequest { object := &TermsReviewRequest{} for { field := iterator.ReadObject() diff --git a/authorizations/v1/terms_review_response_list_type_json.go b/authorizations/v1/terms_review_response_list_type_json.go index c8806806c..e053623f3 100644 --- a/authorizations/v1/terms_review_response_list_type_json.go +++ b/authorizations/v1/terms_review_response_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalTermsReviewResponseList(list []*TermsReviewResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeTermsReviewResponseList(list, stream) + WriteTermsReviewResponseList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalTermsReviewResponseList(list []*TermsReviewResponse, writer io.Write return stream.Error } -// writeTermsReviewResponseList writes a list of value of the 'terms_review_response' type to +// WriteTermsReviewResponseList writes a list of value of the 'terms_review_response' type to // the given stream. -func writeTermsReviewResponseList(list []*TermsReviewResponse, stream *jsoniter.Stream) { +func WriteTermsReviewResponseList(list []*TermsReviewResponse, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeTermsReviewResponse(value, stream) + WriteTermsReviewResponse(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalTermsReviewResponseList(source interface{}) (items []*TermsReviewR if err != nil { return } - items = readTermsReviewResponseList(iterator) + items = ReadTermsReviewResponseList(iterator) err = iterator.Error return } -// readTermsReviewResponseList reads list of values of the ”terms_review_response' type from +// ReadTermsReviewResponseList reads list of values of the ”terms_review_response' type from // the given iterator. -func readTermsReviewResponseList(iterator *jsoniter.Iterator) []*TermsReviewResponse { +func ReadTermsReviewResponseList(iterator *jsoniter.Iterator) []*TermsReviewResponse { list := []*TermsReviewResponse{} for iterator.ReadArray() { - item := readTermsReviewResponse(iterator) + item := ReadTermsReviewResponse(iterator) list = append(list, item) } return list diff --git a/authorizations/v1/terms_review_response_type.go b/authorizations/v1/terms_review_response_type.go index 439d6be06..64a77b053 100644 --- a/authorizations/v1/terms_review_response_type.go +++ b/authorizations/v1/terms_review_response_type.go @@ -181,6 +181,29 @@ func (l *TermsReviewResponseList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *TermsReviewResponseList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *TermsReviewResponseList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *TermsReviewResponseList) SetItems(items []*TermsReviewResponse) { + l.items = items +} + +// Items returns the items of the list. +func (l *TermsReviewResponseList) Items() []*TermsReviewResponse { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *TermsReviewResponseList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/authorizations/v1/terms_review_response_type_json.go b/authorizations/v1/terms_review_response_type_json.go index b0c4eacf1..8c69cfdae 100644 --- a/authorizations/v1/terms_review_response_type_json.go +++ b/authorizations/v1/terms_review_response_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalTermsReviewResponse writes a value of the 'terms_review_response' type to the given writer. func MarshalTermsReviewResponse(object *TermsReviewResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeTermsReviewResponse(object, stream) + WriteTermsReviewResponse(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalTermsReviewResponse(object *TermsReviewResponse, writer io.Writer) e return stream.Error } -// writeTermsReviewResponse writes a value of the 'terms_review_response' type to the given stream. -func writeTermsReviewResponse(object *TermsReviewResponse, stream *jsoniter.Stream) { +// WriteTermsReviewResponse writes a value of the 'terms_review_response' type to the given stream. +func WriteTermsReviewResponse(object *TermsReviewResponse, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -96,13 +96,13 @@ func UnmarshalTermsReviewResponse(source interface{}) (object *TermsReviewRespon if err != nil { return } - object = readTermsReviewResponse(iterator) + object = ReadTermsReviewResponse(iterator) err = iterator.Error return } -// readTermsReviewResponse reads a value of the 'terms_review_response' type from the given iterator. -func readTermsReviewResponse(iterator *jsoniter.Iterator) *TermsReviewResponse { +// ReadTermsReviewResponse reads a value of the 'terms_review_response' type from the given iterator. +func ReadTermsReviewResponse(iterator *jsoniter.Iterator) *TermsReviewResponse { object := &TermsReviewResponse{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/add_on_config_list_type_json.go b/clustersmgmt/v1/add_on_config_list_type_json.go index 2af18393e..1e7706a5e 100644 --- a/clustersmgmt/v1/add_on_config_list_type_json.go +++ b/clustersmgmt/v1/add_on_config_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddOnConfigList(list []*AddOnConfig, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnConfigList(list, stream) + WriteAddOnConfigList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddOnConfigList(list []*AddOnConfig, writer io.Writer) error { return stream.Error } -// writeAddOnConfigList writes a list of value of the 'add_on_config' type to +// WriteAddOnConfigList writes a list of value of the 'add_on_config' type to // the given stream. -func writeAddOnConfigList(list []*AddOnConfig, stream *jsoniter.Stream) { +func WriteAddOnConfigList(list []*AddOnConfig, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddOnConfig(value, stream) + WriteAddOnConfig(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddOnConfigList(source interface{}) (items []*AddOnConfig, err err if err != nil { return } - items = readAddOnConfigList(iterator) + items = ReadAddOnConfigList(iterator) err = iterator.Error return } -// readAddOnConfigList reads list of values of the ”add_on_config' type from +// ReadAddOnConfigList reads list of values of the ”add_on_config' type from // the given iterator. -func readAddOnConfigList(iterator *jsoniter.Iterator) []*AddOnConfig { +func ReadAddOnConfigList(iterator *jsoniter.Iterator) []*AddOnConfig { list := []*AddOnConfig{} for iterator.ReadArray() { - item := readAddOnConfig(iterator) + item := ReadAddOnConfig(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/add_on_config_type.go b/clustersmgmt/v1/add_on_config_type.go index c2495a774..810c93763 100644 --- a/clustersmgmt/v1/add_on_config_type.go +++ b/clustersmgmt/v1/add_on_config_type.go @@ -54,7 +54,7 @@ func (o *AddOnConfig) Kind() string { return AddOnConfigKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *AddOnConfig) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -207,6 +207,29 @@ func (l *AddOnConfigList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddOnConfigList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddOnConfigList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddOnConfigList) SetItems(items []*AddOnConfig) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddOnConfigList) Items() []*AddOnConfig { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddOnConfigList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/add_on_config_type_json.go b/clustersmgmt/v1/add_on_config_type_json.go index 563b75e52..71de21e2c 100644 --- a/clustersmgmt/v1/add_on_config_type_json.go +++ b/clustersmgmt/v1/add_on_config_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAddOnConfig writes a value of the 'add_on_config' type to the given writer. func MarshalAddOnConfig(object *AddOnConfig, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnConfig(object, stream) + WriteAddOnConfig(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAddOnConfig(object *AddOnConfig, writer io.Writer) error { return stream.Error } -// writeAddOnConfig writes a value of the 'add_on_config' type to the given stream. -func writeAddOnConfig(object *AddOnConfig, stream *jsoniter.Stream) { +// WriteAddOnConfig writes a value of the 'add_on_config' type to the given stream. +func WriteAddOnConfig(object *AddOnConfig, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -71,7 +71,7 @@ func writeAddOnConfig(object *AddOnConfig, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("add_on_environment_variables") - writeAddOnEnvironmentVariableList(object.addOnEnvironmentVariables, stream) + WriteAddOnEnvironmentVariableList(object.addOnEnvironmentVariables, stream) count++ } present_ = object.bitmap_&16 != 0 && object.secretPropagations != nil @@ -80,7 +80,7 @@ func writeAddOnConfig(object *AddOnConfig, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("secret_propagations") - writeAddOnSecretPropagationList(object.secretPropagations, stream) + WriteAddOnSecretPropagationList(object.secretPropagations, stream) } stream.WriteObjectEnd() } @@ -92,13 +92,13 @@ func UnmarshalAddOnConfig(source interface{}) (object *AddOnConfig, err error) { if err != nil { return } - object = readAddOnConfig(iterator) + object = ReadAddOnConfig(iterator) err = iterator.Error return } -// readAddOnConfig reads a value of the 'add_on_config' type from the given iterator. -func readAddOnConfig(iterator *jsoniter.Iterator) *AddOnConfig { +// ReadAddOnConfig reads a value of the 'add_on_config' type from the given iterator. +func ReadAddOnConfig(iterator *jsoniter.Iterator) *AddOnConfig { object := &AddOnConfig{} for { field := iterator.ReadObject() @@ -118,11 +118,11 @@ func readAddOnConfig(iterator *jsoniter.Iterator) *AddOnConfig { object.href = iterator.ReadString() object.bitmap_ |= 4 case "add_on_environment_variables": - value := readAddOnEnvironmentVariableList(iterator) + value := ReadAddOnEnvironmentVariableList(iterator) object.addOnEnvironmentVariables = value object.bitmap_ |= 8 case "secret_propagations": - value := readAddOnSecretPropagationList(iterator) + value := ReadAddOnSecretPropagationList(iterator) object.secretPropagations = value object.bitmap_ |= 16 default: diff --git a/clustersmgmt/v1/add_on_environment_variable_list_type_json.go b/clustersmgmt/v1/add_on_environment_variable_list_type_json.go index a727bc158..68f57a2f1 100644 --- a/clustersmgmt/v1/add_on_environment_variable_list_type_json.go +++ b/clustersmgmt/v1/add_on_environment_variable_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddOnEnvironmentVariableList(list []*AddOnEnvironmentVariable, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnEnvironmentVariableList(list, stream) + WriteAddOnEnvironmentVariableList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddOnEnvironmentVariableList(list []*AddOnEnvironmentVariable, write return stream.Error } -// writeAddOnEnvironmentVariableList writes a list of value of the 'add_on_environment_variable' type to +// WriteAddOnEnvironmentVariableList writes a list of value of the 'add_on_environment_variable' type to // the given stream. -func writeAddOnEnvironmentVariableList(list []*AddOnEnvironmentVariable, stream *jsoniter.Stream) { +func WriteAddOnEnvironmentVariableList(list []*AddOnEnvironmentVariable, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddOnEnvironmentVariable(value, stream) + WriteAddOnEnvironmentVariable(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddOnEnvironmentVariableList(source interface{}) (items []*AddOnEn if err != nil { return } - items = readAddOnEnvironmentVariableList(iterator) + items = ReadAddOnEnvironmentVariableList(iterator) err = iterator.Error return } -// readAddOnEnvironmentVariableList reads list of values of the ”add_on_environment_variable' type from +// ReadAddOnEnvironmentVariableList reads list of values of the ”add_on_environment_variable' type from // the given iterator. -func readAddOnEnvironmentVariableList(iterator *jsoniter.Iterator) []*AddOnEnvironmentVariable { +func ReadAddOnEnvironmentVariableList(iterator *jsoniter.Iterator) []*AddOnEnvironmentVariable { list := []*AddOnEnvironmentVariable{} for iterator.ReadArray() { - item := readAddOnEnvironmentVariable(iterator) + item := ReadAddOnEnvironmentVariable(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/add_on_environment_variable_type.go b/clustersmgmt/v1/add_on_environment_variable_type.go index 9e046734b..8826dff45 100644 --- a/clustersmgmt/v1/add_on_environment_variable_type.go +++ b/clustersmgmt/v1/add_on_environment_variable_type.go @@ -53,7 +53,7 @@ func (o *AddOnEnvironmentVariable) Kind() string { return AddOnEnvironmentVariableKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *AddOnEnvironmentVariable) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -206,6 +206,29 @@ func (l *AddOnEnvironmentVariableList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddOnEnvironmentVariableList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddOnEnvironmentVariableList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddOnEnvironmentVariableList) SetItems(items []*AddOnEnvironmentVariable) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddOnEnvironmentVariableList) Items() []*AddOnEnvironmentVariable { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddOnEnvironmentVariableList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/add_on_environment_variable_type_json.go b/clustersmgmt/v1/add_on_environment_variable_type_json.go index 91b1357fa..379e7f8bd 100644 --- a/clustersmgmt/v1/add_on_environment_variable_type_json.go +++ b/clustersmgmt/v1/add_on_environment_variable_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAddOnEnvironmentVariable writes a value of the 'add_on_environment_variable' type to the given writer. func MarshalAddOnEnvironmentVariable(object *AddOnEnvironmentVariable, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnEnvironmentVariable(object, stream) + WriteAddOnEnvironmentVariable(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAddOnEnvironmentVariable(object *AddOnEnvironmentVariable, writer io return stream.Error } -// writeAddOnEnvironmentVariable writes a value of the 'add_on_environment_variable' type to the given stream. -func writeAddOnEnvironmentVariable(object *AddOnEnvironmentVariable, stream *jsoniter.Stream) { +// WriteAddOnEnvironmentVariable writes a value of the 'add_on_environment_variable' type to the given stream. +func WriteAddOnEnvironmentVariable(object *AddOnEnvironmentVariable, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -92,13 +92,13 @@ func UnmarshalAddOnEnvironmentVariable(source interface{}) (object *AddOnEnviron if err != nil { return } - object = readAddOnEnvironmentVariable(iterator) + object = ReadAddOnEnvironmentVariable(iterator) err = iterator.Error return } -// readAddOnEnvironmentVariable reads a value of the 'add_on_environment_variable' type from the given iterator. -func readAddOnEnvironmentVariable(iterator *jsoniter.Iterator) *AddOnEnvironmentVariable { +// ReadAddOnEnvironmentVariable reads a value of the 'add_on_environment_variable' type from the given iterator. +func ReadAddOnEnvironmentVariable(iterator *jsoniter.Iterator) *AddOnEnvironmentVariable { object := &AddOnEnvironmentVariable{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/add_on_install_mode_list_type_json.go b/clustersmgmt/v1/add_on_install_mode_list_type_json.go index f781f99f5..1fd82df99 100644 --- a/clustersmgmt/v1/add_on_install_mode_list_type_json.go +++ b/clustersmgmt/v1/add_on_install_mode_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddOnInstallModeList(list []AddOnInstallMode, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnInstallModeList(list, stream) + WriteAddOnInstallModeList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalAddOnInstallModeList(list []AddOnInstallMode, writer io.Writer) erro return stream.Error } -// writeAddOnInstallModeList writes a list of value of the 'add_on_install_mode' type to +// WriteAddOnInstallModeList writes a list of value of the 'add_on_install_mode' type to // the given stream. -func writeAddOnInstallModeList(list []AddOnInstallMode, stream *jsoniter.Stream) { +func WriteAddOnInstallModeList(list []AddOnInstallMode, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalAddOnInstallModeList(source interface{}) (items []AddOnInstallMode if err != nil { return } - items = readAddOnInstallModeList(iterator) + items = ReadAddOnInstallModeList(iterator) err = iterator.Error return } -// readAddOnInstallModeList reads list of values of the ”add_on_install_mode' type from +// ReadAddOnInstallModeList reads list of values of the ”add_on_install_mode' type from // the given iterator. -func readAddOnInstallModeList(iterator *jsoniter.Iterator) []AddOnInstallMode { +func ReadAddOnInstallModeList(iterator *jsoniter.Iterator) []AddOnInstallMode { list := []AddOnInstallMode{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/add_on_installation_billing_list_type_json.go b/clustersmgmt/v1/add_on_installation_billing_list_type_json.go index 3803ec0b4..868423938 100644 --- a/clustersmgmt/v1/add_on_installation_billing_list_type_json.go +++ b/clustersmgmt/v1/add_on_installation_billing_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddOnInstallationBillingList(list []*AddOnInstallationBilling, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnInstallationBillingList(list, stream) + WriteAddOnInstallationBillingList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddOnInstallationBillingList(list []*AddOnInstallationBilling, write return stream.Error } -// writeAddOnInstallationBillingList writes a list of value of the 'add_on_installation_billing' type to +// WriteAddOnInstallationBillingList writes a list of value of the 'add_on_installation_billing' type to // the given stream. -func writeAddOnInstallationBillingList(list []*AddOnInstallationBilling, stream *jsoniter.Stream) { +func WriteAddOnInstallationBillingList(list []*AddOnInstallationBilling, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddOnInstallationBilling(value, stream) + WriteAddOnInstallationBilling(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddOnInstallationBillingList(source interface{}) (items []*AddOnIn if err != nil { return } - items = readAddOnInstallationBillingList(iterator) + items = ReadAddOnInstallationBillingList(iterator) err = iterator.Error return } -// readAddOnInstallationBillingList reads list of values of the ”add_on_installation_billing' type from +// ReadAddOnInstallationBillingList reads list of values of the ”add_on_installation_billing' type from // the given iterator. -func readAddOnInstallationBillingList(iterator *jsoniter.Iterator) []*AddOnInstallationBilling { +func ReadAddOnInstallationBillingList(iterator *jsoniter.Iterator) []*AddOnInstallationBilling { list := []*AddOnInstallationBilling{} for iterator.ReadArray() { - item := readAddOnInstallationBilling(iterator) + item := ReadAddOnInstallationBilling(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/add_on_installation_billing_type.go b/clustersmgmt/v1/add_on_installation_billing_type.go index c989b13c1..6fe9cb734 100644 --- a/clustersmgmt/v1/add_on_installation_billing_type.go +++ b/clustersmgmt/v1/add_on_installation_billing_type.go @@ -53,7 +53,7 @@ func (o *AddOnInstallationBilling) Kind() string { return AddOnInstallationBillingKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *AddOnInstallationBilling) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -206,6 +206,29 @@ func (l *AddOnInstallationBillingList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddOnInstallationBillingList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddOnInstallationBillingList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddOnInstallationBillingList) SetItems(items []*AddOnInstallationBilling) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddOnInstallationBillingList) Items() []*AddOnInstallationBilling { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddOnInstallationBillingList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/add_on_installation_billing_type_json.go b/clustersmgmt/v1/add_on_installation_billing_type_json.go index 17e295995..4448c502a 100644 --- a/clustersmgmt/v1/add_on_installation_billing_type_json.go +++ b/clustersmgmt/v1/add_on_installation_billing_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAddOnInstallationBilling writes a value of the 'add_on_installation_billing' type to the given writer. func MarshalAddOnInstallationBilling(object *AddOnInstallationBilling, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnInstallationBilling(object, stream) + WriteAddOnInstallationBilling(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAddOnInstallationBilling(object *AddOnInstallationBilling, writer io return stream.Error } -// writeAddOnInstallationBilling writes a value of the 'add_on_installation_billing' type to the given stream. -func writeAddOnInstallationBilling(object *AddOnInstallationBilling, stream *jsoniter.Stream) { +// WriteAddOnInstallationBilling writes a value of the 'add_on_installation_billing' type to the given stream. +func WriteAddOnInstallationBilling(object *AddOnInstallationBilling, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -92,13 +92,13 @@ func UnmarshalAddOnInstallationBilling(source interface{}) (object *AddOnInstall if err != nil { return } - object = readAddOnInstallationBilling(iterator) + object = ReadAddOnInstallationBilling(iterator) err = iterator.Error return } -// readAddOnInstallationBilling reads a value of the 'add_on_installation_billing' type from the given iterator. -func readAddOnInstallationBilling(iterator *jsoniter.Iterator) *AddOnInstallationBilling { +// ReadAddOnInstallationBilling reads a value of the 'add_on_installation_billing' type from the given iterator. +func ReadAddOnInstallationBilling(iterator *jsoniter.Iterator) *AddOnInstallationBilling { object := &AddOnInstallationBilling{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/add_on_installation_list_type_json.go b/clustersmgmt/v1/add_on_installation_list_type_json.go index d35b414a6..fd26b836e 100644 --- a/clustersmgmt/v1/add_on_installation_list_type_json.go +++ b/clustersmgmt/v1/add_on_installation_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddOnInstallationList(list []*AddOnInstallation, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnInstallationList(list, stream) + WriteAddOnInstallationList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddOnInstallationList(list []*AddOnInstallation, writer io.Writer) e return stream.Error } -// writeAddOnInstallationList writes a list of value of the 'add_on_installation' type to +// WriteAddOnInstallationList writes a list of value of the 'add_on_installation' type to // the given stream. -func writeAddOnInstallationList(list []*AddOnInstallation, stream *jsoniter.Stream) { +func WriteAddOnInstallationList(list []*AddOnInstallation, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddOnInstallation(value, stream) + WriteAddOnInstallation(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddOnInstallationList(source interface{}) (items []*AddOnInstallat if err != nil { return } - items = readAddOnInstallationList(iterator) + items = ReadAddOnInstallationList(iterator) err = iterator.Error return } -// readAddOnInstallationList reads list of values of the ”add_on_installation' type from +// ReadAddOnInstallationList reads list of values of the ”add_on_installation' type from // the given iterator. -func readAddOnInstallationList(iterator *jsoniter.Iterator) []*AddOnInstallation { +func ReadAddOnInstallationList(iterator *jsoniter.Iterator) []*AddOnInstallation { list := []*AddOnInstallation{} for iterator.ReadArray() { - item := readAddOnInstallation(iterator) + item := ReadAddOnInstallation(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/add_on_installation_parameter_list_type_json.go b/clustersmgmt/v1/add_on_installation_parameter_list_type_json.go index e06fca94f..902f83f07 100644 --- a/clustersmgmt/v1/add_on_installation_parameter_list_type_json.go +++ b/clustersmgmt/v1/add_on_installation_parameter_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddOnInstallationParameterList(list []*AddOnInstallationParameter, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnInstallationParameterList(list, stream) + WriteAddOnInstallationParameterList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddOnInstallationParameterList(list []*AddOnInstallationParameter, w return stream.Error } -// writeAddOnInstallationParameterList writes a list of value of the 'add_on_installation_parameter' type to +// WriteAddOnInstallationParameterList writes a list of value of the 'add_on_installation_parameter' type to // the given stream. -func writeAddOnInstallationParameterList(list []*AddOnInstallationParameter, stream *jsoniter.Stream) { +func WriteAddOnInstallationParameterList(list []*AddOnInstallationParameter, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddOnInstallationParameter(value, stream) + WriteAddOnInstallationParameter(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddOnInstallationParameterList(source interface{}) (items []*AddOn if err != nil { return } - items = readAddOnInstallationParameterList(iterator) + items = ReadAddOnInstallationParameterList(iterator) err = iterator.Error return } -// readAddOnInstallationParameterList reads list of values of the ”add_on_installation_parameter' type from +// ReadAddOnInstallationParameterList reads list of values of the ”add_on_installation_parameter' type from // the given iterator. -func readAddOnInstallationParameterList(iterator *jsoniter.Iterator) []*AddOnInstallationParameter { +func ReadAddOnInstallationParameterList(iterator *jsoniter.Iterator) []*AddOnInstallationParameter { list := []*AddOnInstallationParameter{} for iterator.ReadArray() { - item := readAddOnInstallationParameter(iterator) + item := ReadAddOnInstallationParameter(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/add_on_installation_parameter_type.go b/clustersmgmt/v1/add_on_installation_parameter_type.go index be186765c..9e2d46228 100644 --- a/clustersmgmt/v1/add_on_installation_parameter_type.go +++ b/clustersmgmt/v1/add_on_installation_parameter_type.go @@ -52,7 +52,7 @@ func (o *AddOnInstallationParameter) Kind() string { return AddOnInstallationParameterKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *AddOnInstallationParameter) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -182,6 +182,29 @@ func (l *AddOnInstallationParameterList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddOnInstallationParameterList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddOnInstallationParameterList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddOnInstallationParameterList) SetItems(items []*AddOnInstallationParameter) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddOnInstallationParameterList) Items() []*AddOnInstallationParameter { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddOnInstallationParameterList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/add_on_installation_parameter_type_json.go b/clustersmgmt/v1/add_on_installation_parameter_type_json.go index 48c50322e..c02fe9592 100644 --- a/clustersmgmt/v1/add_on_installation_parameter_type_json.go +++ b/clustersmgmt/v1/add_on_installation_parameter_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAddOnInstallationParameter writes a value of the 'add_on_installation_parameter' type to the given writer. func MarshalAddOnInstallationParameter(object *AddOnInstallationParameter, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnInstallationParameter(object, stream) + WriteAddOnInstallationParameter(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAddOnInstallationParameter(object *AddOnInstallationParameter, write return stream.Error } -// writeAddOnInstallationParameter writes a value of the 'add_on_installation_parameter' type to the given stream. -func writeAddOnInstallationParameter(object *AddOnInstallationParameter, stream *jsoniter.Stream) { +// WriteAddOnInstallationParameter writes a value of the 'add_on_installation_parameter' type to the given stream. +func WriteAddOnInstallationParameter(object *AddOnInstallationParameter, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -83,13 +83,13 @@ func UnmarshalAddOnInstallationParameter(source interface{}) (object *AddOnInsta if err != nil { return } - object = readAddOnInstallationParameter(iterator) + object = ReadAddOnInstallationParameter(iterator) err = iterator.Error return } -// readAddOnInstallationParameter reads a value of the 'add_on_installation_parameter' type from the given iterator. -func readAddOnInstallationParameter(iterator *jsoniter.Iterator) *AddOnInstallationParameter { +// ReadAddOnInstallationParameter reads a value of the 'add_on_installation_parameter' type from the given iterator. +func ReadAddOnInstallationParameter(iterator *jsoniter.Iterator) *AddOnInstallationParameter { object := &AddOnInstallationParameter{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/add_on_installation_state_list_type_json.go b/clustersmgmt/v1/add_on_installation_state_list_type_json.go index 1f1db9835..23a47f9cc 100644 --- a/clustersmgmt/v1/add_on_installation_state_list_type_json.go +++ b/clustersmgmt/v1/add_on_installation_state_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddOnInstallationStateList(list []AddOnInstallationState, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnInstallationStateList(list, stream) + WriteAddOnInstallationStateList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalAddOnInstallationStateList(list []AddOnInstallationState, writer io. return stream.Error } -// writeAddOnInstallationStateList writes a list of value of the 'add_on_installation_state' type to +// WriteAddOnInstallationStateList writes a list of value of the 'add_on_installation_state' type to // the given stream. -func writeAddOnInstallationStateList(list []AddOnInstallationState, stream *jsoniter.Stream) { +func WriteAddOnInstallationStateList(list []AddOnInstallationState, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalAddOnInstallationStateList(source interface{}) (items []AddOnInsta if err != nil { return } - items = readAddOnInstallationStateList(iterator) + items = ReadAddOnInstallationStateList(iterator) err = iterator.Error return } -// readAddOnInstallationStateList reads list of values of the ”add_on_installation_state' type from +// ReadAddOnInstallationStateList reads list of values of the ”add_on_installation_state' type from // the given iterator. -func readAddOnInstallationStateList(iterator *jsoniter.Iterator) []AddOnInstallationState { +func ReadAddOnInstallationStateList(iterator *jsoniter.Iterator) []AddOnInstallationState { list := []AddOnInstallationState{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/add_on_installation_type.go b/clustersmgmt/v1/add_on_installation_type.go index 9237bd2fb..574a81593 100644 --- a/clustersmgmt/v1/add_on_installation_type.go +++ b/clustersmgmt/v1/add_on_installation_type.go @@ -64,7 +64,7 @@ func (o *AddOnInstallation) Kind() string { return AddOnInstallationKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *AddOnInstallation) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -378,6 +378,29 @@ func (l *AddOnInstallationList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddOnInstallationList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddOnInstallationList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddOnInstallationList) SetItems(items []*AddOnInstallation) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddOnInstallationList) Items() []*AddOnInstallation { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddOnInstallationList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/add_on_installation_type_json.go b/clustersmgmt/v1/add_on_installation_type_json.go index 9843c07ad..d751816ec 100644 --- a/clustersmgmt/v1/add_on_installation_type_json.go +++ b/clustersmgmt/v1/add_on_installation_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalAddOnInstallation writes a value of the 'add_on_installation' type to the given writer. func MarshalAddOnInstallation(object *AddOnInstallation, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnInstallation(object, stream) + WriteAddOnInstallation(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalAddOnInstallation(object *AddOnInstallation, writer io.Writer) error return stream.Error } -// writeAddOnInstallation writes a value of the 'add_on_installation' type to the given stream. -func writeAddOnInstallation(object *AddOnInstallation, stream *jsoniter.Stream) { +// WriteAddOnInstallation writes a value of the 'add_on_installation' type to the given stream. +func WriteAddOnInstallation(object *AddOnInstallation, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -72,7 +72,7 @@ func writeAddOnInstallation(object *AddOnInstallation, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("addon") - writeAddOn(object.addon, stream) + WriteAddOn(object.addon, stream) count++ } present_ = object.bitmap_&16 != 0 && object.addonVersion != nil @@ -81,7 +81,7 @@ func writeAddOnInstallation(object *AddOnInstallation, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("addon_version") - writeAddOnVersion(object.addonVersion, stream) + WriteAddOnVersion(object.addonVersion, stream) count++ } present_ = object.bitmap_&32 != 0 && object.billing != nil @@ -90,7 +90,7 @@ func writeAddOnInstallation(object *AddOnInstallation, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("billing") - writeAddOnInstallationBilling(object.billing, stream) + WriteAddOnInstallationBilling(object.billing, stream) count++ } present_ = object.bitmap_&64 != 0 @@ -119,7 +119,7 @@ func writeAddOnInstallation(object *AddOnInstallation, stream *jsoniter.Stream) stream.WriteObjectField("parameters") stream.WriteObjectStart() stream.WriteObjectField("items") - writeAddOnInstallationParameterList(object.parameters.items, stream) + WriteAddOnInstallationParameterList(object.parameters.Items(), stream) stream.WriteObjectEnd() count++ } @@ -159,13 +159,13 @@ func UnmarshalAddOnInstallation(source interface{}) (object *AddOnInstallation, if err != nil { return } - object = readAddOnInstallation(iterator) + object = ReadAddOnInstallation(iterator) err = iterator.Error return } -// readAddOnInstallation reads a value of the 'add_on_installation' type from the given iterator. -func readAddOnInstallation(iterator *jsoniter.Iterator) *AddOnInstallation { +// ReadAddOnInstallation reads a value of the 'add_on_installation' type from the given iterator. +func ReadAddOnInstallation(iterator *jsoniter.Iterator) *AddOnInstallation { object := &AddOnInstallation{} for { field := iterator.ReadObject() @@ -185,15 +185,15 @@ func readAddOnInstallation(iterator *jsoniter.Iterator) *AddOnInstallation { object.href = iterator.ReadString() object.bitmap_ |= 4 case "addon": - value := readAddOn(iterator) + value := ReadAddOn(iterator) object.addon = value object.bitmap_ |= 8 case "addon_version": - value := readAddOnVersion(iterator) + value := ReadAddOnVersion(iterator) object.addonVersion = value object.bitmap_ |= 16 case "billing": - value := readAddOnInstallationBilling(iterator) + value := ReadAddOnInstallationBilling(iterator) object.billing = value object.bitmap_ |= 32 case "creation_timestamp": @@ -218,11 +218,11 @@ func readAddOnInstallation(iterator *jsoniter.Iterator) *AddOnInstallation { switch field { case "kind": text := iterator.ReadString() - value.link = text == AddOnInstallationParameterListLinkKind + value.SetLink(text == AddOnInstallationParameterListLinkKind) case "href": - value.href = iterator.ReadString() + value.SetHREF(iterator.ReadString()) case "items": - value.items = readAddOnInstallationParameterList(iterator) + value.SetItems(ReadAddOnInstallationParameterList(iterator)) default: iterator.ReadAny() } diff --git a/clustersmgmt/v1/add_on_installations_resource_json.go b/clustersmgmt/v1/add_on_installations_resource_json.go index 8bb568d90..277527d58 100644 --- a/clustersmgmt/v1/add_on_installations_resource_json.go +++ b/clustersmgmt/v1/add_on_installations_resource_json.go @@ -57,7 +57,7 @@ func readAddOnInstallationsListResponse(response *AddOnInstallationsListResponse value := iterator.ReadInt() response.total = &value case "items": - items := readAddOnInstallationList(iterator) + items := ReadAddOnInstallationList(iterator) response.items = &AddOnInstallationList{ items: items, } diff --git a/clustersmgmt/v1/add_on_list_type_json.go b/clustersmgmt/v1/add_on_list_type_json.go index 5c5c2dd12..6fdaea23c 100644 --- a/clustersmgmt/v1/add_on_list_type_json.go +++ b/clustersmgmt/v1/add_on_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddOnList(list []*AddOn, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnList(list, stream) + WriteAddOnList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddOnList(list []*AddOn, writer io.Writer) error { return stream.Error } -// writeAddOnList writes a list of value of the 'add_on' type to +// WriteAddOnList writes a list of value of the 'add_on' type to // the given stream. -func writeAddOnList(list []*AddOn, stream *jsoniter.Stream) { +func WriteAddOnList(list []*AddOn, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddOn(value, stream) + WriteAddOn(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddOnList(source interface{}) (items []*AddOn, err error) { if err != nil { return } - items = readAddOnList(iterator) + items = ReadAddOnList(iterator) err = iterator.Error return } -// readAddOnList reads list of values of the ”add_on' type from +// ReadAddOnList reads list of values of the ”add_on' type from // the given iterator. -func readAddOnList(iterator *jsoniter.Iterator) []*AddOn { +func ReadAddOnList(iterator *jsoniter.Iterator) []*AddOn { list := []*AddOn{} for iterator.ReadArray() { - item := readAddOn(iterator) + item := ReadAddOn(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/add_on_namespace_list_type_json.go b/clustersmgmt/v1/add_on_namespace_list_type_json.go index bd4b7cec4..d6a8fc6da 100644 --- a/clustersmgmt/v1/add_on_namespace_list_type_json.go +++ b/clustersmgmt/v1/add_on_namespace_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddOnNamespaceList(list []*AddOnNamespace, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnNamespaceList(list, stream) + WriteAddOnNamespaceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddOnNamespaceList(list []*AddOnNamespace, writer io.Writer) error { return stream.Error } -// writeAddOnNamespaceList writes a list of value of the 'add_on_namespace' type to +// WriteAddOnNamespaceList writes a list of value of the 'add_on_namespace' type to // the given stream. -func writeAddOnNamespaceList(list []*AddOnNamespace, stream *jsoniter.Stream) { +func WriteAddOnNamespaceList(list []*AddOnNamespace, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddOnNamespace(value, stream) + WriteAddOnNamespace(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddOnNamespaceList(source interface{}) (items []*AddOnNamespace, e if err != nil { return } - items = readAddOnNamespaceList(iterator) + items = ReadAddOnNamespaceList(iterator) err = iterator.Error return } -// readAddOnNamespaceList reads list of values of the ”add_on_namespace' type from +// ReadAddOnNamespaceList reads list of values of the ”add_on_namespace' type from // the given iterator. -func readAddOnNamespaceList(iterator *jsoniter.Iterator) []*AddOnNamespace { +func ReadAddOnNamespaceList(iterator *jsoniter.Iterator) []*AddOnNamespace { list := []*AddOnNamespace{} for iterator.ReadArray() { - item := readAddOnNamespace(iterator) + item := ReadAddOnNamespace(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/add_on_namespace_type.go b/clustersmgmt/v1/add_on_namespace_type.go index 925a98ed7..09c3d6e03 100644 --- a/clustersmgmt/v1/add_on_namespace_type.go +++ b/clustersmgmt/v1/add_on_namespace_type.go @@ -52,7 +52,7 @@ func (o *AddOnNamespace) Kind() string { return AddOnNamespaceKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *AddOnNamespace) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -228,6 +228,29 @@ func (l *AddOnNamespaceList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddOnNamespaceList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddOnNamespaceList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddOnNamespaceList) SetItems(items []*AddOnNamespace) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddOnNamespaceList) Items() []*AddOnNamespace { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddOnNamespaceList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/add_on_namespace_type_json.go b/clustersmgmt/v1/add_on_namespace_type_json.go index e3dcc1287..4cf90f58a 100644 --- a/clustersmgmt/v1/add_on_namespace_type_json.go +++ b/clustersmgmt/v1/add_on_namespace_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalAddOnNamespace writes a value of the 'add_on_namespace' type to the given writer. func MarshalAddOnNamespace(object *AddOnNamespace, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnNamespace(object, stream) + WriteAddOnNamespace(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalAddOnNamespace(object *AddOnNamespace, writer io.Writer) error { return stream.Error } -// writeAddOnNamespace writes a value of the 'add_on_namespace' type to the given stream. -func writeAddOnNamespace(object *AddOnNamespace, stream *jsoniter.Stream) { +// WriteAddOnNamespace writes a value of the 'add_on_namespace' type to the given stream. +func WriteAddOnNamespace(object *AddOnNamespace, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -142,13 +142,13 @@ func UnmarshalAddOnNamespace(source interface{}) (object *AddOnNamespace, err er if err != nil { return } - object = readAddOnNamespace(iterator) + object = ReadAddOnNamespace(iterator) err = iterator.Error return } -// readAddOnNamespace reads a value of the 'add_on_namespace' type from the given iterator. -func readAddOnNamespace(iterator *jsoniter.Iterator) *AddOnNamespace { +// ReadAddOnNamespace reads a value of the 'add_on_namespace' type from the given iterator. +func ReadAddOnNamespace(iterator *jsoniter.Iterator) *AddOnNamespace { object := &AddOnNamespace{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/add_on_parameter_list_type_json.go b/clustersmgmt/v1/add_on_parameter_list_type_json.go index 2dbf89e06..078a44b2f 100644 --- a/clustersmgmt/v1/add_on_parameter_list_type_json.go +++ b/clustersmgmt/v1/add_on_parameter_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddOnParameterList(list []*AddOnParameter, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnParameterList(list, stream) + WriteAddOnParameterList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddOnParameterList(list []*AddOnParameter, writer io.Writer) error { return stream.Error } -// writeAddOnParameterList writes a list of value of the 'add_on_parameter' type to +// WriteAddOnParameterList writes a list of value of the 'add_on_parameter' type to // the given stream. -func writeAddOnParameterList(list []*AddOnParameter, stream *jsoniter.Stream) { +func WriteAddOnParameterList(list []*AddOnParameter, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddOnParameter(value, stream) + WriteAddOnParameter(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddOnParameterList(source interface{}) (items []*AddOnParameter, e if err != nil { return } - items = readAddOnParameterList(iterator) + items = ReadAddOnParameterList(iterator) err = iterator.Error return } -// readAddOnParameterList reads list of values of the ”add_on_parameter' type from +// ReadAddOnParameterList reads list of values of the ”add_on_parameter' type from // the given iterator. -func readAddOnParameterList(iterator *jsoniter.Iterator) []*AddOnParameter { +func ReadAddOnParameterList(iterator *jsoniter.Iterator) []*AddOnParameter { list := []*AddOnParameter{} for iterator.ReadArray() { - item := readAddOnParameter(iterator) + item := ReadAddOnParameter(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/add_on_parameter_option_list_type_json.go b/clustersmgmt/v1/add_on_parameter_option_list_type_json.go index 67ebdba9d..ccae2e905 100644 --- a/clustersmgmt/v1/add_on_parameter_option_list_type_json.go +++ b/clustersmgmt/v1/add_on_parameter_option_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddOnParameterOptionList(list []*AddOnParameterOption, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnParameterOptionList(list, stream) + WriteAddOnParameterOptionList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddOnParameterOptionList(list []*AddOnParameterOption, writer io.Wri return stream.Error } -// writeAddOnParameterOptionList writes a list of value of the 'add_on_parameter_option' type to +// WriteAddOnParameterOptionList writes a list of value of the 'add_on_parameter_option' type to // the given stream. -func writeAddOnParameterOptionList(list []*AddOnParameterOption, stream *jsoniter.Stream) { +func WriteAddOnParameterOptionList(list []*AddOnParameterOption, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddOnParameterOption(value, stream) + WriteAddOnParameterOption(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddOnParameterOptionList(source interface{}) (items []*AddOnParame if err != nil { return } - items = readAddOnParameterOptionList(iterator) + items = ReadAddOnParameterOptionList(iterator) err = iterator.Error return } -// readAddOnParameterOptionList reads list of values of the ”add_on_parameter_option' type from +// ReadAddOnParameterOptionList reads list of values of the ”add_on_parameter_option' type from // the given iterator. -func readAddOnParameterOptionList(iterator *jsoniter.Iterator) []*AddOnParameterOption { +func ReadAddOnParameterOptionList(iterator *jsoniter.Iterator) []*AddOnParameterOption { list := []*AddOnParameterOption{} for iterator.ReadArray() { - item := readAddOnParameterOption(iterator) + item := ReadAddOnParameterOption(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/add_on_parameter_option_type.go b/clustersmgmt/v1/add_on_parameter_option_type.go index 60e26c359..bf7df94b3 100644 --- a/clustersmgmt/v1/add_on_parameter_option_type.go +++ b/clustersmgmt/v1/add_on_parameter_option_type.go @@ -154,6 +154,29 @@ func (l *AddOnParameterOptionList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddOnParameterOptionList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddOnParameterOptionList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddOnParameterOptionList) SetItems(items []*AddOnParameterOption) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddOnParameterOptionList) Items() []*AddOnParameterOption { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddOnParameterOptionList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/add_on_parameter_option_type_json.go b/clustersmgmt/v1/add_on_parameter_option_type_json.go index fc9b6f2f4..a2970170f 100644 --- a/clustersmgmt/v1/add_on_parameter_option_type_json.go +++ b/clustersmgmt/v1/add_on_parameter_option_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAddOnParameterOption writes a value of the 'add_on_parameter_option' type to the given writer. func MarshalAddOnParameterOption(object *AddOnParameterOption, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnParameterOption(object, stream) + WriteAddOnParameterOption(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAddOnParameterOption(object *AddOnParameterOption, writer io.Writer) return stream.Error } -// writeAddOnParameterOption writes a value of the 'add_on_parameter_option' type to the given stream. -func writeAddOnParameterOption(object *AddOnParameterOption, stream *jsoniter.Stream) { +// WriteAddOnParameterOption writes a value of the 'add_on_parameter_option' type to the given stream. +func WriteAddOnParameterOption(object *AddOnParameterOption, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -66,7 +66,7 @@ func writeAddOnParameterOption(object *AddOnParameterOption, stream *jsoniter.St stream.WriteMore() } stream.WriteObjectField("requirements") - writeAddOnRequirementList(object.requirements, stream) + WriteAddOnRequirementList(object.requirements, stream) count++ } present_ = object.bitmap_&8 != 0 @@ -87,13 +87,13 @@ func UnmarshalAddOnParameterOption(source interface{}) (object *AddOnParameterOp if err != nil { return } - object = readAddOnParameterOption(iterator) + object = ReadAddOnParameterOption(iterator) err = iterator.Error return } -// readAddOnParameterOption reads a value of the 'add_on_parameter_option' type from the given iterator. -func readAddOnParameterOption(iterator *jsoniter.Iterator) *AddOnParameterOption { +// ReadAddOnParameterOption reads a value of the 'add_on_parameter_option' type from the given iterator. +func ReadAddOnParameterOption(iterator *jsoniter.Iterator) *AddOnParameterOption { object := &AddOnParameterOption{} for { field := iterator.ReadObject() @@ -110,7 +110,7 @@ func readAddOnParameterOption(iterator *jsoniter.Iterator) *AddOnParameterOption object.rank = value object.bitmap_ |= 2 case "requirements": - value := readAddOnRequirementList(iterator) + value := ReadAddOnRequirementList(iterator) object.requirements = value object.bitmap_ |= 4 case "value": diff --git a/clustersmgmt/v1/add_on_parameter_type.go b/clustersmgmt/v1/add_on_parameter_type.go index f5b6bcdb3..9c298b213 100644 --- a/clustersmgmt/v1/add_on_parameter_type.go +++ b/clustersmgmt/v1/add_on_parameter_type.go @@ -64,7 +64,7 @@ func (o *AddOnParameter) Kind() string { return AddOnParameterKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *AddOnParameter) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -472,6 +472,29 @@ func (l *AddOnParameterList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddOnParameterList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddOnParameterList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddOnParameterList) SetItems(items []*AddOnParameter) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddOnParameterList) Items() []*AddOnParameter { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddOnParameterList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/add_on_parameter_type_json.go b/clustersmgmt/v1/add_on_parameter_type_json.go index 278ddf632..49b6d50f0 100644 --- a/clustersmgmt/v1/add_on_parameter_type_json.go +++ b/clustersmgmt/v1/add_on_parameter_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAddOnParameter writes a value of the 'add_on_parameter' type to the given writer. func MarshalAddOnParameter(object *AddOnParameter, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnParameter(object, stream) + WriteAddOnParameter(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAddOnParameter(object *AddOnParameter, writer io.Writer) error { return stream.Error } -// writeAddOnParameter writes a value of the 'add_on_parameter' type to the given stream. -func writeAddOnParameter(object *AddOnParameter, stream *jsoniter.Stream) { +// WriteAddOnParameter writes a value of the 'add_on_parameter' type to the given stream. +func WriteAddOnParameter(object *AddOnParameter, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -71,7 +71,7 @@ func writeAddOnParameter(object *AddOnParameter, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("addon") - writeAddOn(object.addon, stream) + WriteAddOn(object.addon, stream) count++ } present_ = object.bitmap_&16 != 0 && object.conditions != nil @@ -80,7 +80,7 @@ func writeAddOnParameter(object *AddOnParameter, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("conditions") - writeAddOnRequirementList(object.conditions, stream) + WriteAddOnRequirementList(object.conditions, stream) count++ } present_ = object.bitmap_&32 != 0 @@ -143,7 +143,7 @@ func writeAddOnParameter(object *AddOnParameter, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("options") - writeAddOnParameterOptionList(object.options, stream) + WriteAddOnParameterOptionList(object.options, stream) count++ } present_ = object.bitmap_&4096 != 0 @@ -191,13 +191,13 @@ func UnmarshalAddOnParameter(source interface{}) (object *AddOnParameter, err er if err != nil { return } - object = readAddOnParameter(iterator) + object = ReadAddOnParameter(iterator) err = iterator.Error return } -// readAddOnParameter reads a value of the 'add_on_parameter' type from the given iterator. -func readAddOnParameter(iterator *jsoniter.Iterator) *AddOnParameter { +// ReadAddOnParameter reads a value of the 'add_on_parameter' type from the given iterator. +func ReadAddOnParameter(iterator *jsoniter.Iterator) *AddOnParameter { object := &AddOnParameter{} for { field := iterator.ReadObject() @@ -217,11 +217,11 @@ func readAddOnParameter(iterator *jsoniter.Iterator) *AddOnParameter { object.href = iterator.ReadString() object.bitmap_ |= 4 case "addon": - value := readAddOn(iterator) + value := ReadAddOn(iterator) object.addon = value object.bitmap_ |= 8 case "conditions": - value := readAddOnRequirementList(iterator) + value := ReadAddOnRequirementList(iterator) object.conditions = value object.bitmap_ |= 16 case "default_value": @@ -249,7 +249,7 @@ func readAddOnParameter(iterator *jsoniter.Iterator) *AddOnParameter { object.name = value object.bitmap_ |= 1024 case "options": - value := readAddOnParameterOptionList(iterator) + value := ReadAddOnParameterOptionList(iterator) object.options = value object.bitmap_ |= 2048 case "required": diff --git a/clustersmgmt/v1/add_on_requirement_list_type_json.go b/clustersmgmt/v1/add_on_requirement_list_type_json.go index 439a6ec80..63fab2e76 100644 --- a/clustersmgmt/v1/add_on_requirement_list_type_json.go +++ b/clustersmgmt/v1/add_on_requirement_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddOnRequirementList(list []*AddOnRequirement, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnRequirementList(list, stream) + WriteAddOnRequirementList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddOnRequirementList(list []*AddOnRequirement, writer io.Writer) err return stream.Error } -// writeAddOnRequirementList writes a list of value of the 'add_on_requirement' type to +// WriteAddOnRequirementList writes a list of value of the 'add_on_requirement' type to // the given stream. -func writeAddOnRequirementList(list []*AddOnRequirement, stream *jsoniter.Stream) { +func WriteAddOnRequirementList(list []*AddOnRequirement, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddOnRequirement(value, stream) + WriteAddOnRequirement(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddOnRequirementList(source interface{}) (items []*AddOnRequiremen if err != nil { return } - items = readAddOnRequirementList(iterator) + items = ReadAddOnRequirementList(iterator) err = iterator.Error return } -// readAddOnRequirementList reads list of values of the ”add_on_requirement' type from +// ReadAddOnRequirementList reads list of values of the ”add_on_requirement' type from // the given iterator. -func readAddOnRequirementList(iterator *jsoniter.Iterator) []*AddOnRequirement { +func ReadAddOnRequirementList(iterator *jsoniter.Iterator) []*AddOnRequirement { list := []*AddOnRequirement{} for iterator.ReadArray() { - item := readAddOnRequirement(iterator) + item := ReadAddOnRequirement(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/add_on_requirement_status_list_type_json.go b/clustersmgmt/v1/add_on_requirement_status_list_type_json.go index d4da510be..332f7cbd5 100644 --- a/clustersmgmt/v1/add_on_requirement_status_list_type_json.go +++ b/clustersmgmt/v1/add_on_requirement_status_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddOnRequirementStatusList(list []*AddOnRequirementStatus, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnRequirementStatusList(list, stream) + WriteAddOnRequirementStatusList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddOnRequirementStatusList(list []*AddOnRequirementStatus, writer io return stream.Error } -// writeAddOnRequirementStatusList writes a list of value of the 'add_on_requirement_status' type to +// WriteAddOnRequirementStatusList writes a list of value of the 'add_on_requirement_status' type to // the given stream. -func writeAddOnRequirementStatusList(list []*AddOnRequirementStatus, stream *jsoniter.Stream) { +func WriteAddOnRequirementStatusList(list []*AddOnRequirementStatus, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddOnRequirementStatus(value, stream) + WriteAddOnRequirementStatus(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddOnRequirementStatusList(source interface{}) (items []*AddOnRequ if err != nil { return } - items = readAddOnRequirementStatusList(iterator) + items = ReadAddOnRequirementStatusList(iterator) err = iterator.Error return } -// readAddOnRequirementStatusList reads list of values of the ”add_on_requirement_status' type from +// ReadAddOnRequirementStatusList reads list of values of the ”add_on_requirement_status' type from // the given iterator. -func readAddOnRequirementStatusList(iterator *jsoniter.Iterator) []*AddOnRequirementStatus { +func ReadAddOnRequirementStatusList(iterator *jsoniter.Iterator) []*AddOnRequirementStatus { list := []*AddOnRequirementStatus{} for iterator.ReadArray() { - item := readAddOnRequirementStatus(iterator) + item := ReadAddOnRequirementStatus(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/add_on_requirement_status_type.go b/clustersmgmt/v1/add_on_requirement_status_type.go index 6dd948309..380d1ff4a 100644 --- a/clustersmgmt/v1/add_on_requirement_status_type.go +++ b/clustersmgmt/v1/add_on_requirement_status_type.go @@ -106,6 +106,29 @@ func (l *AddOnRequirementStatusList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddOnRequirementStatusList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddOnRequirementStatusList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddOnRequirementStatusList) SetItems(items []*AddOnRequirementStatus) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddOnRequirementStatusList) Items() []*AddOnRequirementStatus { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddOnRequirementStatusList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/add_on_requirement_status_type_json.go b/clustersmgmt/v1/add_on_requirement_status_type_json.go index a34219f8a..da6d51b2b 100644 --- a/clustersmgmt/v1/add_on_requirement_status_type_json.go +++ b/clustersmgmt/v1/add_on_requirement_status_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAddOnRequirementStatus writes a value of the 'add_on_requirement_status' type to the given writer. func MarshalAddOnRequirementStatus(object *AddOnRequirementStatus, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnRequirementStatus(object, stream) + WriteAddOnRequirementStatus(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAddOnRequirementStatus(object *AddOnRequirementStatus, writer io.Wri return stream.Error } -// writeAddOnRequirementStatus writes a value of the 'add_on_requirement_status' type to the given stream. -func writeAddOnRequirementStatus(object *AddOnRequirementStatus, stream *jsoniter.Stream) { +// WriteAddOnRequirementStatus writes a value of the 'add_on_requirement_status' type to the given stream. +func WriteAddOnRequirementStatus(object *AddOnRequirementStatus, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeAddOnRequirementStatus(object *AddOnRequirementStatus, stream *jsonite stream.WriteMore() } stream.WriteObjectField("error_msgs") - writeStringList(object.errorMsgs, stream) + WriteStringList(object.errorMsgs, stream) count++ } present_ = object.bitmap_&2 != 0 @@ -69,13 +69,13 @@ func UnmarshalAddOnRequirementStatus(source interface{}) (object *AddOnRequireme if err != nil { return } - object = readAddOnRequirementStatus(iterator) + object = ReadAddOnRequirementStatus(iterator) err = iterator.Error return } -// readAddOnRequirementStatus reads a value of the 'add_on_requirement_status' type from the given iterator. -func readAddOnRequirementStatus(iterator *jsoniter.Iterator) *AddOnRequirementStatus { +// ReadAddOnRequirementStatus reads a value of the 'add_on_requirement_status' type from the given iterator. +func ReadAddOnRequirementStatus(iterator *jsoniter.Iterator) *AddOnRequirementStatus { object := &AddOnRequirementStatus{} for { field := iterator.ReadObject() @@ -84,7 +84,7 @@ func readAddOnRequirementStatus(iterator *jsoniter.Iterator) *AddOnRequirementSt } switch field { case "error_msgs": - value := readStringList(iterator) + value := ReadStringList(iterator) object.errorMsgs = value object.bitmap_ |= 1 case "fulfilled": diff --git a/clustersmgmt/v1/add_on_requirement_type.go b/clustersmgmt/v1/add_on_requirement_type.go index c20176f5c..ed06861ef 100644 --- a/clustersmgmt/v1/add_on_requirement_type.go +++ b/clustersmgmt/v1/add_on_requirement_type.go @@ -178,6 +178,29 @@ func (l *AddOnRequirementList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddOnRequirementList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddOnRequirementList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddOnRequirementList) SetItems(items []*AddOnRequirement) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddOnRequirementList) Items() []*AddOnRequirement { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddOnRequirementList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/add_on_requirement_type_json.go b/clustersmgmt/v1/add_on_requirement_type_json.go index 85118f9b3..5f8ddd9c9 100644 --- a/clustersmgmt/v1/add_on_requirement_type_json.go +++ b/clustersmgmt/v1/add_on_requirement_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalAddOnRequirement writes a value of the 'add_on_requirement' type to the given writer. func MarshalAddOnRequirement(object *AddOnRequirement, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnRequirement(object, stream) + WriteAddOnRequirement(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalAddOnRequirement(object *AddOnRequirement, writer io.Writer) error { return stream.Error } -// writeAddOnRequirement writes a value of the 'add_on_requirement' type to the given stream. -func writeAddOnRequirement(object *AddOnRequirement, stream *jsoniter.Stream) { +// WriteAddOnRequirement writes a value of the 'add_on_requirement' type to the given stream. +func WriteAddOnRequirement(object *AddOnRequirement, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -105,7 +105,7 @@ func writeAddOnRequirement(object *AddOnRequirement, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("status") - writeAddOnRequirementStatus(object.status, stream) + WriteAddOnRequirementStatus(object.status, stream) } stream.WriteObjectEnd() } @@ -117,13 +117,13 @@ func UnmarshalAddOnRequirement(source interface{}) (object *AddOnRequirement, er if err != nil { return } - object = readAddOnRequirement(iterator) + object = ReadAddOnRequirement(iterator) err = iterator.Error return } -// readAddOnRequirement reads a value of the 'add_on_requirement' type from the given iterator. -func readAddOnRequirement(iterator *jsoniter.Iterator) *AddOnRequirement { +// ReadAddOnRequirement reads a value of the 'add_on_requirement' type from the given iterator. +func ReadAddOnRequirement(iterator *jsoniter.Iterator) *AddOnRequirement { object := &AddOnRequirement{} for { field := iterator.ReadObject() @@ -157,7 +157,7 @@ func readAddOnRequirement(iterator *jsoniter.Iterator) *AddOnRequirement { object.resource = value object.bitmap_ |= 8 case "status": - value := readAddOnRequirementStatus(iterator) + value := ReadAddOnRequirementStatus(iterator) object.status = value object.bitmap_ |= 16 default: diff --git a/clustersmgmt/v1/add_on_secret_propagation_list_type_json.go b/clustersmgmt/v1/add_on_secret_propagation_list_type_json.go index 84df79317..560d79e5d 100644 --- a/clustersmgmt/v1/add_on_secret_propagation_list_type_json.go +++ b/clustersmgmt/v1/add_on_secret_propagation_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddOnSecretPropagationList(list []*AddOnSecretPropagation, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnSecretPropagationList(list, stream) + WriteAddOnSecretPropagationList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddOnSecretPropagationList(list []*AddOnSecretPropagation, writer io return stream.Error } -// writeAddOnSecretPropagationList writes a list of value of the 'add_on_secret_propagation' type to +// WriteAddOnSecretPropagationList writes a list of value of the 'add_on_secret_propagation' type to // the given stream. -func writeAddOnSecretPropagationList(list []*AddOnSecretPropagation, stream *jsoniter.Stream) { +func WriteAddOnSecretPropagationList(list []*AddOnSecretPropagation, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddOnSecretPropagation(value, stream) + WriteAddOnSecretPropagation(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddOnSecretPropagationList(source interface{}) (items []*AddOnSecr if err != nil { return } - items = readAddOnSecretPropagationList(iterator) + items = ReadAddOnSecretPropagationList(iterator) err = iterator.Error return } -// readAddOnSecretPropagationList reads list of values of the ”add_on_secret_propagation' type from +// ReadAddOnSecretPropagationList reads list of values of the ”add_on_secret_propagation' type from // the given iterator. -func readAddOnSecretPropagationList(iterator *jsoniter.Iterator) []*AddOnSecretPropagation { +func ReadAddOnSecretPropagationList(iterator *jsoniter.Iterator) []*AddOnSecretPropagation { list := []*AddOnSecretPropagation{} for iterator.ReadArray() { - item := readAddOnSecretPropagation(iterator) + item := ReadAddOnSecretPropagation(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/add_on_secret_propagation_type.go b/clustersmgmt/v1/add_on_secret_propagation_type.go index cb7f0625a..bdd5f0e51 100644 --- a/clustersmgmt/v1/add_on_secret_propagation_type.go +++ b/clustersmgmt/v1/add_on_secret_propagation_type.go @@ -154,6 +154,29 @@ func (l *AddOnSecretPropagationList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddOnSecretPropagationList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddOnSecretPropagationList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddOnSecretPropagationList) SetItems(items []*AddOnSecretPropagation) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddOnSecretPropagationList) Items() []*AddOnSecretPropagation { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddOnSecretPropagationList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/add_on_secret_propagation_type_json.go b/clustersmgmt/v1/add_on_secret_propagation_type_json.go index 923cb1a7e..680c43fb7 100644 --- a/clustersmgmt/v1/add_on_secret_propagation_type_json.go +++ b/clustersmgmt/v1/add_on_secret_propagation_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAddOnSecretPropagation writes a value of the 'add_on_secret_propagation' type to the given writer. func MarshalAddOnSecretPropagation(object *AddOnSecretPropagation, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnSecretPropagation(object, stream) + WriteAddOnSecretPropagation(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAddOnSecretPropagation(object *AddOnSecretPropagation, writer io.Wri return stream.Error } -// writeAddOnSecretPropagation writes a value of the 'add_on_secret_propagation' type to the given stream. -func writeAddOnSecretPropagation(object *AddOnSecretPropagation, stream *jsoniter.Stream) { +// WriteAddOnSecretPropagation writes a value of the 'add_on_secret_propagation' type to the given stream. +func WriteAddOnSecretPropagation(object *AddOnSecretPropagation, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -87,13 +87,13 @@ func UnmarshalAddOnSecretPropagation(source interface{}) (object *AddOnSecretPro if err != nil { return } - object = readAddOnSecretPropagation(iterator) + object = ReadAddOnSecretPropagation(iterator) err = iterator.Error return } -// readAddOnSecretPropagation reads a value of the 'add_on_secret_propagation' type from the given iterator. -func readAddOnSecretPropagation(iterator *jsoniter.Iterator) *AddOnSecretPropagation { +// ReadAddOnSecretPropagation reads a value of the 'add_on_secret_propagation' type from the given iterator. +func ReadAddOnSecretPropagation(iterator *jsoniter.Iterator) *AddOnSecretPropagation { object := &AddOnSecretPropagation{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/add_on_sub_operator_list_type_json.go b/clustersmgmt/v1/add_on_sub_operator_list_type_json.go index decb5ab11..fb57e9d6e 100644 --- a/clustersmgmt/v1/add_on_sub_operator_list_type_json.go +++ b/clustersmgmt/v1/add_on_sub_operator_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddOnSubOperatorList(list []*AddOnSubOperator, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnSubOperatorList(list, stream) + WriteAddOnSubOperatorList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddOnSubOperatorList(list []*AddOnSubOperator, writer io.Writer) err return stream.Error } -// writeAddOnSubOperatorList writes a list of value of the 'add_on_sub_operator' type to +// WriteAddOnSubOperatorList writes a list of value of the 'add_on_sub_operator' type to // the given stream. -func writeAddOnSubOperatorList(list []*AddOnSubOperator, stream *jsoniter.Stream) { +func WriteAddOnSubOperatorList(list []*AddOnSubOperator, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddOnSubOperator(value, stream) + WriteAddOnSubOperator(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddOnSubOperatorList(source interface{}) (items []*AddOnSubOperato if err != nil { return } - items = readAddOnSubOperatorList(iterator) + items = ReadAddOnSubOperatorList(iterator) err = iterator.Error return } -// readAddOnSubOperatorList reads list of values of the ”add_on_sub_operator' type from +// ReadAddOnSubOperatorList reads list of values of the ”add_on_sub_operator' type from // the given iterator. -func readAddOnSubOperatorList(iterator *jsoniter.Iterator) []*AddOnSubOperator { +func ReadAddOnSubOperatorList(iterator *jsoniter.Iterator) []*AddOnSubOperator { list := []*AddOnSubOperator{} for iterator.ReadArray() { - item := readAddOnSubOperator(iterator) + item := ReadAddOnSubOperator(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/add_on_sub_operator_type.go b/clustersmgmt/v1/add_on_sub_operator_type.go index 71b438e05..4309b8913 100644 --- a/clustersmgmt/v1/add_on_sub_operator_type.go +++ b/clustersmgmt/v1/add_on_sub_operator_type.go @@ -131,6 +131,29 @@ func (l *AddOnSubOperatorList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddOnSubOperatorList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddOnSubOperatorList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddOnSubOperatorList) SetItems(items []*AddOnSubOperator) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddOnSubOperatorList) Items() []*AddOnSubOperator { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddOnSubOperatorList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/add_on_sub_operator_type_json.go b/clustersmgmt/v1/add_on_sub_operator_type_json.go index bb09a7144..4509d82c9 100644 --- a/clustersmgmt/v1/add_on_sub_operator_type_json.go +++ b/clustersmgmt/v1/add_on_sub_operator_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAddOnSubOperator writes a value of the 'add_on_sub_operator' type to the given writer. func MarshalAddOnSubOperator(object *AddOnSubOperator, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnSubOperator(object, stream) + WriteAddOnSubOperator(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAddOnSubOperator(object *AddOnSubOperator, writer io.Writer) error { return stream.Error } -// writeAddOnSubOperator writes a value of the 'add_on_sub_operator' type to the given stream. -func writeAddOnSubOperator(object *AddOnSubOperator, stream *jsoniter.Stream) { +// WriteAddOnSubOperator writes a value of the 'add_on_sub_operator' type to the given stream. +func WriteAddOnSubOperator(object *AddOnSubOperator, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -78,13 +78,13 @@ func UnmarshalAddOnSubOperator(source interface{}) (object *AddOnSubOperator, er if err != nil { return } - object = readAddOnSubOperator(iterator) + object = ReadAddOnSubOperator(iterator) err = iterator.Error return } -// readAddOnSubOperator reads a value of the 'add_on_sub_operator' type from the given iterator. -func readAddOnSubOperator(iterator *jsoniter.Iterator) *AddOnSubOperator { +// ReadAddOnSubOperator reads a value of the 'add_on_sub_operator' type from the given iterator. +func ReadAddOnSubOperator(iterator *jsoniter.Iterator) *AddOnSubOperator { object := &AddOnSubOperator{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/add_on_type.go b/clustersmgmt/v1/add_on_type.go index 88bee7b1a..a2d18f9f3 100644 --- a/clustersmgmt/v1/add_on_type.go +++ b/clustersmgmt/v1/add_on_type.go @@ -74,7 +74,7 @@ func (o *AddOn) Kind() string { return AddOnKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *AddOn) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -710,6 +710,29 @@ func (l *AddOnList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddOnList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddOnList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddOnList) SetItems(items []*AddOn) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddOnList) Items() []*AddOn { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddOnList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/add_on_type_json.go b/clustersmgmt/v1/add_on_type_json.go index 30a0f9219..986e191a0 100644 --- a/clustersmgmt/v1/add_on_type_json.go +++ b/clustersmgmt/v1/add_on_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalAddOn writes a value of the 'add_on' type to the given writer. func MarshalAddOn(object *AddOn, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOn(object, stream) + WriteAddOn(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalAddOn(object *AddOn, writer io.Writer) error { return stream.Error } -// writeAddOn writes a value of the 'add_on' type to the given stream. -func writeAddOn(object *AddOn, stream *jsoniter.Stream) { +// WriteAddOn writes a value of the 'add_on' type to the given stream. +func WriteAddOn(object *AddOn, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -130,7 +130,7 @@ func writeAddOn(object *AddOn, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("config") - writeAddOnConfig(object.config, stream) + WriteAddOnConfig(object.config, stream) count++ } present_ = object.bitmap_&64 != 0 && object.credentialsRequests != nil @@ -139,7 +139,7 @@ func writeAddOn(object *AddOn, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("credentials_requests") - writeCredentialRequestList(object.credentialsRequests, stream) + WriteCredentialRequestList(object.credentialsRequests, stream) count++ } present_ = object.bitmap_&128 != 0 @@ -238,7 +238,7 @@ func writeAddOn(object *AddOn, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("namespaces") - writeAddOnNamespaceList(object.namespaces, stream) + WriteAddOnNamespaceList(object.namespaces, stream) count++ } present_ = object.bitmap_&262144 != 0 @@ -258,7 +258,7 @@ func writeAddOn(object *AddOn, stream *jsoniter.Stream) { stream.WriteObjectField("parameters") stream.WriteObjectStart() stream.WriteObjectField("items") - writeAddOnParameterList(object.parameters.items, stream) + WriteAddOnParameterList(object.parameters.Items(), stream) stream.WriteObjectEnd() count++ } @@ -268,7 +268,7 @@ func writeAddOn(object *AddOn, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("requirements") - writeAddOnRequirementList(object.requirements, stream) + WriteAddOnRequirementList(object.requirements, stream) count++ } present_ = object.bitmap_&2097152 != 0 @@ -295,7 +295,7 @@ func writeAddOn(object *AddOn, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("sub_operators") - writeAddOnSubOperatorList(object.subOperators, stream) + WriteAddOnSubOperatorList(object.subOperators, stream) count++ } present_ = object.bitmap_&16777216 != 0 @@ -313,7 +313,7 @@ func writeAddOn(object *AddOn, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("version") - writeAddOnVersion(object.version, stream) + WriteAddOnVersion(object.version, stream) } stream.WriteObjectEnd() } @@ -325,13 +325,13 @@ func UnmarshalAddOn(source interface{}) (object *AddOn, err error) { if err != nil { return } - object = readAddOn(iterator) + object = ReadAddOn(iterator) err = iterator.Error return } -// readAddOn reads a value of the 'add_on' type from the given iterator. -func readAddOn(iterator *jsoniter.Iterator) *AddOn { +// ReadAddOn reads a value of the 'add_on' type from the given iterator. +func ReadAddOn(iterator *jsoniter.Iterator) *AddOn { object := &AddOn{} for { field := iterator.ReadObject() @@ -375,11 +375,11 @@ func readAddOn(iterator *jsoniter.Iterator) *AddOn { object.commonLabels = value object.bitmap_ |= 16 case "config": - value := readAddOnConfig(iterator) + value := ReadAddOnConfig(iterator) object.config = value object.bitmap_ |= 32 case "credentials_requests": - value := readCredentialRequestList(iterator) + value := ReadCredentialRequestList(iterator) object.credentialsRequests = value object.bitmap_ |= 64 case "description": @@ -424,7 +424,7 @@ func readAddOn(iterator *jsoniter.Iterator) *AddOn { object.name = value object.bitmap_ |= 65536 case "namespaces": - value := readAddOnNamespaceList(iterator) + value := ReadAddOnNamespaceList(iterator) object.namespaces = value object.bitmap_ |= 131072 case "operator_name": @@ -441,11 +441,11 @@ func readAddOn(iterator *jsoniter.Iterator) *AddOn { switch field { case "kind": text := iterator.ReadString() - value.link = text == AddOnParameterListLinkKind + value.SetLink(text == AddOnParameterListLinkKind) case "href": - value.href = iterator.ReadString() + value.SetHREF(iterator.ReadString()) case "items": - value.items = readAddOnParameterList(iterator) + value.SetItems(ReadAddOnParameterList(iterator)) default: iterator.ReadAny() } @@ -453,7 +453,7 @@ func readAddOn(iterator *jsoniter.Iterator) *AddOn { object.parameters = value object.bitmap_ |= 524288 case "requirements": - value := readAddOnRequirementList(iterator) + value := ReadAddOnRequirementList(iterator) object.requirements = value object.bitmap_ |= 1048576 case "resource_cost": @@ -465,7 +465,7 @@ func readAddOn(iterator *jsoniter.Iterator) *AddOn { object.resourceName = value object.bitmap_ |= 4194304 case "sub_operators": - value := readAddOnSubOperatorList(iterator) + value := ReadAddOnSubOperatorList(iterator) object.subOperators = value object.bitmap_ |= 8388608 case "target_namespace": @@ -473,7 +473,7 @@ func readAddOn(iterator *jsoniter.Iterator) *AddOn { object.targetNamespace = value object.bitmap_ |= 16777216 case "version": - value := readAddOnVersion(iterator) + value := ReadAddOnVersion(iterator) object.version = value object.bitmap_ |= 33554432 default: diff --git a/clustersmgmt/v1/add_on_version_list_type_json.go b/clustersmgmt/v1/add_on_version_list_type_json.go index 5d7f46441..33a8d55ea 100644 --- a/clustersmgmt/v1/add_on_version_list_type_json.go +++ b/clustersmgmt/v1/add_on_version_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddOnVersionList(list []*AddOnVersion, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnVersionList(list, stream) + WriteAddOnVersionList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddOnVersionList(list []*AddOnVersion, writer io.Writer) error { return stream.Error } -// writeAddOnVersionList writes a list of value of the 'add_on_version' type to +// WriteAddOnVersionList writes a list of value of the 'add_on_version' type to // the given stream. -func writeAddOnVersionList(list []*AddOnVersion, stream *jsoniter.Stream) { +func WriteAddOnVersionList(list []*AddOnVersion, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddOnVersion(value, stream) + WriteAddOnVersion(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddOnVersionList(source interface{}) (items []*AddOnVersion, err e if err != nil { return } - items = readAddOnVersionList(iterator) + items = ReadAddOnVersionList(iterator) err = iterator.Error return } -// readAddOnVersionList reads list of values of the ”add_on_version' type from +// ReadAddOnVersionList reads list of values of the ”add_on_version' type from // the given iterator. -func readAddOnVersionList(iterator *jsoniter.Iterator) []*AddOnVersion { +func ReadAddOnVersionList(iterator *jsoniter.Iterator) []*AddOnVersion { list := []*AddOnVersion{} for iterator.ReadArray() { - item := readAddOnVersion(iterator) + item := ReadAddOnVersion(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/add_on_version_type.go b/clustersmgmt/v1/add_on_version_type.go index e7af3afe2..2fdb38f3d 100644 --- a/clustersmgmt/v1/add_on_version_type.go +++ b/clustersmgmt/v1/add_on_version_type.go @@ -62,7 +62,7 @@ func (o *AddOnVersion) Kind() string { return AddOnVersionKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *AddOnVersion) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -422,6 +422,29 @@ func (l *AddOnVersionList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddOnVersionList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddOnVersionList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddOnVersionList) SetItems(items []*AddOnVersion) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddOnVersionList) Items() []*AddOnVersion { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddOnVersionList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/add_on_version_type_json.go b/clustersmgmt/v1/add_on_version_type_json.go index a395b65ab..5eaecfbe9 100644 --- a/clustersmgmt/v1/add_on_version_type_json.go +++ b/clustersmgmt/v1/add_on_version_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAddOnVersion writes a value of the 'add_on_version' type to the given writer. func MarshalAddOnVersion(object *AddOnVersion, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddOnVersion(object, stream) + WriteAddOnVersion(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAddOnVersion(object *AddOnVersion, writer io.Writer) error { return stream.Error } -// writeAddOnVersion writes a value of the 'add_on_version' type to the given stream. -func writeAddOnVersion(object *AddOnVersion, stream *jsoniter.Stream) { +// WriteAddOnVersion writes a value of the 'add_on_version' type to the given stream. +func WriteAddOnVersion(object *AddOnVersion, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -71,7 +71,7 @@ func writeAddOnVersion(object *AddOnVersion, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("additional_catalog_sources") - writeAdditionalCatalogSourceList(object.additionalCatalogSources, stream) + WriteAdditionalCatalogSourceList(object.additionalCatalogSources, stream) count++ } present_ = object.bitmap_&16 != 0 && object.availableUpgrades != nil @@ -80,7 +80,7 @@ func writeAddOnVersion(object *AddOnVersion, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("available_upgrades") - writeStringList(object.availableUpgrades, stream) + WriteStringList(object.availableUpgrades, stream) count++ } present_ = object.bitmap_&32 != 0 @@ -98,7 +98,7 @@ func writeAddOnVersion(object *AddOnVersion, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("config") - writeAddOnConfig(object.config, stream) + WriteAddOnConfig(object.config, stream) count++ } present_ = object.bitmap_&128 != 0 @@ -127,7 +127,7 @@ func writeAddOnVersion(object *AddOnVersion, stream *jsoniter.Stream) { stream.WriteObjectField("parameters") stream.WriteObjectStart() stream.WriteObjectField("items") - writeAddOnParameterList(object.parameters.items, stream) + WriteAddOnParameterList(object.parameters.Items(), stream) stream.WriteObjectEnd() count++ } @@ -146,7 +146,7 @@ func writeAddOnVersion(object *AddOnVersion, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("requirements") - writeAddOnRequirementList(object.requirements, stream) + WriteAddOnRequirementList(object.requirements, stream) count++ } present_ = object.bitmap_&4096 != 0 @@ -164,7 +164,7 @@ func writeAddOnVersion(object *AddOnVersion, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("sub_operators") - writeAddOnSubOperatorList(object.subOperators, stream) + WriteAddOnSubOperatorList(object.subOperators, stream) } stream.WriteObjectEnd() } @@ -176,13 +176,13 @@ func UnmarshalAddOnVersion(source interface{}) (object *AddOnVersion, err error) if err != nil { return } - object = readAddOnVersion(iterator) + object = ReadAddOnVersion(iterator) err = iterator.Error return } -// readAddOnVersion reads a value of the 'add_on_version' type from the given iterator. -func readAddOnVersion(iterator *jsoniter.Iterator) *AddOnVersion { +// ReadAddOnVersion reads a value of the 'add_on_version' type from the given iterator. +func ReadAddOnVersion(iterator *jsoniter.Iterator) *AddOnVersion { object := &AddOnVersion{} for { field := iterator.ReadObject() @@ -202,11 +202,11 @@ func readAddOnVersion(iterator *jsoniter.Iterator) *AddOnVersion { object.href = iterator.ReadString() object.bitmap_ |= 4 case "additional_catalog_sources": - value := readAdditionalCatalogSourceList(iterator) + value := ReadAdditionalCatalogSourceList(iterator) object.additionalCatalogSources = value object.bitmap_ |= 8 case "available_upgrades": - value := readStringList(iterator) + value := ReadStringList(iterator) object.availableUpgrades = value object.bitmap_ |= 16 case "channel": @@ -214,7 +214,7 @@ func readAddOnVersion(iterator *jsoniter.Iterator) *AddOnVersion { object.channel = value object.bitmap_ |= 32 case "config": - value := readAddOnConfig(iterator) + value := ReadAddOnConfig(iterator) object.config = value object.bitmap_ |= 64 case "enabled": @@ -235,11 +235,11 @@ func readAddOnVersion(iterator *jsoniter.Iterator) *AddOnVersion { switch field { case "kind": text := iterator.ReadString() - value.link = text == AddOnParameterListLinkKind + value.SetLink(text == AddOnParameterListLinkKind) case "href": - value.href = iterator.ReadString() + value.SetHREF(iterator.ReadString()) case "items": - value.items = readAddOnParameterList(iterator) + value.SetItems(ReadAddOnParameterList(iterator)) default: iterator.ReadAny() } @@ -251,7 +251,7 @@ func readAddOnVersion(iterator *jsoniter.Iterator) *AddOnVersion { object.pullSecretName = value object.bitmap_ |= 1024 case "requirements": - value := readAddOnRequirementList(iterator) + value := ReadAddOnRequirementList(iterator) object.requirements = value object.bitmap_ |= 2048 case "source_image": @@ -259,7 +259,7 @@ func readAddOnVersion(iterator *jsoniter.Iterator) *AddOnVersion { object.sourceImage = value object.bitmap_ |= 4096 case "sub_operators": - value := readAddOnSubOperatorList(iterator) + value := ReadAddOnSubOperatorList(iterator) object.subOperators = value object.bitmap_ |= 8192 default: diff --git a/clustersmgmt/v1/add_on_versions_resource_json.go b/clustersmgmt/v1/add_on_versions_resource_json.go index d44e9b091..9c53fb811 100644 --- a/clustersmgmt/v1/add_on_versions_resource_json.go +++ b/clustersmgmt/v1/add_on_versions_resource_json.go @@ -57,7 +57,7 @@ func readAddOnVersionsListResponse(response *AddOnVersionsListResponse, reader i value := iterator.ReadInt() response.total = &value case "items": - items := readAddOnVersionList(iterator) + items := ReadAddOnVersionList(iterator) response.items = &AddOnVersionList{ items: items, } diff --git a/clustersmgmt/v1/add_ons_resource_json.go b/clustersmgmt/v1/add_ons_resource_json.go index 1836dbcc4..45d9c6cd5 100644 --- a/clustersmgmt/v1/add_ons_resource_json.go +++ b/clustersmgmt/v1/add_ons_resource_json.go @@ -57,7 +57,7 @@ func readAddOnsListResponse(response *AddOnsListResponse, reader io.Reader) erro value := iterator.ReadInt() response.total = &value case "items": - items := readAddOnList(iterator) + items := ReadAddOnList(iterator) response.items = &AddOnList{ items: items, } diff --git a/clustersmgmt/v1/additional_catalog_source_list_type_json.go b/clustersmgmt/v1/additional_catalog_source_list_type_json.go index 3ce83dcb4..e3150cce6 100644 --- a/clustersmgmt/v1/additional_catalog_source_list_type_json.go +++ b/clustersmgmt/v1/additional_catalog_source_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAdditionalCatalogSourceList(list []*AdditionalCatalogSource, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAdditionalCatalogSourceList(list, stream) + WriteAdditionalCatalogSourceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAdditionalCatalogSourceList(list []*AdditionalCatalogSource, writer return stream.Error } -// writeAdditionalCatalogSourceList writes a list of value of the 'additional_catalog_source' type to +// WriteAdditionalCatalogSourceList writes a list of value of the 'additional_catalog_source' type to // the given stream. -func writeAdditionalCatalogSourceList(list []*AdditionalCatalogSource, stream *jsoniter.Stream) { +func WriteAdditionalCatalogSourceList(list []*AdditionalCatalogSource, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAdditionalCatalogSource(value, stream) + WriteAdditionalCatalogSource(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAdditionalCatalogSourceList(source interface{}) (items []*Addition if err != nil { return } - items = readAdditionalCatalogSourceList(iterator) + items = ReadAdditionalCatalogSourceList(iterator) err = iterator.Error return } -// readAdditionalCatalogSourceList reads list of values of the ”additional_catalog_source' type from +// ReadAdditionalCatalogSourceList reads list of values of the ”additional_catalog_source' type from // the given iterator. -func readAdditionalCatalogSourceList(iterator *jsoniter.Iterator) []*AdditionalCatalogSource { +func ReadAdditionalCatalogSourceList(iterator *jsoniter.Iterator) []*AdditionalCatalogSource { list := []*AdditionalCatalogSource{} for iterator.ReadArray() { - item := readAdditionalCatalogSource(iterator) + item := ReadAdditionalCatalogSource(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/additional_catalog_source_type.go b/clustersmgmt/v1/additional_catalog_source_type.go index 4a7f5c253..afc5d9232 100644 --- a/clustersmgmt/v1/additional_catalog_source_type.go +++ b/clustersmgmt/v1/additional_catalog_source_type.go @@ -154,6 +154,29 @@ func (l *AdditionalCatalogSourceList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AdditionalCatalogSourceList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AdditionalCatalogSourceList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AdditionalCatalogSourceList) SetItems(items []*AdditionalCatalogSource) { + l.items = items +} + +// Items returns the items of the list. +func (l *AdditionalCatalogSourceList) Items() []*AdditionalCatalogSource { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AdditionalCatalogSourceList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/additional_catalog_source_type_json.go b/clustersmgmt/v1/additional_catalog_source_type_json.go index 73dc3dfe4..ddf7ecfac 100644 --- a/clustersmgmt/v1/additional_catalog_source_type_json.go +++ b/clustersmgmt/v1/additional_catalog_source_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAdditionalCatalogSource writes a value of the 'additional_catalog_source' type to the given writer. func MarshalAdditionalCatalogSource(object *AdditionalCatalogSource, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAdditionalCatalogSource(object, stream) + WriteAdditionalCatalogSource(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAdditionalCatalogSource(object *AdditionalCatalogSource, writer io.W return stream.Error } -// writeAdditionalCatalogSource writes a value of the 'additional_catalog_source' type to the given stream. -func writeAdditionalCatalogSource(object *AdditionalCatalogSource, stream *jsoniter.Stream) { +// WriteAdditionalCatalogSource writes a value of the 'additional_catalog_source' type to the given stream. +func WriteAdditionalCatalogSource(object *AdditionalCatalogSource, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -87,13 +87,13 @@ func UnmarshalAdditionalCatalogSource(source interface{}) (object *AdditionalCat if err != nil { return } - object = readAdditionalCatalogSource(iterator) + object = ReadAdditionalCatalogSource(iterator) err = iterator.Error return } -// readAdditionalCatalogSource reads a value of the 'additional_catalog_source' type from the given iterator. -func readAdditionalCatalogSource(iterator *jsoniter.Iterator) *AdditionalCatalogSource { +// ReadAdditionalCatalogSource reads a value of the 'additional_catalog_source' type from the given iterator. +func ReadAdditionalCatalogSource(iterator *jsoniter.Iterator) *AdditionalCatalogSource { object := &AdditionalCatalogSource{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/addon_inquiries_resource_json.go b/clustersmgmt/v1/addon_inquiries_resource_json.go index 14078c059..670a2c60f 100644 --- a/clustersmgmt/v1/addon_inquiries_resource_json.go +++ b/clustersmgmt/v1/addon_inquiries_resource_json.go @@ -49,7 +49,7 @@ func readAddonInquiriesListResponse(response *AddonInquiriesListResponse, reader value := iterator.ReadInt() response.total = &value case "items": - items := readAddOnList(iterator) + items := ReadAddOnList(iterator) response.items = &AddOnList{ items: items, } diff --git a/clustersmgmt/v1/addon_upgrade_policies_resource_json.go b/clustersmgmt/v1/addon_upgrade_policies_resource_json.go index bb1cc5496..938afdcea 100644 --- a/clustersmgmt/v1/addon_upgrade_policies_resource_json.go +++ b/clustersmgmt/v1/addon_upgrade_policies_resource_json.go @@ -57,7 +57,7 @@ func readAddonUpgradePoliciesListResponse(response *AddonUpgradePoliciesListResp value := iterator.ReadInt() response.total = &value case "items": - items := readAddonUpgradePolicyList(iterator) + items := ReadAddonUpgradePolicyList(iterator) response.items = &AddonUpgradePolicyList{ items: items, } diff --git a/clustersmgmt/v1/addon_upgrade_policy_list_type_json.go b/clustersmgmt/v1/addon_upgrade_policy_list_type_json.go index 31ec7945b..e2cefee35 100644 --- a/clustersmgmt/v1/addon_upgrade_policy_list_type_json.go +++ b/clustersmgmt/v1/addon_upgrade_policy_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddonUpgradePolicyList(list []*AddonUpgradePolicy, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonUpgradePolicyList(list, stream) + WriteAddonUpgradePolicyList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddonUpgradePolicyList(list []*AddonUpgradePolicy, writer io.Writer) return stream.Error } -// writeAddonUpgradePolicyList writes a list of value of the 'addon_upgrade_policy' type to +// WriteAddonUpgradePolicyList writes a list of value of the 'addon_upgrade_policy' type to // the given stream. -func writeAddonUpgradePolicyList(list []*AddonUpgradePolicy, stream *jsoniter.Stream) { +func WriteAddonUpgradePolicyList(list []*AddonUpgradePolicy, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddonUpgradePolicy(value, stream) + WriteAddonUpgradePolicy(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddonUpgradePolicyList(source interface{}) (items []*AddonUpgradeP if err != nil { return } - items = readAddonUpgradePolicyList(iterator) + items = ReadAddonUpgradePolicyList(iterator) err = iterator.Error return } -// readAddonUpgradePolicyList reads list of values of the ”addon_upgrade_policy' type from +// ReadAddonUpgradePolicyList reads list of values of the ”addon_upgrade_policy' type from // the given iterator. -func readAddonUpgradePolicyList(iterator *jsoniter.Iterator) []*AddonUpgradePolicy { +func ReadAddonUpgradePolicyList(iterator *jsoniter.Iterator) []*AddonUpgradePolicy { list := []*AddonUpgradePolicy{} for iterator.ReadArray() { - item := readAddonUpgradePolicy(iterator) + item := ReadAddonUpgradePolicy(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/addon_upgrade_policy_state_list_type_json.go b/clustersmgmt/v1/addon_upgrade_policy_state_list_type_json.go index 281ef321b..67ab281a9 100644 --- a/clustersmgmt/v1/addon_upgrade_policy_state_list_type_json.go +++ b/clustersmgmt/v1/addon_upgrade_policy_state_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAddonUpgradePolicyStateList(list []*AddonUpgradePolicyState, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonUpgradePolicyStateList(list, stream) + WriteAddonUpgradePolicyStateList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAddonUpgradePolicyStateList(list []*AddonUpgradePolicyState, writer return stream.Error } -// writeAddonUpgradePolicyStateList writes a list of value of the 'addon_upgrade_policy_state' type to +// WriteAddonUpgradePolicyStateList writes a list of value of the 'addon_upgrade_policy_state' type to // the given stream. -func writeAddonUpgradePolicyStateList(list []*AddonUpgradePolicyState, stream *jsoniter.Stream) { +func WriteAddonUpgradePolicyStateList(list []*AddonUpgradePolicyState, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAddonUpgradePolicyState(value, stream) + WriteAddonUpgradePolicyState(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAddonUpgradePolicyStateList(source interface{}) (items []*AddonUpg if err != nil { return } - items = readAddonUpgradePolicyStateList(iterator) + items = ReadAddonUpgradePolicyStateList(iterator) err = iterator.Error return } -// readAddonUpgradePolicyStateList reads list of values of the ”addon_upgrade_policy_state' type from +// ReadAddonUpgradePolicyStateList reads list of values of the ”addon_upgrade_policy_state' type from // the given iterator. -func readAddonUpgradePolicyStateList(iterator *jsoniter.Iterator) []*AddonUpgradePolicyState { +func ReadAddonUpgradePolicyStateList(iterator *jsoniter.Iterator) []*AddonUpgradePolicyState { list := []*AddonUpgradePolicyState{} for iterator.ReadArray() { - item := readAddonUpgradePolicyState(iterator) + item := ReadAddonUpgradePolicyState(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/addon_upgrade_policy_state_type.go b/clustersmgmt/v1/addon_upgrade_policy_state_type.go index 364484247..8c82fcd08 100644 --- a/clustersmgmt/v1/addon_upgrade_policy_state_type.go +++ b/clustersmgmt/v1/addon_upgrade_policy_state_type.go @@ -53,7 +53,7 @@ func (o *AddonUpgradePolicyState) Kind() string { return AddonUpgradePolicyStateKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *AddonUpgradePolicyState) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -208,6 +208,29 @@ func (l *AddonUpgradePolicyStateList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddonUpgradePolicyStateList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddonUpgradePolicyStateList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddonUpgradePolicyStateList) SetItems(items []*AddonUpgradePolicyState) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddonUpgradePolicyStateList) Items() []*AddonUpgradePolicyState { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddonUpgradePolicyStateList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/addon_upgrade_policy_state_type_json.go b/clustersmgmt/v1/addon_upgrade_policy_state_type_json.go index 3492b404a..24c783fbc 100644 --- a/clustersmgmt/v1/addon_upgrade_policy_state_type_json.go +++ b/clustersmgmt/v1/addon_upgrade_policy_state_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAddonUpgradePolicyState writes a value of the 'addon_upgrade_policy_state' type to the given writer. func MarshalAddonUpgradePolicyState(object *AddonUpgradePolicyState, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonUpgradePolicyState(object, stream) + WriteAddonUpgradePolicyState(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAddonUpgradePolicyState(object *AddonUpgradePolicyState, writer io.W return stream.Error } -// writeAddonUpgradePolicyState writes a value of the 'addon_upgrade_policy_state' type to the given stream. -func writeAddonUpgradePolicyState(object *AddonUpgradePolicyState, stream *jsoniter.Stream) { +// WriteAddonUpgradePolicyState writes a value of the 'addon_upgrade_policy_state' type to the given stream. +func WriteAddonUpgradePolicyState(object *AddonUpgradePolicyState, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -92,13 +92,13 @@ func UnmarshalAddonUpgradePolicyState(source interface{}) (object *AddonUpgradeP if err != nil { return } - object = readAddonUpgradePolicyState(iterator) + object = ReadAddonUpgradePolicyState(iterator) err = iterator.Error return } -// readAddonUpgradePolicyState reads a value of the 'addon_upgrade_policy_state' type from the given iterator. -func readAddonUpgradePolicyState(iterator *jsoniter.Iterator) *AddonUpgradePolicyState { +// ReadAddonUpgradePolicyState reads a value of the 'addon_upgrade_policy_state' type from the given iterator. +func ReadAddonUpgradePolicyState(iterator *jsoniter.Iterator) *AddonUpgradePolicyState { object := &AddonUpgradePolicyState{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/addon_upgrade_policy_type.go b/clustersmgmt/v1/addon_upgrade_policy_type.go index 1f9f11823..72714ceb6 100644 --- a/clustersmgmt/v1/addon_upgrade_policy_type.go +++ b/clustersmgmt/v1/addon_upgrade_policy_type.go @@ -62,7 +62,7 @@ func (o *AddonUpgradePolicy) Kind() string { return AddonUpgradePolicyKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *AddonUpgradePolicy) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -330,6 +330,29 @@ func (l *AddonUpgradePolicyList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AddonUpgradePolicyList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AddonUpgradePolicyList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AddonUpgradePolicyList) SetItems(items []*AddonUpgradePolicy) { + l.items = items +} + +// Items returns the items of the list. +func (l *AddonUpgradePolicyList) Items() []*AddonUpgradePolicy { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AddonUpgradePolicyList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/addon_upgrade_policy_type_json.go b/clustersmgmt/v1/addon_upgrade_policy_type_json.go index 10460f6d0..af4dbb37d 100644 --- a/clustersmgmt/v1/addon_upgrade_policy_type_json.go +++ b/clustersmgmt/v1/addon_upgrade_policy_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalAddonUpgradePolicy writes a value of the 'addon_upgrade_policy' type to the given writer. func MarshalAddonUpgradePolicy(object *AddonUpgradePolicy, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAddonUpgradePolicy(object, stream) + WriteAddonUpgradePolicy(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalAddonUpgradePolicy(object *AddonUpgradePolicy, writer io.Writer) err return stream.Error } -// writeAddonUpgradePolicy writes a value of the 'addon_upgrade_policy' type to the given stream. -func writeAddonUpgradePolicy(object *AddonUpgradePolicy, stream *jsoniter.Stream) { +// WriteAddonUpgradePolicy writes a value of the 'addon_upgrade_policy' type to the given stream. +func WriteAddonUpgradePolicy(object *AddonUpgradePolicy, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -138,13 +138,13 @@ func UnmarshalAddonUpgradePolicy(source interface{}) (object *AddonUpgradePolicy if err != nil { return } - object = readAddonUpgradePolicy(iterator) + object = ReadAddonUpgradePolicy(iterator) err = iterator.Error return } -// readAddonUpgradePolicy reads a value of the 'addon_upgrade_policy' type from the given iterator. -func readAddonUpgradePolicy(iterator *jsoniter.Iterator) *AddonUpgradePolicy { +// ReadAddonUpgradePolicy reads a value of the 'addon_upgrade_policy' type from the given iterator. +func ReadAddonUpgradePolicy(iterator *jsoniter.Iterator) *AddonUpgradePolicy { object := &AddonUpgradePolicy{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/admin_credentials_list_type_json.go b/clustersmgmt/v1/admin_credentials_list_type_json.go index 51ae890d3..e38cff8fa 100644 --- a/clustersmgmt/v1/admin_credentials_list_type_json.go +++ b/clustersmgmt/v1/admin_credentials_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAdminCredentialsList(list []*AdminCredentials, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAdminCredentialsList(list, stream) + WriteAdminCredentialsList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAdminCredentialsList(list []*AdminCredentials, writer io.Writer) err return stream.Error } -// writeAdminCredentialsList writes a list of value of the 'admin_credentials' type to +// WriteAdminCredentialsList writes a list of value of the 'admin_credentials' type to // the given stream. -func writeAdminCredentialsList(list []*AdminCredentials, stream *jsoniter.Stream) { +func WriteAdminCredentialsList(list []*AdminCredentials, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAdminCredentials(value, stream) + WriteAdminCredentials(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAdminCredentialsList(source interface{}) (items []*AdminCredential if err != nil { return } - items = readAdminCredentialsList(iterator) + items = ReadAdminCredentialsList(iterator) err = iterator.Error return } -// readAdminCredentialsList reads list of values of the ”admin_credentials' type from +// ReadAdminCredentialsList reads list of values of the ”admin_credentials' type from // the given iterator. -func readAdminCredentialsList(iterator *jsoniter.Iterator) []*AdminCredentials { +func ReadAdminCredentialsList(iterator *jsoniter.Iterator) []*AdminCredentials { list := []*AdminCredentials{} for iterator.ReadArray() { - item := readAdminCredentials(iterator) + item := ReadAdminCredentials(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/admin_credentials_type.go b/clustersmgmt/v1/admin_credentials_type.go index e65a96d3e..37766908c 100644 --- a/clustersmgmt/v1/admin_credentials_type.go +++ b/clustersmgmt/v1/admin_credentials_type.go @@ -107,6 +107,29 @@ func (l *AdminCredentialsList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AdminCredentialsList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AdminCredentialsList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AdminCredentialsList) SetItems(items []*AdminCredentials) { + l.items = items +} + +// Items returns the items of the list. +func (l *AdminCredentialsList) Items() []*AdminCredentials { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AdminCredentialsList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/admin_credentials_type_json.go b/clustersmgmt/v1/admin_credentials_type_json.go index 0004e5865..645750770 100644 --- a/clustersmgmt/v1/admin_credentials_type_json.go +++ b/clustersmgmt/v1/admin_credentials_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAdminCredentials writes a value of the 'admin_credentials' type to the given writer. func MarshalAdminCredentials(object *AdminCredentials, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAdminCredentials(object, stream) + WriteAdminCredentials(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAdminCredentials(object *AdminCredentials, writer io.Writer) error { return stream.Error } -// writeAdminCredentials writes a value of the 'admin_credentials' type to the given stream. -func writeAdminCredentials(object *AdminCredentials, stream *jsoniter.Stream) { +// WriteAdminCredentials writes a value of the 'admin_credentials' type to the given stream. +func WriteAdminCredentials(object *AdminCredentials, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalAdminCredentials(source interface{}) (object *AdminCredentials, er if err != nil { return } - object = readAdminCredentials(iterator) + object = ReadAdminCredentials(iterator) err = iterator.Error return } -// readAdminCredentials reads a value of the 'admin_credentials' type from the given iterator. -func readAdminCredentials(iterator *jsoniter.Iterator) *AdminCredentials { +// ReadAdminCredentials reads a value of the 'admin_credentials' type from the given iterator. +func ReadAdminCredentials(iterator *jsoniter.Iterator) *AdminCredentials { object := &AdminCredentials{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/alert_info_list_type_json.go b/clustersmgmt/v1/alert_info_list_type_json.go index c45d3ea92..8664d357d 100644 --- a/clustersmgmt/v1/alert_info_list_type_json.go +++ b/clustersmgmt/v1/alert_info_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAlertInfoList(list []*AlertInfo, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAlertInfoList(list, stream) + WriteAlertInfoList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAlertInfoList(list []*AlertInfo, writer io.Writer) error { return stream.Error } -// writeAlertInfoList writes a list of value of the 'alert_info' type to +// WriteAlertInfoList writes a list of value of the 'alert_info' type to // the given stream. -func writeAlertInfoList(list []*AlertInfo, stream *jsoniter.Stream) { +func WriteAlertInfoList(list []*AlertInfo, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAlertInfo(value, stream) + WriteAlertInfo(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAlertInfoList(source interface{}) (items []*AlertInfo, err error) if err != nil { return } - items = readAlertInfoList(iterator) + items = ReadAlertInfoList(iterator) err = iterator.Error return } -// readAlertInfoList reads list of values of the ”alert_info' type from +// ReadAlertInfoList reads list of values of the ”alert_info' type from // the given iterator. -func readAlertInfoList(iterator *jsoniter.Iterator) []*AlertInfo { +func ReadAlertInfoList(iterator *jsoniter.Iterator) []*AlertInfo { list := []*AlertInfo{} for iterator.ReadArray() { - item := readAlertInfo(iterator) + item := ReadAlertInfo(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/alert_info_type.go b/clustersmgmt/v1/alert_info_type.go index ad7ab13ad..f50efda8a 100644 --- a/clustersmgmt/v1/alert_info_type.go +++ b/clustersmgmt/v1/alert_info_type.go @@ -106,6 +106,29 @@ func (l *AlertInfoList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AlertInfoList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AlertInfoList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AlertInfoList) SetItems(items []*AlertInfo) { + l.items = items +} + +// Items returns the items of the list. +func (l *AlertInfoList) Items() []*AlertInfo { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AlertInfoList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/alert_info_type_json.go b/clustersmgmt/v1/alert_info_type_json.go index 4cec59e75..0a50f33fe 100644 --- a/clustersmgmt/v1/alert_info_type_json.go +++ b/clustersmgmt/v1/alert_info_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAlertInfo writes a value of the 'alert_info' type to the given writer. func MarshalAlertInfo(object *AlertInfo, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAlertInfo(object, stream) + WriteAlertInfo(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAlertInfo(object *AlertInfo, writer io.Writer) error { return stream.Error } -// writeAlertInfo writes a value of the 'alert_info' type to the given stream. -func writeAlertInfo(object *AlertInfo, stream *jsoniter.Stream) { +// WriteAlertInfo writes a value of the 'alert_info' type to the given stream. +func WriteAlertInfo(object *AlertInfo, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalAlertInfo(source interface{}) (object *AlertInfo, err error) { if err != nil { return } - object = readAlertInfo(iterator) + object = ReadAlertInfo(iterator) err = iterator.Error return } -// readAlertInfo reads a value of the 'alert_info' type from the given iterator. -func readAlertInfo(iterator *jsoniter.Iterator) *AlertInfo { +// ReadAlertInfo reads a value of the 'alert_info' type from the given iterator. +func ReadAlertInfo(iterator *jsoniter.Iterator) *AlertInfo { object := &AlertInfo{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/alert_severity_list_type_json.go b/clustersmgmt/v1/alert_severity_list_type_json.go index a44e272ed..1dd492f31 100644 --- a/clustersmgmt/v1/alert_severity_list_type_json.go +++ b/clustersmgmt/v1/alert_severity_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAlertSeverityList(list []AlertSeverity, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAlertSeverityList(list, stream) + WriteAlertSeverityList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalAlertSeverityList(list []AlertSeverity, writer io.Writer) error { return stream.Error } -// writeAlertSeverityList writes a list of value of the 'alert_severity' type to +// WriteAlertSeverityList writes a list of value of the 'alert_severity' type to // the given stream. -func writeAlertSeverityList(list []AlertSeverity, stream *jsoniter.Stream) { +func WriteAlertSeverityList(list []AlertSeverity, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalAlertSeverityList(source interface{}) (items []AlertSeverity, err if err != nil { return } - items = readAlertSeverityList(iterator) + items = ReadAlertSeverityList(iterator) err = iterator.Error return } -// readAlertSeverityList reads list of values of the ”alert_severity' type from +// ReadAlertSeverityList reads list of values of the ”alert_severity' type from // the given iterator. -func readAlertSeverityList(iterator *jsoniter.Iterator) []AlertSeverity { +func ReadAlertSeverityList(iterator *jsoniter.Iterator) []AlertSeverity { list := []AlertSeverity{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/alerts_info_list_type_json.go b/clustersmgmt/v1/alerts_info_list_type_json.go index 3c8cd69b9..7f4a081a2 100644 --- a/clustersmgmt/v1/alerts_info_list_type_json.go +++ b/clustersmgmt/v1/alerts_info_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAlertsInfoList(list []*AlertsInfo, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAlertsInfoList(list, stream) + WriteAlertsInfoList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAlertsInfoList(list []*AlertsInfo, writer io.Writer) error { return stream.Error } -// writeAlertsInfoList writes a list of value of the 'alerts_info' type to +// WriteAlertsInfoList writes a list of value of the 'alerts_info' type to // the given stream. -func writeAlertsInfoList(list []*AlertsInfo, stream *jsoniter.Stream) { +func WriteAlertsInfoList(list []*AlertsInfo, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAlertsInfo(value, stream) + WriteAlertsInfo(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAlertsInfoList(source interface{}) (items []*AlertsInfo, err error if err != nil { return } - items = readAlertsInfoList(iterator) + items = ReadAlertsInfoList(iterator) err = iterator.Error return } -// readAlertsInfoList reads list of values of the ”alerts_info' type from +// ReadAlertsInfoList reads list of values of the ”alerts_info' type from // the given iterator. -func readAlertsInfoList(iterator *jsoniter.Iterator) []*AlertsInfo { +func ReadAlertsInfoList(iterator *jsoniter.Iterator) []*AlertsInfo { list := []*AlertsInfo{} for iterator.ReadArray() { - item := readAlertsInfo(iterator) + item := ReadAlertsInfo(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/alerts_info_type.go b/clustersmgmt/v1/alerts_info_type.go index ecaa8a2e2..d37548090 100644 --- a/clustersmgmt/v1/alerts_info_type.go +++ b/clustersmgmt/v1/alerts_info_type.go @@ -78,6 +78,29 @@ func (l *AlertsInfoList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AlertsInfoList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AlertsInfoList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AlertsInfoList) SetItems(items []*AlertsInfo) { + l.items = items +} + +// Items returns the items of the list. +func (l *AlertsInfoList) Items() []*AlertsInfo { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AlertsInfoList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/alerts_info_type_json.go b/clustersmgmt/v1/alerts_info_type_json.go index 56a48d9bd..e77945310 100644 --- a/clustersmgmt/v1/alerts_info_type_json.go +++ b/clustersmgmt/v1/alerts_info_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAlertsInfo writes a value of the 'alerts_info' type to the given writer. func MarshalAlertsInfo(object *AlertsInfo, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAlertsInfo(object, stream) + WriteAlertsInfo(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAlertsInfo(object *AlertsInfo, writer io.Writer) error { return stream.Error } -// writeAlertsInfo writes a value of the 'alerts_info' type to the given stream. -func writeAlertsInfo(object *AlertsInfo, stream *jsoniter.Stream) { +// WriteAlertsInfo writes a value of the 'alerts_info' type to the given stream. +func WriteAlertsInfo(object *AlertsInfo, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeAlertsInfo(object *AlertsInfo, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("alerts") - writeAlertInfoList(object.alerts, stream) + WriteAlertInfoList(object.alerts, stream) } stream.WriteObjectEnd() } @@ -60,13 +60,13 @@ func UnmarshalAlertsInfo(source interface{}) (object *AlertsInfo, err error) { if err != nil { return } - object = readAlertsInfo(iterator) + object = ReadAlertsInfo(iterator) err = iterator.Error return } -// readAlertsInfo reads a value of the 'alerts_info' type from the given iterator. -func readAlertsInfo(iterator *jsoniter.Iterator) *AlertsInfo { +// ReadAlertsInfo reads a value of the 'alerts_info' type from the given iterator. +func ReadAlertsInfo(iterator *jsoniter.Iterator) *AlertsInfo { object := &AlertsInfo{} for { field := iterator.ReadObject() @@ -75,7 +75,7 @@ func readAlertsInfo(iterator *jsoniter.Iterator) *AlertsInfo { } switch field { case "alerts": - value := readAlertInfoList(iterator) + value := ReadAlertInfoList(iterator) object.alerts = value object.bitmap_ |= 1 default: diff --git a/clustersmgmt/v1/ami_override_list_type_json.go b/clustersmgmt/v1/ami_override_list_type_json.go index fa475abc2..12930d6c2 100644 --- a/clustersmgmt/v1/ami_override_list_type_json.go +++ b/clustersmgmt/v1/ami_override_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAMIOverrideList(list []*AMIOverride, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAMIOverrideList(list, stream) + WriteAMIOverrideList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAMIOverrideList(list []*AMIOverride, writer io.Writer) error { return stream.Error } -// writeAMIOverrideList writes a list of value of the 'AMI_override' type to +// WriteAMIOverrideList writes a list of value of the 'AMI_override' type to // the given stream. -func writeAMIOverrideList(list []*AMIOverride, stream *jsoniter.Stream) { +func WriteAMIOverrideList(list []*AMIOverride, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAMIOverride(value, stream) + WriteAMIOverride(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAMIOverrideList(source interface{}) (items []*AMIOverride, err err if err != nil { return } - items = readAMIOverrideList(iterator) + items = ReadAMIOverrideList(iterator) err = iterator.Error return } -// readAMIOverrideList reads list of values of the ”AMI_override' type from +// ReadAMIOverrideList reads list of values of the ”AMI_override' type from // the given iterator. -func readAMIOverrideList(iterator *jsoniter.Iterator) []*AMIOverride { +func ReadAMIOverrideList(iterator *jsoniter.Iterator) []*AMIOverride { list := []*AMIOverride{} for iterator.ReadArray() { - item := readAMIOverride(iterator) + item := ReadAMIOverride(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/ami_override_type.go b/clustersmgmt/v1/ami_override_type.go index 6bf63f12d..f3f23101c 100644 --- a/clustersmgmt/v1/ami_override_type.go +++ b/clustersmgmt/v1/ami_override_type.go @@ -54,7 +54,7 @@ func (o *AMIOverride) Kind() string { return AMIOverrideKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *AMIOverride) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -230,6 +230,29 @@ func (l *AMIOverrideList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AMIOverrideList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AMIOverrideList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AMIOverrideList) SetItems(items []*AMIOverride) { + l.items = items +} + +// Items returns the items of the list. +func (l *AMIOverrideList) Items() []*AMIOverride { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AMIOverrideList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/ami_override_type_json.go b/clustersmgmt/v1/ami_override_type_json.go index cc2bf8d2f..9a0b7d42a 100644 --- a/clustersmgmt/v1/ami_override_type_json.go +++ b/clustersmgmt/v1/ami_override_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAMIOverride writes a value of the 'AMI_override' type to the given writer. func MarshalAMIOverride(object *AMIOverride, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAMIOverride(object, stream) + WriteAMIOverride(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAMIOverride(object *AMIOverride, writer io.Writer) error { return stream.Error } -// writeAMIOverride writes a value of the 'AMI_override' type to the given stream. -func writeAMIOverride(object *AMIOverride, stream *jsoniter.Stream) { +// WriteAMIOverride writes a value of the 'AMI_override' type to the given stream. +func WriteAMIOverride(object *AMIOverride, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -80,7 +80,7 @@ func writeAMIOverride(object *AMIOverride, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("product") - writeProduct(object.product, stream) + WriteProduct(object.product, stream) count++ } present_ = object.bitmap_&32 != 0 && object.region != nil @@ -89,7 +89,7 @@ func writeAMIOverride(object *AMIOverride, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("region") - writeCloudRegion(object.region, stream) + WriteCloudRegion(object.region, stream) } stream.WriteObjectEnd() } @@ -101,13 +101,13 @@ func UnmarshalAMIOverride(source interface{}) (object *AMIOverride, err error) { if err != nil { return } - object = readAMIOverride(iterator) + object = ReadAMIOverride(iterator) err = iterator.Error return } -// readAMIOverride reads a value of the 'AMI_override' type from the given iterator. -func readAMIOverride(iterator *jsoniter.Iterator) *AMIOverride { +// ReadAMIOverride reads a value of the 'AMI_override' type from the given iterator. +func ReadAMIOverride(iterator *jsoniter.Iterator) *AMIOverride { object := &AMIOverride{} for { field := iterator.ReadObject() @@ -131,11 +131,11 @@ func readAMIOverride(iterator *jsoniter.Iterator) *AMIOverride { object.ami = value object.bitmap_ |= 8 case "product": - value := readProduct(iterator) + value := ReadProduct(iterator) object.product = value object.bitmap_ |= 16 case "region": - value := readCloudRegion(iterator) + value := ReadCloudRegion(iterator) object.region = value object.bitmap_ |= 32 default: diff --git a/clustersmgmt/v1/audit_log_list_type_json.go b/clustersmgmt/v1/audit_log_list_type_json.go index abee5edf0..b6bb9f04e 100644 --- a/clustersmgmt/v1/audit_log_list_type_json.go +++ b/clustersmgmt/v1/audit_log_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAuditLogList(list []*AuditLog, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAuditLogList(list, stream) + WriteAuditLogList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAuditLogList(list []*AuditLog, writer io.Writer) error { return stream.Error } -// writeAuditLogList writes a list of value of the 'audit_log' type to +// WriteAuditLogList writes a list of value of the 'audit_log' type to // the given stream. -func writeAuditLogList(list []*AuditLog, stream *jsoniter.Stream) { +func WriteAuditLogList(list []*AuditLog, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAuditLog(value, stream) + WriteAuditLog(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAuditLogList(source interface{}) (items []*AuditLog, err error) { if err != nil { return } - items = readAuditLogList(iterator) + items = ReadAuditLogList(iterator) err = iterator.Error return } -// readAuditLogList reads list of values of the ”audit_log' type from +// ReadAuditLogList reads list of values of the ”audit_log' type from // the given iterator. -func readAuditLogList(iterator *jsoniter.Iterator) []*AuditLog { +func ReadAuditLogList(iterator *jsoniter.Iterator) []*AuditLog { list := []*AuditLog{} for iterator.ReadArray() { - item := readAuditLog(iterator) + item := ReadAuditLog(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/audit_log_type.go b/clustersmgmt/v1/audit_log_type.go index 291705be3..d7730e0c4 100644 --- a/clustersmgmt/v1/audit_log_type.go +++ b/clustersmgmt/v1/audit_log_type.go @@ -82,6 +82,29 @@ func (l *AuditLogList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AuditLogList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AuditLogList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AuditLogList) SetItems(items []*AuditLog) { + l.items = items +} + +// Items returns the items of the list. +func (l *AuditLogList) Items() []*AuditLog { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AuditLogList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/audit_log_type_json.go b/clustersmgmt/v1/audit_log_type_json.go index d4713f66f..47f27fd99 100644 --- a/clustersmgmt/v1/audit_log_type_json.go +++ b/clustersmgmt/v1/audit_log_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAuditLog writes a value of the 'audit_log' type to the given writer. func MarshalAuditLog(object *AuditLog, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAuditLog(object, stream) + WriteAuditLog(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAuditLog(object *AuditLog, writer io.Writer) error { return stream.Error } -// writeAuditLog writes a value of the 'audit_log' type to the given stream. -func writeAuditLog(object *AuditLog, stream *jsoniter.Stream) { +// WriteAuditLog writes a value of the 'audit_log' type to the given stream. +func WriteAuditLog(object *AuditLog, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalAuditLog(source interface{}) (object *AuditLog, err error) { if err != nil { return } - object = readAuditLog(iterator) + object = ReadAuditLog(iterator) err = iterator.Error return } -// readAuditLog reads a value of the 'audit_log' type from the given iterator. -func readAuditLog(iterator *jsoniter.Iterator) *AuditLog { +// ReadAuditLog reads a value of the 'audit_log' type from the given iterator. +func ReadAuditLog(iterator *jsoniter.Iterator) *AuditLog { object := &AuditLog{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/autoscaler_resource_limits_gpu_limit_list_type_json.go b/clustersmgmt/v1/autoscaler_resource_limits_gpu_limit_list_type_json.go index e7ffa10b4..32d0fde9c 100644 --- a/clustersmgmt/v1/autoscaler_resource_limits_gpu_limit_list_type_json.go +++ b/clustersmgmt/v1/autoscaler_resource_limits_gpu_limit_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAutoscalerResourceLimitsGPULimitList(list []*AutoscalerResourceLimitsGPULimit, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAutoscalerResourceLimitsGPULimitList(list, stream) + WriteAutoscalerResourceLimitsGPULimitList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAutoscalerResourceLimitsGPULimitList(list []*AutoscalerResourceLimit return stream.Error } -// writeAutoscalerResourceLimitsGPULimitList writes a list of value of the 'autoscaler_resource_limits_GPU_limit' type to +// WriteAutoscalerResourceLimitsGPULimitList writes a list of value of the 'autoscaler_resource_limits_GPU_limit' type to // the given stream. -func writeAutoscalerResourceLimitsGPULimitList(list []*AutoscalerResourceLimitsGPULimit, stream *jsoniter.Stream) { +func WriteAutoscalerResourceLimitsGPULimitList(list []*AutoscalerResourceLimitsGPULimit, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAutoscalerResourceLimitsGPULimit(value, stream) + WriteAutoscalerResourceLimitsGPULimit(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAutoscalerResourceLimitsGPULimitList(source interface{}) (items [] if err != nil { return } - items = readAutoscalerResourceLimitsGPULimitList(iterator) + items = ReadAutoscalerResourceLimitsGPULimitList(iterator) err = iterator.Error return } -// readAutoscalerResourceLimitsGPULimitList reads list of values of the ”autoscaler_resource_limits_GPU_limit' type from +// ReadAutoscalerResourceLimitsGPULimitList reads list of values of the ”autoscaler_resource_limits_GPU_limit' type from // the given iterator. -func readAutoscalerResourceLimitsGPULimitList(iterator *jsoniter.Iterator) []*AutoscalerResourceLimitsGPULimit { +func ReadAutoscalerResourceLimitsGPULimitList(iterator *jsoniter.Iterator) []*AutoscalerResourceLimitsGPULimit { list := []*AutoscalerResourceLimitsGPULimit{} for iterator.ReadArray() { - item := readAutoscalerResourceLimitsGPULimit(iterator) + item := ReadAutoscalerResourceLimitsGPULimit(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/autoscaler_resource_limits_gpu_limit_type.go b/clustersmgmt/v1/autoscaler_resource_limits_gpu_limit_type.go index 89375c160..ce11ac237 100644 --- a/clustersmgmt/v1/autoscaler_resource_limits_gpu_limit_type.go +++ b/clustersmgmt/v1/autoscaler_resource_limits_gpu_limit_type.go @@ -108,6 +108,29 @@ func (l *AutoscalerResourceLimitsGPULimitList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AutoscalerResourceLimitsGPULimitList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AutoscalerResourceLimitsGPULimitList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AutoscalerResourceLimitsGPULimitList) SetItems(items []*AutoscalerResourceLimitsGPULimit) { + l.items = items +} + +// Items returns the items of the list. +func (l *AutoscalerResourceLimitsGPULimitList) Items() []*AutoscalerResourceLimitsGPULimit { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AutoscalerResourceLimitsGPULimitList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/autoscaler_resource_limits_gpu_limit_type_json.go b/clustersmgmt/v1/autoscaler_resource_limits_gpu_limit_type_json.go index 793629fc7..033b15333 100644 --- a/clustersmgmt/v1/autoscaler_resource_limits_gpu_limit_type_json.go +++ b/clustersmgmt/v1/autoscaler_resource_limits_gpu_limit_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAutoscalerResourceLimitsGPULimit writes a value of the 'autoscaler_resource_limits_GPU_limit' type to the given writer. func MarshalAutoscalerResourceLimitsGPULimit(object *AutoscalerResourceLimitsGPULimit, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAutoscalerResourceLimitsGPULimit(object, stream) + WriteAutoscalerResourceLimitsGPULimit(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAutoscalerResourceLimitsGPULimit(object *AutoscalerResourceLimitsGPU return stream.Error } -// writeAutoscalerResourceLimitsGPULimit writes a value of the 'autoscaler_resource_limits_GPU_limit' type to the given stream. -func writeAutoscalerResourceLimitsGPULimit(object *AutoscalerResourceLimitsGPULimit, stream *jsoniter.Stream) { +// WriteAutoscalerResourceLimitsGPULimit writes a value of the 'autoscaler_resource_limits_GPU_limit' type to the given stream. +func WriteAutoscalerResourceLimitsGPULimit(object *AutoscalerResourceLimitsGPULimit, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeAutoscalerResourceLimitsGPULimit(object *AutoscalerResourceLimitsGPULi stream.WriteMore() } stream.WriteObjectField("range") - writeResourceRange(object.range_, stream) + WriteResourceRange(object.range_, stream) count++ } present_ = object.bitmap_&2 != 0 @@ -69,13 +69,13 @@ func UnmarshalAutoscalerResourceLimitsGPULimit(source interface{}) (object *Auto if err != nil { return } - object = readAutoscalerResourceLimitsGPULimit(iterator) + object = ReadAutoscalerResourceLimitsGPULimit(iterator) err = iterator.Error return } -// readAutoscalerResourceLimitsGPULimit reads a value of the 'autoscaler_resource_limits_GPU_limit' type from the given iterator. -func readAutoscalerResourceLimitsGPULimit(iterator *jsoniter.Iterator) *AutoscalerResourceLimitsGPULimit { +// ReadAutoscalerResourceLimitsGPULimit reads a value of the 'autoscaler_resource_limits_GPU_limit' type from the given iterator. +func ReadAutoscalerResourceLimitsGPULimit(iterator *jsoniter.Iterator) *AutoscalerResourceLimitsGPULimit { object := &AutoscalerResourceLimitsGPULimit{} for { field := iterator.ReadObject() @@ -84,7 +84,7 @@ func readAutoscalerResourceLimitsGPULimit(iterator *jsoniter.Iterator) *Autoscal } switch field { case "range": - value := readResourceRange(iterator) + value := ReadResourceRange(iterator) object.range_ = value object.bitmap_ |= 1 case "type": diff --git a/clustersmgmt/v1/autoscaler_resource_limits_list_type_json.go b/clustersmgmt/v1/autoscaler_resource_limits_list_type_json.go index 1cc474a25..c8fa384f8 100644 --- a/clustersmgmt/v1/autoscaler_resource_limits_list_type_json.go +++ b/clustersmgmt/v1/autoscaler_resource_limits_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAutoscalerResourceLimitsList(list []*AutoscalerResourceLimits, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAutoscalerResourceLimitsList(list, stream) + WriteAutoscalerResourceLimitsList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAutoscalerResourceLimitsList(list []*AutoscalerResourceLimits, write return stream.Error } -// writeAutoscalerResourceLimitsList writes a list of value of the 'autoscaler_resource_limits' type to +// WriteAutoscalerResourceLimitsList writes a list of value of the 'autoscaler_resource_limits' type to // the given stream. -func writeAutoscalerResourceLimitsList(list []*AutoscalerResourceLimits, stream *jsoniter.Stream) { +func WriteAutoscalerResourceLimitsList(list []*AutoscalerResourceLimits, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAutoscalerResourceLimits(value, stream) + WriteAutoscalerResourceLimits(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAutoscalerResourceLimitsList(source interface{}) (items []*Autosca if err != nil { return } - items = readAutoscalerResourceLimitsList(iterator) + items = ReadAutoscalerResourceLimitsList(iterator) err = iterator.Error return } -// readAutoscalerResourceLimitsList reads list of values of the ”autoscaler_resource_limits' type from +// ReadAutoscalerResourceLimitsList reads list of values of the ”autoscaler_resource_limits' type from // the given iterator. -func readAutoscalerResourceLimitsList(iterator *jsoniter.Iterator) []*AutoscalerResourceLimits { +func ReadAutoscalerResourceLimitsList(iterator *jsoniter.Iterator) []*AutoscalerResourceLimits { list := []*AutoscalerResourceLimits{} for iterator.ReadArray() { - item := readAutoscalerResourceLimits(iterator) + item := ReadAutoscalerResourceLimits(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/autoscaler_resource_limits_type.go b/clustersmgmt/v1/autoscaler_resource_limits_type.go index b66bc7001..7a1a9cd2c 100644 --- a/clustersmgmt/v1/autoscaler_resource_limits_type.go +++ b/clustersmgmt/v1/autoscaler_resource_limits_type.go @@ -160,6 +160,29 @@ func (l *AutoscalerResourceLimitsList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AutoscalerResourceLimitsList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AutoscalerResourceLimitsList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AutoscalerResourceLimitsList) SetItems(items []*AutoscalerResourceLimits) { + l.items = items +} + +// Items returns the items of the list. +func (l *AutoscalerResourceLimitsList) Items() []*AutoscalerResourceLimits { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AutoscalerResourceLimitsList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/autoscaler_resource_limits_type_json.go b/clustersmgmt/v1/autoscaler_resource_limits_type_json.go index c610bf91d..969e77090 100644 --- a/clustersmgmt/v1/autoscaler_resource_limits_type_json.go +++ b/clustersmgmt/v1/autoscaler_resource_limits_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAutoscalerResourceLimits writes a value of the 'autoscaler_resource_limits' type to the given writer. func MarshalAutoscalerResourceLimits(object *AutoscalerResourceLimits, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAutoscalerResourceLimits(object, stream) + WriteAutoscalerResourceLimits(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAutoscalerResourceLimits(object *AutoscalerResourceLimits, writer io return stream.Error } -// writeAutoscalerResourceLimits writes a value of the 'autoscaler_resource_limits' type to the given stream. -func writeAutoscalerResourceLimits(object *AutoscalerResourceLimits, stream *jsoniter.Stream) { +// WriteAutoscalerResourceLimits writes a value of the 'autoscaler_resource_limits' type to the given stream. +func WriteAutoscalerResourceLimits(object *AutoscalerResourceLimits, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeAutoscalerResourceLimits(object *AutoscalerResourceLimits, stream *jso stream.WriteMore() } stream.WriteObjectField("gpus") - writeAutoscalerResourceLimitsGPULimitList(object.gpus, stream) + WriteAutoscalerResourceLimitsGPULimitList(object.gpus, stream) count++ } present_ = object.bitmap_&2 != 0 && object.cores != nil @@ -57,7 +57,7 @@ func writeAutoscalerResourceLimits(object *AutoscalerResourceLimits, stream *jso stream.WriteMore() } stream.WriteObjectField("cores") - writeResourceRange(object.cores, stream) + WriteResourceRange(object.cores, stream) count++ } present_ = object.bitmap_&4 != 0 @@ -75,7 +75,7 @@ func writeAutoscalerResourceLimits(object *AutoscalerResourceLimits, stream *jso stream.WriteMore() } stream.WriteObjectField("memory") - writeResourceRange(object.memory, stream) + WriteResourceRange(object.memory, stream) } stream.WriteObjectEnd() } @@ -87,13 +87,13 @@ func UnmarshalAutoscalerResourceLimits(source interface{}) (object *AutoscalerRe if err != nil { return } - object = readAutoscalerResourceLimits(iterator) + object = ReadAutoscalerResourceLimits(iterator) err = iterator.Error return } -// readAutoscalerResourceLimits reads a value of the 'autoscaler_resource_limits' type from the given iterator. -func readAutoscalerResourceLimits(iterator *jsoniter.Iterator) *AutoscalerResourceLimits { +// ReadAutoscalerResourceLimits reads a value of the 'autoscaler_resource_limits' type from the given iterator. +func ReadAutoscalerResourceLimits(iterator *jsoniter.Iterator) *AutoscalerResourceLimits { object := &AutoscalerResourceLimits{} for { field := iterator.ReadObject() @@ -102,11 +102,11 @@ func readAutoscalerResourceLimits(iterator *jsoniter.Iterator) *AutoscalerResour } switch field { case "gpus": - value := readAutoscalerResourceLimitsGPULimitList(iterator) + value := ReadAutoscalerResourceLimitsGPULimitList(iterator) object.gpus = value object.bitmap_ |= 1 case "cores": - value := readResourceRange(iterator) + value := ReadResourceRange(iterator) object.cores = value object.bitmap_ |= 2 case "max_nodes_total": @@ -114,7 +114,7 @@ func readAutoscalerResourceLimits(iterator *jsoniter.Iterator) *AutoscalerResour object.maxNodesTotal = value object.bitmap_ |= 4 case "memory": - value := readResourceRange(iterator) + value := ReadResourceRange(iterator) object.memory = value object.bitmap_ |= 8 default: diff --git a/clustersmgmt/v1/autoscaler_scale_down_config_list_type_json.go b/clustersmgmt/v1/autoscaler_scale_down_config_list_type_json.go index 894773082..e073e4cf0 100644 --- a/clustersmgmt/v1/autoscaler_scale_down_config_list_type_json.go +++ b/clustersmgmt/v1/autoscaler_scale_down_config_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAutoscalerScaleDownConfigList(list []*AutoscalerScaleDownConfig, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAutoscalerScaleDownConfigList(list, stream) + WriteAutoscalerScaleDownConfigList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAutoscalerScaleDownConfigList(list []*AutoscalerScaleDownConfig, wri return stream.Error } -// writeAutoscalerScaleDownConfigList writes a list of value of the 'autoscaler_scale_down_config' type to +// WriteAutoscalerScaleDownConfigList writes a list of value of the 'autoscaler_scale_down_config' type to // the given stream. -func writeAutoscalerScaleDownConfigList(list []*AutoscalerScaleDownConfig, stream *jsoniter.Stream) { +func WriteAutoscalerScaleDownConfigList(list []*AutoscalerScaleDownConfig, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAutoscalerScaleDownConfig(value, stream) + WriteAutoscalerScaleDownConfig(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAutoscalerScaleDownConfigList(source interface{}) (items []*Autosc if err != nil { return } - items = readAutoscalerScaleDownConfigList(iterator) + items = ReadAutoscalerScaleDownConfigList(iterator) err = iterator.Error return } -// readAutoscalerScaleDownConfigList reads list of values of the ”autoscaler_scale_down_config' type from +// ReadAutoscalerScaleDownConfigList reads list of values of the ”autoscaler_scale_down_config' type from // the given iterator. -func readAutoscalerScaleDownConfigList(iterator *jsoniter.Iterator) []*AutoscalerScaleDownConfig { +func ReadAutoscalerScaleDownConfigList(iterator *jsoniter.Iterator) []*AutoscalerScaleDownConfig { list := []*AutoscalerScaleDownConfig{} for iterator.ReadArray() { - item := readAutoscalerScaleDownConfig(iterator) + item := ReadAutoscalerScaleDownConfig(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/autoscaler_scale_down_config_type.go b/clustersmgmt/v1/autoscaler_scale_down_config_type.go index c96c16ae0..5f4a516b3 100644 --- a/clustersmgmt/v1/autoscaler_scale_down_config_type.go +++ b/clustersmgmt/v1/autoscaler_scale_down_config_type.go @@ -200,6 +200,29 @@ func (l *AutoscalerScaleDownConfigList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AutoscalerScaleDownConfigList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AutoscalerScaleDownConfigList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AutoscalerScaleDownConfigList) SetItems(items []*AutoscalerScaleDownConfig) { + l.items = items +} + +// Items returns the items of the list. +func (l *AutoscalerScaleDownConfigList) Items() []*AutoscalerScaleDownConfig { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AutoscalerScaleDownConfigList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/autoscaler_scale_down_config_type_json.go b/clustersmgmt/v1/autoscaler_scale_down_config_type_json.go index e2bffe44b..bef1d40bc 100644 --- a/clustersmgmt/v1/autoscaler_scale_down_config_type_json.go +++ b/clustersmgmt/v1/autoscaler_scale_down_config_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAutoscalerScaleDownConfig writes a value of the 'autoscaler_scale_down_config' type to the given writer. func MarshalAutoscalerScaleDownConfig(object *AutoscalerScaleDownConfig, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAutoscalerScaleDownConfig(object, stream) + WriteAutoscalerScaleDownConfig(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAutoscalerScaleDownConfig(object *AutoscalerScaleDownConfig, writer return stream.Error } -// writeAutoscalerScaleDownConfig writes a value of the 'autoscaler_scale_down_config' type to the given stream. -func writeAutoscalerScaleDownConfig(object *AutoscalerScaleDownConfig, stream *jsoniter.Stream) { +// WriteAutoscalerScaleDownConfig writes a value of the 'autoscaler_scale_down_config' type to the given stream. +func WriteAutoscalerScaleDownConfig(object *AutoscalerScaleDownConfig, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -105,13 +105,13 @@ func UnmarshalAutoscalerScaleDownConfig(source interface{}) (object *AutoscalerS if err != nil { return } - object = readAutoscalerScaleDownConfig(iterator) + object = ReadAutoscalerScaleDownConfig(iterator) err = iterator.Error return } -// readAutoscalerScaleDownConfig reads a value of the 'autoscaler_scale_down_config' type from the given iterator. -func readAutoscalerScaleDownConfig(iterator *jsoniter.Iterator) *AutoscalerScaleDownConfig { +// ReadAutoscalerScaleDownConfig reads a value of the 'autoscaler_scale_down_config' type from the given iterator. +func ReadAutoscalerScaleDownConfig(iterator *jsoniter.Iterator) *AutoscalerScaleDownConfig { object := &AutoscalerScaleDownConfig{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/available_regions_inquiry_resource_json.go b/clustersmgmt/v1/available_regions_inquiry_resource_json.go index d1eb1e00d..8b861cf09 100644 --- a/clustersmgmt/v1/available_regions_inquiry_resource_json.go +++ b/clustersmgmt/v1/available_regions_inquiry_resource_json.go @@ -49,7 +49,7 @@ func readAvailableRegionsInquirySearchResponse(response *AvailableRegionsInquiry value := iterator.ReadInt() response.total = &value case "items": - items := readCloudRegionList(iterator) + items := ReadCloudRegionList(iterator) response.items = &CloudRegionList{ items: items, } diff --git a/clustersmgmt/v1/available_regions_resource_json.go b/clustersmgmt/v1/available_regions_resource_json.go index fd76fd34c..1207a1ec7 100644 --- a/clustersmgmt/v1/available_regions_resource_json.go +++ b/clustersmgmt/v1/available_regions_resource_json.go @@ -49,7 +49,7 @@ func readAvailableRegionsSearchResponse(response *AvailableRegionsSearchResponse value := iterator.ReadInt() response.total = &value case "items": - items := readCloudRegionList(iterator) + items := ReadCloudRegionList(iterator) response.items = &CloudRegionList{ items: items, } diff --git a/clustersmgmt/v1/aws_etcd_encryption_list_type_json.go b/clustersmgmt/v1/aws_etcd_encryption_list_type_json.go index fc5b0dfd4..7967f56a0 100644 --- a/clustersmgmt/v1/aws_etcd_encryption_list_type_json.go +++ b/clustersmgmt/v1/aws_etcd_encryption_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAwsEtcdEncryptionList(list []*AwsEtcdEncryption, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAwsEtcdEncryptionList(list, stream) + WriteAwsEtcdEncryptionList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAwsEtcdEncryptionList(list []*AwsEtcdEncryption, writer io.Writer) e return stream.Error } -// writeAwsEtcdEncryptionList writes a list of value of the 'aws_etcd_encryption' type to +// WriteAwsEtcdEncryptionList writes a list of value of the 'aws_etcd_encryption' type to // the given stream. -func writeAwsEtcdEncryptionList(list []*AwsEtcdEncryption, stream *jsoniter.Stream) { +func WriteAwsEtcdEncryptionList(list []*AwsEtcdEncryption, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAwsEtcdEncryption(value, stream) + WriteAwsEtcdEncryption(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAwsEtcdEncryptionList(source interface{}) (items []*AwsEtcdEncrypt if err != nil { return } - items = readAwsEtcdEncryptionList(iterator) + items = ReadAwsEtcdEncryptionList(iterator) err = iterator.Error return } -// readAwsEtcdEncryptionList reads list of values of the ”aws_etcd_encryption' type from +// ReadAwsEtcdEncryptionList reads list of values of the ”aws_etcd_encryption' type from // the given iterator. -func readAwsEtcdEncryptionList(iterator *jsoniter.Iterator) []*AwsEtcdEncryption { +func ReadAwsEtcdEncryptionList(iterator *jsoniter.Iterator) []*AwsEtcdEncryption { list := []*AwsEtcdEncryption{} for iterator.ReadArray() { - item := readAwsEtcdEncryption(iterator) + item := ReadAwsEtcdEncryption(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/aws_etcd_encryption_type.go b/clustersmgmt/v1/aws_etcd_encryption_type.go index 86e51bfc4..139c6cfd2 100644 --- a/clustersmgmt/v1/aws_etcd_encryption_type.go +++ b/clustersmgmt/v1/aws_etcd_encryption_type.go @@ -82,6 +82,29 @@ func (l *AwsEtcdEncryptionList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AwsEtcdEncryptionList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AwsEtcdEncryptionList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AwsEtcdEncryptionList) SetItems(items []*AwsEtcdEncryption) { + l.items = items +} + +// Items returns the items of the list. +func (l *AwsEtcdEncryptionList) Items() []*AwsEtcdEncryption { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AwsEtcdEncryptionList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/aws_etcd_encryption_type_json.go b/clustersmgmt/v1/aws_etcd_encryption_type_json.go index e5cf69363..56a5de363 100644 --- a/clustersmgmt/v1/aws_etcd_encryption_type_json.go +++ b/clustersmgmt/v1/aws_etcd_encryption_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAwsEtcdEncryption writes a value of the 'aws_etcd_encryption' type to the given writer. func MarshalAwsEtcdEncryption(object *AwsEtcdEncryption, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAwsEtcdEncryption(object, stream) + WriteAwsEtcdEncryption(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAwsEtcdEncryption(object *AwsEtcdEncryption, writer io.Writer) error return stream.Error } -// writeAwsEtcdEncryption writes a value of the 'aws_etcd_encryption' type to the given stream. -func writeAwsEtcdEncryption(object *AwsEtcdEncryption, stream *jsoniter.Stream) { +// WriteAwsEtcdEncryption writes a value of the 'aws_etcd_encryption' type to the given stream. +func WriteAwsEtcdEncryption(object *AwsEtcdEncryption, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalAwsEtcdEncryption(source interface{}) (object *AwsEtcdEncryption, if err != nil { return } - object = readAwsEtcdEncryption(iterator) + object = ReadAwsEtcdEncryption(iterator) err = iterator.Error return } -// readAwsEtcdEncryption reads a value of the 'aws_etcd_encryption' type from the given iterator. -func readAwsEtcdEncryption(iterator *jsoniter.Iterator) *AwsEtcdEncryption { +// ReadAwsEtcdEncryption reads a value of the 'aws_etcd_encryption' type from the given iterator. +func ReadAwsEtcdEncryption(iterator *jsoniter.Iterator) *AwsEtcdEncryption { object := &AwsEtcdEncryption{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/aws_flavour_list_type_json.go b/clustersmgmt/v1/aws_flavour_list_type_json.go index f0392f3b4..d5e28fc40 100644 --- a/clustersmgmt/v1/aws_flavour_list_type_json.go +++ b/clustersmgmt/v1/aws_flavour_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAWSFlavourList(list []*AWSFlavour, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAWSFlavourList(list, stream) + WriteAWSFlavourList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAWSFlavourList(list []*AWSFlavour, writer io.Writer) error { return stream.Error } -// writeAWSFlavourList writes a list of value of the 'AWS_flavour' type to +// WriteAWSFlavourList writes a list of value of the 'AWS_flavour' type to // the given stream. -func writeAWSFlavourList(list []*AWSFlavour, stream *jsoniter.Stream) { +func WriteAWSFlavourList(list []*AWSFlavour, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAWSFlavour(value, stream) + WriteAWSFlavour(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAWSFlavourList(source interface{}) (items []*AWSFlavour, err error if err != nil { return } - items = readAWSFlavourList(iterator) + items = ReadAWSFlavourList(iterator) err = iterator.Error return } -// readAWSFlavourList reads list of values of the ”AWS_flavour' type from +// ReadAWSFlavourList reads list of values of the ”AWS_flavour' type from // the given iterator. -func readAWSFlavourList(iterator *jsoniter.Iterator) []*AWSFlavour { +func ReadAWSFlavourList(iterator *jsoniter.Iterator) []*AWSFlavour { list := []*AWSFlavour{} for iterator.ReadArray() { - item := readAWSFlavour(iterator) + item := ReadAWSFlavour(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/aws_flavour_type.go b/clustersmgmt/v1/aws_flavour_type.go index 985e5a158..e5cf70615 100644 --- a/clustersmgmt/v1/aws_flavour_type.go +++ b/clustersmgmt/v1/aws_flavour_type.go @@ -206,6 +206,29 @@ func (l *AWSFlavourList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AWSFlavourList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AWSFlavourList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AWSFlavourList) SetItems(items []*AWSFlavour) { + l.items = items +} + +// Items returns the items of the list. +func (l *AWSFlavourList) Items() []*AWSFlavour { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AWSFlavourList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/aws_flavour_type_json.go b/clustersmgmt/v1/aws_flavour_type_json.go index 4eed76a12..bb402670e 100644 --- a/clustersmgmt/v1/aws_flavour_type_json.go +++ b/clustersmgmt/v1/aws_flavour_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAWSFlavour writes a value of the 'AWS_flavour' type to the given writer. func MarshalAWSFlavour(object *AWSFlavour, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAWSFlavour(object, stream) + WriteAWSFlavour(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAWSFlavour(object *AWSFlavour, writer io.Writer) error { return stream.Error } -// writeAWSFlavour writes a value of the 'AWS_flavour' type to the given stream. -func writeAWSFlavour(object *AWSFlavour, stream *jsoniter.Stream) { +// WriteAWSFlavour writes a value of the 'AWS_flavour' type to the given stream. +func WriteAWSFlavour(object *AWSFlavour, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -66,7 +66,7 @@ func writeAWSFlavour(object *AWSFlavour, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("infra_volume") - writeAWSVolume(object.infraVolume, stream) + WriteAWSVolume(object.infraVolume, stream) count++ } present_ = object.bitmap_&8 != 0 @@ -84,7 +84,7 @@ func writeAWSFlavour(object *AWSFlavour, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("master_volume") - writeAWSVolume(object.masterVolume, stream) + WriteAWSVolume(object.masterVolume, stream) count++ } present_ = object.bitmap_&32 != 0 && object.workerVolume != nil @@ -93,7 +93,7 @@ func writeAWSFlavour(object *AWSFlavour, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("worker_volume") - writeAWSVolume(object.workerVolume, stream) + WriteAWSVolume(object.workerVolume, stream) } stream.WriteObjectEnd() } @@ -105,13 +105,13 @@ func UnmarshalAWSFlavour(source interface{}) (object *AWSFlavour, err error) { if err != nil { return } - object = readAWSFlavour(iterator) + object = ReadAWSFlavour(iterator) err = iterator.Error return } -// readAWSFlavour reads a value of the 'AWS_flavour' type from the given iterator. -func readAWSFlavour(iterator *jsoniter.Iterator) *AWSFlavour { +// ReadAWSFlavour reads a value of the 'AWS_flavour' type from the given iterator. +func ReadAWSFlavour(iterator *jsoniter.Iterator) *AWSFlavour { object := &AWSFlavour{} for { field := iterator.ReadObject() @@ -128,7 +128,7 @@ func readAWSFlavour(iterator *jsoniter.Iterator) *AWSFlavour { object.infraInstanceType = value object.bitmap_ |= 2 case "infra_volume": - value := readAWSVolume(iterator) + value := ReadAWSVolume(iterator) object.infraVolume = value object.bitmap_ |= 4 case "master_instance_type": @@ -136,11 +136,11 @@ func readAWSFlavour(iterator *jsoniter.Iterator) *AWSFlavour { object.masterInstanceType = value object.bitmap_ |= 8 case "master_volume": - value := readAWSVolume(iterator) + value := ReadAWSVolume(iterator) object.masterVolume = value object.bitmap_ |= 16 case "worker_volume": - value := readAWSVolume(iterator) + value := ReadAWSVolume(iterator) object.workerVolume = value object.bitmap_ |= 32 default: diff --git a/clustersmgmt/v1/aws_infrastructure_access_role_grant_list_type_json.go b/clustersmgmt/v1/aws_infrastructure_access_role_grant_list_type_json.go index ef64d80f0..4178fdb45 100644 --- a/clustersmgmt/v1/aws_infrastructure_access_role_grant_list_type_json.go +++ b/clustersmgmt/v1/aws_infrastructure_access_role_grant_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAWSInfrastructureAccessRoleGrantList(list []*AWSInfrastructureAccessRoleGrant, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAWSInfrastructureAccessRoleGrantList(list, stream) + WriteAWSInfrastructureAccessRoleGrantList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAWSInfrastructureAccessRoleGrantList(list []*AWSInfrastructureAccess return stream.Error } -// writeAWSInfrastructureAccessRoleGrantList writes a list of value of the 'AWS_infrastructure_access_role_grant' type to +// WriteAWSInfrastructureAccessRoleGrantList writes a list of value of the 'AWS_infrastructure_access_role_grant' type to // the given stream. -func writeAWSInfrastructureAccessRoleGrantList(list []*AWSInfrastructureAccessRoleGrant, stream *jsoniter.Stream) { +func WriteAWSInfrastructureAccessRoleGrantList(list []*AWSInfrastructureAccessRoleGrant, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAWSInfrastructureAccessRoleGrant(value, stream) + WriteAWSInfrastructureAccessRoleGrant(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAWSInfrastructureAccessRoleGrantList(source interface{}) (items [] if err != nil { return } - items = readAWSInfrastructureAccessRoleGrantList(iterator) + items = ReadAWSInfrastructureAccessRoleGrantList(iterator) err = iterator.Error return } -// readAWSInfrastructureAccessRoleGrantList reads list of values of the ”AWS_infrastructure_access_role_grant' type from +// ReadAWSInfrastructureAccessRoleGrantList reads list of values of the ”AWS_infrastructure_access_role_grant' type from // the given iterator. -func readAWSInfrastructureAccessRoleGrantList(iterator *jsoniter.Iterator) []*AWSInfrastructureAccessRoleGrant { +func ReadAWSInfrastructureAccessRoleGrantList(iterator *jsoniter.Iterator) []*AWSInfrastructureAccessRoleGrant { list := []*AWSInfrastructureAccessRoleGrant{} for iterator.ReadArray() { - item := readAWSInfrastructureAccessRoleGrant(iterator) + item := ReadAWSInfrastructureAccessRoleGrant(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/aws_infrastructure_access_role_grant_state_list_type_json.go b/clustersmgmt/v1/aws_infrastructure_access_role_grant_state_list_type_json.go index 3fffa139b..ae902ad93 100644 --- a/clustersmgmt/v1/aws_infrastructure_access_role_grant_state_list_type_json.go +++ b/clustersmgmt/v1/aws_infrastructure_access_role_grant_state_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAWSInfrastructureAccessRoleGrantStateList(list []AWSInfrastructureAccessRoleGrantState, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAWSInfrastructureAccessRoleGrantStateList(list, stream) + WriteAWSInfrastructureAccessRoleGrantStateList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalAWSInfrastructureAccessRoleGrantStateList(list []AWSInfrastructureAc return stream.Error } -// writeAWSInfrastructureAccessRoleGrantStateList writes a list of value of the 'AWS_infrastructure_access_role_grant_state' type to +// WriteAWSInfrastructureAccessRoleGrantStateList writes a list of value of the 'AWS_infrastructure_access_role_grant_state' type to // the given stream. -func writeAWSInfrastructureAccessRoleGrantStateList(list []AWSInfrastructureAccessRoleGrantState, stream *jsoniter.Stream) { +func WriteAWSInfrastructureAccessRoleGrantStateList(list []AWSInfrastructureAccessRoleGrantState, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalAWSInfrastructureAccessRoleGrantStateList(source interface{}) (ite if err != nil { return } - items = readAWSInfrastructureAccessRoleGrantStateList(iterator) + items = ReadAWSInfrastructureAccessRoleGrantStateList(iterator) err = iterator.Error return } -// readAWSInfrastructureAccessRoleGrantStateList reads list of values of the ”AWS_infrastructure_access_role_grant_state' type from +// ReadAWSInfrastructureAccessRoleGrantStateList reads list of values of the ”AWS_infrastructure_access_role_grant_state' type from // the given iterator. -func readAWSInfrastructureAccessRoleGrantStateList(iterator *jsoniter.Iterator) []AWSInfrastructureAccessRoleGrantState { +func ReadAWSInfrastructureAccessRoleGrantStateList(iterator *jsoniter.Iterator) []AWSInfrastructureAccessRoleGrantState { list := []AWSInfrastructureAccessRoleGrantState{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/aws_infrastructure_access_role_grant_type.go b/clustersmgmt/v1/aws_infrastructure_access_role_grant_type.go index 455500d52..a089f08d3 100644 --- a/clustersmgmt/v1/aws_infrastructure_access_role_grant_type.go +++ b/clustersmgmt/v1/aws_infrastructure_access_role_grant_type.go @@ -56,7 +56,7 @@ func (o *AWSInfrastructureAccessRoleGrant) Kind() string { return AWSInfrastructureAccessRoleGrantKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *AWSInfrastructureAccessRoleGrant) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -282,6 +282,29 @@ func (l *AWSInfrastructureAccessRoleGrantList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AWSInfrastructureAccessRoleGrantList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AWSInfrastructureAccessRoleGrantList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AWSInfrastructureAccessRoleGrantList) SetItems(items []*AWSInfrastructureAccessRoleGrant) { + l.items = items +} + +// Items returns the items of the list. +func (l *AWSInfrastructureAccessRoleGrantList) Items() []*AWSInfrastructureAccessRoleGrant { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AWSInfrastructureAccessRoleGrantList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/aws_infrastructure_access_role_grant_type_json.go b/clustersmgmt/v1/aws_infrastructure_access_role_grant_type_json.go index d6c000811..101f25382 100644 --- a/clustersmgmt/v1/aws_infrastructure_access_role_grant_type_json.go +++ b/clustersmgmt/v1/aws_infrastructure_access_role_grant_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAWSInfrastructureAccessRoleGrant writes a value of the 'AWS_infrastructure_access_role_grant' type to the given writer. func MarshalAWSInfrastructureAccessRoleGrant(object *AWSInfrastructureAccessRoleGrant, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAWSInfrastructureAccessRoleGrant(object, stream) + WriteAWSInfrastructureAccessRoleGrant(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAWSInfrastructureAccessRoleGrant(object *AWSInfrastructureAccessRole return stream.Error } -// writeAWSInfrastructureAccessRoleGrant writes a value of the 'AWS_infrastructure_access_role_grant' type to the given stream. -func writeAWSInfrastructureAccessRoleGrant(object *AWSInfrastructureAccessRoleGrant, stream *jsoniter.Stream) { +// WriteAWSInfrastructureAccessRoleGrant writes a value of the 'AWS_infrastructure_access_role_grant' type to the given stream. +func WriteAWSInfrastructureAccessRoleGrant(object *AWSInfrastructureAccessRoleGrant, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -80,7 +80,7 @@ func writeAWSInfrastructureAccessRoleGrant(object *AWSInfrastructureAccessRoleGr stream.WriteMore() } stream.WriteObjectField("role") - writeAWSInfrastructureAccessRole(object.role, stream) + WriteAWSInfrastructureAccessRole(object.role, stream) count++ } present_ = object.bitmap_&32 != 0 @@ -119,13 +119,13 @@ func UnmarshalAWSInfrastructureAccessRoleGrant(source interface{}) (object *AWSI if err != nil { return } - object = readAWSInfrastructureAccessRoleGrant(iterator) + object = ReadAWSInfrastructureAccessRoleGrant(iterator) err = iterator.Error return } -// readAWSInfrastructureAccessRoleGrant reads a value of the 'AWS_infrastructure_access_role_grant' type from the given iterator. -func readAWSInfrastructureAccessRoleGrant(iterator *jsoniter.Iterator) *AWSInfrastructureAccessRoleGrant { +// ReadAWSInfrastructureAccessRoleGrant reads a value of the 'AWS_infrastructure_access_role_grant' type from the given iterator. +func ReadAWSInfrastructureAccessRoleGrant(iterator *jsoniter.Iterator) *AWSInfrastructureAccessRoleGrant { object := &AWSInfrastructureAccessRoleGrant{} for { field := iterator.ReadObject() @@ -149,7 +149,7 @@ func readAWSInfrastructureAccessRoleGrant(iterator *jsoniter.Iterator) *AWSInfra object.consoleURL = value object.bitmap_ |= 8 case "role": - value := readAWSInfrastructureAccessRole(iterator) + value := ReadAWSInfrastructureAccessRole(iterator) object.role = value object.bitmap_ |= 16 case "state": diff --git a/clustersmgmt/v1/aws_infrastructure_access_role_grants_resource_json.go b/clustersmgmt/v1/aws_infrastructure_access_role_grants_resource_json.go index 09a6ee2a9..355d2318f 100644 --- a/clustersmgmt/v1/aws_infrastructure_access_role_grants_resource_json.go +++ b/clustersmgmt/v1/aws_infrastructure_access_role_grants_resource_json.go @@ -57,7 +57,7 @@ func readAWSInfrastructureAccessRoleGrantsListResponse(response *AWSInfrastructu value := iterator.ReadInt() response.total = &value case "items": - items := readAWSInfrastructureAccessRoleGrantList(iterator) + items := ReadAWSInfrastructureAccessRoleGrantList(iterator) response.items = &AWSInfrastructureAccessRoleGrantList{ items: items, } diff --git a/clustersmgmt/v1/aws_infrastructure_access_role_list_type_json.go b/clustersmgmt/v1/aws_infrastructure_access_role_list_type_json.go index 1c0bbd70c..9248ff957 100644 --- a/clustersmgmt/v1/aws_infrastructure_access_role_list_type_json.go +++ b/clustersmgmt/v1/aws_infrastructure_access_role_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAWSInfrastructureAccessRoleList(list []*AWSInfrastructureAccessRole, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAWSInfrastructureAccessRoleList(list, stream) + WriteAWSInfrastructureAccessRoleList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAWSInfrastructureAccessRoleList(list []*AWSInfrastructureAccessRole, return stream.Error } -// writeAWSInfrastructureAccessRoleList writes a list of value of the 'AWS_infrastructure_access_role' type to +// WriteAWSInfrastructureAccessRoleList writes a list of value of the 'AWS_infrastructure_access_role' type to // the given stream. -func writeAWSInfrastructureAccessRoleList(list []*AWSInfrastructureAccessRole, stream *jsoniter.Stream) { +func WriteAWSInfrastructureAccessRoleList(list []*AWSInfrastructureAccessRole, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAWSInfrastructureAccessRole(value, stream) + WriteAWSInfrastructureAccessRole(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAWSInfrastructureAccessRoleList(source interface{}) (items []*AWSI if err != nil { return } - items = readAWSInfrastructureAccessRoleList(iterator) + items = ReadAWSInfrastructureAccessRoleList(iterator) err = iterator.Error return } -// readAWSInfrastructureAccessRoleList reads list of values of the ”AWS_infrastructure_access_role' type from +// ReadAWSInfrastructureAccessRoleList reads list of values of the ”AWS_infrastructure_access_role' type from // the given iterator. -func readAWSInfrastructureAccessRoleList(iterator *jsoniter.Iterator) []*AWSInfrastructureAccessRole { +func ReadAWSInfrastructureAccessRoleList(iterator *jsoniter.Iterator) []*AWSInfrastructureAccessRole { list := []*AWSInfrastructureAccessRole{} for iterator.ReadArray() { - item := readAWSInfrastructureAccessRole(iterator) + item := ReadAWSInfrastructureAccessRole(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/aws_infrastructure_access_role_state_list_type_json.go b/clustersmgmt/v1/aws_infrastructure_access_role_state_list_type_json.go index 4a322a857..cce5d368d 100644 --- a/clustersmgmt/v1/aws_infrastructure_access_role_state_list_type_json.go +++ b/clustersmgmt/v1/aws_infrastructure_access_role_state_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAWSInfrastructureAccessRoleStateList(list []AWSInfrastructureAccessRoleState, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAWSInfrastructureAccessRoleStateList(list, stream) + WriteAWSInfrastructureAccessRoleStateList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalAWSInfrastructureAccessRoleStateList(list []AWSInfrastructureAccessR return stream.Error } -// writeAWSInfrastructureAccessRoleStateList writes a list of value of the 'AWS_infrastructure_access_role_state' type to +// WriteAWSInfrastructureAccessRoleStateList writes a list of value of the 'AWS_infrastructure_access_role_state' type to // the given stream. -func writeAWSInfrastructureAccessRoleStateList(list []AWSInfrastructureAccessRoleState, stream *jsoniter.Stream) { +func WriteAWSInfrastructureAccessRoleStateList(list []AWSInfrastructureAccessRoleState, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalAWSInfrastructureAccessRoleStateList(source interface{}) (items [] if err != nil { return } - items = readAWSInfrastructureAccessRoleStateList(iterator) + items = ReadAWSInfrastructureAccessRoleStateList(iterator) err = iterator.Error return } -// readAWSInfrastructureAccessRoleStateList reads list of values of the ”AWS_infrastructure_access_role_state' type from +// ReadAWSInfrastructureAccessRoleStateList reads list of values of the ”AWS_infrastructure_access_role_state' type from // the given iterator. -func readAWSInfrastructureAccessRoleStateList(iterator *jsoniter.Iterator) []AWSInfrastructureAccessRoleState { +func ReadAWSInfrastructureAccessRoleStateList(iterator *jsoniter.Iterator) []AWSInfrastructureAccessRoleState { list := []AWSInfrastructureAccessRoleState{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/aws_infrastructure_access_role_type.go b/clustersmgmt/v1/aws_infrastructure_access_role_type.go index f797e2fcb..f4ff9edff 100644 --- a/clustersmgmt/v1/aws_infrastructure_access_role_type.go +++ b/clustersmgmt/v1/aws_infrastructure_access_role_type.go @@ -54,7 +54,7 @@ func (o *AWSInfrastructureAccessRole) Kind() string { return AWSInfrastructureAccessRoleKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *AWSInfrastructureAccessRole) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -230,6 +230,29 @@ func (l *AWSInfrastructureAccessRoleList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AWSInfrastructureAccessRoleList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AWSInfrastructureAccessRoleList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AWSInfrastructureAccessRoleList) SetItems(items []*AWSInfrastructureAccessRole) { + l.items = items +} + +// Items returns the items of the list. +func (l *AWSInfrastructureAccessRoleList) Items() []*AWSInfrastructureAccessRole { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AWSInfrastructureAccessRoleList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/aws_infrastructure_access_role_type_json.go b/clustersmgmt/v1/aws_infrastructure_access_role_type_json.go index bea6e448a..89aeaf0a9 100644 --- a/clustersmgmt/v1/aws_infrastructure_access_role_type_json.go +++ b/clustersmgmt/v1/aws_infrastructure_access_role_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAWSInfrastructureAccessRole writes a value of the 'AWS_infrastructure_access_role' type to the given writer. func MarshalAWSInfrastructureAccessRole(object *AWSInfrastructureAccessRole, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAWSInfrastructureAccessRole(object, stream) + WriteAWSInfrastructureAccessRole(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAWSInfrastructureAccessRole(object *AWSInfrastructureAccessRole, wri return stream.Error } -// writeAWSInfrastructureAccessRole writes a value of the 'AWS_infrastructure_access_role' type to the given stream. -func writeAWSInfrastructureAccessRole(object *AWSInfrastructureAccessRole, stream *jsoniter.Stream) { +// WriteAWSInfrastructureAccessRole writes a value of the 'AWS_infrastructure_access_role' type to the given stream. +func WriteAWSInfrastructureAccessRole(object *AWSInfrastructureAccessRole, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -101,13 +101,13 @@ func UnmarshalAWSInfrastructureAccessRole(source interface{}) (object *AWSInfras if err != nil { return } - object = readAWSInfrastructureAccessRole(iterator) + object = ReadAWSInfrastructureAccessRole(iterator) err = iterator.Error return } -// readAWSInfrastructureAccessRole reads a value of the 'AWS_infrastructure_access_role' type from the given iterator. -func readAWSInfrastructureAccessRole(iterator *jsoniter.Iterator) *AWSInfrastructureAccessRole { +// ReadAWSInfrastructureAccessRole reads a value of the 'AWS_infrastructure_access_role' type from the given iterator. +func ReadAWSInfrastructureAccessRole(iterator *jsoniter.Iterator) *AWSInfrastructureAccessRole { object := &AWSInfrastructureAccessRole{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/aws_infrastructure_access_roles_resource_json.go b/clustersmgmt/v1/aws_infrastructure_access_roles_resource_json.go index 3882d0789..cd0f02164 100644 --- a/clustersmgmt/v1/aws_infrastructure_access_roles_resource_json.go +++ b/clustersmgmt/v1/aws_infrastructure_access_roles_resource_json.go @@ -49,7 +49,7 @@ func readAWSInfrastructureAccessRolesListResponse(response *AWSInfrastructureAcc value := iterator.ReadInt() response.total = &value case "items": - items := readAWSInfrastructureAccessRoleList(iterator) + items := ReadAWSInfrastructureAccessRoleList(iterator) response.items = &AWSInfrastructureAccessRoleList{ items: items, } diff --git a/clustersmgmt/v1/aws_list_type_json.go b/clustersmgmt/v1/aws_list_type_json.go index 09860aa56..7cf90cb1a 100644 --- a/clustersmgmt/v1/aws_list_type_json.go +++ b/clustersmgmt/v1/aws_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAWSList(list []*AWS, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAWSList(list, stream) + WriteAWSList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAWSList(list []*AWS, writer io.Writer) error { return stream.Error } -// writeAWSList writes a list of value of the 'AWS' type to +// WriteAWSList writes a list of value of the 'AWS' type to // the given stream. -func writeAWSList(list []*AWS, stream *jsoniter.Stream) { +func WriteAWSList(list []*AWS, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAWS(value, stream) + WriteAWS(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAWSList(source interface{}) (items []*AWS, err error) { if err != nil { return } - items = readAWSList(iterator) + items = ReadAWSList(iterator) err = iterator.Error return } -// readAWSList reads list of values of the ”AWS' type from +// ReadAWSList reads list of values of the ”AWS' type from // the given iterator. -func readAWSList(iterator *jsoniter.Iterator) []*AWS { +func ReadAWSList(iterator *jsoniter.Iterator) []*AWS { list := []*AWS{} for iterator.ReadArray() { - item := readAWS(iterator) + item := ReadAWS(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/aws_machine_pool_list_type_json.go b/clustersmgmt/v1/aws_machine_pool_list_type_json.go index ed0630fe9..77ab28419 100644 --- a/clustersmgmt/v1/aws_machine_pool_list_type_json.go +++ b/clustersmgmt/v1/aws_machine_pool_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAWSMachinePoolList(list []*AWSMachinePool, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAWSMachinePoolList(list, stream) + WriteAWSMachinePoolList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAWSMachinePoolList(list []*AWSMachinePool, writer io.Writer) error { return stream.Error } -// writeAWSMachinePoolList writes a list of value of the 'AWS_machine_pool' type to +// WriteAWSMachinePoolList writes a list of value of the 'AWS_machine_pool' type to // the given stream. -func writeAWSMachinePoolList(list []*AWSMachinePool, stream *jsoniter.Stream) { +func WriteAWSMachinePoolList(list []*AWSMachinePool, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAWSMachinePool(value, stream) + WriteAWSMachinePool(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAWSMachinePoolList(source interface{}) (items []*AWSMachinePool, e if err != nil { return } - items = readAWSMachinePoolList(iterator) + items = ReadAWSMachinePoolList(iterator) err = iterator.Error return } -// readAWSMachinePoolList reads list of values of the ”AWS_machine_pool' type from +// ReadAWSMachinePoolList reads list of values of the ”AWS_machine_pool' type from // the given iterator. -func readAWSMachinePoolList(iterator *jsoniter.Iterator) []*AWSMachinePool { +func ReadAWSMachinePoolList(iterator *jsoniter.Iterator) []*AWSMachinePool { list := []*AWSMachinePool{} for iterator.ReadArray() { - item := readAWSMachinePool(iterator) + item := ReadAWSMachinePool(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/aws_machine_pool_type.go b/clustersmgmt/v1/aws_machine_pool_type.go index 849de77a3..9bd8360a5 100644 --- a/clustersmgmt/v1/aws_machine_pool_type.go +++ b/clustersmgmt/v1/aws_machine_pool_type.go @@ -56,7 +56,7 @@ func (o *AWSMachinePool) Kind() string { return AWSMachinePoolKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *AWSMachinePool) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -292,6 +292,29 @@ func (l *AWSMachinePoolList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AWSMachinePoolList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AWSMachinePoolList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AWSMachinePoolList) SetItems(items []*AWSMachinePool) { + l.items = items +} + +// Items returns the items of the list. +func (l *AWSMachinePoolList) Items() []*AWSMachinePool { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AWSMachinePoolList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/aws_machine_pool_type_json.go b/clustersmgmt/v1/aws_machine_pool_type_json.go index 3ca3063a8..27396d418 100644 --- a/clustersmgmt/v1/aws_machine_pool_type_json.go +++ b/clustersmgmt/v1/aws_machine_pool_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalAWSMachinePool writes a value of the 'AWS_machine_pool' type to the given writer. func MarshalAWSMachinePool(object *AWSMachinePool, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAWSMachinePool(object, stream) + WriteAWSMachinePool(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalAWSMachinePool(object *AWSMachinePool, writer io.Writer) error { return stream.Error } -// writeAWSMachinePool writes a value of the 'AWS_machine_pool' type to the given stream. -func writeAWSMachinePool(object *AWSMachinePool, stream *jsoniter.Stream) { +// WriteAWSMachinePool writes a value of the 'AWS_machine_pool' type to the given stream. +func WriteAWSMachinePool(object *AWSMachinePool, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -72,7 +72,7 @@ func writeAWSMachinePool(object *AWSMachinePool, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("additional_security_group_ids") - writeStringList(object.additionalSecurityGroupIds, stream) + WriteStringList(object.additionalSecurityGroupIds, stream) count++ } present_ = object.bitmap_&16 != 0 && object.availabilityZoneTypes != nil @@ -110,7 +110,7 @@ func writeAWSMachinePool(object *AWSMachinePool, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("spot_market_options") - writeAWSSpotMarketOptions(object.spotMarketOptions, stream) + WriteAWSSpotMarketOptions(object.spotMarketOptions, stream) count++ } present_ = object.bitmap_&64 != 0 && object.subnetOutposts != nil @@ -180,13 +180,13 @@ func UnmarshalAWSMachinePool(source interface{}) (object *AWSMachinePool, err er if err != nil { return } - object = readAWSMachinePool(iterator) + object = ReadAWSMachinePool(iterator) err = iterator.Error return } -// readAWSMachinePool reads a value of the 'AWS_machine_pool' type from the given iterator. -func readAWSMachinePool(iterator *jsoniter.Iterator) *AWSMachinePool { +// ReadAWSMachinePool reads a value of the 'AWS_machine_pool' type from the given iterator. +func ReadAWSMachinePool(iterator *jsoniter.Iterator) *AWSMachinePool { object := &AWSMachinePool{} for { field := iterator.ReadObject() @@ -206,7 +206,7 @@ func readAWSMachinePool(iterator *jsoniter.Iterator) *AWSMachinePool { object.href = iterator.ReadString() object.bitmap_ |= 4 case "additional_security_group_ids": - value := readStringList(iterator) + value := ReadStringList(iterator) object.additionalSecurityGroupIds = value object.bitmap_ |= 8 case "availability_zone_types": @@ -222,7 +222,7 @@ func readAWSMachinePool(iterator *jsoniter.Iterator) *AWSMachinePool { object.availabilityZoneTypes = value object.bitmap_ |= 16 case "spot_market_options": - value := readAWSSpotMarketOptions(iterator) + value := ReadAWSSpotMarketOptions(iterator) object.spotMarketOptions = value object.bitmap_ |= 32 case "subnet_outposts": diff --git a/clustersmgmt/v1/aws_node_pool_list_type_json.go b/clustersmgmt/v1/aws_node_pool_list_type_json.go index 0dccd3f0e..77b492d50 100644 --- a/clustersmgmt/v1/aws_node_pool_list_type_json.go +++ b/clustersmgmt/v1/aws_node_pool_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAWSNodePoolList(list []*AWSNodePool, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAWSNodePoolList(list, stream) + WriteAWSNodePoolList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAWSNodePoolList(list []*AWSNodePool, writer io.Writer) error { return stream.Error } -// writeAWSNodePoolList writes a list of value of the 'AWS_node_pool' type to +// WriteAWSNodePoolList writes a list of value of the 'AWS_node_pool' type to // the given stream. -func writeAWSNodePoolList(list []*AWSNodePool, stream *jsoniter.Stream) { +func WriteAWSNodePoolList(list []*AWSNodePool, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAWSNodePool(value, stream) + WriteAWSNodePool(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAWSNodePoolList(source interface{}) (items []*AWSNodePool, err err if err != nil { return } - items = readAWSNodePoolList(iterator) + items = ReadAWSNodePoolList(iterator) err = iterator.Error return } -// readAWSNodePoolList reads list of values of the ”AWS_node_pool' type from +// ReadAWSNodePoolList reads list of values of the ”AWS_node_pool' type from // the given iterator. -func readAWSNodePoolList(iterator *jsoniter.Iterator) []*AWSNodePool { +func ReadAWSNodePoolList(iterator *jsoniter.Iterator) []*AWSNodePool { list := []*AWSNodePool{} for iterator.ReadArray() { - item := readAWSNodePool(iterator) + item := ReadAWSNodePool(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/aws_node_pool_type.go b/clustersmgmt/v1/aws_node_pool_type.go index d21828199..12a9e8de3 100644 --- a/clustersmgmt/v1/aws_node_pool_type.go +++ b/clustersmgmt/v1/aws_node_pool_type.go @@ -59,7 +59,7 @@ func (o *AWSNodePool) Kind() string { return AWSNodePoolKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *AWSNodePool) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -364,6 +364,29 @@ func (l *AWSNodePoolList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AWSNodePoolList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AWSNodePoolList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AWSNodePoolList) SetItems(items []*AWSNodePool) { + l.items = items +} + +// Items returns the items of the list. +func (l *AWSNodePoolList) Items() []*AWSNodePool { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AWSNodePoolList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/aws_node_pool_type_json.go b/clustersmgmt/v1/aws_node_pool_type_json.go index c2722bbf9..a5b42e45c 100644 --- a/clustersmgmt/v1/aws_node_pool_type_json.go +++ b/clustersmgmt/v1/aws_node_pool_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalAWSNodePool writes a value of the 'AWS_node_pool' type to the given writer. func MarshalAWSNodePool(object *AWSNodePool, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAWSNodePool(object, stream) + WriteAWSNodePool(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalAWSNodePool(object *AWSNodePool, writer io.Writer) error { return stream.Error } -// writeAWSNodePool writes a value of the 'AWS_node_pool' type to the given stream. -func writeAWSNodePool(object *AWSNodePool, stream *jsoniter.Stream) { +// WriteAWSNodePool writes a value of the 'AWS_node_pool' type to the given stream. +func WriteAWSNodePool(object *AWSNodePool, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -72,7 +72,7 @@ func writeAWSNodePool(object *AWSNodePool, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("additional_security_group_ids") - writeStringList(object.additionalSecurityGroupIds, stream) + WriteStringList(object.additionalSecurityGroupIds, stream) count++ } present_ = object.bitmap_&16 != 0 && object.availabilityZoneTypes != nil @@ -137,7 +137,7 @@ func writeAWSNodePool(object *AWSNodePool, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("root_volume") - writeAWSVolume(object.rootVolume, stream) + WriteAWSVolume(object.rootVolume, stream) count++ } present_ = object.bitmap_&512 != 0 && object.subnetOutposts != nil @@ -207,13 +207,13 @@ func UnmarshalAWSNodePool(source interface{}) (object *AWSNodePool, err error) { if err != nil { return } - object = readAWSNodePool(iterator) + object = ReadAWSNodePool(iterator) err = iterator.Error return } -// readAWSNodePool reads a value of the 'AWS_node_pool' type from the given iterator. -func readAWSNodePool(iterator *jsoniter.Iterator) *AWSNodePool { +// ReadAWSNodePool reads a value of the 'AWS_node_pool' type from the given iterator. +func ReadAWSNodePool(iterator *jsoniter.Iterator) *AWSNodePool { object := &AWSNodePool{} for { field := iterator.ReadObject() @@ -233,7 +233,7 @@ func readAWSNodePool(iterator *jsoniter.Iterator) *AWSNodePool { object.href = iterator.ReadString() object.bitmap_ |= 4 case "additional_security_group_ids": - value := readStringList(iterator) + value := ReadStringList(iterator) object.additionalSecurityGroupIds = value object.bitmap_ |= 8 case "availability_zone_types": @@ -262,7 +262,7 @@ func readAWSNodePool(iterator *jsoniter.Iterator) *AWSNodePool { object.instanceType = value object.bitmap_ |= 128 case "root_volume": - value := readAWSVolume(iterator) + value := ReadAWSVolume(iterator) object.rootVolume = value object.bitmap_ |= 256 case "subnet_outposts": diff --git a/clustersmgmt/v1/aws_region_machine_types_inquiry_resource_json.go b/clustersmgmt/v1/aws_region_machine_types_inquiry_resource_json.go index 0dea6e02b..26992e180 100644 --- a/clustersmgmt/v1/aws_region_machine_types_inquiry_resource_json.go +++ b/clustersmgmt/v1/aws_region_machine_types_inquiry_resource_json.go @@ -49,7 +49,7 @@ func readAWSRegionMachineTypesInquirySearchResponse(response *AWSRegionMachineTy value := iterator.ReadInt() response.total = &value case "items": - items := readMachineTypeList(iterator) + items := ReadMachineTypeList(iterator) response.items = &MachineTypeList{ items: items, } diff --git a/clustersmgmt/v1/aws_shard_list_type_json.go b/clustersmgmt/v1/aws_shard_list_type_json.go index e926d2e3e..f272ad173 100644 --- a/clustersmgmt/v1/aws_shard_list_type_json.go +++ b/clustersmgmt/v1/aws_shard_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAWSShardList(list []*AWSShard, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAWSShardList(list, stream) + WriteAWSShardList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAWSShardList(list []*AWSShard, writer io.Writer) error { return stream.Error } -// writeAWSShardList writes a list of value of the 'AWS_shard' type to +// WriteAWSShardList writes a list of value of the 'AWS_shard' type to // the given stream. -func writeAWSShardList(list []*AWSShard, stream *jsoniter.Stream) { +func WriteAWSShardList(list []*AWSShard, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAWSShard(value, stream) + WriteAWSShard(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAWSShardList(source interface{}) (items []*AWSShard, err error) { if err != nil { return } - items = readAWSShardList(iterator) + items = ReadAWSShardList(iterator) err = iterator.Error return } -// readAWSShardList reads list of values of the ”AWS_shard' type from +// ReadAWSShardList reads list of values of the ”AWS_shard' type from // the given iterator. -func readAWSShardList(iterator *jsoniter.Iterator) []*AWSShard { +func ReadAWSShardList(iterator *jsoniter.Iterator) []*AWSShard { list := []*AWSShard{} for iterator.ReadArray() { - item := readAWSShard(iterator) + item := ReadAWSShard(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/aws_shard_type.go b/clustersmgmt/v1/aws_shard_type.go index 77648d143..002eb03c2 100644 --- a/clustersmgmt/v1/aws_shard_type.go +++ b/clustersmgmt/v1/aws_shard_type.go @@ -82,6 +82,29 @@ func (l *AWSShardList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AWSShardList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AWSShardList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AWSShardList) SetItems(items []*AWSShard) { + l.items = items +} + +// Items returns the items of the list. +func (l *AWSShardList) Items() []*AWSShard { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AWSShardList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/aws_shard_type_json.go b/clustersmgmt/v1/aws_shard_type_json.go index 94c836cde..bf1052b5c 100644 --- a/clustersmgmt/v1/aws_shard_type_json.go +++ b/clustersmgmt/v1/aws_shard_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAWSShard writes a value of the 'AWS_shard' type to the given writer. func MarshalAWSShard(object *AWSShard, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAWSShard(object, stream) + WriteAWSShard(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAWSShard(object *AWSShard, writer io.Writer) error { return stream.Error } -// writeAWSShard writes a value of the 'AWS_shard' type to the given stream. -func writeAWSShard(object *AWSShard, stream *jsoniter.Stream) { +// WriteAWSShard writes a value of the 'AWS_shard' type to the given stream. +func WriteAWSShard(object *AWSShard, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeAWSShard(object *AWSShard, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("ecr_repository_urls") - writeStringList(object.ecrRepositoryURLs, stream) + WriteStringList(object.ecrRepositoryURLs, stream) } stream.WriteObjectEnd() } @@ -60,13 +60,13 @@ func UnmarshalAWSShard(source interface{}) (object *AWSShard, err error) { if err != nil { return } - object = readAWSShard(iterator) + object = ReadAWSShard(iterator) err = iterator.Error return } -// readAWSShard reads a value of the 'AWS_shard' type from the given iterator. -func readAWSShard(iterator *jsoniter.Iterator) *AWSShard { +// ReadAWSShard reads a value of the 'AWS_shard' type from the given iterator. +func ReadAWSShard(iterator *jsoniter.Iterator) *AWSShard { object := &AWSShard{} for { field := iterator.ReadObject() @@ -75,7 +75,7 @@ func readAWSShard(iterator *jsoniter.Iterator) *AWSShard { } switch field { case "ecr_repository_urls": - value := readStringList(iterator) + value := ReadStringList(iterator) object.ecrRepositoryURLs = value object.bitmap_ |= 1 default: diff --git a/clustersmgmt/v1/aws_spot_market_options_list_type_json.go b/clustersmgmt/v1/aws_spot_market_options_list_type_json.go index 42fee2f98..794e61854 100644 --- a/clustersmgmt/v1/aws_spot_market_options_list_type_json.go +++ b/clustersmgmt/v1/aws_spot_market_options_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAWSSpotMarketOptionsList(list []*AWSSpotMarketOptions, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAWSSpotMarketOptionsList(list, stream) + WriteAWSSpotMarketOptionsList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAWSSpotMarketOptionsList(list []*AWSSpotMarketOptions, writer io.Wri return stream.Error } -// writeAWSSpotMarketOptionsList writes a list of value of the 'AWS_spot_market_options' type to +// WriteAWSSpotMarketOptionsList writes a list of value of the 'AWS_spot_market_options' type to // the given stream. -func writeAWSSpotMarketOptionsList(list []*AWSSpotMarketOptions, stream *jsoniter.Stream) { +func WriteAWSSpotMarketOptionsList(list []*AWSSpotMarketOptions, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAWSSpotMarketOptions(value, stream) + WriteAWSSpotMarketOptions(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAWSSpotMarketOptionsList(source interface{}) (items []*AWSSpotMark if err != nil { return } - items = readAWSSpotMarketOptionsList(iterator) + items = ReadAWSSpotMarketOptionsList(iterator) err = iterator.Error return } -// readAWSSpotMarketOptionsList reads list of values of the ”AWS_spot_market_options' type from +// ReadAWSSpotMarketOptionsList reads list of values of the ”AWS_spot_market_options' type from // the given iterator. -func readAWSSpotMarketOptionsList(iterator *jsoniter.Iterator) []*AWSSpotMarketOptions { +func ReadAWSSpotMarketOptionsList(iterator *jsoniter.Iterator) []*AWSSpotMarketOptions { list := []*AWSSpotMarketOptions{} for iterator.ReadArray() { - item := readAWSSpotMarketOptions(iterator) + item := ReadAWSSpotMarketOptions(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/aws_spot_market_options_type.go b/clustersmgmt/v1/aws_spot_market_options_type.go index 45072f2f1..627c49c9e 100644 --- a/clustersmgmt/v1/aws_spot_market_options_type.go +++ b/clustersmgmt/v1/aws_spot_market_options_type.go @@ -52,7 +52,7 @@ func (o *AWSSpotMarketOptions) Kind() string { return AWSSpotMarketOptionsKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *AWSSpotMarketOptions) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -184,6 +184,29 @@ func (l *AWSSpotMarketOptionsList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AWSSpotMarketOptionsList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AWSSpotMarketOptionsList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AWSSpotMarketOptionsList) SetItems(items []*AWSSpotMarketOptions) { + l.items = items +} + +// Items returns the items of the list. +func (l *AWSSpotMarketOptionsList) Items() []*AWSSpotMarketOptions { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AWSSpotMarketOptionsList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/aws_spot_market_options_type_json.go b/clustersmgmt/v1/aws_spot_market_options_type_json.go index 13f029d8d..8085af945 100644 --- a/clustersmgmt/v1/aws_spot_market_options_type_json.go +++ b/clustersmgmt/v1/aws_spot_market_options_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAWSSpotMarketOptions writes a value of the 'AWS_spot_market_options' type to the given writer. func MarshalAWSSpotMarketOptions(object *AWSSpotMarketOptions, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAWSSpotMarketOptions(object, stream) + WriteAWSSpotMarketOptions(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAWSSpotMarketOptions(object *AWSSpotMarketOptions, writer io.Writer) return stream.Error } -// writeAWSSpotMarketOptions writes a value of the 'AWS_spot_market_options' type to the given stream. -func writeAWSSpotMarketOptions(object *AWSSpotMarketOptions, stream *jsoniter.Stream) { +// WriteAWSSpotMarketOptions writes a value of the 'AWS_spot_market_options' type to the given stream. +func WriteAWSSpotMarketOptions(object *AWSSpotMarketOptions, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -83,13 +83,13 @@ func UnmarshalAWSSpotMarketOptions(source interface{}) (object *AWSSpotMarketOpt if err != nil { return } - object = readAWSSpotMarketOptions(iterator) + object = ReadAWSSpotMarketOptions(iterator) err = iterator.Error return } -// readAWSSpotMarketOptions reads a value of the 'AWS_spot_market_options' type from the given iterator. -func readAWSSpotMarketOptions(iterator *jsoniter.Iterator) *AWSSpotMarketOptions { +// ReadAWSSpotMarketOptions reads a value of the 'AWS_spot_market_options' type from the given iterator. +func ReadAWSSpotMarketOptions(iterator *jsoniter.Iterator) *AWSSpotMarketOptions { object := &AWSSpotMarketOptions{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/aws_type.go b/clustersmgmt/v1/aws_type.go index 45f8a7dcb..177336ce8 100644 --- a/clustersmgmt/v1/aws_type.go +++ b/clustersmgmt/v1/aws_type.go @@ -562,6 +562,29 @@ func (l *AWSList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AWSList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AWSList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AWSList) SetItems(items []*AWS) { + l.items = items +} + +// Items returns the items of the list. +func (l *AWSList) Items() []*AWS { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AWSList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/aws_type_json.go b/clustersmgmt/v1/aws_type_json.go index 0d53e5f98..834f13dd5 100644 --- a/clustersmgmt/v1/aws_type_json.go +++ b/clustersmgmt/v1/aws_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalAWS writes a value of the 'AWS' type to the given writer. func MarshalAWS(object *AWS, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAWS(object, stream) + WriteAWS(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalAWS(object *AWS, writer io.Writer) error { return stream.Error } -// writeAWS writes a value of the 'AWS' type to the given stream. -func writeAWS(object *AWS, stream *jsoniter.Stream) { +// WriteAWS writes a value of the 'AWS' type to the given stream. +func WriteAWS(object *AWS, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -58,7 +58,7 @@ func writeAWS(object *AWS, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("sts") - writeSTS(object.sts, stream) + WriteSTS(object.sts, stream) count++ } present_ = object.bitmap_&4 != 0 @@ -85,7 +85,7 @@ func writeAWS(object *AWS, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("additional_allowed_principals") - writeStringList(object.additionalAllowedPrincipals, stream) + WriteStringList(object.additionalAllowedPrincipals, stream) count++ } present_ = object.bitmap_&32 != 0 && object.additionalComputeSecurityGroupIds != nil @@ -94,7 +94,7 @@ func writeAWS(object *AWS, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("additional_compute_security_group_ids") - writeStringList(object.additionalComputeSecurityGroupIds, stream) + WriteStringList(object.additionalComputeSecurityGroupIds, stream) count++ } present_ = object.bitmap_&64 != 0 && object.additionalControlPlaneSecurityGroupIds != nil @@ -103,7 +103,7 @@ func writeAWS(object *AWS, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("additional_control_plane_security_group_ids") - writeStringList(object.additionalControlPlaneSecurityGroupIds, stream) + WriteStringList(object.additionalControlPlaneSecurityGroupIds, stream) count++ } present_ = object.bitmap_&128 != 0 && object.additionalInfraSecurityGroupIds != nil @@ -112,7 +112,7 @@ func writeAWS(object *AWS, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("additional_infra_security_group_ids") - writeStringList(object.additionalInfraSecurityGroupIds, stream) + WriteStringList(object.additionalInfraSecurityGroupIds, stream) count++ } present_ = object.bitmap_&256 != 0 && object.auditLog != nil @@ -121,7 +121,7 @@ func writeAWS(object *AWS, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("audit_log") - writeAuditLog(object.auditLog, stream) + WriteAuditLog(object.auditLog, stream) count++ } present_ = object.bitmap_&512 != 0 @@ -148,7 +148,7 @@ func writeAWS(object *AWS, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("etcd_encryption") - writeAwsEtcdEncryption(object.etcdEncryption, stream) + WriteAwsEtcdEncryption(object.etcdEncryption, stream) count++ } present_ = object.bitmap_&4096 != 0 @@ -193,7 +193,7 @@ func writeAWS(object *AWS, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("private_link_configuration") - writePrivateLinkClusterConfiguration(object.privateLinkConfiguration, stream) + WritePrivateLinkClusterConfiguration(object.privateLinkConfiguration, stream) count++ } present_ = object.bitmap_&131072 != 0 @@ -211,7 +211,7 @@ func writeAWS(object *AWS, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("subnet_ids") - writeStringList(object.subnetIDs, stream) + WriteStringList(object.subnetIDs, stream) count++ } present_ = object.bitmap_&524288 != 0 && object.tags != nil @@ -261,13 +261,13 @@ func UnmarshalAWS(source interface{}) (object *AWS, err error) { if err != nil { return } - object = readAWS(iterator) + object = ReadAWS(iterator) err = iterator.Error return } -// readAWS reads a value of the 'AWS' type from the given iterator. -func readAWS(iterator *jsoniter.Iterator) *AWS { +// ReadAWS reads a value of the 'AWS' type from the given iterator. +func ReadAWS(iterator *jsoniter.Iterator) *AWS { object := &AWS{} for { field := iterator.ReadObject() @@ -280,7 +280,7 @@ func readAWS(iterator *jsoniter.Iterator) *AWS { object.kmsKeyArn = value object.bitmap_ |= 1 case "sts": - value := readSTS(iterator) + value := ReadSTS(iterator) object.sts = value object.bitmap_ |= 2 case "access_key_id": @@ -292,23 +292,23 @@ func readAWS(iterator *jsoniter.Iterator) *AWS { object.accountID = value object.bitmap_ |= 8 case "additional_allowed_principals": - value := readStringList(iterator) + value := ReadStringList(iterator) object.additionalAllowedPrincipals = value object.bitmap_ |= 16 case "additional_compute_security_group_ids": - value := readStringList(iterator) + value := ReadStringList(iterator) object.additionalComputeSecurityGroupIds = value object.bitmap_ |= 32 case "additional_control_plane_security_group_ids": - value := readStringList(iterator) + value := ReadStringList(iterator) object.additionalControlPlaneSecurityGroupIds = value object.bitmap_ |= 64 case "additional_infra_security_group_ids": - value := readStringList(iterator) + value := ReadStringList(iterator) object.additionalInfraSecurityGroupIds = value object.bitmap_ |= 128 case "audit_log": - value := readAuditLog(iterator) + value := ReadAuditLog(iterator) object.auditLog = value object.bitmap_ |= 256 case "billing_account_id": @@ -321,7 +321,7 @@ func readAWS(iterator *jsoniter.Iterator) *AWS { object.ec2MetadataHttpTokens = value object.bitmap_ |= 1024 case "etcd_encryption": - value := readAwsEtcdEncryption(iterator) + value := ReadAwsEtcdEncryption(iterator) object.etcdEncryption = value object.bitmap_ |= 2048 case "hcp_internal_communication_hosted_zone_id": @@ -341,7 +341,7 @@ func readAWS(iterator *jsoniter.Iterator) *AWS { object.privateLink = value object.bitmap_ |= 32768 case "private_link_configuration": - value := readPrivateLinkClusterConfiguration(iterator) + value := ReadPrivateLinkClusterConfiguration(iterator) object.privateLinkConfiguration = value object.bitmap_ |= 65536 case "secret_access_key": @@ -349,7 +349,7 @@ func readAWS(iterator *jsoniter.Iterator) *AWS { object.secretAccessKey = value object.bitmap_ |= 131072 case "subnet_ids": - value := readStringList(iterator) + value := ReadStringList(iterator) object.subnetIDs = value object.bitmap_ |= 262144 case "tags": diff --git a/clustersmgmt/v1/aws_volume_list_type_json.go b/clustersmgmt/v1/aws_volume_list_type_json.go index f9b8dd2c8..649aed060 100644 --- a/clustersmgmt/v1/aws_volume_list_type_json.go +++ b/clustersmgmt/v1/aws_volume_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAWSVolumeList(list []*AWSVolume, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAWSVolumeList(list, stream) + WriteAWSVolumeList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAWSVolumeList(list []*AWSVolume, writer io.Writer) error { return stream.Error } -// writeAWSVolumeList writes a list of value of the 'AWS_volume' type to +// WriteAWSVolumeList writes a list of value of the 'AWS_volume' type to // the given stream. -func writeAWSVolumeList(list []*AWSVolume, stream *jsoniter.Stream) { +func WriteAWSVolumeList(list []*AWSVolume, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAWSVolume(value, stream) + WriteAWSVolume(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAWSVolumeList(source interface{}) (items []*AWSVolume, err error) if err != nil { return } - items = readAWSVolumeList(iterator) + items = ReadAWSVolumeList(iterator) err = iterator.Error return } -// readAWSVolumeList reads list of values of the ”AWS_volume' type from +// ReadAWSVolumeList reads list of values of the ”AWS_volume' type from // the given iterator. -func readAWSVolumeList(iterator *jsoniter.Iterator) []*AWSVolume { +func ReadAWSVolumeList(iterator *jsoniter.Iterator) []*AWSVolume { list := []*AWSVolume{} for iterator.ReadArray() { - item := readAWSVolume(iterator) + item := ReadAWSVolume(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/aws_volume_type.go b/clustersmgmt/v1/aws_volume_type.go index fce03a209..c2ec7edc5 100644 --- a/clustersmgmt/v1/aws_volume_type.go +++ b/clustersmgmt/v1/aws_volume_type.go @@ -106,6 +106,29 @@ func (l *AWSVolumeList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AWSVolumeList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AWSVolumeList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AWSVolumeList) SetItems(items []*AWSVolume) { + l.items = items +} + +// Items returns the items of the list. +func (l *AWSVolumeList) Items() []*AWSVolume { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AWSVolumeList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/aws_volume_type_json.go b/clustersmgmt/v1/aws_volume_type_json.go index 7ce8b26b3..8d68b3eec 100644 --- a/clustersmgmt/v1/aws_volume_type_json.go +++ b/clustersmgmt/v1/aws_volume_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAWSVolume writes a value of the 'AWS_volume' type to the given writer. func MarshalAWSVolume(object *AWSVolume, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAWSVolume(object, stream) + WriteAWSVolume(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAWSVolume(object *AWSVolume, writer io.Writer) error { return stream.Error } -// writeAWSVolume writes a value of the 'AWS_volume' type to the given stream. -func writeAWSVolume(object *AWSVolume, stream *jsoniter.Stream) { +// WriteAWSVolume writes a value of the 'AWS_volume' type to the given stream. +func WriteAWSVolume(object *AWSVolume, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalAWSVolume(source interface{}) (object *AWSVolume, err error) { if err != nil { return } - object = readAWSVolume(iterator) + object = ReadAWSVolume(iterator) err = iterator.Error return } -// readAWSVolume reads a value of the 'AWS_volume' type from the given iterator. -func readAWSVolume(iterator *jsoniter.Iterator) *AWSVolume { +// ReadAWSVolume reads a value of the 'AWS_volume' type from the given iterator. +func ReadAWSVolume(iterator *jsoniter.Iterator) *AWSVolume { object := &AWSVolume{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/awssts_account_role_list_type_json.go b/clustersmgmt/v1/awssts_account_role_list_type_json.go index 87c0d2c82..b6a4c17cb 100644 --- a/clustersmgmt/v1/awssts_account_role_list_type_json.go +++ b/clustersmgmt/v1/awssts_account_role_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAWSSTSAccountRoleList(list []*AWSSTSAccountRole, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAWSSTSAccountRoleList(list, stream) + WriteAWSSTSAccountRoleList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAWSSTSAccountRoleList(list []*AWSSTSAccountRole, writer io.Writer) e return stream.Error } -// writeAWSSTSAccountRoleList writes a list of value of the 'AWSSTS_account_role' type to +// WriteAWSSTSAccountRoleList writes a list of value of the 'AWSSTS_account_role' type to // the given stream. -func writeAWSSTSAccountRoleList(list []*AWSSTSAccountRole, stream *jsoniter.Stream) { +func WriteAWSSTSAccountRoleList(list []*AWSSTSAccountRole, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAWSSTSAccountRole(value, stream) + WriteAWSSTSAccountRole(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAWSSTSAccountRoleList(source interface{}) (items []*AWSSTSAccountR if err != nil { return } - items = readAWSSTSAccountRoleList(iterator) + items = ReadAWSSTSAccountRoleList(iterator) err = iterator.Error return } -// readAWSSTSAccountRoleList reads list of values of the ”AWSSTS_account_role' type from +// ReadAWSSTSAccountRoleList reads list of values of the ”AWSSTS_account_role' type from // the given iterator. -func readAWSSTSAccountRoleList(iterator *jsoniter.Iterator) []*AWSSTSAccountRole { +func ReadAWSSTSAccountRoleList(iterator *jsoniter.Iterator) []*AWSSTSAccountRole { list := []*AWSSTSAccountRole{} for iterator.ReadArray() { - item := readAWSSTSAccountRole(iterator) + item := ReadAWSSTSAccountRole(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/awssts_account_role_type.go b/clustersmgmt/v1/awssts_account_role_type.go index fdaf25984..c5e1f4322 100644 --- a/clustersmgmt/v1/awssts_account_role_type.go +++ b/clustersmgmt/v1/awssts_account_role_type.go @@ -106,6 +106,29 @@ func (l *AWSSTSAccountRoleList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AWSSTSAccountRoleList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AWSSTSAccountRoleList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AWSSTSAccountRoleList) SetItems(items []*AWSSTSAccountRole) { + l.items = items +} + +// Items returns the items of the list. +func (l *AWSSTSAccountRoleList) Items() []*AWSSTSAccountRole { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AWSSTSAccountRoleList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/awssts_account_role_type_json.go b/clustersmgmt/v1/awssts_account_role_type_json.go index 4023adcd5..7c28de843 100644 --- a/clustersmgmt/v1/awssts_account_role_type_json.go +++ b/clustersmgmt/v1/awssts_account_role_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAWSSTSAccountRole writes a value of the 'AWSSTS_account_role' type to the given writer. func MarshalAWSSTSAccountRole(object *AWSSTSAccountRole, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAWSSTSAccountRole(object, stream) + WriteAWSSTSAccountRole(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAWSSTSAccountRole(object *AWSSTSAccountRole, writer io.Writer) error return stream.Error } -// writeAWSSTSAccountRole writes a value of the 'AWSSTS_account_role' type to the given stream. -func writeAWSSTSAccountRole(object *AWSSTSAccountRole, stream *jsoniter.Stream) { +// WriteAWSSTSAccountRole writes a value of the 'AWSSTS_account_role' type to the given stream. +func WriteAWSSTSAccountRole(object *AWSSTSAccountRole, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeAWSSTSAccountRole(object *AWSSTSAccountRole, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("items") - writeAWSSTSRoleList(object.items, stream) + WriteAWSSTSRoleList(object.items, stream) count++ } present_ = object.bitmap_&2 != 0 @@ -69,13 +69,13 @@ func UnmarshalAWSSTSAccountRole(source interface{}) (object *AWSSTSAccountRole, if err != nil { return } - object = readAWSSTSAccountRole(iterator) + object = ReadAWSSTSAccountRole(iterator) err = iterator.Error return } -// readAWSSTSAccountRole reads a value of the 'AWSSTS_account_role' type from the given iterator. -func readAWSSTSAccountRole(iterator *jsoniter.Iterator) *AWSSTSAccountRole { +// ReadAWSSTSAccountRole reads a value of the 'AWSSTS_account_role' type from the given iterator. +func ReadAWSSTSAccountRole(iterator *jsoniter.Iterator) *AWSSTSAccountRole { object := &AWSSTSAccountRole{} for { field := iterator.ReadObject() @@ -84,7 +84,7 @@ func readAWSSTSAccountRole(iterator *jsoniter.Iterator) *AWSSTSAccountRole { } switch field { case "items": - value := readAWSSTSRoleList(iterator) + value := ReadAWSSTSRoleList(iterator) object.items = value object.bitmap_ |= 1 case "prefix": diff --git a/clustersmgmt/v1/awssts_account_roles_inquiry_resource_json.go b/clustersmgmt/v1/awssts_account_roles_inquiry_resource_json.go index cb09bf475..3f4c0a9fb 100644 --- a/clustersmgmt/v1/awssts_account_roles_inquiry_resource_json.go +++ b/clustersmgmt/v1/awssts_account_roles_inquiry_resource_json.go @@ -52,7 +52,7 @@ func readAWSSTSAccountRolesInquirySearchResponse(response *AWSSTSAccountRolesInq value := iterator.ReadString() response.awsAccountId = &value case "items": - items := readAWSSTSAccountRoleList(iterator) + items := ReadAWSSTSAccountRoleList(iterator) response.items = &AWSSTSAccountRoleList{ items: items, } diff --git a/clustersmgmt/v1/awssts_policies_inquiry_resource_json.go b/clustersmgmt/v1/awssts_policies_inquiry_resource_json.go index 2c647d890..de591a694 100644 --- a/clustersmgmt/v1/awssts_policies_inquiry_resource_json.go +++ b/clustersmgmt/v1/awssts_policies_inquiry_resource_json.go @@ -49,7 +49,7 @@ func readAWSSTSPoliciesInquiryListResponse(response *AWSSTSPoliciesInquiryListRe value := iterator.ReadInt() response.total = &value case "items": - items := readAWSSTSPolicyList(iterator) + items := ReadAWSSTSPolicyList(iterator) response.items = &AWSSTSPolicyList{ items: items, } diff --git a/clustersmgmt/v1/awssts_policy_list_type_json.go b/clustersmgmt/v1/awssts_policy_list_type_json.go index 993d4b20b..550d16a4c 100644 --- a/clustersmgmt/v1/awssts_policy_list_type_json.go +++ b/clustersmgmt/v1/awssts_policy_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAWSSTSPolicyList(list []*AWSSTSPolicy, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAWSSTSPolicyList(list, stream) + WriteAWSSTSPolicyList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAWSSTSPolicyList(list []*AWSSTSPolicy, writer io.Writer) error { return stream.Error } -// writeAWSSTSPolicyList writes a list of value of the 'AWSSTS_policy' type to +// WriteAWSSTSPolicyList writes a list of value of the 'AWSSTS_policy' type to // the given stream. -func writeAWSSTSPolicyList(list []*AWSSTSPolicy, stream *jsoniter.Stream) { +func WriteAWSSTSPolicyList(list []*AWSSTSPolicy, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAWSSTSPolicy(value, stream) + WriteAWSSTSPolicy(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAWSSTSPolicyList(source interface{}) (items []*AWSSTSPolicy, err e if err != nil { return } - items = readAWSSTSPolicyList(iterator) + items = ReadAWSSTSPolicyList(iterator) err = iterator.Error return } -// readAWSSTSPolicyList reads list of values of the ”AWSSTS_policy' type from +// ReadAWSSTSPolicyList reads list of values of the ”AWSSTS_policy' type from // the given iterator. -func readAWSSTSPolicyList(iterator *jsoniter.Iterator) []*AWSSTSPolicy { +func ReadAWSSTSPolicyList(iterator *jsoniter.Iterator) []*AWSSTSPolicy { list := []*AWSSTSPolicy{} for iterator.ReadArray() { - item := readAWSSTSPolicy(iterator) + item := ReadAWSSTSPolicy(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/awssts_policy_type.go b/clustersmgmt/v1/awssts_policy_type.go index e8788d6a0..fa736a238 100644 --- a/clustersmgmt/v1/awssts_policy_type.go +++ b/clustersmgmt/v1/awssts_policy_type.go @@ -154,6 +154,29 @@ func (l *AWSSTSPolicyList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AWSSTSPolicyList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AWSSTSPolicyList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AWSSTSPolicyList) SetItems(items []*AWSSTSPolicy) { + l.items = items +} + +// Items returns the items of the list. +func (l *AWSSTSPolicyList) Items() []*AWSSTSPolicy { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AWSSTSPolicyList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/awssts_policy_type_json.go b/clustersmgmt/v1/awssts_policy_type_json.go index 34b979099..2bafceb17 100644 --- a/clustersmgmt/v1/awssts_policy_type_json.go +++ b/clustersmgmt/v1/awssts_policy_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAWSSTSPolicy writes a value of the 'AWSSTS_policy' type to the given writer. func MarshalAWSSTSPolicy(object *AWSSTSPolicy, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAWSSTSPolicy(object, stream) + WriteAWSSTSPolicy(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAWSSTSPolicy(object *AWSSTSPolicy, writer io.Writer) error { return stream.Error } -// writeAWSSTSPolicy writes a value of the 'AWSSTS_policy' type to the given stream. -func writeAWSSTSPolicy(object *AWSSTSPolicy, stream *jsoniter.Stream) { +// WriteAWSSTSPolicy writes a value of the 'AWSSTS_policy' type to the given stream. +func WriteAWSSTSPolicy(object *AWSSTSPolicy, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -87,13 +87,13 @@ func UnmarshalAWSSTSPolicy(source interface{}) (object *AWSSTSPolicy, err error) if err != nil { return } - object = readAWSSTSPolicy(iterator) + object = ReadAWSSTSPolicy(iterator) err = iterator.Error return } -// readAWSSTSPolicy reads a value of the 'AWSSTS_policy' type from the given iterator. -func readAWSSTSPolicy(iterator *jsoniter.Iterator) *AWSSTSPolicy { +// ReadAWSSTSPolicy reads a value of the 'AWSSTS_policy' type from the given iterator. +func ReadAWSSTSPolicy(iterator *jsoniter.Iterator) *AWSSTSPolicy { object := &AWSSTSPolicy{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/awssts_role_list_type_json.go b/clustersmgmt/v1/awssts_role_list_type_json.go index f3d451bf1..e1e38bf22 100644 --- a/clustersmgmt/v1/awssts_role_list_type_json.go +++ b/clustersmgmt/v1/awssts_role_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAWSSTSRoleList(list []*AWSSTSRole, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAWSSTSRoleList(list, stream) + WriteAWSSTSRoleList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAWSSTSRoleList(list []*AWSSTSRole, writer io.Writer) error { return stream.Error } -// writeAWSSTSRoleList writes a list of value of the 'AWSSTS_role' type to +// WriteAWSSTSRoleList writes a list of value of the 'AWSSTS_role' type to // the given stream. -func writeAWSSTSRoleList(list []*AWSSTSRole, stream *jsoniter.Stream) { +func WriteAWSSTSRoleList(list []*AWSSTSRole, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAWSSTSRole(value, stream) + WriteAWSSTSRole(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAWSSTSRoleList(source interface{}) (items []*AWSSTSRole, err error if err != nil { return } - items = readAWSSTSRoleList(iterator) + items = ReadAWSSTSRoleList(iterator) err = iterator.Error return } -// readAWSSTSRoleList reads list of values of the ”AWSSTS_role' type from +// ReadAWSSTSRoleList reads list of values of the ”AWSSTS_role' type from // the given iterator. -func readAWSSTSRoleList(iterator *jsoniter.Iterator) []*AWSSTSRole { +func ReadAWSSTSRoleList(iterator *jsoniter.Iterator) []*AWSSTSRole { list := []*AWSSTSRole{} for iterator.ReadArray() { - item := readAWSSTSRole(iterator) + item := ReadAWSSTSRole(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/awssts_role_type.go b/clustersmgmt/v1/awssts_role_type.go index c712553c3..c21f3e4d5 100644 --- a/clustersmgmt/v1/awssts_role_type.go +++ b/clustersmgmt/v1/awssts_role_type.go @@ -202,6 +202,29 @@ func (l *AWSSTSRoleList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AWSSTSRoleList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AWSSTSRoleList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AWSSTSRoleList) SetItems(items []*AWSSTSRole) { + l.items = items +} + +// Items returns the items of the list. +func (l *AWSSTSRoleList) Items() []*AWSSTSRole { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AWSSTSRoleList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/awssts_role_type_json.go b/clustersmgmt/v1/awssts_role_type_json.go index acf096fd5..d42d33331 100644 --- a/clustersmgmt/v1/awssts_role_type_json.go +++ b/clustersmgmt/v1/awssts_role_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAWSSTSRole writes a value of the 'AWSSTS_role' type to the given writer. func MarshalAWSSTSRole(object *AWSSTSRole, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAWSSTSRole(object, stream) + WriteAWSSTSRole(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAWSSTSRole(object *AWSSTSRole, writer io.Writer) error { return stream.Error } -// writeAWSSTSRole writes a value of the 'AWSSTS_role' type to the given stream. -func writeAWSSTSRole(object *AWSSTSRole, stream *jsoniter.Stream) { +// WriteAWSSTSRole writes a value of the 'AWSSTS_role' type to the given stream. +func WriteAWSSTSRole(object *AWSSTSRole, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -105,13 +105,13 @@ func UnmarshalAWSSTSRole(source interface{}) (object *AWSSTSRole, err error) { if err != nil { return } - object = readAWSSTSRole(iterator) + object = ReadAWSSTSRole(iterator) err = iterator.Error return } -// readAWSSTSRole reads a value of the 'AWSSTS_role' type from the given iterator. -func readAWSSTSRole(iterator *jsoniter.Iterator) *AWSSTSRole { +// ReadAWSSTSRole reads a value of the 'AWSSTS_role' type from the given iterator. +func ReadAWSSTSRole(iterator *jsoniter.Iterator) *AWSSTSRole { object := &AWSSTSRole{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/azure_control_plane_managed_identity_list_type_json.go b/clustersmgmt/v1/azure_control_plane_managed_identity_list_type_json.go index ea9b78200..282097994 100644 --- a/clustersmgmt/v1/azure_control_plane_managed_identity_list_type_json.go +++ b/clustersmgmt/v1/azure_control_plane_managed_identity_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAzureControlPlaneManagedIdentityList(list []*AzureControlPlaneManagedIdentity, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAzureControlPlaneManagedIdentityList(list, stream) + WriteAzureControlPlaneManagedIdentityList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAzureControlPlaneManagedIdentityList(list []*AzureControlPlaneManage return stream.Error } -// writeAzureControlPlaneManagedIdentityList writes a list of value of the 'azure_control_plane_managed_identity' type to +// WriteAzureControlPlaneManagedIdentityList writes a list of value of the 'azure_control_plane_managed_identity' type to // the given stream. -func writeAzureControlPlaneManagedIdentityList(list []*AzureControlPlaneManagedIdentity, stream *jsoniter.Stream) { +func WriteAzureControlPlaneManagedIdentityList(list []*AzureControlPlaneManagedIdentity, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAzureControlPlaneManagedIdentity(value, stream) + WriteAzureControlPlaneManagedIdentity(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAzureControlPlaneManagedIdentityList(source interface{}) (items [] if err != nil { return } - items = readAzureControlPlaneManagedIdentityList(iterator) + items = ReadAzureControlPlaneManagedIdentityList(iterator) err = iterator.Error return } -// readAzureControlPlaneManagedIdentityList reads list of values of the ”azure_control_plane_managed_identity' type from +// ReadAzureControlPlaneManagedIdentityList reads list of values of the ”azure_control_plane_managed_identity' type from // the given iterator. -func readAzureControlPlaneManagedIdentityList(iterator *jsoniter.Iterator) []*AzureControlPlaneManagedIdentity { +func ReadAzureControlPlaneManagedIdentityList(iterator *jsoniter.Iterator) []*AzureControlPlaneManagedIdentity { list := []*AzureControlPlaneManagedIdentity{} for iterator.ReadArray() { - item := readAzureControlPlaneManagedIdentity(iterator) + item := ReadAzureControlPlaneManagedIdentity(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/azure_control_plane_managed_identity_type.go b/clustersmgmt/v1/azure_control_plane_managed_identity_type.go index e8dab0df4..1140f5481 100644 --- a/clustersmgmt/v1/azure_control_plane_managed_identity_type.go +++ b/clustersmgmt/v1/azure_control_plane_managed_identity_type.go @@ -161,6 +161,29 @@ func (l *AzureControlPlaneManagedIdentityList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AzureControlPlaneManagedIdentityList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AzureControlPlaneManagedIdentityList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AzureControlPlaneManagedIdentityList) SetItems(items []*AzureControlPlaneManagedIdentity) { + l.items = items +} + +// Items returns the items of the list. +func (l *AzureControlPlaneManagedIdentityList) Items() []*AzureControlPlaneManagedIdentity { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AzureControlPlaneManagedIdentityList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/azure_control_plane_managed_identity_type_json.go b/clustersmgmt/v1/azure_control_plane_managed_identity_type_json.go index cc00e53c1..6a9e557e4 100644 --- a/clustersmgmt/v1/azure_control_plane_managed_identity_type_json.go +++ b/clustersmgmt/v1/azure_control_plane_managed_identity_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAzureControlPlaneManagedIdentity writes a value of the 'azure_control_plane_managed_identity' type to the given writer. func MarshalAzureControlPlaneManagedIdentity(object *AzureControlPlaneManagedIdentity, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAzureControlPlaneManagedIdentity(object, stream) + WriteAzureControlPlaneManagedIdentity(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAzureControlPlaneManagedIdentity(object *AzureControlPlaneManagedIde return stream.Error } -// writeAzureControlPlaneManagedIdentity writes a value of the 'azure_control_plane_managed_identity' type to the given stream. -func writeAzureControlPlaneManagedIdentity(object *AzureControlPlaneManagedIdentity, stream *jsoniter.Stream) { +// WriteAzureControlPlaneManagedIdentity writes a value of the 'azure_control_plane_managed_identity' type to the given stream. +func WriteAzureControlPlaneManagedIdentity(object *AzureControlPlaneManagedIdentity, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -78,13 +78,13 @@ func UnmarshalAzureControlPlaneManagedIdentity(source interface{}) (object *Azur if err != nil { return } - object = readAzureControlPlaneManagedIdentity(iterator) + object = ReadAzureControlPlaneManagedIdentity(iterator) err = iterator.Error return } -// readAzureControlPlaneManagedIdentity reads a value of the 'azure_control_plane_managed_identity' type from the given iterator. -func readAzureControlPlaneManagedIdentity(iterator *jsoniter.Iterator) *AzureControlPlaneManagedIdentity { +// ReadAzureControlPlaneManagedIdentity reads a value of the 'azure_control_plane_managed_identity' type from the given iterator. +func ReadAzureControlPlaneManagedIdentity(iterator *jsoniter.Iterator) *AzureControlPlaneManagedIdentity { object := &AzureControlPlaneManagedIdentity{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/azure_data_plane_managed_identity_list_type_json.go b/clustersmgmt/v1/azure_data_plane_managed_identity_list_type_json.go index 74c75322c..de384218f 100644 --- a/clustersmgmt/v1/azure_data_plane_managed_identity_list_type_json.go +++ b/clustersmgmt/v1/azure_data_plane_managed_identity_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAzureDataPlaneManagedIdentityList(list []*AzureDataPlaneManagedIdentity, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAzureDataPlaneManagedIdentityList(list, stream) + WriteAzureDataPlaneManagedIdentityList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAzureDataPlaneManagedIdentityList(list []*AzureDataPlaneManagedIdent return stream.Error } -// writeAzureDataPlaneManagedIdentityList writes a list of value of the 'azure_data_plane_managed_identity' type to +// WriteAzureDataPlaneManagedIdentityList writes a list of value of the 'azure_data_plane_managed_identity' type to // the given stream. -func writeAzureDataPlaneManagedIdentityList(list []*AzureDataPlaneManagedIdentity, stream *jsoniter.Stream) { +func WriteAzureDataPlaneManagedIdentityList(list []*AzureDataPlaneManagedIdentity, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAzureDataPlaneManagedIdentity(value, stream) + WriteAzureDataPlaneManagedIdentity(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAzureDataPlaneManagedIdentityList(source interface{}) (items []*Az if err != nil { return } - items = readAzureDataPlaneManagedIdentityList(iterator) + items = ReadAzureDataPlaneManagedIdentityList(iterator) err = iterator.Error return } -// readAzureDataPlaneManagedIdentityList reads list of values of the ”azure_data_plane_managed_identity' type from +// ReadAzureDataPlaneManagedIdentityList reads list of values of the ”azure_data_plane_managed_identity' type from // the given iterator. -func readAzureDataPlaneManagedIdentityList(iterator *jsoniter.Iterator) []*AzureDataPlaneManagedIdentity { +func ReadAzureDataPlaneManagedIdentityList(iterator *jsoniter.Iterator) []*AzureDataPlaneManagedIdentity { list := []*AzureDataPlaneManagedIdentity{} for iterator.ReadArray() { - item := readAzureDataPlaneManagedIdentity(iterator) + item := ReadAzureDataPlaneManagedIdentity(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/azure_data_plane_managed_identity_type.go b/clustersmgmt/v1/azure_data_plane_managed_identity_type.go index d9d7481d9..29d370f94 100644 --- a/clustersmgmt/v1/azure_data_plane_managed_identity_type.go +++ b/clustersmgmt/v1/azure_data_plane_managed_identity_type.go @@ -109,6 +109,29 @@ func (l *AzureDataPlaneManagedIdentityList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AzureDataPlaneManagedIdentityList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AzureDataPlaneManagedIdentityList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AzureDataPlaneManagedIdentityList) SetItems(items []*AzureDataPlaneManagedIdentity) { + l.items = items +} + +// Items returns the items of the list. +func (l *AzureDataPlaneManagedIdentityList) Items() []*AzureDataPlaneManagedIdentity { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AzureDataPlaneManagedIdentityList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/azure_data_plane_managed_identity_type_json.go b/clustersmgmt/v1/azure_data_plane_managed_identity_type_json.go index 15a95f648..928e9179f 100644 --- a/clustersmgmt/v1/azure_data_plane_managed_identity_type_json.go +++ b/clustersmgmt/v1/azure_data_plane_managed_identity_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAzureDataPlaneManagedIdentity writes a value of the 'azure_data_plane_managed_identity' type to the given writer. func MarshalAzureDataPlaneManagedIdentity(object *AzureDataPlaneManagedIdentity, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAzureDataPlaneManagedIdentity(object, stream) + WriteAzureDataPlaneManagedIdentity(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAzureDataPlaneManagedIdentity(object *AzureDataPlaneManagedIdentity, return stream.Error } -// writeAzureDataPlaneManagedIdentity writes a value of the 'azure_data_plane_managed_identity' type to the given stream. -func writeAzureDataPlaneManagedIdentity(object *AzureDataPlaneManagedIdentity, stream *jsoniter.Stream) { +// WriteAzureDataPlaneManagedIdentity writes a value of the 'azure_data_plane_managed_identity' type to the given stream. +func WriteAzureDataPlaneManagedIdentity(object *AzureDataPlaneManagedIdentity, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalAzureDataPlaneManagedIdentity(source interface{}) (object *AzureDa if err != nil { return } - object = readAzureDataPlaneManagedIdentity(iterator) + object = ReadAzureDataPlaneManagedIdentity(iterator) err = iterator.Error return } -// readAzureDataPlaneManagedIdentity reads a value of the 'azure_data_plane_managed_identity' type from the given iterator. -func readAzureDataPlaneManagedIdentity(iterator *jsoniter.Iterator) *AzureDataPlaneManagedIdentity { +// ReadAzureDataPlaneManagedIdentity reads a value of the 'azure_data_plane_managed_identity' type from the given iterator. +func ReadAzureDataPlaneManagedIdentity(iterator *jsoniter.Iterator) *AzureDataPlaneManagedIdentity { object := &AzureDataPlaneManagedIdentity{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/azure_list_type_json.go b/clustersmgmt/v1/azure_list_type_json.go index 2c2d80b80..77fb75194 100644 --- a/clustersmgmt/v1/azure_list_type_json.go +++ b/clustersmgmt/v1/azure_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAzureList(list []*Azure, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAzureList(list, stream) + WriteAzureList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAzureList(list []*Azure, writer io.Writer) error { return stream.Error } -// writeAzureList writes a list of value of the 'azure' type to +// WriteAzureList writes a list of value of the 'azure' type to // the given stream. -func writeAzureList(list []*Azure, stream *jsoniter.Stream) { +func WriteAzureList(list []*Azure, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAzure(value, stream) + WriteAzure(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAzureList(source interface{}) (items []*Azure, err error) { if err != nil { return } - items = readAzureList(iterator) + items = ReadAzureList(iterator) err = iterator.Error return } -// readAzureList reads list of values of the ”azure' type from +// ReadAzureList reads list of values of the ”azure' type from // the given iterator. -func readAzureList(iterator *jsoniter.Iterator) []*Azure { +func ReadAzureList(iterator *jsoniter.Iterator) []*Azure { list := []*Azure{} for iterator.ReadArray() { - item := readAzure(iterator) + item := ReadAzure(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/azure_node_pool_list_type_json.go b/clustersmgmt/v1/azure_node_pool_list_type_json.go index 3b907d9ad..ae58860d6 100644 --- a/clustersmgmt/v1/azure_node_pool_list_type_json.go +++ b/clustersmgmt/v1/azure_node_pool_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAzureNodePoolList(list []*AzureNodePool, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAzureNodePoolList(list, stream) + WriteAzureNodePoolList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAzureNodePoolList(list []*AzureNodePool, writer io.Writer) error { return stream.Error } -// writeAzureNodePoolList writes a list of value of the 'azure_node_pool' type to +// WriteAzureNodePoolList writes a list of value of the 'azure_node_pool' type to // the given stream. -func writeAzureNodePoolList(list []*AzureNodePool, stream *jsoniter.Stream) { +func WriteAzureNodePoolList(list []*AzureNodePool, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAzureNodePool(value, stream) + WriteAzureNodePool(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAzureNodePoolList(source interface{}) (items []*AzureNodePool, err if err != nil { return } - items = readAzureNodePoolList(iterator) + items = ReadAzureNodePoolList(iterator) err = iterator.Error return } -// readAzureNodePoolList reads list of values of the ”azure_node_pool' type from +// ReadAzureNodePoolList reads list of values of the ”azure_node_pool' type from // the given iterator. -func readAzureNodePoolList(iterator *jsoniter.Iterator) []*AzureNodePool { +func ReadAzureNodePoolList(iterator *jsoniter.Iterator) []*AzureNodePool { list := []*AzureNodePool{} for iterator.ReadArray() { - item := readAzureNodePool(iterator) + item := ReadAzureNodePool(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/azure_node_pool_type.go b/clustersmgmt/v1/azure_node_pool_type.go index 72558c8af..52cc09b6c 100644 --- a/clustersmgmt/v1/azure_node_pool_type.go +++ b/clustersmgmt/v1/azure_node_pool_type.go @@ -228,6 +228,29 @@ func (l *AzureNodePoolList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AzureNodePoolList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AzureNodePoolList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AzureNodePoolList) SetItems(items []*AzureNodePool) { + l.items = items +} + +// Items returns the items of the list. +func (l *AzureNodePoolList) Items() []*AzureNodePool { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AzureNodePoolList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/azure_node_pool_type_json.go b/clustersmgmt/v1/azure_node_pool_type_json.go index e10bb4fea..3f135bf7b 100644 --- a/clustersmgmt/v1/azure_node_pool_type_json.go +++ b/clustersmgmt/v1/azure_node_pool_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAzureNodePool writes a value of the 'azure_node_pool' type to the given writer. func MarshalAzureNodePool(object *AzureNodePool, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAzureNodePool(object, stream) + WriteAzureNodePool(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAzureNodePool(object *AzureNodePool, writer io.Writer) error { return stream.Error } -// writeAzureNodePool writes a value of the 'azure_node_pool' type to the given stream. -func writeAzureNodePool(object *AzureNodePool, stream *jsoniter.Stream) { +// WriteAzureNodePool writes a value of the 'azure_node_pool' type to the given stream. +func WriteAzureNodePool(object *AzureNodePool, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -96,13 +96,13 @@ func UnmarshalAzureNodePool(source interface{}) (object *AzureNodePool, err erro if err != nil { return } - object = readAzureNodePool(iterator) + object = ReadAzureNodePool(iterator) err = iterator.Error return } -// readAzureNodePool reads a value of the 'azure_node_pool' type from the given iterator. -func readAzureNodePool(iterator *jsoniter.Iterator) *AzureNodePool { +// ReadAzureNodePool reads a value of the 'azure_node_pool' type from the given iterator. +func ReadAzureNodePool(iterator *jsoniter.Iterator) *AzureNodePool { object := &AzureNodePool{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/azure_nodes_outbound_connectivity_list_type_json.go b/clustersmgmt/v1/azure_nodes_outbound_connectivity_list_type_json.go index 2e5686305..024c5ea2a 100644 --- a/clustersmgmt/v1/azure_nodes_outbound_connectivity_list_type_json.go +++ b/clustersmgmt/v1/azure_nodes_outbound_connectivity_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAzureNodesOutboundConnectivityList(list []*AzureNodesOutboundConnectivity, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAzureNodesOutboundConnectivityList(list, stream) + WriteAzureNodesOutboundConnectivityList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAzureNodesOutboundConnectivityList(list []*AzureNodesOutboundConnect return stream.Error } -// writeAzureNodesOutboundConnectivityList writes a list of value of the 'azure_nodes_outbound_connectivity' type to +// WriteAzureNodesOutboundConnectivityList writes a list of value of the 'azure_nodes_outbound_connectivity' type to // the given stream. -func writeAzureNodesOutboundConnectivityList(list []*AzureNodesOutboundConnectivity, stream *jsoniter.Stream) { +func WriteAzureNodesOutboundConnectivityList(list []*AzureNodesOutboundConnectivity, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAzureNodesOutboundConnectivity(value, stream) + WriteAzureNodesOutboundConnectivity(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAzureNodesOutboundConnectivityList(source interface{}) (items []*A if err != nil { return } - items = readAzureNodesOutboundConnectivityList(iterator) + items = ReadAzureNodesOutboundConnectivityList(iterator) err = iterator.Error return } -// readAzureNodesOutboundConnectivityList reads list of values of the ”azure_nodes_outbound_connectivity' type from +// ReadAzureNodesOutboundConnectivityList reads list of values of the ”azure_nodes_outbound_connectivity' type from // the given iterator. -func readAzureNodesOutboundConnectivityList(iterator *jsoniter.Iterator) []*AzureNodesOutboundConnectivity { +func ReadAzureNodesOutboundConnectivityList(iterator *jsoniter.Iterator) []*AzureNodesOutboundConnectivity { list := []*AzureNodesOutboundConnectivity{} for iterator.ReadArray() { - item := readAzureNodesOutboundConnectivity(iterator) + item := ReadAzureNodesOutboundConnectivity(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/azure_nodes_outbound_connectivity_type.go b/clustersmgmt/v1/azure_nodes_outbound_connectivity_type.go index 28667093b..1c1e28fd4 100644 --- a/clustersmgmt/v1/azure_nodes_outbound_connectivity_type.go +++ b/clustersmgmt/v1/azure_nodes_outbound_connectivity_type.go @@ -86,6 +86,29 @@ func (l *AzureNodesOutboundConnectivityList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AzureNodesOutboundConnectivityList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AzureNodesOutboundConnectivityList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AzureNodesOutboundConnectivityList) SetItems(items []*AzureNodesOutboundConnectivity) { + l.items = items +} + +// Items returns the items of the list. +func (l *AzureNodesOutboundConnectivityList) Items() []*AzureNodesOutboundConnectivity { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AzureNodesOutboundConnectivityList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/azure_nodes_outbound_connectivity_type_json.go b/clustersmgmt/v1/azure_nodes_outbound_connectivity_type_json.go index 284724215..3fe0ffe23 100644 --- a/clustersmgmt/v1/azure_nodes_outbound_connectivity_type_json.go +++ b/clustersmgmt/v1/azure_nodes_outbound_connectivity_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAzureNodesOutboundConnectivity writes a value of the 'azure_nodes_outbound_connectivity' type to the given writer. func MarshalAzureNodesOutboundConnectivity(object *AzureNodesOutboundConnectivity, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAzureNodesOutboundConnectivity(object, stream) + WriteAzureNodesOutboundConnectivity(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAzureNodesOutboundConnectivity(object *AzureNodesOutboundConnectivit return stream.Error } -// writeAzureNodesOutboundConnectivity writes a value of the 'azure_nodes_outbound_connectivity' type to the given stream. -func writeAzureNodesOutboundConnectivity(object *AzureNodesOutboundConnectivity, stream *jsoniter.Stream) { +// WriteAzureNodesOutboundConnectivity writes a value of the 'azure_nodes_outbound_connectivity' type to the given stream. +func WriteAzureNodesOutboundConnectivity(object *AzureNodesOutboundConnectivity, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalAzureNodesOutboundConnectivity(source interface{}) (object *AzureN if err != nil { return } - object = readAzureNodesOutboundConnectivity(iterator) + object = ReadAzureNodesOutboundConnectivity(iterator) err = iterator.Error return } -// readAzureNodesOutboundConnectivity reads a value of the 'azure_nodes_outbound_connectivity' type from the given iterator. -func readAzureNodesOutboundConnectivity(iterator *jsoniter.Iterator) *AzureNodesOutboundConnectivity { +// ReadAzureNodesOutboundConnectivity reads a value of the 'azure_nodes_outbound_connectivity' type from the given iterator. +func ReadAzureNodesOutboundConnectivity(iterator *jsoniter.Iterator) *AzureNodesOutboundConnectivity { object := &AzureNodesOutboundConnectivity{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/azure_operators_authentication_list_type_json.go b/clustersmgmt/v1/azure_operators_authentication_list_type_json.go index 6916630ec..c3e9b0d07 100644 --- a/clustersmgmt/v1/azure_operators_authentication_list_type_json.go +++ b/clustersmgmt/v1/azure_operators_authentication_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAzureOperatorsAuthenticationList(list []*AzureOperatorsAuthentication, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAzureOperatorsAuthenticationList(list, stream) + WriteAzureOperatorsAuthenticationList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAzureOperatorsAuthenticationList(list []*AzureOperatorsAuthenticatio return stream.Error } -// writeAzureOperatorsAuthenticationList writes a list of value of the 'azure_operators_authentication' type to +// WriteAzureOperatorsAuthenticationList writes a list of value of the 'azure_operators_authentication' type to // the given stream. -func writeAzureOperatorsAuthenticationList(list []*AzureOperatorsAuthentication, stream *jsoniter.Stream) { +func WriteAzureOperatorsAuthenticationList(list []*AzureOperatorsAuthentication, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAzureOperatorsAuthentication(value, stream) + WriteAzureOperatorsAuthentication(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAzureOperatorsAuthenticationList(source interface{}) (items []*Azu if err != nil { return } - items = readAzureOperatorsAuthenticationList(iterator) + items = ReadAzureOperatorsAuthenticationList(iterator) err = iterator.Error return } -// readAzureOperatorsAuthenticationList reads list of values of the ”azure_operators_authentication' type from +// ReadAzureOperatorsAuthenticationList reads list of values of the ”azure_operators_authentication' type from // the given iterator. -func readAzureOperatorsAuthenticationList(iterator *jsoniter.Iterator) []*AzureOperatorsAuthentication { +func ReadAzureOperatorsAuthenticationList(iterator *jsoniter.Iterator) []*AzureOperatorsAuthentication { list := []*AzureOperatorsAuthentication{} for iterator.ReadArray() { - item := readAzureOperatorsAuthentication(iterator) + item := ReadAzureOperatorsAuthentication(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/azure_operators_authentication_managed_identities_list_type_json.go b/clustersmgmt/v1/azure_operators_authentication_managed_identities_list_type_json.go index 8de7cf7b9..73af15040 100644 --- a/clustersmgmt/v1/azure_operators_authentication_managed_identities_list_type_json.go +++ b/clustersmgmt/v1/azure_operators_authentication_managed_identities_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAzureOperatorsAuthenticationManagedIdentitiesList(list []*AzureOperatorsAuthenticationManagedIdentities, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAzureOperatorsAuthenticationManagedIdentitiesList(list, stream) + WriteAzureOperatorsAuthenticationManagedIdentitiesList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAzureOperatorsAuthenticationManagedIdentitiesList(list []*AzureOpera return stream.Error } -// writeAzureOperatorsAuthenticationManagedIdentitiesList writes a list of value of the 'azure_operators_authentication_managed_identities' type to +// WriteAzureOperatorsAuthenticationManagedIdentitiesList writes a list of value of the 'azure_operators_authentication_managed_identities' type to // the given stream. -func writeAzureOperatorsAuthenticationManagedIdentitiesList(list []*AzureOperatorsAuthenticationManagedIdentities, stream *jsoniter.Stream) { +func WriteAzureOperatorsAuthenticationManagedIdentitiesList(list []*AzureOperatorsAuthenticationManagedIdentities, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAzureOperatorsAuthenticationManagedIdentities(value, stream) + WriteAzureOperatorsAuthenticationManagedIdentities(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAzureOperatorsAuthenticationManagedIdentitiesList(source interface if err != nil { return } - items = readAzureOperatorsAuthenticationManagedIdentitiesList(iterator) + items = ReadAzureOperatorsAuthenticationManagedIdentitiesList(iterator) err = iterator.Error return } -// readAzureOperatorsAuthenticationManagedIdentitiesList reads list of values of the ”azure_operators_authentication_managed_identities' type from +// ReadAzureOperatorsAuthenticationManagedIdentitiesList reads list of values of the ”azure_operators_authentication_managed_identities' type from // the given iterator. -func readAzureOperatorsAuthenticationManagedIdentitiesList(iterator *jsoniter.Iterator) []*AzureOperatorsAuthenticationManagedIdentities { +func ReadAzureOperatorsAuthenticationManagedIdentitiesList(iterator *jsoniter.Iterator) []*AzureOperatorsAuthenticationManagedIdentities { list := []*AzureOperatorsAuthenticationManagedIdentities{} for iterator.ReadArray() { - item := readAzureOperatorsAuthenticationManagedIdentities(iterator) + item := ReadAzureOperatorsAuthenticationManagedIdentities(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/azure_operators_authentication_managed_identities_type.go b/clustersmgmt/v1/azure_operators_authentication_managed_identities_type.go index b30460053..4df0e9c5e 100644 --- a/clustersmgmt/v1/azure_operators_authentication_managed_identities_type.go +++ b/clustersmgmt/v1/azure_operators_authentication_managed_identities_type.go @@ -194,6 +194,29 @@ func (l *AzureOperatorsAuthenticationManagedIdentitiesList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AzureOperatorsAuthenticationManagedIdentitiesList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AzureOperatorsAuthenticationManagedIdentitiesList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AzureOperatorsAuthenticationManagedIdentitiesList) SetItems(items []*AzureOperatorsAuthenticationManagedIdentities) { + l.items = items +} + +// Items returns the items of the list. +func (l *AzureOperatorsAuthenticationManagedIdentitiesList) Items() []*AzureOperatorsAuthenticationManagedIdentities { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AzureOperatorsAuthenticationManagedIdentitiesList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/azure_operators_authentication_managed_identities_type_json.go b/clustersmgmt/v1/azure_operators_authentication_managed_identities_type_json.go index 8af0a71c3..15655c43f 100644 --- a/clustersmgmt/v1/azure_operators_authentication_managed_identities_type_json.go +++ b/clustersmgmt/v1/azure_operators_authentication_managed_identities_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalAzureOperatorsAuthenticationManagedIdentities writes a value of the 'azure_operators_authentication_managed_identities' type to the given writer. func MarshalAzureOperatorsAuthenticationManagedIdentities(object *AzureOperatorsAuthenticationManagedIdentities, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAzureOperatorsAuthenticationManagedIdentities(object, stream) + WriteAzureOperatorsAuthenticationManagedIdentities(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalAzureOperatorsAuthenticationManagedIdentities(object *AzureOperators return stream.Error } -// writeAzureOperatorsAuthenticationManagedIdentities writes a value of the 'azure_operators_authentication_managed_identities' type to the given stream. -func writeAzureOperatorsAuthenticationManagedIdentities(object *AzureOperatorsAuthenticationManagedIdentities, stream *jsoniter.Stream) { +// WriteAzureOperatorsAuthenticationManagedIdentities writes a value of the 'azure_operators_authentication_managed_identities' type to the given stream. +func WriteAzureOperatorsAuthenticationManagedIdentities(object *AzureOperatorsAuthenticationManagedIdentities, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -64,7 +64,7 @@ func writeAzureOperatorsAuthenticationManagedIdentities(object *AzureOperatorsAu } item := object.controlPlaneOperatorsManagedIdentities[key] stream.WriteObjectField(key) - writeAzureControlPlaneManagedIdentity(item, stream) + WriteAzureControlPlaneManagedIdentity(item, stream) } stream.WriteObjectEnd() } else { @@ -93,7 +93,7 @@ func writeAzureOperatorsAuthenticationManagedIdentities(object *AzureOperatorsAu } item := object.dataPlaneOperatorsManagedIdentities[key] stream.WriteObjectField(key) - writeAzureDataPlaneManagedIdentity(item, stream) + WriteAzureDataPlaneManagedIdentity(item, stream) } stream.WriteObjectEnd() } else { @@ -116,7 +116,7 @@ func writeAzureOperatorsAuthenticationManagedIdentities(object *AzureOperatorsAu stream.WriteMore() } stream.WriteObjectField("service_managed_identity") - writeAzureServiceManagedIdentity(object.serviceManagedIdentity, stream) + WriteAzureServiceManagedIdentity(object.serviceManagedIdentity, stream) } stream.WriteObjectEnd() } @@ -128,13 +128,13 @@ func UnmarshalAzureOperatorsAuthenticationManagedIdentities(source interface{}) if err != nil { return } - object = readAzureOperatorsAuthenticationManagedIdentities(iterator) + object = ReadAzureOperatorsAuthenticationManagedIdentities(iterator) err = iterator.Error return } -// readAzureOperatorsAuthenticationManagedIdentities reads a value of the 'azure_operators_authentication_managed_identities' type from the given iterator. -func readAzureOperatorsAuthenticationManagedIdentities(iterator *jsoniter.Iterator) *AzureOperatorsAuthenticationManagedIdentities { +// ReadAzureOperatorsAuthenticationManagedIdentities reads a value of the 'azure_operators_authentication_managed_identities' type from the given iterator. +func ReadAzureOperatorsAuthenticationManagedIdentities(iterator *jsoniter.Iterator) *AzureOperatorsAuthenticationManagedIdentities { object := &AzureOperatorsAuthenticationManagedIdentities{} for { field := iterator.ReadObject() @@ -149,7 +149,7 @@ func readAzureOperatorsAuthenticationManagedIdentities(iterator *jsoniter.Iterat if key == "" { break } - item := readAzureControlPlaneManagedIdentity(iterator) + item := ReadAzureControlPlaneManagedIdentity(iterator) value[key] = item } object.controlPlaneOperatorsManagedIdentities = value @@ -161,7 +161,7 @@ func readAzureOperatorsAuthenticationManagedIdentities(iterator *jsoniter.Iterat if key == "" { break } - item := readAzureDataPlaneManagedIdentity(iterator) + item := ReadAzureDataPlaneManagedIdentity(iterator) value[key] = item } object.dataPlaneOperatorsManagedIdentities = value @@ -171,7 +171,7 @@ func readAzureOperatorsAuthenticationManagedIdentities(iterator *jsoniter.Iterat object.managedIdentitiesDataPlaneIdentityUrl = value object.bitmap_ |= 4 case "service_managed_identity": - value := readAzureServiceManagedIdentity(iterator) + value := ReadAzureServiceManagedIdentity(iterator) object.serviceManagedIdentity = value object.bitmap_ |= 8 default: diff --git a/clustersmgmt/v1/azure_operators_authentication_type.go b/clustersmgmt/v1/azure_operators_authentication_type.go index d0d8863d8..4020addaf 100644 --- a/clustersmgmt/v1/azure_operators_authentication_type.go +++ b/clustersmgmt/v1/azure_operators_authentication_type.go @@ -87,6 +87,29 @@ func (l *AzureOperatorsAuthenticationList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AzureOperatorsAuthenticationList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AzureOperatorsAuthenticationList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AzureOperatorsAuthenticationList) SetItems(items []*AzureOperatorsAuthentication) { + l.items = items +} + +// Items returns the items of the list. +func (l *AzureOperatorsAuthenticationList) Items() []*AzureOperatorsAuthentication { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AzureOperatorsAuthenticationList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/azure_operators_authentication_type_json.go b/clustersmgmt/v1/azure_operators_authentication_type_json.go index b9720b759..1b4c54d09 100644 --- a/clustersmgmt/v1/azure_operators_authentication_type_json.go +++ b/clustersmgmt/v1/azure_operators_authentication_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAzureOperatorsAuthentication writes a value of the 'azure_operators_authentication' type to the given writer. func MarshalAzureOperatorsAuthentication(object *AzureOperatorsAuthentication, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAzureOperatorsAuthentication(object, stream) + WriteAzureOperatorsAuthentication(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAzureOperatorsAuthentication(object *AzureOperatorsAuthentication, w return stream.Error } -// writeAzureOperatorsAuthentication writes a value of the 'azure_operators_authentication' type to the given stream. -func writeAzureOperatorsAuthentication(object *AzureOperatorsAuthentication, stream *jsoniter.Stream) { +// WriteAzureOperatorsAuthentication writes a value of the 'azure_operators_authentication' type to the given stream. +func WriteAzureOperatorsAuthentication(object *AzureOperatorsAuthentication, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeAzureOperatorsAuthentication(object *AzureOperatorsAuthentication, str stream.WriteMore() } stream.WriteObjectField("managed_identities") - writeAzureOperatorsAuthenticationManagedIdentities(object.managedIdentities, stream) + WriteAzureOperatorsAuthenticationManagedIdentities(object.managedIdentities, stream) } stream.WriteObjectEnd() } @@ -60,13 +60,13 @@ func UnmarshalAzureOperatorsAuthentication(source interface{}) (object *AzureOpe if err != nil { return } - object = readAzureOperatorsAuthentication(iterator) + object = ReadAzureOperatorsAuthentication(iterator) err = iterator.Error return } -// readAzureOperatorsAuthentication reads a value of the 'azure_operators_authentication' type from the given iterator. -func readAzureOperatorsAuthentication(iterator *jsoniter.Iterator) *AzureOperatorsAuthentication { +// ReadAzureOperatorsAuthentication reads a value of the 'azure_operators_authentication' type from the given iterator. +func ReadAzureOperatorsAuthentication(iterator *jsoniter.Iterator) *AzureOperatorsAuthentication { object := &AzureOperatorsAuthentication{} for { field := iterator.ReadObject() @@ -75,7 +75,7 @@ func readAzureOperatorsAuthentication(iterator *jsoniter.Iterator) *AzureOperato } switch field { case "managed_identities": - value := readAzureOperatorsAuthenticationManagedIdentities(iterator) + value := ReadAzureOperatorsAuthenticationManagedIdentities(iterator) object.managedIdentities = value object.bitmap_ |= 1 default: diff --git a/clustersmgmt/v1/azure_service_managed_identity_list_type_json.go b/clustersmgmt/v1/azure_service_managed_identity_list_type_json.go index adbf8b8ab..3a9d5ce04 100644 --- a/clustersmgmt/v1/azure_service_managed_identity_list_type_json.go +++ b/clustersmgmt/v1/azure_service_managed_identity_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAzureServiceManagedIdentityList(list []*AzureServiceManagedIdentity, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAzureServiceManagedIdentityList(list, stream) + WriteAzureServiceManagedIdentityList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAzureServiceManagedIdentityList(list []*AzureServiceManagedIdentity, return stream.Error } -// writeAzureServiceManagedIdentityList writes a list of value of the 'azure_service_managed_identity' type to +// WriteAzureServiceManagedIdentityList writes a list of value of the 'azure_service_managed_identity' type to // the given stream. -func writeAzureServiceManagedIdentityList(list []*AzureServiceManagedIdentity, stream *jsoniter.Stream) { +func WriteAzureServiceManagedIdentityList(list []*AzureServiceManagedIdentity, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAzureServiceManagedIdentity(value, stream) + WriteAzureServiceManagedIdentity(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAzureServiceManagedIdentityList(source interface{}) (items []*Azur if err != nil { return } - items = readAzureServiceManagedIdentityList(iterator) + items = ReadAzureServiceManagedIdentityList(iterator) err = iterator.Error return } -// readAzureServiceManagedIdentityList reads list of values of the ”azure_service_managed_identity' type from +// ReadAzureServiceManagedIdentityList reads list of values of the ”azure_service_managed_identity' type from // the given iterator. -func readAzureServiceManagedIdentityList(iterator *jsoniter.Iterator) []*AzureServiceManagedIdentity { +func ReadAzureServiceManagedIdentityList(iterator *jsoniter.Iterator) []*AzureServiceManagedIdentity { list := []*AzureServiceManagedIdentity{} for iterator.ReadArray() { - item := readAzureServiceManagedIdentity(iterator) + item := ReadAzureServiceManagedIdentity(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/azure_service_managed_identity_type.go b/clustersmgmt/v1/azure_service_managed_identity_type.go index 898ebe029..048782f78 100644 --- a/clustersmgmt/v1/azure_service_managed_identity_type.go +++ b/clustersmgmt/v1/azure_service_managed_identity_type.go @@ -161,6 +161,29 @@ func (l *AzureServiceManagedIdentityList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AzureServiceManagedIdentityList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AzureServiceManagedIdentityList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AzureServiceManagedIdentityList) SetItems(items []*AzureServiceManagedIdentity) { + l.items = items +} + +// Items returns the items of the list. +func (l *AzureServiceManagedIdentityList) Items() []*AzureServiceManagedIdentity { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AzureServiceManagedIdentityList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/azure_service_managed_identity_type_json.go b/clustersmgmt/v1/azure_service_managed_identity_type_json.go index 32d526c9b..6a3c8d106 100644 --- a/clustersmgmt/v1/azure_service_managed_identity_type_json.go +++ b/clustersmgmt/v1/azure_service_managed_identity_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAzureServiceManagedIdentity writes a value of the 'azure_service_managed_identity' type to the given writer. func MarshalAzureServiceManagedIdentity(object *AzureServiceManagedIdentity, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAzureServiceManagedIdentity(object, stream) + WriteAzureServiceManagedIdentity(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAzureServiceManagedIdentity(object *AzureServiceManagedIdentity, wri return stream.Error } -// writeAzureServiceManagedIdentity writes a value of the 'azure_service_managed_identity' type to the given stream. -func writeAzureServiceManagedIdentity(object *AzureServiceManagedIdentity, stream *jsoniter.Stream) { +// WriteAzureServiceManagedIdentity writes a value of the 'azure_service_managed_identity' type to the given stream. +func WriteAzureServiceManagedIdentity(object *AzureServiceManagedIdentity, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -78,13 +78,13 @@ func UnmarshalAzureServiceManagedIdentity(source interface{}) (object *AzureServ if err != nil { return } - object = readAzureServiceManagedIdentity(iterator) + object = ReadAzureServiceManagedIdentity(iterator) err = iterator.Error return } -// readAzureServiceManagedIdentity reads a value of the 'azure_service_managed_identity' type from the given iterator. -func readAzureServiceManagedIdentity(iterator *jsoniter.Iterator) *AzureServiceManagedIdentity { +// ReadAzureServiceManagedIdentity reads a value of the 'azure_service_managed_identity' type from the given iterator. +func ReadAzureServiceManagedIdentity(iterator *jsoniter.Iterator) *AzureServiceManagedIdentity { object := &AzureServiceManagedIdentity{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/azure_type.go b/clustersmgmt/v1/azure_type.go index a0a71970a..44043e761 100644 --- a/clustersmgmt/v1/azure_type.go +++ b/clustersmgmt/v1/azure_type.go @@ -402,6 +402,29 @@ func (l *AzureList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AzureList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AzureList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AzureList) SetItems(items []*Azure) { + l.items = items +} + +// Items returns the items of the list. +func (l *AzureList) Items() []*Azure { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AzureList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/azure_type_json.go b/clustersmgmt/v1/azure_type_json.go index 9dfb68e7b..0540d9c12 100644 --- a/clustersmgmt/v1/azure_type_json.go +++ b/clustersmgmt/v1/azure_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalAzure writes a value of the 'azure' type to the given writer. func MarshalAzure(object *Azure, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAzure(object, stream) + WriteAzure(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalAzure(object *Azure, writer io.Writer) error { return stream.Error } -// writeAzure writes a value of the 'azure' type to the given stream. -func writeAzure(object *Azure, stream *jsoniter.Stream) { +// WriteAzure writes a value of the 'azure' type to the given stream. +func WriteAzure(object *Azure, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -66,7 +66,7 @@ func writeAzure(object *Azure, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("nodes_outbound_connectivity") - writeAzureNodesOutboundConnectivity(object.nodesOutboundConnectivity, stream) + WriteAzureNodesOutboundConnectivity(object.nodesOutboundConnectivity, stream) count++ } present_ = object.bitmap_&8 != 0 && object.operatorsAuthentication != nil @@ -75,7 +75,7 @@ func writeAzure(object *Azure, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("operators_authentication") - writeAzureOperatorsAuthentication(object.operatorsAuthentication, stream) + WriteAzureOperatorsAuthentication(object.operatorsAuthentication, stream) count++ } present_ = object.bitmap_&16 != 0 @@ -132,13 +132,13 @@ func UnmarshalAzure(source interface{}) (object *Azure, err error) { if err != nil { return } - object = readAzure(iterator) + object = ReadAzure(iterator) err = iterator.Error return } -// readAzure reads a value of the 'azure' type from the given iterator. -func readAzure(iterator *jsoniter.Iterator) *Azure { +// ReadAzure reads a value of the 'azure' type from the given iterator. +func ReadAzure(iterator *jsoniter.Iterator) *Azure { object := &Azure{} for { field := iterator.ReadObject() @@ -155,11 +155,11 @@ func readAzure(iterator *jsoniter.Iterator) *Azure { object.networkSecurityGroupResourceID = value object.bitmap_ |= 2 case "nodes_outbound_connectivity": - value := readAzureNodesOutboundConnectivity(iterator) + value := ReadAzureNodesOutboundConnectivity(iterator) object.nodesOutboundConnectivity = value object.bitmap_ |= 4 case "operators_authentication": - value := readAzureOperatorsAuthentication(iterator) + value := ReadAzureOperatorsAuthentication(iterator) object.operatorsAuthentication = value object.bitmap_ |= 8 case "resource_group_name": diff --git a/clustersmgmt/v1/billing_model_item_list_type_json.go b/clustersmgmt/v1/billing_model_item_list_type_json.go index 6856f30c5..1953b9a08 100644 --- a/clustersmgmt/v1/billing_model_item_list_type_json.go +++ b/clustersmgmt/v1/billing_model_item_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalBillingModelItemList(list []*BillingModelItem, writer io.Writer) error { stream := helpers.NewStream(writer) - writeBillingModelItemList(list, stream) + WriteBillingModelItemList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalBillingModelItemList(list []*BillingModelItem, writer io.Writer) err return stream.Error } -// writeBillingModelItemList writes a list of value of the 'billing_model_item' type to +// WriteBillingModelItemList writes a list of value of the 'billing_model_item' type to // the given stream. -func writeBillingModelItemList(list []*BillingModelItem, stream *jsoniter.Stream) { +func WriteBillingModelItemList(list []*BillingModelItem, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeBillingModelItem(value, stream) + WriteBillingModelItem(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalBillingModelItemList(source interface{}) (items []*BillingModelIte if err != nil { return } - items = readBillingModelItemList(iterator) + items = ReadBillingModelItemList(iterator) err = iterator.Error return } -// readBillingModelItemList reads list of values of the ”billing_model_item' type from +// ReadBillingModelItemList reads list of values of the ”billing_model_item' type from // the given iterator. -func readBillingModelItemList(iterator *jsoniter.Iterator) []*BillingModelItem { +func ReadBillingModelItemList(iterator *jsoniter.Iterator) []*BillingModelItem { list := []*BillingModelItem{} for iterator.ReadArray() { - item := readBillingModelItem(iterator) + item := ReadBillingModelItem(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/billing_model_item_type.go b/clustersmgmt/v1/billing_model_item_type.go index a9ff9b61a..7605b36fd 100644 --- a/clustersmgmt/v1/billing_model_item_type.go +++ b/clustersmgmt/v1/billing_model_item_type.go @@ -55,7 +55,7 @@ func (o *BillingModelItem) Kind() string { return BillingModelItemKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *BillingModelItem) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -254,6 +254,29 @@ func (l *BillingModelItemList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *BillingModelItemList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *BillingModelItemList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *BillingModelItemList) SetItems(items []*BillingModelItem) { + l.items = items +} + +// Items returns the items of the list. +func (l *BillingModelItemList) Items() []*BillingModelItem { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *BillingModelItemList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/billing_model_item_type_json.go b/clustersmgmt/v1/billing_model_item_type_json.go index aadcbbf5c..46f570bf4 100644 --- a/clustersmgmt/v1/billing_model_item_type_json.go +++ b/clustersmgmt/v1/billing_model_item_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalBillingModelItem writes a value of the 'billing_model_item' type to the given writer. func MarshalBillingModelItem(object *BillingModelItem, writer io.Writer) error { stream := helpers.NewStream(writer) - writeBillingModelItem(object, stream) + WriteBillingModelItem(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalBillingModelItem(object *BillingModelItem, writer io.Writer) error { return stream.Error } -// writeBillingModelItem writes a value of the 'billing_model_item' type to the given stream. -func writeBillingModelItem(object *BillingModelItem, stream *jsoniter.Stream) { +// WriteBillingModelItem writes a value of the 'billing_model_item' type to the given stream. +func WriteBillingModelItem(object *BillingModelItem, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -110,13 +110,13 @@ func UnmarshalBillingModelItem(source interface{}) (object *BillingModelItem, er if err != nil { return } - object = readBillingModelItem(iterator) + object = ReadBillingModelItem(iterator) err = iterator.Error return } -// readBillingModelItem reads a value of the 'billing_model_item' type from the given iterator. -func readBillingModelItem(iterator *jsoniter.Iterator) *BillingModelItem { +// ReadBillingModelItem reads a value of the 'billing_model_item' type from the given iterator. +func ReadBillingModelItem(iterator *jsoniter.Iterator) *BillingModelItem { object := &BillingModelItem{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/billing_model_list_type_json.go b/clustersmgmt/v1/billing_model_list_type_json.go index ea3042526..7548997ff 100644 --- a/clustersmgmt/v1/billing_model_list_type_json.go +++ b/clustersmgmt/v1/billing_model_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalBillingModelList(list []BillingModel, writer io.Writer) error { stream := helpers.NewStream(writer) - writeBillingModelList(list, stream) + WriteBillingModelList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalBillingModelList(list []BillingModel, writer io.Writer) error { return stream.Error } -// writeBillingModelList writes a list of value of the 'billing_model' type to +// WriteBillingModelList writes a list of value of the 'billing_model' type to // the given stream. -func writeBillingModelList(list []BillingModel, stream *jsoniter.Stream) { +func WriteBillingModelList(list []BillingModel, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalBillingModelList(source interface{}) (items []BillingModel, err er if err != nil { return } - items = readBillingModelList(iterator) + items = ReadBillingModelList(iterator) err = iterator.Error return } -// readBillingModelList reads list of values of the ”billing_model' type from +// ReadBillingModelList reads list of values of the ”billing_model' type from // the given iterator. -func readBillingModelList(iterator *jsoniter.Iterator) []BillingModel { +func ReadBillingModelList(iterator *jsoniter.Iterator) []BillingModel { list := []BillingModel{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/boolean_list_type_json.go b/clustersmgmt/v1/boolean_list_type_json.go index cd30cf683..b4dd42682 100644 --- a/clustersmgmt/v1/boolean_list_type_json.go +++ b/clustersmgmt/v1/boolean_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalBooleanList(list []bool, writer io.Writer) error { stream := helpers.NewStream(writer) - writeBooleanList(list, stream) + WriteBooleanList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalBooleanList(list []bool, writer io.Writer) error { return stream.Error } -// writeBooleanList writes a list of value of the 'boolean' type to +// WriteBooleanList writes a list of value of the 'boolean' type to // the given stream. -func writeBooleanList(list []bool, stream *jsoniter.Stream) { +func WriteBooleanList(list []bool, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalBooleanList(source interface{}) (items []bool, err error) { if err != nil { return } - items = readBooleanList(iterator) + items = ReadBooleanList(iterator) err = iterator.Error return } -// readBooleanList reads list of values of the ”boolean' type from +// ReadBooleanList reads list of values of the ”boolean' type from // the given iterator. -func readBooleanList(iterator *jsoniter.Iterator) []bool { +func ReadBooleanList(iterator *jsoniter.Iterator) []bool { list := []bool{} for iterator.ReadArray() { item := iterator.ReadBool() diff --git a/clustersmgmt/v1/break_glass_credential_list_type_json.go b/clustersmgmt/v1/break_glass_credential_list_type_json.go index 5340d2829..41303add8 100644 --- a/clustersmgmt/v1/break_glass_credential_list_type_json.go +++ b/clustersmgmt/v1/break_glass_credential_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalBreakGlassCredentialList(list []*BreakGlassCredential, writer io.Writer) error { stream := helpers.NewStream(writer) - writeBreakGlassCredentialList(list, stream) + WriteBreakGlassCredentialList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalBreakGlassCredentialList(list []*BreakGlassCredential, writer io.Wri return stream.Error } -// writeBreakGlassCredentialList writes a list of value of the 'break_glass_credential' type to +// WriteBreakGlassCredentialList writes a list of value of the 'break_glass_credential' type to // the given stream. -func writeBreakGlassCredentialList(list []*BreakGlassCredential, stream *jsoniter.Stream) { +func WriteBreakGlassCredentialList(list []*BreakGlassCredential, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeBreakGlassCredential(value, stream) + WriteBreakGlassCredential(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalBreakGlassCredentialList(source interface{}) (items []*BreakGlassC if err != nil { return } - items = readBreakGlassCredentialList(iterator) + items = ReadBreakGlassCredentialList(iterator) err = iterator.Error return } -// readBreakGlassCredentialList reads list of values of the ”break_glass_credential' type from +// ReadBreakGlassCredentialList reads list of values of the ”break_glass_credential' type from // the given iterator. -func readBreakGlassCredentialList(iterator *jsoniter.Iterator) []*BreakGlassCredential { +func ReadBreakGlassCredentialList(iterator *jsoniter.Iterator) []*BreakGlassCredential { list := []*BreakGlassCredential{} for iterator.ReadArray() { - item := readBreakGlassCredential(iterator) + item := ReadBreakGlassCredential(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/break_glass_credential_status_list_type_json.go b/clustersmgmt/v1/break_glass_credential_status_list_type_json.go index 0b55951b2..13e83bc19 100644 --- a/clustersmgmt/v1/break_glass_credential_status_list_type_json.go +++ b/clustersmgmt/v1/break_glass_credential_status_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalBreakGlassCredentialStatusList(list []BreakGlassCredentialStatus, writer io.Writer) error { stream := helpers.NewStream(writer) - writeBreakGlassCredentialStatusList(list, stream) + WriteBreakGlassCredentialStatusList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalBreakGlassCredentialStatusList(list []BreakGlassCredentialStatus, wr return stream.Error } -// writeBreakGlassCredentialStatusList writes a list of value of the 'break_glass_credential_status' type to +// WriteBreakGlassCredentialStatusList writes a list of value of the 'break_glass_credential_status' type to // the given stream. -func writeBreakGlassCredentialStatusList(list []BreakGlassCredentialStatus, stream *jsoniter.Stream) { +func WriteBreakGlassCredentialStatusList(list []BreakGlassCredentialStatus, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalBreakGlassCredentialStatusList(source interface{}) (items []BreakG if err != nil { return } - items = readBreakGlassCredentialStatusList(iterator) + items = ReadBreakGlassCredentialStatusList(iterator) err = iterator.Error return } -// readBreakGlassCredentialStatusList reads list of values of the ”break_glass_credential_status' type from +// ReadBreakGlassCredentialStatusList reads list of values of the ”break_glass_credential_status' type from // the given iterator. -func readBreakGlassCredentialStatusList(iterator *jsoniter.Iterator) []BreakGlassCredentialStatus { +func ReadBreakGlassCredentialStatusList(iterator *jsoniter.Iterator) []BreakGlassCredentialStatus { list := []BreakGlassCredentialStatus{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/break_glass_credential_type.go b/clustersmgmt/v1/break_glass_credential_type.go index 39d20aff0..745d4233d 100644 --- a/clustersmgmt/v1/break_glass_credential_type.go +++ b/clustersmgmt/v1/break_glass_credential_type.go @@ -60,7 +60,7 @@ func (o *BreakGlassCredential) Kind() string { return BreakGlassCredentialKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *BreakGlassCredential) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -282,6 +282,29 @@ func (l *BreakGlassCredentialList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *BreakGlassCredentialList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *BreakGlassCredentialList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *BreakGlassCredentialList) SetItems(items []*BreakGlassCredential) { + l.items = items +} + +// Items returns the items of the list. +func (l *BreakGlassCredentialList) Items() []*BreakGlassCredential { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *BreakGlassCredentialList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/break_glass_credential_type_json.go b/clustersmgmt/v1/break_glass_credential_type_json.go index 609971259..a09e45e3c 100644 --- a/clustersmgmt/v1/break_glass_credential_type_json.go +++ b/clustersmgmt/v1/break_glass_credential_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalBreakGlassCredential writes a value of the 'break_glass_credential' type to the given writer. func MarshalBreakGlassCredential(object *BreakGlassCredential, writer io.Writer) error { stream := helpers.NewStream(writer) - writeBreakGlassCredential(object, stream) + WriteBreakGlassCredential(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalBreakGlassCredential(object *BreakGlassCredential, writer io.Writer) return stream.Error } -// writeBreakGlassCredential writes a value of the 'break_glass_credential' type to the given stream. -func writeBreakGlassCredential(object *BreakGlassCredential, stream *jsoniter.Stream) { +// WriteBreakGlassCredential writes a value of the 'break_glass_credential' type to the given stream. +func WriteBreakGlassCredential(object *BreakGlassCredential, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -120,13 +120,13 @@ func UnmarshalBreakGlassCredential(source interface{}) (object *BreakGlassCreden if err != nil { return } - object = readBreakGlassCredential(iterator) + object = ReadBreakGlassCredential(iterator) err = iterator.Error return } -// readBreakGlassCredential reads a value of the 'break_glass_credential' type from the given iterator. -func readBreakGlassCredential(iterator *jsoniter.Iterator) *BreakGlassCredential { +// ReadBreakGlassCredential reads a value of the 'break_glass_credential' type from the given iterator. +func ReadBreakGlassCredential(iterator *jsoniter.Iterator) *BreakGlassCredential { object := &BreakGlassCredential{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/break_glass_credentials_resource_json.go b/clustersmgmt/v1/break_glass_credentials_resource_json.go index 443df3a1c..8902fbd93 100644 --- a/clustersmgmt/v1/break_glass_credentials_resource_json.go +++ b/clustersmgmt/v1/break_glass_credentials_resource_json.go @@ -63,7 +63,7 @@ func readBreakGlassCredentialsListResponse(response *BreakGlassCredentialsListRe value := iterator.ReadInt() response.total = &value case "items": - items := readBreakGlassCredentialList(iterator) + items := ReadBreakGlassCredentialList(iterator) response.items = &BreakGlassCredentialList{ items: items, } diff --git a/clustersmgmt/v1/byo_oidc_list_type_json.go b/clustersmgmt/v1/byo_oidc_list_type_json.go index 508a15a56..59fc1232d 100644 --- a/clustersmgmt/v1/byo_oidc_list_type_json.go +++ b/clustersmgmt/v1/byo_oidc_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalByoOidcList(list []*ByoOidc, writer io.Writer) error { stream := helpers.NewStream(writer) - writeByoOidcList(list, stream) + WriteByoOidcList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalByoOidcList(list []*ByoOidc, writer io.Writer) error { return stream.Error } -// writeByoOidcList writes a list of value of the 'byo_oidc' type to +// WriteByoOidcList writes a list of value of the 'byo_oidc' type to // the given stream. -func writeByoOidcList(list []*ByoOidc, stream *jsoniter.Stream) { +func WriteByoOidcList(list []*ByoOidc, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeByoOidc(value, stream) + WriteByoOidc(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalByoOidcList(source interface{}) (items []*ByoOidc, err error) { if err != nil { return } - items = readByoOidcList(iterator) + items = ReadByoOidcList(iterator) err = iterator.Error return } -// readByoOidcList reads list of values of the ”byo_oidc' type from +// ReadByoOidcList reads list of values of the ”byo_oidc' type from // the given iterator. -func readByoOidcList(iterator *jsoniter.Iterator) []*ByoOidc { +func ReadByoOidcList(iterator *jsoniter.Iterator) []*ByoOidc { list := []*ByoOidc{} for iterator.ReadArray() { - item := readByoOidc(iterator) + item := ReadByoOidc(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/byo_oidc_type.go b/clustersmgmt/v1/byo_oidc_type.go index e4ecfc118..1752e639f 100644 --- a/clustersmgmt/v1/byo_oidc_type.go +++ b/clustersmgmt/v1/byo_oidc_type.go @@ -92,6 +92,29 @@ func (l *ByoOidcList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ByoOidcList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ByoOidcList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ByoOidcList) SetItems(items []*ByoOidc) { + l.items = items +} + +// Items returns the items of the list. +func (l *ByoOidcList) Items() []*ByoOidc { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ByoOidcList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/byo_oidc_type_json.go b/clustersmgmt/v1/byo_oidc_type_json.go index 705ae0d81..80fd9ac49 100644 --- a/clustersmgmt/v1/byo_oidc_type_json.go +++ b/clustersmgmt/v1/byo_oidc_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalByoOidc writes a value of the 'byo_oidc' type to the given writer. func MarshalByoOidc(object *ByoOidc, writer io.Writer) error { stream := helpers.NewStream(writer) - writeByoOidc(object, stream) + WriteByoOidc(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalByoOidc(object *ByoOidc, writer io.Writer) error { return stream.Error } -// writeByoOidc writes a value of the 'byo_oidc' type to the given stream. -func writeByoOidc(object *ByoOidc, stream *jsoniter.Stream) { +// WriteByoOidc writes a value of the 'byo_oidc' type to the given stream. +func WriteByoOidc(object *ByoOidc, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalByoOidc(source interface{}) (object *ByoOidc, err error) { if err != nil { return } - object = readByoOidc(iterator) + object = ReadByoOidc(iterator) err = iterator.Error return } -// readByoOidc reads a value of the 'byo_oidc' type from the given iterator. -func readByoOidc(iterator *jsoniter.Iterator) *ByoOidc { +// ReadByoOidc reads a value of the 'byo_oidc' type from the given iterator. +func ReadByoOidc(iterator *jsoniter.Iterator) *ByoOidc { object := &ByoOidc{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/ccs_list_type_json.go b/clustersmgmt/v1/ccs_list_type_json.go index 9d3f3fa57..3d766574b 100644 --- a/clustersmgmt/v1/ccs_list_type_json.go +++ b/clustersmgmt/v1/ccs_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalCCSList(list []*CCS, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCCSList(list, stream) + WriteCCSList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalCCSList(list []*CCS, writer io.Writer) error { return stream.Error } -// writeCCSList writes a list of value of the 'CCS' type to +// WriteCCSList writes a list of value of the 'CCS' type to // the given stream. -func writeCCSList(list []*CCS, stream *jsoniter.Stream) { +func WriteCCSList(list []*CCS, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeCCS(value, stream) + WriteCCS(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalCCSList(source interface{}) (items []*CCS, err error) { if err != nil { return } - items = readCCSList(iterator) + items = ReadCCSList(iterator) err = iterator.Error return } -// readCCSList reads list of values of the ”CCS' type from +// ReadCCSList reads list of values of the ”CCS' type from // the given iterator. -func readCCSList(iterator *jsoniter.Iterator) []*CCS { +func ReadCCSList(iterator *jsoniter.Iterator) []*CCS { list := []*CCS{} for iterator.ReadArray() { - item := readCCS(iterator) + item := ReadCCS(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/ccs_type.go b/clustersmgmt/v1/ccs_type.go index bc8a62047..241da3063 100644 --- a/clustersmgmt/v1/ccs_type.go +++ b/clustersmgmt/v1/ccs_type.go @@ -51,7 +51,7 @@ func (o *CCS) Kind() string { return CCSKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *CCS) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -206,6 +206,29 @@ func (l *CCSList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *CCSList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *CCSList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *CCSList) SetItems(items []*CCS) { + l.items = items +} + +// Items returns the items of the list. +func (l *CCSList) Items() []*CCS { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *CCSList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/ccs_type_json.go b/clustersmgmt/v1/ccs_type_json.go index 6fbb5a1ab..96c02a5a3 100644 --- a/clustersmgmt/v1/ccs_type_json.go +++ b/clustersmgmt/v1/ccs_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalCCS writes a value of the 'CCS' type to the given writer. func MarshalCCS(object *CCS, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCCS(object, stream) + WriteCCS(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalCCS(object *CCS, writer io.Writer) error { return stream.Error } -// writeCCS writes a value of the 'CCS' type to the given stream. -func writeCCS(object *CCS, stream *jsoniter.Stream) { +// WriteCCS writes a value of the 'CCS' type to the given stream. +func WriteCCS(object *CCS, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -92,13 +92,13 @@ func UnmarshalCCS(source interface{}) (object *CCS, err error) { if err != nil { return } - object = readCCS(iterator) + object = ReadCCS(iterator) err = iterator.Error return } -// readCCS reads a value of the 'CCS' type from the given iterator. -func readCCS(iterator *jsoniter.Iterator) *CCS { +// ReadCCS reads a value of the 'CCS' type from the given iterator. +func ReadCCS(iterator *jsoniter.Iterator) *CCS { object := &CCS{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/client_component_list_type_json.go b/clustersmgmt/v1/client_component_list_type_json.go index 47a00e36a..2382a06c3 100644 --- a/clustersmgmt/v1/client_component_list_type_json.go +++ b/clustersmgmt/v1/client_component_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClientComponentList(list []*ClientComponent, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClientComponentList(list, stream) + WriteClientComponentList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalClientComponentList(list []*ClientComponent, writer io.Writer) error return stream.Error } -// writeClientComponentList writes a list of value of the 'client_component' type to +// WriteClientComponentList writes a list of value of the 'client_component' type to // the given stream. -func writeClientComponentList(list []*ClientComponent, stream *jsoniter.Stream) { +func WriteClientComponentList(list []*ClientComponent, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeClientComponent(value, stream) + WriteClientComponent(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalClientComponentList(source interface{}) (items []*ClientComponent, if err != nil { return } - items = readClientComponentList(iterator) + items = ReadClientComponentList(iterator) err = iterator.Error return } -// readClientComponentList reads list of values of the ”client_component' type from +// ReadClientComponentList reads list of values of the ”client_component' type from // the given iterator. -func readClientComponentList(iterator *jsoniter.Iterator) []*ClientComponent { +func ReadClientComponentList(iterator *jsoniter.Iterator) []*ClientComponent { list := []*ClientComponent{} for iterator.ReadArray() { - item := readClientComponent(iterator) + item := ReadClientComponent(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/client_component_type.go b/clustersmgmt/v1/client_component_type.go index 900c45b55..17a3f3197 100644 --- a/clustersmgmt/v1/client_component_type.go +++ b/clustersmgmt/v1/client_component_type.go @@ -106,6 +106,29 @@ func (l *ClientComponentList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ClientComponentList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClientComponentList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClientComponentList) SetItems(items []*ClientComponent) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClientComponentList) Items() []*ClientComponent { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ClientComponentList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/client_component_type_json.go b/clustersmgmt/v1/client_component_type_json.go index 499261d54..cc9e98c7b 100644 --- a/clustersmgmt/v1/client_component_type_json.go +++ b/clustersmgmt/v1/client_component_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalClientComponent writes a value of the 'client_component' type to the given writer. func MarshalClientComponent(object *ClientComponent, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClientComponent(object, stream) + WriteClientComponent(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalClientComponent(object *ClientComponent, writer io.Writer) error { return stream.Error } -// writeClientComponent writes a value of the 'client_component' type to the given stream. -func writeClientComponent(object *ClientComponent, stream *jsoniter.Stream) { +// WriteClientComponent writes a value of the 'client_component' type to the given stream. +func WriteClientComponent(object *ClientComponent, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalClientComponent(source interface{}) (object *ClientComponent, err if err != nil { return } - object = readClientComponent(iterator) + object = ReadClientComponent(iterator) err = iterator.Error return } -// readClientComponent reads a value of the 'client_component' type from the given iterator. -func readClientComponent(iterator *jsoniter.Iterator) *ClientComponent { +// ReadClientComponent reads a value of the 'client_component' type from the given iterator. +func ReadClientComponent(iterator *jsoniter.Iterator) *ClientComponent { object := &ClientComponent{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/cloud_provider_data_list_type_json.go b/clustersmgmt/v1/cloud_provider_data_list_type_json.go index 63b9b3435..51a8edef1 100644 --- a/clustersmgmt/v1/cloud_provider_data_list_type_json.go +++ b/clustersmgmt/v1/cloud_provider_data_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalCloudProviderDataList(list []*CloudProviderData, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCloudProviderDataList(list, stream) + WriteCloudProviderDataList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalCloudProviderDataList(list []*CloudProviderData, writer io.Writer) e return stream.Error } -// writeCloudProviderDataList writes a list of value of the 'cloud_provider_data' type to +// WriteCloudProviderDataList writes a list of value of the 'cloud_provider_data' type to // the given stream. -func writeCloudProviderDataList(list []*CloudProviderData, stream *jsoniter.Stream) { +func WriteCloudProviderDataList(list []*CloudProviderData, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeCloudProviderData(value, stream) + WriteCloudProviderData(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalCloudProviderDataList(source interface{}) (items []*CloudProviderD if err != nil { return } - items = readCloudProviderDataList(iterator) + items = ReadCloudProviderDataList(iterator) err = iterator.Error return } -// readCloudProviderDataList reads list of values of the ”cloud_provider_data' type from +// ReadCloudProviderDataList reads list of values of the ”cloud_provider_data' type from // the given iterator. -func readCloudProviderDataList(iterator *jsoniter.Iterator) []*CloudProviderData { +func ReadCloudProviderDataList(iterator *jsoniter.Iterator) []*CloudProviderData { list := []*CloudProviderData{} for iterator.ReadArray() { - item := readCloudProviderData(iterator) + item := ReadCloudProviderData(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/cloud_provider_data_type.go b/clustersmgmt/v1/cloud_provider_data_type.go index 98c898079..ce2ea2153 100644 --- a/clustersmgmt/v1/cloud_provider_data_type.go +++ b/clustersmgmt/v1/cloud_provider_data_type.go @@ -274,6 +274,29 @@ func (l *CloudProviderDataList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *CloudProviderDataList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *CloudProviderDataList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *CloudProviderDataList) SetItems(items []*CloudProviderData) { + l.items = items +} + +// Items returns the items of the list. +func (l *CloudProviderDataList) Items() []*CloudProviderData { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *CloudProviderDataList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/cloud_provider_data_type_json.go b/clustersmgmt/v1/cloud_provider_data_type_json.go index cbbe9fd71..455db08c8 100644 --- a/clustersmgmt/v1/cloud_provider_data_type_json.go +++ b/clustersmgmt/v1/cloud_provider_data_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalCloudProviderData writes a value of the 'cloud_provider_data' type to the given writer. func MarshalCloudProviderData(object *CloudProviderData, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCloudProviderData(object, stream) + WriteCloudProviderData(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalCloudProviderData(object *CloudProviderData, writer io.Writer) error return stream.Error } -// writeCloudProviderData writes a value of the 'cloud_provider_data' type to the given stream. -func writeCloudProviderData(object *CloudProviderData, stream *jsoniter.Stream) { +// WriteCloudProviderData writes a value of the 'cloud_provider_data' type to the given stream. +func WriteCloudProviderData(object *CloudProviderData, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeCloudProviderData(object *CloudProviderData, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("aws") - writeAWS(object.aws, stream) + WriteAWS(object.aws, stream) count++ } present_ = object.bitmap_&2 != 0 && object.gcp != nil @@ -57,7 +57,7 @@ func writeCloudProviderData(object *CloudProviderData, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("gcp") - writeGCP(object.gcp, stream) + WriteGCP(object.gcp, stream) count++ } present_ = object.bitmap_&4 != 0 && object.availabilityZones != nil @@ -66,7 +66,7 @@ func writeCloudProviderData(object *CloudProviderData, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("availability_zones") - writeStringList(object.availabilityZones, stream) + WriteStringList(object.availabilityZones, stream) count++ } present_ = object.bitmap_&8 != 0 @@ -93,7 +93,7 @@ func writeCloudProviderData(object *CloudProviderData, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("region") - writeCloudRegion(object.region, stream) + WriteCloudRegion(object.region, stream) count++ } present_ = object.bitmap_&64 != 0 && object.subnets != nil @@ -102,7 +102,7 @@ func writeCloudProviderData(object *CloudProviderData, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("subnets") - writeStringList(object.subnets, stream) + WriteStringList(object.subnets, stream) count++ } present_ = object.bitmap_&128 != 0 && object.version != nil @@ -111,7 +111,7 @@ func writeCloudProviderData(object *CloudProviderData, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("version") - writeVersion(object.version, stream) + WriteVersion(object.version, stream) count++ } present_ = object.bitmap_&256 != 0 && object.vpcIds != nil @@ -120,7 +120,7 @@ func writeCloudProviderData(object *CloudProviderData, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("vpc_ids") - writeStringList(object.vpcIds, stream) + WriteStringList(object.vpcIds, stream) } stream.WriteObjectEnd() } @@ -132,13 +132,13 @@ func UnmarshalCloudProviderData(source interface{}) (object *CloudProviderData, if err != nil { return } - object = readCloudProviderData(iterator) + object = ReadCloudProviderData(iterator) err = iterator.Error return } -// readCloudProviderData reads a value of the 'cloud_provider_data' type from the given iterator. -func readCloudProviderData(iterator *jsoniter.Iterator) *CloudProviderData { +// ReadCloudProviderData reads a value of the 'cloud_provider_data' type from the given iterator. +func ReadCloudProviderData(iterator *jsoniter.Iterator) *CloudProviderData { object := &CloudProviderData{} for { field := iterator.ReadObject() @@ -147,15 +147,15 @@ func readCloudProviderData(iterator *jsoniter.Iterator) *CloudProviderData { } switch field { case "aws": - value := readAWS(iterator) + value := ReadAWS(iterator) object.aws = value object.bitmap_ |= 1 case "gcp": - value := readGCP(iterator) + value := ReadGCP(iterator) object.gcp = value object.bitmap_ |= 2 case "availability_zones": - value := readStringList(iterator) + value := ReadStringList(iterator) object.availabilityZones = value object.bitmap_ |= 4 case "key_location": @@ -167,19 +167,19 @@ func readCloudProviderData(iterator *jsoniter.Iterator) *CloudProviderData { object.keyRingName = value object.bitmap_ |= 16 case "region": - value := readCloudRegion(iterator) + value := ReadCloudRegion(iterator) object.region = value object.bitmap_ |= 32 case "subnets": - value := readStringList(iterator) + value := ReadStringList(iterator) object.subnets = value object.bitmap_ |= 64 case "version": - value := readVersion(iterator) + value := ReadVersion(iterator) object.version = value object.bitmap_ |= 128 case "vpc_ids": - value := readStringList(iterator) + value := ReadStringList(iterator) object.vpcIds = value object.bitmap_ |= 256 default: diff --git a/clustersmgmt/v1/cloud_provider_list_type_json.go b/clustersmgmt/v1/cloud_provider_list_type_json.go index 1e8250bb3..5d72bb049 100644 --- a/clustersmgmt/v1/cloud_provider_list_type_json.go +++ b/clustersmgmt/v1/cloud_provider_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalCloudProviderList(list []*CloudProvider, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCloudProviderList(list, stream) + WriteCloudProviderList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalCloudProviderList(list []*CloudProvider, writer io.Writer) error { return stream.Error } -// writeCloudProviderList writes a list of value of the 'cloud_provider' type to +// WriteCloudProviderList writes a list of value of the 'cloud_provider' type to // the given stream. -func writeCloudProviderList(list []*CloudProvider, stream *jsoniter.Stream) { +func WriteCloudProviderList(list []*CloudProvider, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeCloudProvider(value, stream) + WriteCloudProvider(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalCloudProviderList(source interface{}) (items []*CloudProvider, err if err != nil { return } - items = readCloudProviderList(iterator) + items = ReadCloudProviderList(iterator) err = iterator.Error return } -// readCloudProviderList reads list of values of the ”cloud_provider' type from +// ReadCloudProviderList reads list of values of the ”cloud_provider' type from // the given iterator. -func readCloudProviderList(iterator *jsoniter.Iterator) []*CloudProvider { +func ReadCloudProviderList(iterator *jsoniter.Iterator) []*CloudProvider { list := []*CloudProvider{} for iterator.ReadArray() { - item := readCloudProvider(iterator) + item := ReadCloudProvider(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/cloud_provider_type.go b/clustersmgmt/v1/cloud_provider_type.go index 39c409c04..814488225 100644 --- a/clustersmgmt/v1/cloud_provider_type.go +++ b/clustersmgmt/v1/cloud_provider_type.go @@ -54,7 +54,7 @@ func (o *CloudProvider) Kind() string { return CloudProviderKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *CloudProvider) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -232,6 +232,29 @@ func (l *CloudProviderList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *CloudProviderList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *CloudProviderList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *CloudProviderList) SetItems(items []*CloudProvider) { + l.items = items +} + +// Items returns the items of the list. +func (l *CloudProviderList) Items() []*CloudProvider { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *CloudProviderList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/cloud_provider_type_json.go b/clustersmgmt/v1/cloud_provider_type_json.go index 7e2e9c329..a1bb3893c 100644 --- a/clustersmgmt/v1/cloud_provider_type_json.go +++ b/clustersmgmt/v1/cloud_provider_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalCloudProvider writes a value of the 'cloud_provider' type to the given writer. func MarshalCloudProvider(object *CloudProvider, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCloudProvider(object, stream) + WriteCloudProvider(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalCloudProvider(object *CloudProvider, writer io.Writer) error { return stream.Error } -// writeCloudProvider writes a value of the 'cloud_provider' type to the given stream. -func writeCloudProvider(object *CloudProvider, stream *jsoniter.Stream) { +// WriteCloudProvider writes a value of the 'cloud_provider' type to the given stream. +func WriteCloudProvider(object *CloudProvider, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -89,7 +89,7 @@ func writeCloudProvider(object *CloudProvider, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("regions") - writeCloudRegionList(object.regions, stream) + WriteCloudRegionList(object.regions, stream) } stream.WriteObjectEnd() } @@ -101,13 +101,13 @@ func UnmarshalCloudProvider(source interface{}) (object *CloudProvider, err erro if err != nil { return } - object = readCloudProvider(iterator) + object = ReadCloudProvider(iterator) err = iterator.Error return } -// readCloudProvider reads a value of the 'cloud_provider' type from the given iterator. -func readCloudProvider(iterator *jsoniter.Iterator) *CloudProvider { +// ReadCloudProvider reads a value of the 'cloud_provider' type from the given iterator. +func ReadCloudProvider(iterator *jsoniter.Iterator) *CloudProvider { object := &CloudProvider{} for { field := iterator.ReadObject() @@ -135,7 +135,7 @@ func readCloudProvider(iterator *jsoniter.Iterator) *CloudProvider { object.name = value object.bitmap_ |= 16 case "regions": - value := readCloudRegionList(iterator) + value := ReadCloudRegionList(iterator) object.regions = value object.bitmap_ |= 32 default: diff --git a/clustersmgmt/v1/cloud_providers_resource_json.go b/clustersmgmt/v1/cloud_providers_resource_json.go index 158708556..cf18e9d42 100644 --- a/clustersmgmt/v1/cloud_providers_resource_json.go +++ b/clustersmgmt/v1/cloud_providers_resource_json.go @@ -49,7 +49,7 @@ func readCloudProvidersListResponse(response *CloudProvidersListResponse, reader value := iterator.ReadInt() response.total = &value case "items": - items := readCloudProviderList(iterator) + items := ReadCloudProviderList(iterator) response.items = &CloudProviderList{ items: items, } diff --git a/clustersmgmt/v1/cloud_region_list_type_json.go b/clustersmgmt/v1/cloud_region_list_type_json.go index fd1d091fa..a6524661a 100644 --- a/clustersmgmt/v1/cloud_region_list_type_json.go +++ b/clustersmgmt/v1/cloud_region_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalCloudRegionList(list []*CloudRegion, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCloudRegionList(list, stream) + WriteCloudRegionList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalCloudRegionList(list []*CloudRegion, writer io.Writer) error { return stream.Error } -// writeCloudRegionList writes a list of value of the 'cloud_region' type to +// WriteCloudRegionList writes a list of value of the 'cloud_region' type to // the given stream. -func writeCloudRegionList(list []*CloudRegion, stream *jsoniter.Stream) { +func WriteCloudRegionList(list []*CloudRegion, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeCloudRegion(value, stream) + WriteCloudRegion(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalCloudRegionList(source interface{}) (items []*CloudRegion, err err if err != nil { return } - items = readCloudRegionList(iterator) + items = ReadCloudRegionList(iterator) err = iterator.Error return } -// readCloudRegionList reads list of values of the ”cloud_region' type from +// ReadCloudRegionList reads list of values of the ”cloud_region' type from // the given iterator. -func readCloudRegionList(iterator *jsoniter.Iterator) []*CloudRegion { +func ReadCloudRegionList(iterator *jsoniter.Iterator) []*CloudRegion { list := []*CloudRegion{} for iterator.ReadArray() { - item := readCloudRegion(iterator) + item := ReadCloudRegion(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/cloud_region_type.go b/clustersmgmt/v1/cloud_region_type.go index 5feb2c201..313d49057 100644 --- a/clustersmgmt/v1/cloud_region_type.go +++ b/clustersmgmt/v1/cloud_region_type.go @@ -61,7 +61,7 @@ func (o *CloudRegion) Kind() string { return CloudRegionKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *CloudRegion) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -410,6 +410,29 @@ func (l *CloudRegionList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *CloudRegionList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *CloudRegionList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *CloudRegionList) SetItems(items []*CloudRegion) { + l.items = items +} + +// Items returns the items of the list. +func (l *CloudRegionList) Items() []*CloudRegion { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *CloudRegionList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/cloud_region_type_json.go b/clustersmgmt/v1/cloud_region_type_json.go index 89e433d12..1292454b7 100644 --- a/clustersmgmt/v1/cloud_region_type_json.go +++ b/clustersmgmt/v1/cloud_region_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalCloudRegion writes a value of the 'cloud_region' type to the given writer. func MarshalCloudRegion(object *CloudRegion, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCloudRegion(object, stream) + WriteCloudRegion(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalCloudRegion(object *CloudRegion, writer io.Writer) error { return stream.Error } -// writeCloudRegion writes a value of the 'cloud_region' type to the given stream. -func writeCloudRegion(object *CloudRegion, stream *jsoniter.Stream) { +// WriteCloudRegion writes a value of the 'cloud_region' type to the given stream. +func WriteCloudRegion(object *CloudRegion, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -98,7 +98,7 @@ func writeCloudRegion(object *CloudRegion, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("cloud_provider") - writeCloudProvider(object.cloudProvider, stream) + WriteCloudProvider(object.cloudProvider, stream) count++ } present_ = object.bitmap_&128 != 0 @@ -164,13 +164,13 @@ func UnmarshalCloudRegion(source interface{}) (object *CloudRegion, err error) { if err != nil { return } - object = readCloudRegion(iterator) + object = ReadCloudRegion(iterator) err = iterator.Error return } -// readCloudRegion reads a value of the 'cloud_region' type from the given iterator. -func readCloudRegion(iterator *jsoniter.Iterator) *CloudRegion { +// ReadCloudRegion reads a value of the 'cloud_region' type from the given iterator. +func ReadCloudRegion(iterator *jsoniter.Iterator) *CloudRegion { object := &CloudRegion{} for { field := iterator.ReadObject() @@ -202,7 +202,7 @@ func readCloudRegion(iterator *jsoniter.Iterator) *CloudRegion { object.kmsLocationName = value object.bitmap_ |= 32 case "cloud_provider": - value := readCloudProvider(iterator) + value := ReadCloudProvider(iterator) object.cloudProvider = value object.bitmap_ |= 64 case "display_name": diff --git a/clustersmgmt/v1/cloud_regions_resource_json.go b/clustersmgmt/v1/cloud_regions_resource_json.go index 6c91fbcf7..6cbd7e2d2 100644 --- a/clustersmgmt/v1/cloud_regions_resource_json.go +++ b/clustersmgmt/v1/cloud_regions_resource_json.go @@ -57,7 +57,7 @@ func readCloudRegionsListResponse(response *CloudRegionsListResponse, reader io. value := iterator.ReadInt() response.total = &value case "items": - items := readCloudRegionList(iterator) + items := ReadCloudRegionList(iterator) response.items = &CloudRegionList{ items: items, } diff --git a/clustersmgmt/v1/cloud_vpc_list_type_json.go b/clustersmgmt/v1/cloud_vpc_list_type_json.go index f64c8e185..2a43196d9 100644 --- a/clustersmgmt/v1/cloud_vpc_list_type_json.go +++ b/clustersmgmt/v1/cloud_vpc_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalCloudVPCList(list []*CloudVPC, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCloudVPCList(list, stream) + WriteCloudVPCList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalCloudVPCList(list []*CloudVPC, writer io.Writer) error { return stream.Error } -// writeCloudVPCList writes a list of value of the 'cloud_VPC' type to +// WriteCloudVPCList writes a list of value of the 'cloud_VPC' type to // the given stream. -func writeCloudVPCList(list []*CloudVPC, stream *jsoniter.Stream) { +func WriteCloudVPCList(list []*CloudVPC, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeCloudVPC(value, stream) + WriteCloudVPC(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalCloudVPCList(source interface{}) (items []*CloudVPC, err error) { if err != nil { return } - items = readCloudVPCList(iterator) + items = ReadCloudVPCList(iterator) err = iterator.Error return } -// readCloudVPCList reads list of values of the ”cloud_VPC' type from +// ReadCloudVPCList reads list of values of the ”cloud_VPC' type from // the given iterator. -func readCloudVPCList(iterator *jsoniter.Iterator) []*CloudVPC { +func ReadCloudVPCList(iterator *jsoniter.Iterator) []*CloudVPC { list := []*CloudVPC{} for iterator.ReadArray() { - item := readCloudVPC(iterator) + item := ReadCloudVPC(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/cloud_vpc_type.go b/clustersmgmt/v1/cloud_vpc_type.go index 0739748fc..cda5d794e 100644 --- a/clustersmgmt/v1/cloud_vpc_type.go +++ b/clustersmgmt/v1/cloud_vpc_type.go @@ -226,6 +226,29 @@ func (l *CloudVPCList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *CloudVPCList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *CloudVPCList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *CloudVPCList) SetItems(items []*CloudVPC) { + l.items = items +} + +// Items returns the items of the list. +func (l *CloudVPCList) Items() []*CloudVPC { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *CloudVPCList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/cloud_vpc_type_json.go b/clustersmgmt/v1/cloud_vpc_type_json.go index 425316479..8a4506731 100644 --- a/clustersmgmt/v1/cloud_vpc_type_json.go +++ b/clustersmgmt/v1/cloud_vpc_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalCloudVPC writes a value of the 'cloud_VPC' type to the given writer. func MarshalCloudVPC(object *CloudVPC, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCloudVPC(object, stream) + WriteCloudVPC(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalCloudVPC(object *CloudVPC, writer io.Writer) error { return stream.Error } -// writeCloudVPC writes a value of the 'cloud_VPC' type to the given stream. -func writeCloudVPC(object *CloudVPC, stream *jsoniter.Stream) { +// WriteCloudVPC writes a value of the 'cloud_VPC' type to the given stream. +func WriteCloudVPC(object *CloudVPC, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeCloudVPC(object *CloudVPC, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("aws_security_groups") - writeSecurityGroupList(object.awsSecurityGroups, stream) + WriteSecurityGroupList(object.awsSecurityGroups, stream) count++ } present_ = object.bitmap_&2 != 0 && object.awsSubnets != nil @@ -57,7 +57,7 @@ func writeCloudVPC(object *CloudVPC, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("aws_subnets") - writeSubnetworkList(object.awsSubnets, stream) + WriteSubnetworkList(object.awsSubnets, stream) count++ } present_ = object.bitmap_&4 != 0 @@ -102,7 +102,7 @@ func writeCloudVPC(object *CloudVPC, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("subnets") - writeStringList(object.subnets, stream) + WriteStringList(object.subnets, stream) } stream.WriteObjectEnd() } @@ -114,13 +114,13 @@ func UnmarshalCloudVPC(source interface{}) (object *CloudVPC, err error) { if err != nil { return } - object = readCloudVPC(iterator) + object = ReadCloudVPC(iterator) err = iterator.Error return } -// readCloudVPC reads a value of the 'cloud_VPC' type from the given iterator. -func readCloudVPC(iterator *jsoniter.Iterator) *CloudVPC { +// ReadCloudVPC reads a value of the 'cloud_VPC' type from the given iterator. +func ReadCloudVPC(iterator *jsoniter.Iterator) *CloudVPC { object := &CloudVPC{} for { field := iterator.ReadObject() @@ -129,11 +129,11 @@ func readCloudVPC(iterator *jsoniter.Iterator) *CloudVPC { } switch field { case "aws_security_groups": - value := readSecurityGroupList(iterator) + value := ReadSecurityGroupList(iterator) object.awsSecurityGroups = value object.bitmap_ |= 1 case "aws_subnets": - value := readSubnetworkList(iterator) + value := ReadSubnetworkList(iterator) object.awsSubnets = value object.bitmap_ |= 2 case "cidr_block": @@ -153,7 +153,7 @@ func readCloudVPC(iterator *jsoniter.Iterator) *CloudVPC { object.redHatManaged = value object.bitmap_ |= 32 case "subnets": - value := readStringList(iterator) + value := ReadStringList(iterator) object.subnets = value object.bitmap_ |= 64 default: diff --git a/clustersmgmt/v1/cluster_api_list_type_json.go b/clustersmgmt/v1/cluster_api_list_type_json.go index ef674b3a8..2fe464719 100644 --- a/clustersmgmt/v1/cluster_api_list_type_json.go +++ b/clustersmgmt/v1/cluster_api_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterAPIList(list []*ClusterAPI, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterAPIList(list, stream) + WriteClusterAPIList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalClusterAPIList(list []*ClusterAPI, writer io.Writer) error { return stream.Error } -// writeClusterAPIList writes a list of value of the 'cluster_API' type to +// WriteClusterAPIList writes a list of value of the 'cluster_API' type to // the given stream. -func writeClusterAPIList(list []*ClusterAPI, stream *jsoniter.Stream) { +func WriteClusterAPIList(list []*ClusterAPI, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeClusterAPI(value, stream) + WriteClusterAPI(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalClusterAPIList(source interface{}) (items []*ClusterAPI, err error if err != nil { return } - items = readClusterAPIList(iterator) + items = ReadClusterAPIList(iterator) err = iterator.Error return } -// readClusterAPIList reads list of values of the ”cluster_API' type from +// ReadClusterAPIList reads list of values of the ”cluster_API' type from // the given iterator. -func readClusterAPIList(iterator *jsoniter.Iterator) []*ClusterAPI { +func ReadClusterAPIList(iterator *jsoniter.Iterator) []*ClusterAPI { list := []*ClusterAPI{} for iterator.ReadArray() { - item := readClusterAPI(iterator) + item := ReadClusterAPI(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/cluster_api_type.go b/clustersmgmt/v1/cluster_api_type.go index 68983ecad..114eec473 100644 --- a/clustersmgmt/v1/cluster_api_type.go +++ b/clustersmgmt/v1/cluster_api_type.go @@ -106,6 +106,29 @@ func (l *ClusterAPIList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ClusterAPIList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterAPIList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterAPIList) SetItems(items []*ClusterAPI) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterAPIList) Items() []*ClusterAPI { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ClusterAPIList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/cluster_api_type_json.go b/clustersmgmt/v1/cluster_api_type_json.go index 2491f0c27..94b7957bd 100644 --- a/clustersmgmt/v1/cluster_api_type_json.go +++ b/clustersmgmt/v1/cluster_api_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalClusterAPI writes a value of the 'cluster_API' type to the given writer. func MarshalClusterAPI(object *ClusterAPI, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterAPI(object, stream) + WriteClusterAPI(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalClusterAPI(object *ClusterAPI, writer io.Writer) error { return stream.Error } -// writeClusterAPI writes a value of the 'cluster_API' type to the given stream. -func writeClusterAPI(object *ClusterAPI, stream *jsoniter.Stream) { +// WriteClusterAPI writes a value of the 'cluster_API' type to the given stream. +func WriteClusterAPI(object *ClusterAPI, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalClusterAPI(source interface{}) (object *ClusterAPI, err error) { if err != nil { return } - object = readClusterAPI(iterator) + object = ReadClusterAPI(iterator) err = iterator.Error return } -// readClusterAPI reads a value of the 'cluster_API' type from the given iterator. -func readClusterAPI(iterator *jsoniter.Iterator) *ClusterAPI { +// ReadClusterAPI reads a value of the 'cluster_API' type from the given iterator. +func ReadClusterAPI(iterator *jsoniter.Iterator) *ClusterAPI { object := &ClusterAPI{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/cluster_architecture_list_type_json.go b/clustersmgmt/v1/cluster_architecture_list_type_json.go index 30a653616..7f9ac9b25 100644 --- a/clustersmgmt/v1/cluster_architecture_list_type_json.go +++ b/clustersmgmt/v1/cluster_architecture_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterArchitectureList(list []ClusterArchitecture, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterArchitectureList(list, stream) + WriteClusterArchitectureList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalClusterArchitectureList(list []ClusterArchitecture, writer io.Writer return stream.Error } -// writeClusterArchitectureList writes a list of value of the 'cluster_architecture' type to +// WriteClusterArchitectureList writes a list of value of the 'cluster_architecture' type to // the given stream. -func writeClusterArchitectureList(list []ClusterArchitecture, stream *jsoniter.Stream) { +func WriteClusterArchitectureList(list []ClusterArchitecture, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalClusterArchitectureList(source interface{}) (items []ClusterArchit if err != nil { return } - items = readClusterArchitectureList(iterator) + items = ReadClusterArchitectureList(iterator) err = iterator.Error return } -// readClusterArchitectureList reads list of values of the ”cluster_architecture' type from +// ReadClusterArchitectureList reads list of values of the ”cluster_architecture' type from // the given iterator. -func readClusterArchitectureList(iterator *jsoniter.Iterator) []ClusterArchitecture { +func ReadClusterArchitectureList(iterator *jsoniter.Iterator) []ClusterArchitecture { list := []ClusterArchitecture{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/cluster_autoscaler_list_type_json.go b/clustersmgmt/v1/cluster_autoscaler_list_type_json.go index e104c2cfe..b09b32d37 100644 --- a/clustersmgmt/v1/cluster_autoscaler_list_type_json.go +++ b/clustersmgmt/v1/cluster_autoscaler_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterAutoscalerList(list []*ClusterAutoscaler, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterAutoscalerList(list, stream) + WriteClusterAutoscalerList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalClusterAutoscalerList(list []*ClusterAutoscaler, writer io.Writer) e return stream.Error } -// writeClusterAutoscalerList writes a list of value of the 'cluster_autoscaler' type to +// WriteClusterAutoscalerList writes a list of value of the 'cluster_autoscaler' type to // the given stream. -func writeClusterAutoscalerList(list []*ClusterAutoscaler, stream *jsoniter.Stream) { +func WriteClusterAutoscalerList(list []*ClusterAutoscaler, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeClusterAutoscaler(value, stream) + WriteClusterAutoscaler(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalClusterAutoscalerList(source interface{}) (items []*ClusterAutosca if err != nil { return } - items = readClusterAutoscalerList(iterator) + items = ReadClusterAutoscalerList(iterator) err = iterator.Error return } -// readClusterAutoscalerList reads list of values of the ”cluster_autoscaler' type from +// ReadClusterAutoscalerList reads list of values of the ”cluster_autoscaler' type from // the given iterator. -func readClusterAutoscalerList(iterator *jsoniter.Iterator) []*ClusterAutoscaler { +func ReadClusterAutoscalerList(iterator *jsoniter.Iterator) []*ClusterAutoscaler { list := []*ClusterAutoscaler{} for iterator.ReadArray() { - item := readClusterAutoscaler(iterator) + item := ReadClusterAutoscaler(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/cluster_autoscaler_type.go b/clustersmgmt/v1/cluster_autoscaler_type.go index 84c58f8da..020208ac7 100644 --- a/clustersmgmt/v1/cluster_autoscaler_type.go +++ b/clustersmgmt/v1/cluster_autoscaler_type.go @@ -61,7 +61,7 @@ func (o *ClusterAutoscaler) Kind() string { return ClusterAutoscalerKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *ClusterAutoscaler) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -416,6 +416,29 @@ func (l *ClusterAutoscalerList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ClusterAutoscalerList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterAutoscalerList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterAutoscalerList) SetItems(items []*ClusterAutoscaler) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterAutoscalerList) Items() []*ClusterAutoscaler { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ClusterAutoscalerList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/cluster_autoscaler_type_json.go b/clustersmgmt/v1/cluster_autoscaler_type_json.go index f23d55ce6..5f1576ed6 100644 --- a/clustersmgmt/v1/cluster_autoscaler_type_json.go +++ b/clustersmgmt/v1/cluster_autoscaler_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalClusterAutoscaler writes a value of the 'cluster_autoscaler' type to the given writer. func MarshalClusterAutoscaler(object *ClusterAutoscaler, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterAutoscaler(object, stream) + WriteClusterAutoscaler(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalClusterAutoscaler(object *ClusterAutoscaler, writer io.Writer) error return stream.Error } -// writeClusterAutoscaler writes a value of the 'cluster_autoscaler' type to the given stream. -func writeClusterAutoscaler(object *ClusterAutoscaler, stream *jsoniter.Stream) { +// WriteClusterAutoscaler writes a value of the 'cluster_autoscaler' type to the given stream. +func WriteClusterAutoscaler(object *ClusterAutoscaler, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -80,7 +80,7 @@ func writeClusterAutoscaler(object *ClusterAutoscaler, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("balancing_ignored_labels") - writeStringList(object.balancingIgnoredLabels, stream) + WriteStringList(object.balancingIgnoredLabels, stream) count++ } present_ = object.bitmap_&32 != 0 @@ -134,7 +134,7 @@ func writeClusterAutoscaler(object *ClusterAutoscaler, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("resource_limits") - writeAutoscalerResourceLimits(object.resourceLimits, stream) + WriteAutoscalerResourceLimits(object.resourceLimits, stream) count++ } present_ = object.bitmap_&2048 != 0 && object.scaleDown != nil @@ -143,7 +143,7 @@ func writeClusterAutoscaler(object *ClusterAutoscaler, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("scale_down") - writeAutoscalerScaleDownConfig(object.scaleDown, stream) + WriteAutoscalerScaleDownConfig(object.scaleDown, stream) count++ } present_ = object.bitmap_&4096 != 0 @@ -164,13 +164,13 @@ func UnmarshalClusterAutoscaler(source interface{}) (object *ClusterAutoscaler, if err != nil { return } - object = readClusterAutoscaler(iterator) + object = ReadClusterAutoscaler(iterator) err = iterator.Error return } -// readClusterAutoscaler reads a value of the 'cluster_autoscaler' type from the given iterator. -func readClusterAutoscaler(iterator *jsoniter.Iterator) *ClusterAutoscaler { +// ReadClusterAutoscaler reads a value of the 'cluster_autoscaler' type from the given iterator. +func ReadClusterAutoscaler(iterator *jsoniter.Iterator) *ClusterAutoscaler { object := &ClusterAutoscaler{} for { field := iterator.ReadObject() @@ -194,7 +194,7 @@ func readClusterAutoscaler(iterator *jsoniter.Iterator) *ClusterAutoscaler { object.balanceSimilarNodeGroups = value object.bitmap_ |= 8 case "balancing_ignored_labels": - value := readStringList(iterator) + value := ReadStringList(iterator) object.balancingIgnoredLabels = value object.bitmap_ |= 16 case "ignore_daemonsets_utilization": @@ -218,11 +218,11 @@ func readClusterAutoscaler(iterator *jsoniter.Iterator) *ClusterAutoscaler { object.podPriorityThreshold = value object.bitmap_ |= 512 case "resource_limits": - value := readAutoscalerResourceLimits(iterator) + value := ReadAutoscalerResourceLimits(iterator) object.resourceLimits = value object.bitmap_ |= 1024 case "scale_down": - value := readAutoscalerScaleDownConfig(iterator) + value := ReadAutoscalerScaleDownConfig(iterator) object.scaleDown = value object.bitmap_ |= 2048 case "skip_nodes_with_local_storage": diff --git a/clustersmgmt/v1/cluster_configuration_mode_list_type_json.go b/clustersmgmt/v1/cluster_configuration_mode_list_type_json.go index 5ccf1ee4e..5d68c051f 100644 --- a/clustersmgmt/v1/cluster_configuration_mode_list_type_json.go +++ b/clustersmgmt/v1/cluster_configuration_mode_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterConfigurationModeList(list []ClusterConfigurationMode, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterConfigurationModeList(list, stream) + WriteClusterConfigurationModeList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalClusterConfigurationModeList(list []ClusterConfigurationMode, writer return stream.Error } -// writeClusterConfigurationModeList writes a list of value of the 'cluster_configuration_mode' type to +// WriteClusterConfigurationModeList writes a list of value of the 'cluster_configuration_mode' type to // the given stream. -func writeClusterConfigurationModeList(list []ClusterConfigurationMode, stream *jsoniter.Stream) { +func WriteClusterConfigurationModeList(list []ClusterConfigurationMode, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalClusterConfigurationModeList(source interface{}) (items []ClusterC if err != nil { return } - items = readClusterConfigurationModeList(iterator) + items = ReadClusterConfigurationModeList(iterator) err = iterator.Error return } -// readClusterConfigurationModeList reads list of values of the ”cluster_configuration_mode' type from +// ReadClusterConfigurationModeList reads list of values of the ”cluster_configuration_mode' type from // the given iterator. -func readClusterConfigurationModeList(iterator *jsoniter.Iterator) []ClusterConfigurationMode { +func ReadClusterConfigurationModeList(iterator *jsoniter.Iterator) []ClusterConfigurationMode { list := []ClusterConfigurationMode{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/cluster_console_list_type_json.go b/clustersmgmt/v1/cluster_console_list_type_json.go index 8330b4087..015c6d5f3 100644 --- a/clustersmgmt/v1/cluster_console_list_type_json.go +++ b/clustersmgmt/v1/cluster_console_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterConsoleList(list []*ClusterConsole, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterConsoleList(list, stream) + WriteClusterConsoleList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalClusterConsoleList(list []*ClusterConsole, writer io.Writer) error { return stream.Error } -// writeClusterConsoleList writes a list of value of the 'cluster_console' type to +// WriteClusterConsoleList writes a list of value of the 'cluster_console' type to // the given stream. -func writeClusterConsoleList(list []*ClusterConsole, stream *jsoniter.Stream) { +func WriteClusterConsoleList(list []*ClusterConsole, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeClusterConsole(value, stream) + WriteClusterConsole(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalClusterConsoleList(source interface{}) (items []*ClusterConsole, e if err != nil { return } - items = readClusterConsoleList(iterator) + items = ReadClusterConsoleList(iterator) err = iterator.Error return } -// readClusterConsoleList reads list of values of the ”cluster_console' type from +// ReadClusterConsoleList reads list of values of the ”cluster_console' type from // the given iterator. -func readClusterConsoleList(iterator *jsoniter.Iterator) []*ClusterConsole { +func ReadClusterConsoleList(iterator *jsoniter.Iterator) []*ClusterConsole { list := []*ClusterConsole{} for iterator.ReadArray() { - item := readClusterConsole(iterator) + item := ReadClusterConsole(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/cluster_console_type.go b/clustersmgmt/v1/cluster_console_type.go index 4fc7ac626..f06ca53fb 100644 --- a/clustersmgmt/v1/cluster_console_type.go +++ b/clustersmgmt/v1/cluster_console_type.go @@ -82,6 +82,29 @@ func (l *ClusterConsoleList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ClusterConsoleList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterConsoleList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterConsoleList) SetItems(items []*ClusterConsole) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterConsoleList) Items() []*ClusterConsole { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ClusterConsoleList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/cluster_console_type_json.go b/clustersmgmt/v1/cluster_console_type_json.go index d4dfa2b69..ebe1f5470 100644 --- a/clustersmgmt/v1/cluster_console_type_json.go +++ b/clustersmgmt/v1/cluster_console_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalClusterConsole writes a value of the 'cluster_console' type to the given writer. func MarshalClusterConsole(object *ClusterConsole, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterConsole(object, stream) + WriteClusterConsole(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalClusterConsole(object *ClusterConsole, writer io.Writer) error { return stream.Error } -// writeClusterConsole writes a value of the 'cluster_console' type to the given stream. -func writeClusterConsole(object *ClusterConsole, stream *jsoniter.Stream) { +// WriteClusterConsole writes a value of the 'cluster_console' type to the given stream. +func WriteClusterConsole(object *ClusterConsole, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalClusterConsole(source interface{}) (object *ClusterConsole, err er if err != nil { return } - object = readClusterConsole(iterator) + object = ReadClusterConsole(iterator) err = iterator.Error return } -// readClusterConsole reads a value of the 'cluster_console' type from the given iterator. -func readClusterConsole(iterator *jsoniter.Iterator) *ClusterConsole { +// ReadClusterConsole reads a value of the 'cluster_console' type from the given iterator. +func ReadClusterConsole(iterator *jsoniter.Iterator) *ClusterConsole { object := &ClusterConsole{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/cluster_credentials_list_type_json.go b/clustersmgmt/v1/cluster_credentials_list_type_json.go index dfcf53492..90abb5a5c 100644 --- a/clustersmgmt/v1/cluster_credentials_list_type_json.go +++ b/clustersmgmt/v1/cluster_credentials_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterCredentialsList(list []*ClusterCredentials, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterCredentialsList(list, stream) + WriteClusterCredentialsList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalClusterCredentialsList(list []*ClusterCredentials, writer io.Writer) return stream.Error } -// writeClusterCredentialsList writes a list of value of the 'cluster_credentials' type to +// WriteClusterCredentialsList writes a list of value of the 'cluster_credentials' type to // the given stream. -func writeClusterCredentialsList(list []*ClusterCredentials, stream *jsoniter.Stream) { +func WriteClusterCredentialsList(list []*ClusterCredentials, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeClusterCredentials(value, stream) + WriteClusterCredentials(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalClusterCredentialsList(source interface{}) (items []*ClusterCreden if err != nil { return } - items = readClusterCredentialsList(iterator) + items = ReadClusterCredentialsList(iterator) err = iterator.Error return } -// readClusterCredentialsList reads list of values of the ”cluster_credentials' type from +// ReadClusterCredentialsList reads list of values of the ”cluster_credentials' type from // the given iterator. -func readClusterCredentialsList(iterator *jsoniter.Iterator) []*ClusterCredentials { +func ReadClusterCredentialsList(iterator *jsoniter.Iterator) []*ClusterCredentials { list := []*ClusterCredentials{} for iterator.ReadArray() { - item := readClusterCredentials(iterator) + item := ReadClusterCredentials(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/cluster_credentials_type.go b/clustersmgmt/v1/cluster_credentials_type.go index 58d950ea1..dc763bb86 100644 --- a/clustersmgmt/v1/cluster_credentials_type.go +++ b/clustersmgmt/v1/cluster_credentials_type.go @@ -52,7 +52,7 @@ func (o *ClusterCredentials) Kind() string { return ClusterCredentialsKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *ClusterCredentials) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -182,6 +182,29 @@ func (l *ClusterCredentialsList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ClusterCredentialsList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterCredentialsList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterCredentialsList) SetItems(items []*ClusterCredentials) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterCredentialsList) Items() []*ClusterCredentials { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ClusterCredentialsList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/cluster_credentials_type_json.go b/clustersmgmt/v1/cluster_credentials_type_json.go index 4b981a10c..4483f53ae 100644 --- a/clustersmgmt/v1/cluster_credentials_type_json.go +++ b/clustersmgmt/v1/cluster_credentials_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalClusterCredentials writes a value of the 'cluster_credentials' type to the given writer. func MarshalClusterCredentials(object *ClusterCredentials, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterCredentials(object, stream) + WriteClusterCredentials(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalClusterCredentials(object *ClusterCredentials, writer io.Writer) err return stream.Error } -// writeClusterCredentials writes a value of the 'cluster_credentials' type to the given stream. -func writeClusterCredentials(object *ClusterCredentials, stream *jsoniter.Stream) { +// WriteClusterCredentials writes a value of the 'cluster_credentials' type to the given stream. +func WriteClusterCredentials(object *ClusterCredentials, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -83,13 +83,13 @@ func UnmarshalClusterCredentials(source interface{}) (object *ClusterCredentials if err != nil { return } - object = readClusterCredentials(iterator) + object = ReadClusterCredentials(iterator) err = iterator.Error return } -// readClusterCredentials reads a value of the 'cluster_credentials' type from the given iterator. -func readClusterCredentials(iterator *jsoniter.Iterator) *ClusterCredentials { +// ReadClusterCredentials reads a value of the 'cluster_credentials' type from the given iterator. +func ReadClusterCredentials(iterator *jsoniter.Iterator) *ClusterCredentials { object := &ClusterCredentials{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/cluster_deployment_list_type_json.go b/clustersmgmt/v1/cluster_deployment_list_type_json.go index 0d2cca671..ccabd7242 100644 --- a/clustersmgmt/v1/cluster_deployment_list_type_json.go +++ b/clustersmgmt/v1/cluster_deployment_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterDeploymentList(list []*ClusterDeployment, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterDeploymentList(list, stream) + WriteClusterDeploymentList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalClusterDeploymentList(list []*ClusterDeployment, writer io.Writer) e return stream.Error } -// writeClusterDeploymentList writes a list of value of the 'cluster_deployment' type to +// WriteClusterDeploymentList writes a list of value of the 'cluster_deployment' type to // the given stream. -func writeClusterDeploymentList(list []*ClusterDeployment, stream *jsoniter.Stream) { +func WriteClusterDeploymentList(list []*ClusterDeployment, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeClusterDeployment(value, stream) + WriteClusterDeployment(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalClusterDeploymentList(source interface{}) (items []*ClusterDeploym if err != nil { return } - items = readClusterDeploymentList(iterator) + items = ReadClusterDeploymentList(iterator) err = iterator.Error return } -// readClusterDeploymentList reads list of values of the ”cluster_deployment' type from +// ReadClusterDeploymentList reads list of values of the ”cluster_deployment' type from // the given iterator. -func readClusterDeploymentList(iterator *jsoniter.Iterator) []*ClusterDeployment { +func ReadClusterDeploymentList(iterator *jsoniter.Iterator) []*ClusterDeployment { list := []*ClusterDeployment{} for iterator.ReadArray() { - item := readClusterDeployment(iterator) + item := ReadClusterDeployment(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/cluster_deployment_type.go b/clustersmgmt/v1/cluster_deployment_type.go index 077b48c59..d53a2a55c 100644 --- a/clustersmgmt/v1/cluster_deployment_type.go +++ b/clustersmgmt/v1/cluster_deployment_type.go @@ -52,7 +52,7 @@ func (o *ClusterDeployment) Kind() string { return ClusterDeploymentKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *ClusterDeployment) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -182,6 +182,29 @@ func (l *ClusterDeploymentList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ClusterDeploymentList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterDeploymentList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterDeploymentList) SetItems(items []*ClusterDeployment) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterDeploymentList) Items() []*ClusterDeployment { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ClusterDeploymentList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/cluster_deployment_type_json.go b/clustersmgmt/v1/cluster_deployment_type_json.go index 332fc79d5..1dd639ff3 100644 --- a/clustersmgmt/v1/cluster_deployment_type_json.go +++ b/clustersmgmt/v1/cluster_deployment_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalClusterDeployment writes a value of the 'cluster_deployment' type to the given writer. func MarshalClusterDeployment(object *ClusterDeployment, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterDeployment(object, stream) + WriteClusterDeployment(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalClusterDeployment(object *ClusterDeployment, writer io.Writer) error return stream.Error } -// writeClusterDeployment writes a value of the 'cluster_deployment' type to the given stream. -func writeClusterDeployment(object *ClusterDeployment, stream *jsoniter.Stream) { +// WriteClusterDeployment writes a value of the 'cluster_deployment' type to the given stream. +func WriteClusterDeployment(object *ClusterDeployment, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -83,13 +83,13 @@ func UnmarshalClusterDeployment(source interface{}) (object *ClusterDeployment, if err != nil { return } - object = readClusterDeployment(iterator) + object = ReadClusterDeployment(iterator) err = iterator.Error return } -// readClusterDeployment reads a value of the 'cluster_deployment' type from the given iterator. -func readClusterDeployment(iterator *jsoniter.Iterator) *ClusterDeployment { +// ReadClusterDeployment reads a value of the 'cluster_deployment' type from the given iterator. +func ReadClusterDeployment(iterator *jsoniter.Iterator) *ClusterDeployment { object := &ClusterDeployment{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/cluster_health_state_list_type_json.go b/clustersmgmt/v1/cluster_health_state_list_type_json.go index a32aa0949..eee2365ef 100644 --- a/clustersmgmt/v1/cluster_health_state_list_type_json.go +++ b/clustersmgmt/v1/cluster_health_state_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterHealthStateList(list []ClusterHealthState, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterHealthStateList(list, stream) + WriteClusterHealthStateList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalClusterHealthStateList(list []ClusterHealthState, writer io.Writer) return stream.Error } -// writeClusterHealthStateList writes a list of value of the 'cluster_health_state' type to +// WriteClusterHealthStateList writes a list of value of the 'cluster_health_state' type to // the given stream. -func writeClusterHealthStateList(list []ClusterHealthState, stream *jsoniter.Stream) { +func WriteClusterHealthStateList(list []ClusterHealthState, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalClusterHealthStateList(source interface{}) (items []ClusterHealthS if err != nil { return } - items = readClusterHealthStateList(iterator) + items = ReadClusterHealthStateList(iterator) err = iterator.Error return } -// readClusterHealthStateList reads list of values of the ”cluster_health_state' type from +// ReadClusterHealthStateList reads list of values of the ”cluster_health_state' type from // the given iterator. -func readClusterHealthStateList(iterator *jsoniter.Iterator) []ClusterHealthState { +func ReadClusterHealthStateList(iterator *jsoniter.Iterator) []ClusterHealthState { list := []ClusterHealthState{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/cluster_link_list_type_json.go b/clustersmgmt/v1/cluster_link_list_type_json.go index 0454f4dcb..54862fd26 100644 --- a/clustersmgmt/v1/cluster_link_list_type_json.go +++ b/clustersmgmt/v1/cluster_link_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterLinkList(list []*ClusterLink, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterLinkList(list, stream) + WriteClusterLinkList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalClusterLinkList(list []*ClusterLink, writer io.Writer) error { return stream.Error } -// writeClusterLinkList writes a list of value of the 'cluster_link' type to +// WriteClusterLinkList writes a list of value of the 'cluster_link' type to // the given stream. -func writeClusterLinkList(list []*ClusterLink, stream *jsoniter.Stream) { +func WriteClusterLinkList(list []*ClusterLink, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeClusterLink(value, stream) + WriteClusterLink(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalClusterLinkList(source interface{}) (items []*ClusterLink, err err if err != nil { return } - items = readClusterLinkList(iterator) + items = ReadClusterLinkList(iterator) err = iterator.Error return } -// readClusterLinkList reads list of values of the ”cluster_link' type from +// ReadClusterLinkList reads list of values of the ”cluster_link' type from // the given iterator. -func readClusterLinkList(iterator *jsoniter.Iterator) []*ClusterLink { +func ReadClusterLinkList(iterator *jsoniter.Iterator) []*ClusterLink { list := []*ClusterLink{} for iterator.ReadArray() { - item := readClusterLink(iterator) + item := ReadClusterLink(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/cluster_link_type.go b/clustersmgmt/v1/cluster_link_type.go index 2568b2058..cb2a8b83c 100644 --- a/clustersmgmt/v1/cluster_link_type.go +++ b/clustersmgmt/v1/cluster_link_type.go @@ -106,6 +106,29 @@ func (l *ClusterLinkList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ClusterLinkList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterLinkList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterLinkList) SetItems(items []*ClusterLink) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterLinkList) Items() []*ClusterLink { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ClusterLinkList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/cluster_link_type_json.go b/clustersmgmt/v1/cluster_link_type_json.go index a370a97ad..678fd9e40 100644 --- a/clustersmgmt/v1/cluster_link_type_json.go +++ b/clustersmgmt/v1/cluster_link_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalClusterLink writes a value of the 'cluster_link' type to the given writer. func MarshalClusterLink(object *ClusterLink, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterLink(object, stream) + WriteClusterLink(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalClusterLink(object *ClusterLink, writer io.Writer) error { return stream.Error } -// writeClusterLink writes a value of the 'cluster_link' type to the given stream. -func writeClusterLink(object *ClusterLink, stream *jsoniter.Stream) { +// WriteClusterLink writes a value of the 'cluster_link' type to the given stream. +func WriteClusterLink(object *ClusterLink, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalClusterLink(source interface{}) (object *ClusterLink, err error) { if err != nil { return } - object = readClusterLink(iterator) + object = ReadClusterLink(iterator) err = iterator.Error return } -// readClusterLink reads a value of the 'cluster_link' type from the given iterator. -func readClusterLink(iterator *jsoniter.Iterator) *ClusterLink { +// ReadClusterLink reads a value of the 'cluster_link' type from the given iterator. +func ReadClusterLink(iterator *jsoniter.Iterator) *ClusterLink { object := &ClusterLink{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/cluster_list_type_json.go b/clustersmgmt/v1/cluster_list_type_json.go index a5bca94f9..de2663e84 100644 --- a/clustersmgmt/v1/cluster_list_type_json.go +++ b/clustersmgmt/v1/cluster_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterList(list []*Cluster, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterList(list, stream) + WriteClusterList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalClusterList(list []*Cluster, writer io.Writer) error { return stream.Error } -// writeClusterList writes a list of value of the 'cluster' type to +// WriteClusterList writes a list of value of the 'cluster' type to // the given stream. -func writeClusterList(list []*Cluster, stream *jsoniter.Stream) { +func WriteClusterList(list []*Cluster, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeCluster(value, stream) + WriteCluster(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalClusterList(source interface{}) (items []*Cluster, err error) { if err != nil { return } - items = readClusterList(iterator) + items = ReadClusterList(iterator) err = iterator.Error return } -// readClusterList reads list of values of the ”cluster' type from +// ReadClusterList reads list of values of the ”cluster' type from // the given iterator. -func readClusterList(iterator *jsoniter.Iterator) []*Cluster { +func ReadClusterList(iterator *jsoniter.Iterator) []*Cluster { list := []*Cluster{} for iterator.ReadArray() { - item := readCluster(iterator) + item := ReadCluster(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/cluster_nodes_list_type_json.go b/clustersmgmt/v1/cluster_nodes_list_type_json.go index dd357996f..4277ed82c 100644 --- a/clustersmgmt/v1/cluster_nodes_list_type_json.go +++ b/clustersmgmt/v1/cluster_nodes_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterNodesList(list []*ClusterNodes, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterNodesList(list, stream) + WriteClusterNodesList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalClusterNodesList(list []*ClusterNodes, writer io.Writer) error { return stream.Error } -// writeClusterNodesList writes a list of value of the 'cluster_nodes' type to +// WriteClusterNodesList writes a list of value of the 'cluster_nodes' type to // the given stream. -func writeClusterNodesList(list []*ClusterNodes, stream *jsoniter.Stream) { +func WriteClusterNodesList(list []*ClusterNodes, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeClusterNodes(value, stream) + WriteClusterNodes(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalClusterNodesList(source interface{}) (items []*ClusterNodes, err e if err != nil { return } - items = readClusterNodesList(iterator) + items = ReadClusterNodesList(iterator) err = iterator.Error return } -// readClusterNodesList reads list of values of the ”cluster_nodes' type from +// ReadClusterNodesList reads list of values of the ”cluster_nodes' type from // the given iterator. -func readClusterNodesList(iterator *jsoniter.Iterator) []*ClusterNodes { +func ReadClusterNodesList(iterator *jsoniter.Iterator) []*ClusterNodes { list := []*ClusterNodes{} for iterator.ReadArray() { - item := readClusterNodes(iterator) + item := ReadClusterNodes(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/cluster_nodes_type.go b/clustersmgmt/v1/cluster_nodes_type.go index b54986d2c..606c68a84 100644 --- a/clustersmgmt/v1/cluster_nodes_type.go +++ b/clustersmgmt/v1/cluster_nodes_type.go @@ -350,6 +350,29 @@ func (l *ClusterNodesList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ClusterNodesList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterNodesList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterNodesList) SetItems(items []*ClusterNodes) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterNodesList) Items() []*ClusterNodes { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ClusterNodesList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/cluster_nodes_type_json.go b/clustersmgmt/v1/cluster_nodes_type_json.go index 1ad848edb..d31a3617d 100644 --- a/clustersmgmt/v1/cluster_nodes_type_json.go +++ b/clustersmgmt/v1/cluster_nodes_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalClusterNodes writes a value of the 'cluster_nodes' type to the given writer. func MarshalClusterNodes(object *ClusterNodes, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterNodes(object, stream) + WriteClusterNodes(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalClusterNodes(object *ClusterNodes, writer io.Writer) error { return stream.Error } -// writeClusterNodes writes a value of the 'cluster_nodes' type to the given stream. -func writeClusterNodes(object *ClusterNodes, stream *jsoniter.Stream) { +// WriteClusterNodes writes a value of the 'cluster_nodes' type to the given stream. +func WriteClusterNodes(object *ClusterNodes, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -49,7 +49,7 @@ func writeClusterNodes(object *ClusterNodes, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("autoscale_compute") - writeMachinePoolAutoscaling(object.autoscaleCompute, stream) + WriteMachinePoolAutoscaling(object.autoscaleCompute, stream) count++ } present_ = object.bitmap_&2 != 0 && object.availabilityZones != nil @@ -58,7 +58,7 @@ func writeClusterNodes(object *ClusterNodes, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("availability_zones") - writeStringList(object.availabilityZones, stream) + WriteStringList(object.availabilityZones, stream) count++ } present_ = object.bitmap_&4 != 0 @@ -105,7 +105,7 @@ func writeClusterNodes(object *ClusterNodes, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("compute_machine_type") - writeMachineType(object.computeMachineType, stream) + WriteMachineType(object.computeMachineType, stream) count++ } present_ = object.bitmap_&32 != 0 && object.computeRootVolume != nil @@ -114,7 +114,7 @@ func writeClusterNodes(object *ClusterNodes, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("compute_root_volume") - writeRootVolume(object.computeRootVolume, stream) + WriteRootVolume(object.computeRootVolume, stream) count++ } present_ = object.bitmap_&64 != 0 @@ -132,7 +132,7 @@ func writeClusterNodes(object *ClusterNodes, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("infra_machine_type") - writeMachineType(object.infraMachineType, stream) + WriteMachineType(object.infraMachineType, stream) count++ } present_ = object.bitmap_&256 != 0 @@ -150,7 +150,7 @@ func writeClusterNodes(object *ClusterNodes, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("master_machine_type") - writeMachineType(object.masterMachineType, stream) + WriteMachineType(object.masterMachineType, stream) count++ } present_ = object.bitmap_&1024 != 0 && object.securityGroupFilters != nil @@ -159,7 +159,7 @@ func writeClusterNodes(object *ClusterNodes, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("security_group_filters") - writeMachinePoolSecurityGroupFilterList(object.securityGroupFilters, stream) + WriteMachinePoolSecurityGroupFilterList(object.securityGroupFilters, stream) count++ } present_ = object.bitmap_&2048 != 0 @@ -180,13 +180,13 @@ func UnmarshalClusterNodes(source interface{}) (object *ClusterNodes, err error) if err != nil { return } - object = readClusterNodes(iterator) + object = ReadClusterNodes(iterator) err = iterator.Error return } -// readClusterNodes reads a value of the 'cluster_nodes' type from the given iterator. -func readClusterNodes(iterator *jsoniter.Iterator) *ClusterNodes { +// ReadClusterNodes reads a value of the 'cluster_nodes' type from the given iterator. +func ReadClusterNodes(iterator *jsoniter.Iterator) *ClusterNodes { object := &ClusterNodes{} for { field := iterator.ReadObject() @@ -195,11 +195,11 @@ func readClusterNodes(iterator *jsoniter.Iterator) *ClusterNodes { } switch field { case "autoscale_compute": - value := readMachinePoolAutoscaling(iterator) + value := ReadMachinePoolAutoscaling(iterator) object.autoscaleCompute = value object.bitmap_ |= 1 case "availability_zones": - value := readStringList(iterator) + value := ReadStringList(iterator) object.availabilityZones = value object.bitmap_ |= 2 case "compute": @@ -219,11 +219,11 @@ func readClusterNodes(iterator *jsoniter.Iterator) *ClusterNodes { object.computeLabels = value object.bitmap_ |= 8 case "compute_machine_type": - value := readMachineType(iterator) + value := ReadMachineType(iterator) object.computeMachineType = value object.bitmap_ |= 16 case "compute_root_volume": - value := readRootVolume(iterator) + value := ReadRootVolume(iterator) object.computeRootVolume = value object.bitmap_ |= 32 case "infra": @@ -231,7 +231,7 @@ func readClusterNodes(iterator *jsoniter.Iterator) *ClusterNodes { object.infra = value object.bitmap_ |= 64 case "infra_machine_type": - value := readMachineType(iterator) + value := ReadMachineType(iterator) object.infraMachineType = value object.bitmap_ |= 128 case "master": @@ -239,11 +239,11 @@ func readClusterNodes(iterator *jsoniter.Iterator) *ClusterNodes { object.master = value object.bitmap_ |= 256 case "master_machine_type": - value := readMachineType(iterator) + value := ReadMachineType(iterator) object.masterMachineType = value object.bitmap_ |= 512 case "security_group_filters": - value := readMachinePoolSecurityGroupFilterList(iterator) + value := ReadMachinePoolSecurityGroupFilterList(iterator) object.securityGroupFilters = value object.bitmap_ |= 1024 case "total": diff --git a/clustersmgmt/v1/cluster_operator_info_list_type_json.go b/clustersmgmt/v1/cluster_operator_info_list_type_json.go index da17364f7..ce213196b 100644 --- a/clustersmgmt/v1/cluster_operator_info_list_type_json.go +++ b/clustersmgmt/v1/cluster_operator_info_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterOperatorInfoList(list []*ClusterOperatorInfo, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterOperatorInfoList(list, stream) + WriteClusterOperatorInfoList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalClusterOperatorInfoList(list []*ClusterOperatorInfo, writer io.Write return stream.Error } -// writeClusterOperatorInfoList writes a list of value of the 'cluster_operator_info' type to +// WriteClusterOperatorInfoList writes a list of value of the 'cluster_operator_info' type to // the given stream. -func writeClusterOperatorInfoList(list []*ClusterOperatorInfo, stream *jsoniter.Stream) { +func WriteClusterOperatorInfoList(list []*ClusterOperatorInfo, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeClusterOperatorInfo(value, stream) + WriteClusterOperatorInfo(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalClusterOperatorInfoList(source interface{}) (items []*ClusterOpera if err != nil { return } - items = readClusterOperatorInfoList(iterator) + items = ReadClusterOperatorInfoList(iterator) err = iterator.Error return } -// readClusterOperatorInfoList reads list of values of the ”cluster_operator_info' type from +// ReadClusterOperatorInfoList reads list of values of the ”cluster_operator_info' type from // the given iterator. -func readClusterOperatorInfoList(iterator *jsoniter.Iterator) []*ClusterOperatorInfo { +func ReadClusterOperatorInfoList(iterator *jsoniter.Iterator) []*ClusterOperatorInfo { list := []*ClusterOperatorInfo{} for iterator.ReadArray() { - item := readClusterOperatorInfo(iterator) + item := ReadClusterOperatorInfo(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/cluster_operator_info_type.go b/clustersmgmt/v1/cluster_operator_info_type.go index 8450fd3eb..7f721dbbe 100644 --- a/clustersmgmt/v1/cluster_operator_info_type.go +++ b/clustersmgmt/v1/cluster_operator_info_type.go @@ -180,6 +180,29 @@ func (l *ClusterOperatorInfoList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ClusterOperatorInfoList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterOperatorInfoList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterOperatorInfoList) SetItems(items []*ClusterOperatorInfo) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterOperatorInfoList) Items() []*ClusterOperatorInfo { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ClusterOperatorInfoList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/cluster_operator_info_type_json.go b/clustersmgmt/v1/cluster_operator_info_type_json.go index a40a34eb7..1f8a24d57 100644 --- a/clustersmgmt/v1/cluster_operator_info_type_json.go +++ b/clustersmgmt/v1/cluster_operator_info_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalClusterOperatorInfo writes a value of the 'cluster_operator_info' type to the given writer. func MarshalClusterOperatorInfo(object *ClusterOperatorInfo, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterOperatorInfo(object, stream) + WriteClusterOperatorInfo(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalClusterOperatorInfo(object *ClusterOperatorInfo, writer io.Writer) e return stream.Error } -// writeClusterOperatorInfo writes a value of the 'cluster_operator_info' type to the given stream. -func writeClusterOperatorInfo(object *ClusterOperatorInfo, stream *jsoniter.Stream) { +// WriteClusterOperatorInfo writes a value of the 'cluster_operator_info' type to the given stream. +func WriteClusterOperatorInfo(object *ClusterOperatorInfo, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -97,13 +97,13 @@ func UnmarshalClusterOperatorInfo(source interface{}) (object *ClusterOperatorIn if err != nil { return } - object = readClusterOperatorInfo(iterator) + object = ReadClusterOperatorInfo(iterator) err = iterator.Error return } -// readClusterOperatorInfo reads a value of the 'cluster_operator_info' type from the given iterator. -func readClusterOperatorInfo(iterator *jsoniter.Iterator) *ClusterOperatorInfo { +// ReadClusterOperatorInfo reads a value of the 'cluster_operator_info' type from the given iterator. +func ReadClusterOperatorInfo(iterator *jsoniter.Iterator) *ClusterOperatorInfo { object := &ClusterOperatorInfo{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/cluster_operator_state_list_type_json.go b/clustersmgmt/v1/cluster_operator_state_list_type_json.go index 86104ef00..1e95dadda 100644 --- a/clustersmgmt/v1/cluster_operator_state_list_type_json.go +++ b/clustersmgmt/v1/cluster_operator_state_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterOperatorStateList(list []ClusterOperatorState, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterOperatorStateList(list, stream) + WriteClusterOperatorStateList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalClusterOperatorStateList(list []ClusterOperatorState, writer io.Writ return stream.Error } -// writeClusterOperatorStateList writes a list of value of the 'cluster_operator_state' type to +// WriteClusterOperatorStateList writes a list of value of the 'cluster_operator_state' type to // the given stream. -func writeClusterOperatorStateList(list []ClusterOperatorState, stream *jsoniter.Stream) { +func WriteClusterOperatorStateList(list []ClusterOperatorState, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalClusterOperatorStateList(source interface{}) (items []ClusterOpera if err != nil { return } - items = readClusterOperatorStateList(iterator) + items = ReadClusterOperatorStateList(iterator) err = iterator.Error return } -// readClusterOperatorStateList reads list of values of the ”cluster_operator_state' type from +// ReadClusterOperatorStateList reads list of values of the ”cluster_operator_state' type from // the given iterator. -func readClusterOperatorStateList(iterator *jsoniter.Iterator) []ClusterOperatorState { +func ReadClusterOperatorStateList(iterator *jsoniter.Iterator) []ClusterOperatorState { list := []ClusterOperatorState{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/cluster_operators_info_list_type_json.go b/clustersmgmt/v1/cluster_operators_info_list_type_json.go index 34debf6e4..cc319fb2d 100644 --- a/clustersmgmt/v1/cluster_operators_info_list_type_json.go +++ b/clustersmgmt/v1/cluster_operators_info_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterOperatorsInfoList(list []*ClusterOperatorsInfo, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterOperatorsInfoList(list, stream) + WriteClusterOperatorsInfoList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalClusterOperatorsInfoList(list []*ClusterOperatorsInfo, writer io.Wri return stream.Error } -// writeClusterOperatorsInfoList writes a list of value of the 'cluster_operators_info' type to +// WriteClusterOperatorsInfoList writes a list of value of the 'cluster_operators_info' type to // the given stream. -func writeClusterOperatorsInfoList(list []*ClusterOperatorsInfo, stream *jsoniter.Stream) { +func WriteClusterOperatorsInfoList(list []*ClusterOperatorsInfo, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeClusterOperatorsInfo(value, stream) + WriteClusterOperatorsInfo(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalClusterOperatorsInfoList(source interface{}) (items []*ClusterOper if err != nil { return } - items = readClusterOperatorsInfoList(iterator) + items = ReadClusterOperatorsInfoList(iterator) err = iterator.Error return } -// readClusterOperatorsInfoList reads list of values of the ”cluster_operators_info' type from +// ReadClusterOperatorsInfoList reads list of values of the ”cluster_operators_info' type from // the given iterator. -func readClusterOperatorsInfoList(iterator *jsoniter.Iterator) []*ClusterOperatorsInfo { +func ReadClusterOperatorsInfoList(iterator *jsoniter.Iterator) []*ClusterOperatorsInfo { list := []*ClusterOperatorsInfo{} for iterator.ReadArray() { - item := readClusterOperatorsInfo(iterator) + item := ReadClusterOperatorsInfo(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/cluster_operators_info_type.go b/clustersmgmt/v1/cluster_operators_info_type.go index 11520371a..ea9374e68 100644 --- a/clustersmgmt/v1/cluster_operators_info_type.go +++ b/clustersmgmt/v1/cluster_operators_info_type.go @@ -78,6 +78,29 @@ func (l *ClusterOperatorsInfoList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ClusterOperatorsInfoList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterOperatorsInfoList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterOperatorsInfoList) SetItems(items []*ClusterOperatorsInfo) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterOperatorsInfoList) Items() []*ClusterOperatorsInfo { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ClusterOperatorsInfoList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/cluster_operators_info_type_json.go b/clustersmgmt/v1/cluster_operators_info_type_json.go index 22f16ba48..dd2a7e679 100644 --- a/clustersmgmt/v1/cluster_operators_info_type_json.go +++ b/clustersmgmt/v1/cluster_operators_info_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalClusterOperatorsInfo writes a value of the 'cluster_operators_info' type to the given writer. func MarshalClusterOperatorsInfo(object *ClusterOperatorsInfo, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterOperatorsInfo(object, stream) + WriteClusterOperatorsInfo(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalClusterOperatorsInfo(object *ClusterOperatorsInfo, writer io.Writer) return stream.Error } -// writeClusterOperatorsInfo writes a value of the 'cluster_operators_info' type to the given stream. -func writeClusterOperatorsInfo(object *ClusterOperatorsInfo, stream *jsoniter.Stream) { +// WriteClusterOperatorsInfo writes a value of the 'cluster_operators_info' type to the given stream. +func WriteClusterOperatorsInfo(object *ClusterOperatorsInfo, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeClusterOperatorsInfo(object *ClusterOperatorsInfo, stream *jsoniter.St stream.WriteMore() } stream.WriteObjectField("operators") - writeClusterOperatorInfoList(object.operators, stream) + WriteClusterOperatorInfoList(object.operators, stream) } stream.WriteObjectEnd() } @@ -60,13 +60,13 @@ func UnmarshalClusterOperatorsInfo(source interface{}) (object *ClusterOperators if err != nil { return } - object = readClusterOperatorsInfo(iterator) + object = ReadClusterOperatorsInfo(iterator) err = iterator.Error return } -// readClusterOperatorsInfo reads a value of the 'cluster_operators_info' type from the given iterator. -func readClusterOperatorsInfo(iterator *jsoniter.Iterator) *ClusterOperatorsInfo { +// ReadClusterOperatorsInfo reads a value of the 'cluster_operators_info' type from the given iterator. +func ReadClusterOperatorsInfo(iterator *jsoniter.Iterator) *ClusterOperatorsInfo { object := &ClusterOperatorsInfo{} for { field := iterator.ReadObject() @@ -75,7 +75,7 @@ func readClusterOperatorsInfo(iterator *jsoniter.Iterator) *ClusterOperatorsInfo } switch field { case "operators": - value := readClusterOperatorInfoList(iterator) + value := ReadClusterOperatorInfoList(iterator) object.operators = value object.bitmap_ |= 1 default: diff --git a/clustersmgmt/v1/cluster_registration_list_type_json.go b/clustersmgmt/v1/cluster_registration_list_type_json.go index 54f598608..41bd54394 100644 --- a/clustersmgmt/v1/cluster_registration_list_type_json.go +++ b/clustersmgmt/v1/cluster_registration_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterRegistrationList(list []*ClusterRegistration, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterRegistrationList(list, stream) + WriteClusterRegistrationList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalClusterRegistrationList(list []*ClusterRegistration, writer io.Write return stream.Error } -// writeClusterRegistrationList writes a list of value of the 'cluster_registration' type to +// WriteClusterRegistrationList writes a list of value of the 'cluster_registration' type to // the given stream. -func writeClusterRegistrationList(list []*ClusterRegistration, stream *jsoniter.Stream) { +func WriteClusterRegistrationList(list []*ClusterRegistration, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeClusterRegistration(value, stream) + WriteClusterRegistration(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalClusterRegistrationList(source interface{}) (items []*ClusterRegis if err != nil { return } - items = readClusterRegistrationList(iterator) + items = ReadClusterRegistrationList(iterator) err = iterator.Error return } -// readClusterRegistrationList reads list of values of the ”cluster_registration' type from +// ReadClusterRegistrationList reads list of values of the ”cluster_registration' type from // the given iterator. -func readClusterRegistrationList(iterator *jsoniter.Iterator) []*ClusterRegistration { +func ReadClusterRegistrationList(iterator *jsoniter.Iterator) []*ClusterRegistration { list := []*ClusterRegistration{} for iterator.ReadArray() { - item := readClusterRegistration(iterator) + item := ReadClusterRegistration(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/cluster_registration_type.go b/clustersmgmt/v1/cluster_registration_type.go index 1ed118c94..5f18b5ac2 100644 --- a/clustersmgmt/v1/cluster_registration_type.go +++ b/clustersmgmt/v1/cluster_registration_type.go @@ -177,6 +177,29 @@ func (l *ClusterRegistrationList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ClusterRegistrationList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterRegistrationList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterRegistrationList) SetItems(items []*ClusterRegistration) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterRegistrationList) Items() []*ClusterRegistration { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ClusterRegistrationList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/cluster_registration_type_json.go b/clustersmgmt/v1/cluster_registration_type_json.go index fcc329c45..9b46d2355 100644 --- a/clustersmgmt/v1/cluster_registration_type_json.go +++ b/clustersmgmt/v1/cluster_registration_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalClusterRegistration writes a value of the 'cluster_registration' type to the given writer. func MarshalClusterRegistration(object *ClusterRegistration, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterRegistration(object, stream) + WriteClusterRegistration(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalClusterRegistration(object *ClusterRegistration, writer io.Writer) e return stream.Error } -// writeClusterRegistration writes a value of the 'cluster_registration' type to the given stream. -func writeClusterRegistration(object *ClusterRegistration, stream *jsoniter.Stream) { +// WriteClusterRegistration writes a value of the 'cluster_registration' type to the given stream. +func WriteClusterRegistration(object *ClusterRegistration, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -87,13 +87,13 @@ func UnmarshalClusterRegistration(source interface{}) (object *ClusterRegistrati if err != nil { return } - object = readClusterRegistration(iterator) + object = ReadClusterRegistration(iterator) err = iterator.Error return } -// readClusterRegistration reads a value of the 'cluster_registration' type from the given iterator. -func readClusterRegistration(iterator *jsoniter.Iterator) *ClusterRegistration { +// ReadClusterRegistration reads a value of the 'cluster_registration' type from the given iterator. +func ReadClusterRegistration(iterator *jsoniter.Iterator) *ClusterRegistration { object := &ClusterRegistration{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/cluster_registry_config_list_type_json.go b/clustersmgmt/v1/cluster_registry_config_list_type_json.go index ce4c17222..31c05798e 100644 --- a/clustersmgmt/v1/cluster_registry_config_list_type_json.go +++ b/clustersmgmt/v1/cluster_registry_config_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterRegistryConfigList(list []*ClusterRegistryConfig, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterRegistryConfigList(list, stream) + WriteClusterRegistryConfigList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalClusterRegistryConfigList(list []*ClusterRegistryConfig, writer io.W return stream.Error } -// writeClusterRegistryConfigList writes a list of value of the 'cluster_registry_config' type to +// WriteClusterRegistryConfigList writes a list of value of the 'cluster_registry_config' type to // the given stream. -func writeClusterRegistryConfigList(list []*ClusterRegistryConfig, stream *jsoniter.Stream) { +func WriteClusterRegistryConfigList(list []*ClusterRegistryConfig, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeClusterRegistryConfig(value, stream) + WriteClusterRegistryConfig(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalClusterRegistryConfigList(source interface{}) (items []*ClusterReg if err != nil { return } - items = readClusterRegistryConfigList(iterator) + items = ReadClusterRegistryConfigList(iterator) err = iterator.Error return } -// readClusterRegistryConfigList reads list of values of the ”cluster_registry_config' type from +// ReadClusterRegistryConfigList reads list of values of the ”cluster_registry_config' type from // the given iterator. -func readClusterRegistryConfigList(iterator *jsoniter.Iterator) []*ClusterRegistryConfig { +func ReadClusterRegistryConfigList(iterator *jsoniter.Iterator) []*ClusterRegistryConfig { list := []*ClusterRegistryConfig{} for iterator.ReadArray() { - item := readClusterRegistryConfig(iterator) + item := ReadClusterRegistryConfig(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/cluster_registry_config_type.go b/clustersmgmt/v1/cluster_registry_config_type.go index 92fda2cec..014f203ce 100644 --- a/clustersmgmt/v1/cluster_registry_config_type.go +++ b/clustersmgmt/v1/cluster_registry_config_type.go @@ -192,6 +192,29 @@ func (l *ClusterRegistryConfigList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ClusterRegistryConfigList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterRegistryConfigList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterRegistryConfigList) SetItems(items []*ClusterRegistryConfig) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterRegistryConfigList) Items() []*ClusterRegistryConfig { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ClusterRegistryConfigList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/cluster_registry_config_type_json.go b/clustersmgmt/v1/cluster_registry_config_type_json.go index efe62870b..41c8550a8 100644 --- a/clustersmgmt/v1/cluster_registry_config_type_json.go +++ b/clustersmgmt/v1/cluster_registry_config_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalClusterRegistryConfig writes a value of the 'cluster_registry_config' type to the given writer. func MarshalClusterRegistryConfig(object *ClusterRegistryConfig, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterRegistryConfig(object, stream) + WriteClusterRegistryConfig(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalClusterRegistryConfig(object *ClusterRegistryConfig, writer io.Write return stream.Error } -// writeClusterRegistryConfig writes a value of the 'cluster_registry_config' type to the given stream. -func writeClusterRegistryConfig(object *ClusterRegistryConfig, stream *jsoniter.Stream) { +// WriteClusterRegistryConfig writes a value of the 'cluster_registry_config' type to the given stream. +func WriteClusterRegistryConfig(object *ClusterRegistryConfig, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -78,7 +78,7 @@ func writeClusterRegistryConfig(object *ClusterRegistryConfig, stream *jsoniter. stream.WriteMore() } stream.WriteObjectField("allowed_registries_for_import") - writeRegistryLocationList(object.allowedRegistriesForImport, stream) + WriteRegistryLocationList(object.allowedRegistriesForImport, stream) count++ } present_ = object.bitmap_&4 != 0 && object.platformAllowlist != nil @@ -87,7 +87,7 @@ func writeClusterRegistryConfig(object *ClusterRegistryConfig, stream *jsoniter. stream.WriteMore() } stream.WriteObjectField("platform_allowlist") - writeRegistryAllowlist(object.platformAllowlist, stream) + WriteRegistryAllowlist(object.platformAllowlist, stream) count++ } present_ = object.bitmap_&8 != 0 && object.registrySources != nil @@ -96,7 +96,7 @@ func writeClusterRegistryConfig(object *ClusterRegistryConfig, stream *jsoniter. stream.WriteMore() } stream.WriteObjectField("registry_sources") - writeRegistrySources(object.registrySources, stream) + WriteRegistrySources(object.registrySources, stream) } stream.WriteObjectEnd() } @@ -108,13 +108,13 @@ func UnmarshalClusterRegistryConfig(source interface{}) (object *ClusterRegistry if err != nil { return } - object = readClusterRegistryConfig(iterator) + object = ReadClusterRegistryConfig(iterator) err = iterator.Error return } -// readClusterRegistryConfig reads a value of the 'cluster_registry_config' type from the given iterator. -func readClusterRegistryConfig(iterator *jsoniter.Iterator) *ClusterRegistryConfig { +// ReadClusterRegistryConfig reads a value of the 'cluster_registry_config' type from the given iterator. +func ReadClusterRegistryConfig(iterator *jsoniter.Iterator) *ClusterRegistryConfig { object := &ClusterRegistryConfig{} for { field := iterator.ReadObject() @@ -135,15 +135,15 @@ func readClusterRegistryConfig(iterator *jsoniter.Iterator) *ClusterRegistryConf object.additionalTrustedCa = value object.bitmap_ |= 1 case "allowed_registries_for_import": - value := readRegistryLocationList(iterator) + value := ReadRegistryLocationList(iterator) object.allowedRegistriesForImport = value object.bitmap_ |= 2 case "platform_allowlist": - value := readRegistryAllowlist(iterator) + value := ReadRegistryAllowlist(iterator) object.platformAllowlist = value object.bitmap_ |= 4 case "registry_sources": - value := readRegistrySources(iterator) + value := ReadRegistrySources(iterator) object.registrySources = value object.bitmap_ |= 8 default: diff --git a/clustersmgmt/v1/cluster_resources_list_type_json.go b/clustersmgmt/v1/cluster_resources_list_type_json.go index 0b17fc9ce..3a5b4c7bf 100644 --- a/clustersmgmt/v1/cluster_resources_list_type_json.go +++ b/clustersmgmt/v1/cluster_resources_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterResourcesList(list []*ClusterResources, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterResourcesList(list, stream) + WriteClusterResourcesList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalClusterResourcesList(list []*ClusterResources, writer io.Writer) err return stream.Error } -// writeClusterResourcesList writes a list of value of the 'cluster_resources' type to +// WriteClusterResourcesList writes a list of value of the 'cluster_resources' type to // the given stream. -func writeClusterResourcesList(list []*ClusterResources, stream *jsoniter.Stream) { +func WriteClusterResourcesList(list []*ClusterResources, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeClusterResources(value, stream) + WriteClusterResources(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalClusterResourcesList(source interface{}) (items []*ClusterResource if err != nil { return } - items = readClusterResourcesList(iterator) + items = ReadClusterResourcesList(iterator) err = iterator.Error return } -// readClusterResourcesList reads list of values of the ”cluster_resources' type from +// ReadClusterResourcesList reads list of values of the ”cluster_resources' type from // the given iterator. -func readClusterResourcesList(iterator *jsoniter.Iterator) []*ClusterResources { +func ReadClusterResourcesList(iterator *jsoniter.Iterator) []*ClusterResources { list := []*ClusterResources{} for iterator.ReadArray() { - item := readClusterResources(iterator) + item := ReadClusterResources(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/cluster_resources_type.go b/clustersmgmt/v1/cluster_resources_type.go index 6c6c6a891..748a49d79 100644 --- a/clustersmgmt/v1/cluster_resources_type.go +++ b/clustersmgmt/v1/cluster_resources_type.go @@ -58,7 +58,7 @@ func (o *ClusterResources) Kind() string { return ClusterResourcesKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *ClusterResources) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -234,6 +234,29 @@ func (l *ClusterResourcesList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ClusterResourcesList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterResourcesList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterResourcesList) SetItems(items []*ClusterResources) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterResourcesList) Items() []*ClusterResources { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ClusterResourcesList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/cluster_resources_type_json.go b/clustersmgmt/v1/cluster_resources_type_json.go index b2382e0ba..9e94ed5f1 100644 --- a/clustersmgmt/v1/cluster_resources_type_json.go +++ b/clustersmgmt/v1/cluster_resources_type_json.go @@ -31,7 +31,7 @@ import ( // MarshalClusterResources writes a value of the 'cluster_resources' type to the given writer. func MarshalClusterResources(object *ClusterResources, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterResources(object, stream) + WriteClusterResources(object, stream) err := stream.Flush() if err != nil { return err @@ -39,8 +39,8 @@ func MarshalClusterResources(object *ClusterResources, writer io.Writer) error { return stream.Error } -// writeClusterResources writes a value of the 'cluster_resources' type to the given stream. -func writeClusterResources(object *ClusterResources, stream *jsoniter.Stream) { +// WriteClusterResources writes a value of the 'cluster_resources' type to the given stream. +func WriteClusterResources(object *ClusterResources, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -123,13 +123,13 @@ func UnmarshalClusterResources(source interface{}) (object *ClusterResources, er if err != nil { return } - object = readClusterResources(iterator) + object = ReadClusterResources(iterator) err = iterator.Error return } -// readClusterResources reads a value of the 'cluster_resources' type from the given iterator. -func readClusterResources(iterator *jsoniter.Iterator) *ClusterResources { +// ReadClusterResources reads a value of the 'cluster_resources' type from the given iterator. +func ReadClusterResources(iterator *jsoniter.Iterator) *ClusterResources { object := &ClusterResources{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/cluster_state_list_type_json.go b/clustersmgmt/v1/cluster_state_list_type_json.go index eb919a7bc..df351efd2 100644 --- a/clustersmgmt/v1/cluster_state_list_type_json.go +++ b/clustersmgmt/v1/cluster_state_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterStateList(list []ClusterState, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterStateList(list, stream) + WriteClusterStateList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalClusterStateList(list []ClusterState, writer io.Writer) error { return stream.Error } -// writeClusterStateList writes a list of value of the 'cluster_state' type to +// WriteClusterStateList writes a list of value of the 'cluster_state' type to // the given stream. -func writeClusterStateList(list []ClusterState, stream *jsoniter.Stream) { +func WriteClusterStateList(list []ClusterState, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalClusterStateList(source interface{}) (items []ClusterState, err er if err != nil { return } - items = readClusterStateList(iterator) + items = ReadClusterStateList(iterator) err = iterator.Error return } -// readClusterStateList reads list of values of the ”cluster_state' type from +// ReadClusterStateList reads list of values of the ”cluster_state' type from // the given iterator. -func readClusterStateList(iterator *jsoniter.Iterator) []ClusterState { +func ReadClusterStateList(iterator *jsoniter.Iterator) []ClusterState { list := []ClusterState{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/cluster_status_list_type_json.go b/clustersmgmt/v1/cluster_status_list_type_json.go index 8602fde52..93044a497 100644 --- a/clustersmgmt/v1/cluster_status_list_type_json.go +++ b/clustersmgmt/v1/cluster_status_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterStatusList(list []*ClusterStatus, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterStatusList(list, stream) + WriteClusterStatusList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalClusterStatusList(list []*ClusterStatus, writer io.Writer) error { return stream.Error } -// writeClusterStatusList writes a list of value of the 'cluster_status' type to +// WriteClusterStatusList writes a list of value of the 'cluster_status' type to // the given stream. -func writeClusterStatusList(list []*ClusterStatus, stream *jsoniter.Stream) { +func WriteClusterStatusList(list []*ClusterStatus, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeClusterStatus(value, stream) + WriteClusterStatus(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalClusterStatusList(source interface{}) (items []*ClusterStatus, err if err != nil { return } - items = readClusterStatusList(iterator) + items = ReadClusterStatusList(iterator) err = iterator.Error return } -// readClusterStatusList reads list of values of the ”cluster_status' type from +// ReadClusterStatusList reads list of values of the ”cluster_status' type from // the given iterator. -func readClusterStatusList(iterator *jsoniter.Iterator) []*ClusterStatus { +func ReadClusterStatusList(iterator *jsoniter.Iterator) []*ClusterStatus { list := []*ClusterStatus{} for iterator.ReadArray() { - item := readClusterStatus(iterator) + item := ReadClusterStatus(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/cluster_status_type.go b/clustersmgmt/v1/cluster_status_type.go index 91f71a223..2ab33fe13 100644 --- a/clustersmgmt/v1/cluster_status_type.go +++ b/clustersmgmt/v1/cluster_status_type.go @@ -60,7 +60,7 @@ func (o *ClusterStatus) Kind() string { return ClusterStatusKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *ClusterStatus) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -374,6 +374,29 @@ func (l *ClusterStatusList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ClusterStatusList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterStatusList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterStatusList) SetItems(items []*ClusterStatus) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterStatusList) Items() []*ClusterStatus { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ClusterStatusList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/cluster_status_type_json.go b/clustersmgmt/v1/cluster_status_type_json.go index 04cc1e8d9..6c9ab661c 100644 --- a/clustersmgmt/v1/cluster_status_type_json.go +++ b/clustersmgmt/v1/cluster_status_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalClusterStatus writes a value of the 'cluster_status' type to the given writer. func MarshalClusterStatus(object *ClusterStatus, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterStatus(object, stream) + WriteClusterStatus(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalClusterStatus(object *ClusterStatus, writer io.Writer) error { return stream.Error } -// writeClusterStatus writes a value of the 'cluster_status' type to the given stream. -func writeClusterStatus(object *ClusterStatus, stream *jsoniter.Stream) { +// WriteClusterStatus writes a value of the 'cluster_status' type to the given stream. +func WriteClusterStatus(object *ClusterStatus, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -155,13 +155,13 @@ func UnmarshalClusterStatus(source interface{}) (object *ClusterStatus, err erro if err != nil { return } - object = readClusterStatus(iterator) + object = ReadClusterStatus(iterator) err = iterator.Error return } -// readClusterStatus reads a value of the 'cluster_status' type from the given iterator. -func readClusterStatus(iterator *jsoniter.Iterator) *ClusterStatus { +// ReadClusterStatus reads a value of the 'cluster_status' type from the given iterator. +func ReadClusterStatus(iterator *jsoniter.Iterator) *ClusterStatus { object := &ClusterStatus{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/cluster_type.go b/clustersmgmt/v1/cluster_type.go index cd3717050..60144b464 100644 --- a/clustersmgmt/v1/cluster_type.go +++ b/clustersmgmt/v1/cluster_type.go @@ -152,7 +152,7 @@ func (o *Cluster) Kind() string { return ClusterKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Cluster) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -1654,6 +1654,29 @@ func (l *ClusterList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ClusterList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterList) SetItems(items []*Cluster) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterList) Items() []*Cluster { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ClusterList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/cluster_type_json.go b/clustersmgmt/v1/cluster_type_json.go index f3e1b7ad4..811a2819c 100644 --- a/clustersmgmt/v1/cluster_type_json.go +++ b/clustersmgmt/v1/cluster_type_json.go @@ -31,7 +31,7 @@ import ( // MarshalCluster writes a value of the 'cluster' type to the given writer. func MarshalCluster(object *Cluster, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCluster(object, stream) + WriteCluster(object, stream) err := stream.Flush() if err != nil { return err @@ -39,8 +39,8 @@ func MarshalCluster(object *Cluster, writer io.Writer) error { return stream.Error } -// writeCluster writes a value of the 'cluster' type to the given stream. -func writeCluster(object *Cluster, stream *jsoniter.Stream) { +// WriteCluster writes a value of the 'cluster' type to the given stream. +func WriteCluster(object *Cluster, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -73,7 +73,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("api") - writeClusterAPI(object.api, stream) + WriteClusterAPI(object.api, stream) count++ } present_ = object.bitmap_&16 != 0 && object.aws != nil @@ -82,7 +82,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("aws") - writeAWS(object.aws, stream) + WriteAWS(object.aws, stream) count++ } present_ = object.bitmap_&32 != 0 && object.awsInfrastructureAccessRoleGrants != nil @@ -93,7 +93,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteObjectField("aws_infrastructure_access_role_grants") stream.WriteObjectStart() stream.WriteObjectField("items") - writeAWSInfrastructureAccessRoleGrantList(object.awsInfrastructureAccessRoleGrants.items, stream) + WriteAWSInfrastructureAccessRoleGrantList(object.awsInfrastructureAccessRoleGrants.Items(), stream) stream.WriteObjectEnd() count++ } @@ -103,7 +103,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("ccs") - writeCCS(object.ccs, stream) + WriteCCS(object.ccs, stream) count++ } present_ = object.bitmap_&128 != 0 && object.dns != nil @@ -112,7 +112,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("dns") - writeDNS(object.dns, stream) + WriteDNS(object.dns, stream) count++ } present_ = object.bitmap_&256 != 0 @@ -130,7 +130,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("gcp") - writeGCP(object.gcp, stream) + WriteGCP(object.gcp, stream) count++ } present_ = object.bitmap_&1024 != 0 && object.gcpEncryptionKey != nil @@ -139,7 +139,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("gcp_encryption_key") - writeGCPEncryptionKey(object.gcpEncryptionKey, stream) + WriteGCPEncryptionKey(object.gcpEncryptionKey, stream) count++ } present_ = object.bitmap_&2048 != 0 && object.gcpNetwork != nil @@ -148,7 +148,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("gcp_network") - writeGCPNetwork(object.gcpNetwork, stream) + WriteGCPNetwork(object.gcpNetwork, stream) count++ } present_ = object.bitmap_&4096 != 0 @@ -168,7 +168,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteObjectField("addons") stream.WriteObjectStart() stream.WriteObjectField("items") - writeAddOnInstallationList(object.addons.items, stream) + WriteAddOnInstallationList(object.addons.Items(), stream) stream.WriteObjectEnd() count++ } @@ -178,7 +178,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("autoscaler") - writeClusterAutoscaler(object.autoscaler, stream) + WriteClusterAutoscaler(object.autoscaler, stream) count++ } present_ = object.bitmap_&32768 != 0 && object.azure != nil @@ -187,7 +187,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("azure") - writeAzure(object.azure, stream) + WriteAzure(object.azure, stream) count++ } present_ = object.bitmap_&65536 != 0 @@ -205,7 +205,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("byo_oidc") - writeByoOidc(object.byoOidc, stream) + WriteByoOidc(object.byoOidc, stream) count++ } present_ = object.bitmap_&262144 != 0 && object.cloudProvider != nil @@ -214,7 +214,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("cloud_provider") - writeCloudProvider(object.cloudProvider, stream) + WriteCloudProvider(object.cloudProvider, stream) count++ } present_ = object.bitmap_&524288 != 0 && object.console != nil @@ -223,7 +223,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("console") - writeClusterConsole(object.console, stream) + WriteClusterConsole(object.console, stream) count++ } present_ = object.bitmap_&1048576 != 0 @@ -241,7 +241,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("delete_protection") - writeDeleteProtection(object.deleteProtection, stream) + WriteDeleteProtection(object.deleteProtection, stream) count++ } present_ = object.bitmap_&4194304 != 0 @@ -295,7 +295,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("external_auth_config") - writeExternalAuthConfig(object.externalAuthConfig, stream) + WriteExternalAuthConfig(object.externalAuthConfig, stream) count++ } present_ = object.bitmap_&268435456 != 0 && object.externalConfiguration != nil @@ -304,7 +304,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("external_configuration") - writeExternalConfiguration(object.externalConfiguration, stream) + WriteExternalConfiguration(object.externalConfiguration, stream) count++ } present_ = object.bitmap_&536870912 != 0 && object.flavour != nil @@ -313,7 +313,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("flavour") - writeFlavour(object.flavour, stream) + WriteFlavour(object.flavour, stream) count++ } present_ = object.bitmap_&1073741824 != 0 && object.groups != nil @@ -324,7 +324,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteObjectField("groups") stream.WriteObjectStart() stream.WriteObjectField("items") - writeGroupList(object.groups.items, stream) + WriteGroupList(object.groups.Items(), stream) stream.WriteObjectEnd() count++ } @@ -343,7 +343,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("htpasswd") - writeHTPasswdIdentityProvider(object.htpasswd, stream) + WriteHTPasswdIdentityProvider(object.htpasswd, stream) count++ } present_ = object.bitmap_&8589934592 != 0 && object.hypershift != nil @@ -352,7 +352,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("hypershift") - writeHypershift(object.hypershift, stream) + WriteHypershift(object.hypershift, stream) count++ } present_ = object.bitmap_&17179869184 != 0 && object.identityProviders != nil @@ -363,7 +363,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteObjectField("identity_providers") stream.WriteObjectStart() stream.WriteObjectField("items") - writeIdentityProviderList(object.identityProviders.items, stream) + WriteIdentityProviderList(object.identityProviders.Items(), stream) stream.WriteObjectEnd() count++ } @@ -375,7 +375,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteObjectField("inflight_checks") stream.WriteObjectStart() stream.WriteObjectField("items") - writeInflightCheckList(object.inflightChecks.items, stream) + WriteInflightCheckList(object.inflightChecks.Items(), stream) stream.WriteObjectEnd() count++ } @@ -396,7 +396,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteObjectField("ingresses") stream.WriteObjectStart() stream.WriteObjectField("items") - writeIngressList(object.ingresses.items, stream) + WriteIngressList(object.ingresses.Items(), stream) stream.WriteObjectEnd() count++ } @@ -406,7 +406,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("kubelet_config") - writeKubeletConfig(object.kubeletConfig, stream) + WriteKubeletConfig(object.kubeletConfig, stream) count++ } present_ = object.bitmap_&549755813888 != 0 @@ -426,7 +426,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteObjectField("machine_pools") stream.WriteObjectStart() stream.WriteObjectField("items") - writeMachinePoolList(object.machinePools.items, stream) + WriteMachinePoolList(object.machinePools.Items(), stream) stream.WriteObjectEnd() count++ } @@ -445,7 +445,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("managed_service") - writeManagedService(object.managedService, stream) + WriteManagedService(object.managedService, stream) count++ } present_ = object.bitmap_&8796093022208 != 0 @@ -481,7 +481,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("network") - writeNetwork(object.network, stream) + WriteNetwork(object.network, stream) count++ } present_ = object.bitmap_&140737488355328 != 0 && object.nodeDrainGracePeriod != nil @@ -490,7 +490,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("node_drain_grace_period") - writeValue(object.nodeDrainGracePeriod, stream) + WriteValue(object.nodeDrainGracePeriod, stream) count++ } present_ = object.bitmap_&281474976710656 != 0 && object.nodePools != nil @@ -501,7 +501,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteObjectField("node_pools") stream.WriteObjectStart() stream.WriteObjectField("items") - writeNodePoolList(object.nodePools.items, stream) + WriteNodePoolList(object.nodePools.Items(), stream) stream.WriteObjectEnd() count++ } @@ -511,7 +511,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("nodes") - writeClusterNodes(object.nodes, stream) + WriteClusterNodes(object.nodes, stream) count++ } present_ = object.bitmap_&1125899906842624 != 0 @@ -529,7 +529,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("product") - writeProduct(object.product, stream) + WriteProduct(object.product, stream) count++ } present_ = object.bitmap_&4503599627370496 != 0 && object.properties != nil @@ -567,7 +567,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("provision_shard") - writeProvisionShard(object.provisionShard, stream) + WriteProvisionShard(object.provisionShard, stream) count++ } present_ = object.bitmap_&18014398509481984 != 0 && object.proxy != nil @@ -576,7 +576,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("proxy") - writeProxy(object.proxy, stream) + WriteProxy(object.proxy, stream) count++ } present_ = object.bitmap_&36028797018963968 != 0 && object.region != nil @@ -585,7 +585,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("region") - writeCloudRegion(object.region, stream) + WriteCloudRegion(object.region, stream) count++ } present_ = object.bitmap_&72057594037927936 != 0 && object.registryConfig != nil @@ -594,7 +594,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("registry_config") - writeClusterRegistryConfig(object.registryConfig, stream) + WriteClusterRegistryConfig(object.registryConfig, stream) count++ } present_ = object.bitmap_&144115188075855872 != 0 @@ -612,7 +612,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("status") - writeClusterStatus(object.status, stream) + WriteClusterStatus(object.status, stream) count++ } present_ = object.bitmap_&576460752303423488 != 0 && object.storageQuota != nil @@ -621,7 +621,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("storage_quota") - writeValue(object.storageQuota, stream) + WriteValue(object.storageQuota, stream) count++ } present_ = object.bitmap_&1152921504606846976 != 0 && object.subscription != nil @@ -630,7 +630,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("subscription") - writeSubscription(object.subscription, stream) + WriteSubscription(object.subscription, stream) count++ } present_ = object.bitmap_&2305843009213693952 != 0 && object.version != nil @@ -639,7 +639,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("version") - writeVersion(object.version, stream) + WriteVersion(object.version, stream) } stream.WriteObjectEnd() } @@ -651,13 +651,13 @@ func UnmarshalCluster(source interface{}) (object *Cluster, err error) { if err != nil { return } - object = readCluster(iterator) + object = ReadCluster(iterator) err = iterator.Error return } -// readCluster reads a value of the 'cluster' type from the given iterator. -func readCluster(iterator *jsoniter.Iterator) *Cluster { +// ReadCluster reads a value of the 'cluster' type from the given iterator. +func ReadCluster(iterator *jsoniter.Iterator) *Cluster { object := &Cluster{} for { field := iterator.ReadObject() @@ -677,11 +677,11 @@ func readCluster(iterator *jsoniter.Iterator) *Cluster { object.href = iterator.ReadString() object.bitmap_ |= 4 case "api": - value := readClusterAPI(iterator) + value := ReadClusterAPI(iterator) object.api = value object.bitmap_ |= 8 case "aws": - value := readAWS(iterator) + value := ReadAWS(iterator) object.aws = value object.bitmap_ |= 16 case "aws_infrastructure_access_role_grants": @@ -694,11 +694,11 @@ func readCluster(iterator *jsoniter.Iterator) *Cluster { switch field { case "kind": text := iterator.ReadString() - value.link = text == AWSInfrastructureAccessRoleGrantListLinkKind + value.SetLink(text == AWSInfrastructureAccessRoleGrantListLinkKind) case "href": - value.href = iterator.ReadString() + value.SetHREF(iterator.ReadString()) case "items": - value.items = readAWSInfrastructureAccessRoleGrantList(iterator) + value.SetItems(ReadAWSInfrastructureAccessRoleGrantList(iterator)) default: iterator.ReadAny() } @@ -706,11 +706,11 @@ func readCluster(iterator *jsoniter.Iterator) *Cluster { object.awsInfrastructureAccessRoleGrants = value object.bitmap_ |= 32 case "ccs": - value := readCCS(iterator) + value := ReadCCS(iterator) object.ccs = value object.bitmap_ |= 64 case "dns": - value := readDNS(iterator) + value := ReadDNS(iterator) object.dns = value object.bitmap_ |= 128 case "fips": @@ -718,15 +718,15 @@ func readCluster(iterator *jsoniter.Iterator) *Cluster { object.fips = value object.bitmap_ |= 256 case "gcp": - value := readGCP(iterator) + value := ReadGCP(iterator) object.gcp = value object.bitmap_ |= 512 case "gcp_encryption_key": - value := readGCPEncryptionKey(iterator) + value := ReadGCPEncryptionKey(iterator) object.gcpEncryptionKey = value object.bitmap_ |= 1024 case "gcp_network": - value := readGCPNetwork(iterator) + value := ReadGCPNetwork(iterator) object.gcpNetwork = value object.bitmap_ |= 2048 case "additional_trust_bundle": @@ -743,11 +743,11 @@ func readCluster(iterator *jsoniter.Iterator) *Cluster { switch field { case "kind": text := iterator.ReadString() - value.link = text == AddOnInstallationListLinkKind + value.SetLink(text == AddOnInstallationListLinkKind) case "href": - value.href = iterator.ReadString() + value.SetHREF(iterator.ReadString()) case "items": - value.items = readAddOnInstallationList(iterator) + value.SetItems(ReadAddOnInstallationList(iterator)) default: iterator.ReadAny() } @@ -755,11 +755,11 @@ func readCluster(iterator *jsoniter.Iterator) *Cluster { object.addons = value object.bitmap_ |= 8192 case "autoscaler": - value := readClusterAutoscaler(iterator) + value := ReadClusterAutoscaler(iterator) object.autoscaler = value object.bitmap_ |= 16384 case "azure": - value := readAzure(iterator) + value := ReadAzure(iterator) object.azure = value object.bitmap_ |= 32768 case "billing_model": @@ -768,15 +768,15 @@ func readCluster(iterator *jsoniter.Iterator) *Cluster { object.billingModel = value object.bitmap_ |= 65536 case "byo_oidc": - value := readByoOidc(iterator) + value := ReadByoOidc(iterator) object.byoOidc = value object.bitmap_ |= 131072 case "cloud_provider": - value := readCloudProvider(iterator) + value := ReadCloudProvider(iterator) object.cloudProvider = value object.bitmap_ |= 262144 case "console": - value := readClusterConsole(iterator) + value := ReadClusterConsole(iterator) object.console = value object.bitmap_ |= 524288 case "creation_timestamp": @@ -788,7 +788,7 @@ func readCluster(iterator *jsoniter.Iterator) *Cluster { object.creationTimestamp = value object.bitmap_ |= 1048576 case "delete_protection": - value := readDeleteProtection(iterator) + value := ReadDeleteProtection(iterator) object.deleteProtection = value object.bitmap_ |= 2097152 case "disable_user_workload_monitoring": @@ -816,15 +816,15 @@ func readCluster(iterator *jsoniter.Iterator) *Cluster { object.externalID = value object.bitmap_ |= 67108864 case "external_auth_config": - value := readExternalAuthConfig(iterator) + value := ReadExternalAuthConfig(iterator) object.externalAuthConfig = value object.bitmap_ |= 134217728 case "external_configuration": - value := readExternalConfiguration(iterator) + value := ReadExternalConfiguration(iterator) object.externalConfiguration = value object.bitmap_ |= 268435456 case "flavour": - value := readFlavour(iterator) + value := ReadFlavour(iterator) object.flavour = value object.bitmap_ |= 536870912 case "groups": @@ -837,11 +837,11 @@ func readCluster(iterator *jsoniter.Iterator) *Cluster { switch field { case "kind": text := iterator.ReadString() - value.link = text == GroupListLinkKind + value.SetLink(text == GroupListLinkKind) case "href": - value.href = iterator.ReadString() + value.SetHREF(iterator.ReadString()) case "items": - value.items = readGroupList(iterator) + value.SetItems(ReadGroupList(iterator)) default: iterator.ReadAny() } @@ -854,11 +854,11 @@ func readCluster(iterator *jsoniter.Iterator) *Cluster { object.healthState = value object.bitmap_ |= 2147483648 case "htpasswd": - value := readHTPasswdIdentityProvider(iterator) + value := ReadHTPasswdIdentityProvider(iterator) object.htpasswd = value object.bitmap_ |= 4294967296 case "hypershift": - value := readHypershift(iterator) + value := ReadHypershift(iterator) object.hypershift = value object.bitmap_ |= 8589934592 case "identity_providers": @@ -871,11 +871,11 @@ func readCluster(iterator *jsoniter.Iterator) *Cluster { switch field { case "kind": text := iterator.ReadString() - value.link = text == IdentityProviderListLinkKind + value.SetLink(text == IdentityProviderListLinkKind) case "href": - value.href = iterator.ReadString() + value.SetHREF(iterator.ReadString()) case "items": - value.items = readIdentityProviderList(iterator) + value.SetItems(ReadIdentityProviderList(iterator)) default: iterator.ReadAny() } @@ -892,11 +892,11 @@ func readCluster(iterator *jsoniter.Iterator) *Cluster { switch field { case "kind": text := iterator.ReadString() - value.link = text == InflightCheckListLinkKind + value.SetLink(text == InflightCheckListLinkKind) case "href": - value.href = iterator.ReadString() + value.SetHREF(iterator.ReadString()) case "items": - value.items = readInflightCheckList(iterator) + value.SetItems(ReadInflightCheckList(iterator)) default: iterator.ReadAny() } @@ -917,11 +917,11 @@ func readCluster(iterator *jsoniter.Iterator) *Cluster { switch field { case "kind": text := iterator.ReadString() - value.link = text == IngressListLinkKind + value.SetLink(text == IngressListLinkKind) case "href": - value.href = iterator.ReadString() + value.SetHREF(iterator.ReadString()) case "items": - value.items = readIngressList(iterator) + value.SetItems(ReadIngressList(iterator)) default: iterator.ReadAny() } @@ -929,7 +929,7 @@ func readCluster(iterator *jsoniter.Iterator) *Cluster { object.ingresses = value object.bitmap_ |= 137438953472 case "kubelet_config": - value := readKubeletConfig(iterator) + value := ReadKubeletConfig(iterator) object.kubeletConfig = value object.bitmap_ |= 274877906944 case "load_balancer_quota": @@ -946,11 +946,11 @@ func readCluster(iterator *jsoniter.Iterator) *Cluster { switch field { case "kind": text := iterator.ReadString() - value.link = text == MachinePoolListLinkKind + value.SetLink(text == MachinePoolListLinkKind) case "href": - value.href = iterator.ReadString() + value.SetHREF(iterator.ReadString()) case "items": - value.items = readMachinePoolList(iterator) + value.SetItems(ReadMachinePoolList(iterator)) default: iterator.ReadAny() } @@ -962,7 +962,7 @@ func readCluster(iterator *jsoniter.Iterator) *Cluster { object.managed = value object.bitmap_ |= 2199023255552 case "managed_service": - value := readManagedService(iterator) + value := ReadManagedService(iterator) object.managedService = value object.bitmap_ |= 4398046511104 case "multi_az": @@ -978,11 +978,11 @@ func readCluster(iterator *jsoniter.Iterator) *Cluster { object.name = value object.bitmap_ |= 35184372088832 case "network": - value := readNetwork(iterator) + value := ReadNetwork(iterator) object.network = value object.bitmap_ |= 70368744177664 case "node_drain_grace_period": - value := readValue(iterator) + value := ReadValue(iterator) object.nodeDrainGracePeriod = value object.bitmap_ |= 140737488355328 case "node_pools": @@ -995,11 +995,11 @@ func readCluster(iterator *jsoniter.Iterator) *Cluster { switch field { case "kind": text := iterator.ReadString() - value.link = text == NodePoolListLinkKind + value.SetLink(text == NodePoolListLinkKind) case "href": - value.href = iterator.ReadString() + value.SetHREF(iterator.ReadString()) case "items": - value.items = readNodePoolList(iterator) + value.SetItems(ReadNodePoolList(iterator)) default: iterator.ReadAny() } @@ -1007,7 +1007,7 @@ func readCluster(iterator *jsoniter.Iterator) *Cluster { object.nodePools = value object.bitmap_ |= 281474976710656 case "nodes": - value := readClusterNodes(iterator) + value := ReadClusterNodes(iterator) object.nodes = value object.bitmap_ |= 562949953421312 case "openshift_version": @@ -1015,7 +1015,7 @@ func readCluster(iterator *jsoniter.Iterator) *Cluster { object.openshiftVersion = value object.bitmap_ |= 1125899906842624 case "product": - value := readProduct(iterator) + value := ReadProduct(iterator) object.product = value object.bitmap_ |= 2251799813685248 case "properties": @@ -1031,19 +1031,19 @@ func readCluster(iterator *jsoniter.Iterator) *Cluster { object.properties = value object.bitmap_ |= 4503599627370496 case "provision_shard": - value := readProvisionShard(iterator) + value := ReadProvisionShard(iterator) object.provisionShard = value object.bitmap_ |= 9007199254740992 case "proxy": - value := readProxy(iterator) + value := ReadProxy(iterator) object.proxy = value object.bitmap_ |= 18014398509481984 case "region": - value := readCloudRegion(iterator) + value := ReadCloudRegion(iterator) object.region = value object.bitmap_ |= 36028797018963968 case "registry_config": - value := readClusterRegistryConfig(iterator) + value := ReadClusterRegistryConfig(iterator) object.registryConfig = value object.bitmap_ |= 72057594037927936 case "state": @@ -1052,19 +1052,19 @@ func readCluster(iterator *jsoniter.Iterator) *Cluster { object.state = value object.bitmap_ |= 144115188075855872 case "status": - value := readClusterStatus(iterator) + value := ReadClusterStatus(iterator) object.status = value object.bitmap_ |= 288230376151711744 case "storage_quota": - value := readValue(iterator) + value := ReadValue(iterator) object.storageQuota = value object.bitmap_ |= 576460752303423488 case "subscription": - value := readSubscription(iterator) + value := ReadSubscription(iterator) object.subscription = value object.bitmap_ |= 1152921504606846976 case "version": - value := readVersion(iterator) + value := ReadVersion(iterator) object.version = value object.bitmap_ |= 2305843009213693952 default: diff --git a/clustersmgmt/v1/clusters_resource_json.go b/clustersmgmt/v1/clusters_resource_json.go index 2cac740cc..990b56d67 100644 --- a/clustersmgmt/v1/clusters_resource_json.go +++ b/clustersmgmt/v1/clusters_resource_json.go @@ -57,7 +57,7 @@ func readClustersListResponse(response *ClustersListResponse, reader io.Reader) value := iterator.ReadInt() response.total = &value case "items": - items := readClusterList(iterator) + items := ReadClusterList(iterator) response.items = &ClusterList{ items: items, } diff --git a/clustersmgmt/v1/component_route_list_type_json.go b/clustersmgmt/v1/component_route_list_type_json.go index 14d14ccf4..0a69fa861 100644 --- a/clustersmgmt/v1/component_route_list_type_json.go +++ b/clustersmgmt/v1/component_route_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalComponentRouteList(list []*ComponentRoute, writer io.Writer) error { stream := helpers.NewStream(writer) - writeComponentRouteList(list, stream) + WriteComponentRouteList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalComponentRouteList(list []*ComponentRoute, writer io.Writer) error { return stream.Error } -// writeComponentRouteList writes a list of value of the 'component_route' type to +// WriteComponentRouteList writes a list of value of the 'component_route' type to // the given stream. -func writeComponentRouteList(list []*ComponentRoute, stream *jsoniter.Stream) { +func WriteComponentRouteList(list []*ComponentRoute, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeComponentRoute(value, stream) + WriteComponentRoute(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalComponentRouteList(source interface{}) (items []*ComponentRoute, e if err != nil { return } - items = readComponentRouteList(iterator) + items = ReadComponentRouteList(iterator) err = iterator.Error return } -// readComponentRouteList reads list of values of the ”component_route' type from +// ReadComponentRouteList reads list of values of the ”component_route' type from // the given iterator. -func readComponentRouteList(iterator *jsoniter.Iterator) []*ComponentRoute { +func ReadComponentRouteList(iterator *jsoniter.Iterator) []*ComponentRoute { list := []*ComponentRoute{} for iterator.ReadArray() { - item := readComponentRoute(iterator) + item := ReadComponentRoute(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/component_route_type.go b/clustersmgmt/v1/component_route_type.go index baa4cd171..e25f59f2e 100644 --- a/clustersmgmt/v1/component_route_type.go +++ b/clustersmgmt/v1/component_route_type.go @@ -53,7 +53,7 @@ func (o *ComponentRoute) Kind() string { return ComponentRouteKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *ComponentRoute) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -206,6 +206,29 @@ func (l *ComponentRouteList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ComponentRouteList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ComponentRouteList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ComponentRouteList) SetItems(items []*ComponentRoute) { + l.items = items +} + +// Items returns the items of the list. +func (l *ComponentRouteList) Items() []*ComponentRoute { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ComponentRouteList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/component_route_type_json.go b/clustersmgmt/v1/component_route_type_json.go index 3e65aa033..6e716d94c 100644 --- a/clustersmgmt/v1/component_route_type_json.go +++ b/clustersmgmt/v1/component_route_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalComponentRoute writes a value of the 'component_route' type to the given writer. func MarshalComponentRoute(object *ComponentRoute, writer io.Writer) error { stream := helpers.NewStream(writer) - writeComponentRoute(object, stream) + WriteComponentRoute(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalComponentRoute(object *ComponentRoute, writer io.Writer) error { return stream.Error } -// writeComponentRoute writes a value of the 'component_route' type to the given stream. -func writeComponentRoute(object *ComponentRoute, stream *jsoniter.Stream) { +// WriteComponentRoute writes a value of the 'component_route' type to the given stream. +func WriteComponentRoute(object *ComponentRoute, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -92,13 +92,13 @@ func UnmarshalComponentRoute(source interface{}) (object *ComponentRoute, err er if err != nil { return } - object = readComponentRoute(iterator) + object = ReadComponentRoute(iterator) err = iterator.Error return } -// readComponentRoute reads a value of the 'component_route' type from the given iterator. -func readComponentRoute(iterator *jsoniter.Iterator) *ComponentRoute { +// ReadComponentRoute reads a value of the 'component_route' type from the given iterator. +func ReadComponentRoute(iterator *jsoniter.Iterator) *ComponentRoute { object := &ComponentRoute{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/component_route_type_list_type_json.go b/clustersmgmt/v1/component_route_type_list_type_json.go index 5a822eee0..fdcff347a 100644 --- a/clustersmgmt/v1/component_route_type_list_type_json.go +++ b/clustersmgmt/v1/component_route_type_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalComponentRouteTypeList(list []ComponentRouteType, writer io.Writer) error { stream := helpers.NewStream(writer) - writeComponentRouteTypeList(list, stream) + WriteComponentRouteTypeList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalComponentRouteTypeList(list []ComponentRouteType, writer io.Writer) return stream.Error } -// writeComponentRouteTypeList writes a list of value of the 'component_route_type' type to +// WriteComponentRouteTypeList writes a list of value of the 'component_route_type' type to // the given stream. -func writeComponentRouteTypeList(list []ComponentRouteType, stream *jsoniter.Stream) { +func WriteComponentRouteTypeList(list []ComponentRouteType, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalComponentRouteTypeList(source interface{}) (items []ComponentRoute if err != nil { return } - items = readComponentRouteTypeList(iterator) + items = ReadComponentRouteTypeList(iterator) err = iterator.Error return } -// readComponentRouteTypeList reads list of values of the ”component_route_type' type from +// ReadComponentRouteTypeList reads list of values of the ”component_route_type' type from // the given iterator. -func readComponentRouteTypeList(iterator *jsoniter.Iterator) []ComponentRouteType { +func ReadComponentRouteTypeList(iterator *jsoniter.Iterator) []ComponentRouteType { list := []ComponentRouteType{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/control_plane_upgrade_policies_resource_json.go b/clustersmgmt/v1/control_plane_upgrade_policies_resource_json.go index 92e27839a..dad426380 100644 --- a/clustersmgmt/v1/control_plane_upgrade_policies_resource_json.go +++ b/clustersmgmt/v1/control_plane_upgrade_policies_resource_json.go @@ -57,7 +57,7 @@ func readControlPlaneUpgradePoliciesListResponse(response *ControlPlaneUpgradePo value := iterator.ReadInt() response.total = &value case "items": - items := readControlPlaneUpgradePolicyList(iterator) + items := ReadControlPlaneUpgradePolicyList(iterator) response.items = &ControlPlaneUpgradePolicyList{ items: items, } diff --git a/clustersmgmt/v1/control_plane_upgrade_policy_list_type_json.go b/clustersmgmt/v1/control_plane_upgrade_policy_list_type_json.go index d3459ee5d..5e3c05c3f 100644 --- a/clustersmgmt/v1/control_plane_upgrade_policy_list_type_json.go +++ b/clustersmgmt/v1/control_plane_upgrade_policy_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalControlPlaneUpgradePolicyList(list []*ControlPlaneUpgradePolicy, writer io.Writer) error { stream := helpers.NewStream(writer) - writeControlPlaneUpgradePolicyList(list, stream) + WriteControlPlaneUpgradePolicyList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalControlPlaneUpgradePolicyList(list []*ControlPlaneUpgradePolicy, wri return stream.Error } -// writeControlPlaneUpgradePolicyList writes a list of value of the 'control_plane_upgrade_policy' type to +// WriteControlPlaneUpgradePolicyList writes a list of value of the 'control_plane_upgrade_policy' type to // the given stream. -func writeControlPlaneUpgradePolicyList(list []*ControlPlaneUpgradePolicy, stream *jsoniter.Stream) { +func WriteControlPlaneUpgradePolicyList(list []*ControlPlaneUpgradePolicy, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeControlPlaneUpgradePolicy(value, stream) + WriteControlPlaneUpgradePolicy(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalControlPlaneUpgradePolicyList(source interface{}) (items []*Contro if err != nil { return } - items = readControlPlaneUpgradePolicyList(iterator) + items = ReadControlPlaneUpgradePolicyList(iterator) err = iterator.Error return } -// readControlPlaneUpgradePolicyList reads list of values of the ”control_plane_upgrade_policy' type from +// ReadControlPlaneUpgradePolicyList reads list of values of the ”control_plane_upgrade_policy' type from // the given iterator. -func readControlPlaneUpgradePolicyList(iterator *jsoniter.Iterator) []*ControlPlaneUpgradePolicy { +func ReadControlPlaneUpgradePolicyList(iterator *jsoniter.Iterator) []*ControlPlaneUpgradePolicy { list := []*ControlPlaneUpgradePolicy{} for iterator.ReadArray() { - item := readControlPlaneUpgradePolicy(iterator) + item := ReadControlPlaneUpgradePolicy(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/control_plane_upgrade_policy_type.go b/clustersmgmt/v1/control_plane_upgrade_policy_type.go index 579607851..8422a6225 100644 --- a/clustersmgmt/v1/control_plane_upgrade_policy_type.go +++ b/clustersmgmt/v1/control_plane_upgrade_policy_type.go @@ -65,7 +65,7 @@ func (o *ControlPlaneUpgradePolicy) Kind() string { return ControlPlaneUpgradePolicyKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *ControlPlaneUpgradePolicy) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -402,6 +402,29 @@ func (l *ControlPlaneUpgradePolicyList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ControlPlaneUpgradePolicyList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ControlPlaneUpgradePolicyList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ControlPlaneUpgradePolicyList) SetItems(items []*ControlPlaneUpgradePolicy) { + l.items = items +} + +// Items returns the items of the list. +func (l *ControlPlaneUpgradePolicyList) Items() []*ControlPlaneUpgradePolicy { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ControlPlaneUpgradePolicyList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/control_plane_upgrade_policy_type_json.go b/clustersmgmt/v1/control_plane_upgrade_policy_type_json.go index da486e1ee..ec235a065 100644 --- a/clustersmgmt/v1/control_plane_upgrade_policy_type_json.go +++ b/clustersmgmt/v1/control_plane_upgrade_policy_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalControlPlaneUpgradePolicy writes a value of the 'control_plane_upgrade_policy' type to the given writer. func MarshalControlPlaneUpgradePolicy(object *ControlPlaneUpgradePolicy, writer io.Writer) error { stream := helpers.NewStream(writer) - writeControlPlaneUpgradePolicy(object, stream) + WriteControlPlaneUpgradePolicy(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalControlPlaneUpgradePolicy(object *ControlPlaneUpgradePolicy, writer return stream.Error } -// writeControlPlaneUpgradePolicy writes a value of the 'control_plane_upgrade_policy' type to the given stream. -func writeControlPlaneUpgradePolicy(object *ControlPlaneUpgradePolicy, stream *jsoniter.Stream) { +// WriteControlPlaneUpgradePolicy writes a value of the 'control_plane_upgrade_policy' type to the given stream. +func WriteControlPlaneUpgradePolicy(object *ControlPlaneUpgradePolicy, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -135,7 +135,7 @@ func writeControlPlaneUpgradePolicy(object *ControlPlaneUpgradePolicy, stream *j stream.WriteMore() } stream.WriteObjectField("state") - writeUpgradePolicyState(object.state, stream) + WriteUpgradePolicyState(object.state, stream) count++ } present_ = object.bitmap_&2048 != 0 @@ -165,13 +165,13 @@ func UnmarshalControlPlaneUpgradePolicy(source interface{}) (object *ControlPlan if err != nil { return } - object = readControlPlaneUpgradePolicy(iterator) + object = ReadControlPlaneUpgradePolicy(iterator) err = iterator.Error return } -// readControlPlaneUpgradePolicy reads a value of the 'control_plane_upgrade_policy' type from the given iterator. -func readControlPlaneUpgradePolicy(iterator *jsoniter.Iterator) *ControlPlaneUpgradePolicy { +// ReadControlPlaneUpgradePolicy reads a value of the 'control_plane_upgrade_policy' type from the given iterator. +func ReadControlPlaneUpgradePolicy(iterator *jsoniter.Iterator) *ControlPlaneUpgradePolicy { object := &ControlPlaneUpgradePolicy{} for { field := iterator.ReadObject() @@ -232,7 +232,7 @@ func readControlPlaneUpgradePolicy(iterator *jsoniter.Iterator) *ControlPlaneUpg object.scheduleType = value object.bitmap_ |= 512 case "state": - value := readUpgradePolicyState(iterator) + value := ReadUpgradePolicyState(iterator) object.state = value object.bitmap_ |= 1024 case "upgrade_type": diff --git a/clustersmgmt/v1/cpu_total_node_role_os_metric_node_list_type_json.go b/clustersmgmt/v1/cpu_total_node_role_os_metric_node_list_type_json.go index 478d0e18d..e0605e5b0 100644 --- a/clustersmgmt/v1/cpu_total_node_role_os_metric_node_list_type_json.go +++ b/clustersmgmt/v1/cpu_total_node_role_os_metric_node_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalCPUTotalNodeRoleOSMetricNodeList(list []*CPUTotalNodeRoleOSMetricNode, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCPUTotalNodeRoleOSMetricNodeList(list, stream) + WriteCPUTotalNodeRoleOSMetricNodeList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalCPUTotalNodeRoleOSMetricNodeList(list []*CPUTotalNodeRoleOSMetricNod return stream.Error } -// writeCPUTotalNodeRoleOSMetricNodeList writes a list of value of the 'CPU_total_node_role_OS_metric_node' type to +// WriteCPUTotalNodeRoleOSMetricNodeList writes a list of value of the 'CPU_total_node_role_OS_metric_node' type to // the given stream. -func writeCPUTotalNodeRoleOSMetricNodeList(list []*CPUTotalNodeRoleOSMetricNode, stream *jsoniter.Stream) { +func WriteCPUTotalNodeRoleOSMetricNodeList(list []*CPUTotalNodeRoleOSMetricNode, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeCPUTotalNodeRoleOSMetricNode(value, stream) + WriteCPUTotalNodeRoleOSMetricNode(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalCPUTotalNodeRoleOSMetricNodeList(source interface{}) (items []*CPU if err != nil { return } - items = readCPUTotalNodeRoleOSMetricNodeList(iterator) + items = ReadCPUTotalNodeRoleOSMetricNodeList(iterator) err = iterator.Error return } -// readCPUTotalNodeRoleOSMetricNodeList reads list of values of the ”CPU_total_node_role_OS_metric_node' type from +// ReadCPUTotalNodeRoleOSMetricNodeList reads list of values of the ”CPU_total_node_role_OS_metric_node' type from // the given iterator. -func readCPUTotalNodeRoleOSMetricNodeList(iterator *jsoniter.Iterator) []*CPUTotalNodeRoleOSMetricNode { +func ReadCPUTotalNodeRoleOSMetricNodeList(iterator *jsoniter.Iterator) []*CPUTotalNodeRoleOSMetricNode { list := []*CPUTotalNodeRoleOSMetricNode{} for iterator.ReadArray() { - item := readCPUTotalNodeRoleOSMetricNode(iterator) + item := ReadCPUTotalNodeRoleOSMetricNode(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/cpu_total_node_role_os_metric_node_type.go b/clustersmgmt/v1/cpu_total_node_role_os_metric_node_type.go index 3f7908b58..baabb692b 100644 --- a/clustersmgmt/v1/cpu_total_node_role_os_metric_node_type.go +++ b/clustersmgmt/v1/cpu_total_node_role_os_metric_node_type.go @@ -154,6 +154,29 @@ func (l *CPUTotalNodeRoleOSMetricNodeList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *CPUTotalNodeRoleOSMetricNodeList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *CPUTotalNodeRoleOSMetricNodeList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *CPUTotalNodeRoleOSMetricNodeList) SetItems(items []*CPUTotalNodeRoleOSMetricNode) { + l.items = items +} + +// Items returns the items of the list. +func (l *CPUTotalNodeRoleOSMetricNodeList) Items() []*CPUTotalNodeRoleOSMetricNode { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *CPUTotalNodeRoleOSMetricNodeList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/cpu_total_node_role_os_metric_node_type_json.go b/clustersmgmt/v1/cpu_total_node_role_os_metric_node_type_json.go index 8dc25007b..080c82a34 100644 --- a/clustersmgmt/v1/cpu_total_node_role_os_metric_node_type_json.go +++ b/clustersmgmt/v1/cpu_total_node_role_os_metric_node_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalCPUTotalNodeRoleOSMetricNode writes a value of the 'CPU_total_node_role_OS_metric_node' type to the given writer. func MarshalCPUTotalNodeRoleOSMetricNode(object *CPUTotalNodeRoleOSMetricNode, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCPUTotalNodeRoleOSMetricNode(object, stream) + WriteCPUTotalNodeRoleOSMetricNode(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalCPUTotalNodeRoleOSMetricNode(object *CPUTotalNodeRoleOSMetricNode, w return stream.Error } -// writeCPUTotalNodeRoleOSMetricNode writes a value of the 'CPU_total_node_role_OS_metric_node' type to the given stream. -func writeCPUTotalNodeRoleOSMetricNode(object *CPUTotalNodeRoleOSMetricNode, stream *jsoniter.Stream) { +// WriteCPUTotalNodeRoleOSMetricNode writes a value of the 'CPU_total_node_role_OS_metric_node' type to the given stream. +func WriteCPUTotalNodeRoleOSMetricNode(object *CPUTotalNodeRoleOSMetricNode, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -58,7 +58,7 @@ func writeCPUTotalNodeRoleOSMetricNode(object *CPUTotalNodeRoleOSMetricNode, str stream.WriteMore() } stream.WriteObjectField("node_roles") - writeStringList(object.nodeRoles, stream) + WriteStringList(object.nodeRoles, stream) count++ } present_ = object.bitmap_&4 != 0 @@ -88,13 +88,13 @@ func UnmarshalCPUTotalNodeRoleOSMetricNode(source interface{}) (object *CPUTotal if err != nil { return } - object = readCPUTotalNodeRoleOSMetricNode(iterator) + object = ReadCPUTotalNodeRoleOSMetricNode(iterator) err = iterator.Error return } -// readCPUTotalNodeRoleOSMetricNode reads a value of the 'CPU_total_node_role_OS_metric_node' type from the given iterator. -func readCPUTotalNodeRoleOSMetricNode(iterator *jsoniter.Iterator) *CPUTotalNodeRoleOSMetricNode { +// ReadCPUTotalNodeRoleOSMetricNode reads a value of the 'CPU_total_node_role_OS_metric_node' type from the given iterator. +func ReadCPUTotalNodeRoleOSMetricNode(iterator *jsoniter.Iterator) *CPUTotalNodeRoleOSMetricNode { object := &CPUTotalNodeRoleOSMetricNode{} for { field := iterator.ReadObject() @@ -107,7 +107,7 @@ func readCPUTotalNodeRoleOSMetricNode(iterator *jsoniter.Iterator) *CPUTotalNode object.cpuTotal = value object.bitmap_ |= 1 case "node_roles": - value := readStringList(iterator) + value := ReadStringList(iterator) object.nodeRoles = value object.bitmap_ |= 2 case "operating_system": diff --git a/clustersmgmt/v1/cpu_totals_node_role_os_metric_node_list_type_json.go b/clustersmgmt/v1/cpu_totals_node_role_os_metric_node_list_type_json.go index 143e171e3..4f2f2c6e6 100644 --- a/clustersmgmt/v1/cpu_totals_node_role_os_metric_node_list_type_json.go +++ b/clustersmgmt/v1/cpu_totals_node_role_os_metric_node_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalCPUTotalsNodeRoleOSMetricNodeList(list []*CPUTotalsNodeRoleOSMetricNode, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCPUTotalsNodeRoleOSMetricNodeList(list, stream) + WriteCPUTotalsNodeRoleOSMetricNodeList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalCPUTotalsNodeRoleOSMetricNodeList(list []*CPUTotalsNodeRoleOSMetricN return stream.Error } -// writeCPUTotalsNodeRoleOSMetricNodeList writes a list of value of the 'CPU_totals_node_role_OS_metric_node' type to +// WriteCPUTotalsNodeRoleOSMetricNodeList writes a list of value of the 'CPU_totals_node_role_OS_metric_node' type to // the given stream. -func writeCPUTotalsNodeRoleOSMetricNodeList(list []*CPUTotalsNodeRoleOSMetricNode, stream *jsoniter.Stream) { +func WriteCPUTotalsNodeRoleOSMetricNodeList(list []*CPUTotalsNodeRoleOSMetricNode, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeCPUTotalsNodeRoleOSMetricNode(value, stream) + WriteCPUTotalsNodeRoleOSMetricNode(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalCPUTotalsNodeRoleOSMetricNodeList(source interface{}) (items []*CP if err != nil { return } - items = readCPUTotalsNodeRoleOSMetricNodeList(iterator) + items = ReadCPUTotalsNodeRoleOSMetricNodeList(iterator) err = iterator.Error return } -// readCPUTotalsNodeRoleOSMetricNodeList reads list of values of the ”CPU_totals_node_role_OS_metric_node' type from +// ReadCPUTotalsNodeRoleOSMetricNodeList reads list of values of the ”CPU_totals_node_role_OS_metric_node' type from // the given iterator. -func readCPUTotalsNodeRoleOSMetricNodeList(iterator *jsoniter.Iterator) []*CPUTotalsNodeRoleOSMetricNode { +func ReadCPUTotalsNodeRoleOSMetricNodeList(iterator *jsoniter.Iterator) []*CPUTotalsNodeRoleOSMetricNode { list := []*CPUTotalsNodeRoleOSMetricNode{} for iterator.ReadArray() { - item := readCPUTotalsNodeRoleOSMetricNode(iterator) + item := ReadCPUTotalsNodeRoleOSMetricNode(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/cpu_totals_node_role_os_metric_node_type.go b/clustersmgmt/v1/cpu_totals_node_role_os_metric_node_type.go index ff6cdd570..f37cb48f0 100644 --- a/clustersmgmt/v1/cpu_totals_node_role_os_metric_node_type.go +++ b/clustersmgmt/v1/cpu_totals_node_role_os_metric_node_type.go @@ -79,6 +79,29 @@ func (l *CPUTotalsNodeRoleOSMetricNodeList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *CPUTotalsNodeRoleOSMetricNodeList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *CPUTotalsNodeRoleOSMetricNodeList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *CPUTotalsNodeRoleOSMetricNodeList) SetItems(items []*CPUTotalsNodeRoleOSMetricNode) { + l.items = items +} + +// Items returns the items of the list. +func (l *CPUTotalsNodeRoleOSMetricNodeList) Items() []*CPUTotalsNodeRoleOSMetricNode { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *CPUTotalsNodeRoleOSMetricNodeList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/cpu_totals_node_role_os_metric_node_type_json.go b/clustersmgmt/v1/cpu_totals_node_role_os_metric_node_type_json.go index 306cb60c2..b2c1fab6a 100644 --- a/clustersmgmt/v1/cpu_totals_node_role_os_metric_node_type_json.go +++ b/clustersmgmt/v1/cpu_totals_node_role_os_metric_node_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalCPUTotalsNodeRoleOSMetricNode writes a value of the 'CPU_totals_node_role_OS_metric_node' type to the given writer. func MarshalCPUTotalsNodeRoleOSMetricNode(object *CPUTotalsNodeRoleOSMetricNode, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCPUTotalsNodeRoleOSMetricNode(object, stream) + WriteCPUTotalsNodeRoleOSMetricNode(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalCPUTotalsNodeRoleOSMetricNode(object *CPUTotalsNodeRoleOSMetricNode, return stream.Error } -// writeCPUTotalsNodeRoleOSMetricNode writes a value of the 'CPU_totals_node_role_OS_metric_node' type to the given stream. -func writeCPUTotalsNodeRoleOSMetricNode(object *CPUTotalsNodeRoleOSMetricNode, stream *jsoniter.Stream) { +// WriteCPUTotalsNodeRoleOSMetricNode writes a value of the 'CPU_totals_node_role_OS_metric_node' type to the given stream. +func WriteCPUTotalsNodeRoleOSMetricNode(object *CPUTotalsNodeRoleOSMetricNode, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeCPUTotalsNodeRoleOSMetricNode(object *CPUTotalsNodeRoleOSMetricNode, s stream.WriteMore() } stream.WriteObjectField("cpu_totals") - writeCPUTotalNodeRoleOSMetricNodeList(object.cpuTotals, stream) + WriteCPUTotalNodeRoleOSMetricNodeList(object.cpuTotals, stream) } stream.WriteObjectEnd() } @@ -60,13 +60,13 @@ func UnmarshalCPUTotalsNodeRoleOSMetricNode(source interface{}) (object *CPUTota if err != nil { return } - object = readCPUTotalsNodeRoleOSMetricNode(iterator) + object = ReadCPUTotalsNodeRoleOSMetricNode(iterator) err = iterator.Error return } -// readCPUTotalsNodeRoleOSMetricNode reads a value of the 'CPU_totals_node_role_OS_metric_node' type from the given iterator. -func readCPUTotalsNodeRoleOSMetricNode(iterator *jsoniter.Iterator) *CPUTotalsNodeRoleOSMetricNode { +// ReadCPUTotalsNodeRoleOSMetricNode reads a value of the 'CPU_totals_node_role_OS_metric_node' type from the given iterator. +func ReadCPUTotalsNodeRoleOSMetricNode(iterator *jsoniter.Iterator) *CPUTotalsNodeRoleOSMetricNode { object := &CPUTotalsNodeRoleOSMetricNode{} for { field := iterator.ReadObject() @@ -75,7 +75,7 @@ func readCPUTotalsNodeRoleOSMetricNode(iterator *jsoniter.Iterator) *CPUTotalsNo } switch field { case "cpu_totals": - value := readCPUTotalNodeRoleOSMetricNodeList(iterator) + value := ReadCPUTotalNodeRoleOSMetricNodeList(iterator) object.cpuTotals = value object.bitmap_ |= 1 default: diff --git a/clustersmgmt/v1/credential_request_list_type_json.go b/clustersmgmt/v1/credential_request_list_type_json.go index 2a45e5b56..37c5c0222 100644 --- a/clustersmgmt/v1/credential_request_list_type_json.go +++ b/clustersmgmt/v1/credential_request_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalCredentialRequestList(list []*CredentialRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCredentialRequestList(list, stream) + WriteCredentialRequestList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalCredentialRequestList(list []*CredentialRequest, writer io.Writer) e return stream.Error } -// writeCredentialRequestList writes a list of value of the 'credential_request' type to +// WriteCredentialRequestList writes a list of value of the 'credential_request' type to // the given stream. -func writeCredentialRequestList(list []*CredentialRequest, stream *jsoniter.Stream) { +func WriteCredentialRequestList(list []*CredentialRequest, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeCredentialRequest(value, stream) + WriteCredentialRequest(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalCredentialRequestList(source interface{}) (items []*CredentialRequ if err != nil { return } - items = readCredentialRequestList(iterator) + items = ReadCredentialRequestList(iterator) err = iterator.Error return } -// readCredentialRequestList reads list of values of the ”credential_request' type from +// ReadCredentialRequestList reads list of values of the ”credential_request' type from // the given iterator. -func readCredentialRequestList(iterator *jsoniter.Iterator) []*CredentialRequest { +func ReadCredentialRequestList(iterator *jsoniter.Iterator) []*CredentialRequest { list := []*CredentialRequest{} for iterator.ReadArray() { - item := readCredentialRequest(iterator) + item := ReadCredentialRequest(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/credential_request_type.go b/clustersmgmt/v1/credential_request_type.go index c79859a89..a068f29e6 100644 --- a/clustersmgmt/v1/credential_request_type.go +++ b/clustersmgmt/v1/credential_request_type.go @@ -154,6 +154,29 @@ func (l *CredentialRequestList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *CredentialRequestList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *CredentialRequestList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *CredentialRequestList) SetItems(items []*CredentialRequest) { + l.items = items +} + +// Items returns the items of the list. +func (l *CredentialRequestList) Items() []*CredentialRequest { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *CredentialRequestList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/credential_request_type_json.go b/clustersmgmt/v1/credential_request_type_json.go index 8e390c690..9bc354134 100644 --- a/clustersmgmt/v1/credential_request_type_json.go +++ b/clustersmgmt/v1/credential_request_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalCredentialRequest writes a value of the 'credential_request' type to the given writer. func MarshalCredentialRequest(object *CredentialRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCredentialRequest(object, stream) + WriteCredentialRequest(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalCredentialRequest(object *CredentialRequest, writer io.Writer) error return stream.Error } -// writeCredentialRequest writes a value of the 'credential_request' type to the given stream. -func writeCredentialRequest(object *CredentialRequest, stream *jsoniter.Stream) { +// WriteCredentialRequest writes a value of the 'credential_request' type to the given stream. +func WriteCredentialRequest(object *CredentialRequest, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -66,7 +66,7 @@ func writeCredentialRequest(object *CredentialRequest, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("policy_permissions") - writeStringList(object.policyPermissions, stream) + WriteStringList(object.policyPermissions, stream) count++ } present_ = object.bitmap_&8 != 0 @@ -87,13 +87,13 @@ func UnmarshalCredentialRequest(source interface{}) (object *CredentialRequest, if err != nil { return } - object = readCredentialRequest(iterator) + object = ReadCredentialRequest(iterator) err = iterator.Error return } -// readCredentialRequest reads a value of the 'credential_request' type from the given iterator. -func readCredentialRequest(iterator *jsoniter.Iterator) *CredentialRequest { +// ReadCredentialRequest reads a value of the 'credential_request' type from the given iterator. +func ReadCredentialRequest(iterator *jsoniter.Iterator) *CredentialRequest { object := &CredentialRequest{} for { field := iterator.ReadObject() @@ -110,7 +110,7 @@ func readCredentialRequest(iterator *jsoniter.Iterator) *CredentialRequest { object.namespace = value object.bitmap_ |= 2 case "policy_permissions": - value := readStringList(iterator) + value := ReadStringList(iterator) object.policyPermissions = value object.bitmap_ |= 4 case "service_account": diff --git a/clustersmgmt/v1/date_list_type_json.go b/clustersmgmt/v1/date_list_type_json.go index d610b4ee8..0fdfbe50c 100644 --- a/clustersmgmt/v1/date_list_type_json.go +++ b/clustersmgmt/v1/date_list_type_json.go @@ -31,7 +31,7 @@ import ( // the given writer. func MarshalDateList(list []time.Time, writer io.Writer) error { stream := helpers.NewStream(writer) - writeDateList(list, stream) + WriteDateList(list, stream) err := stream.Flush() if err != nil { return err @@ -39,9 +39,9 @@ func MarshalDateList(list []time.Time, writer io.Writer) error { return stream.Error } -// writeDateList writes a list of value of the 'date' type to +// WriteDateList writes a list of value of the 'date' type to // the given stream. -func writeDateList(list []time.Time, stream *jsoniter.Stream) { +func WriteDateList(list []time.Time, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -59,14 +59,14 @@ func UnmarshalDateList(source interface{}) (items []time.Time, err error) { if err != nil { return } - items = readDateList(iterator) + items = ReadDateList(iterator) err = iterator.Error return } -// readDateList reads list of values of the ”date' type from +// ReadDateList reads list of values of the ”date' type from // the given iterator. -func readDateList(iterator *jsoniter.Iterator) []time.Time { +func ReadDateList(iterator *jsoniter.Iterator) []time.Time { list := []time.Time{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/delete_protection_list_type_json.go b/clustersmgmt/v1/delete_protection_list_type_json.go index efbe31ea6..8c28f1ac2 100644 --- a/clustersmgmt/v1/delete_protection_list_type_json.go +++ b/clustersmgmt/v1/delete_protection_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalDeleteProtectionList(list []*DeleteProtection, writer io.Writer) error { stream := helpers.NewStream(writer) - writeDeleteProtectionList(list, stream) + WriteDeleteProtectionList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalDeleteProtectionList(list []*DeleteProtection, writer io.Writer) err return stream.Error } -// writeDeleteProtectionList writes a list of value of the 'delete_protection' type to +// WriteDeleteProtectionList writes a list of value of the 'delete_protection' type to // the given stream. -func writeDeleteProtectionList(list []*DeleteProtection, stream *jsoniter.Stream) { +func WriteDeleteProtectionList(list []*DeleteProtection, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeDeleteProtection(value, stream) + WriteDeleteProtection(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalDeleteProtectionList(source interface{}) (items []*DeleteProtectio if err != nil { return } - items = readDeleteProtectionList(iterator) + items = ReadDeleteProtectionList(iterator) err = iterator.Error return } -// readDeleteProtectionList reads list of values of the ”delete_protection' type from +// ReadDeleteProtectionList reads list of values of the ”delete_protection' type from // the given iterator. -func readDeleteProtectionList(iterator *jsoniter.Iterator) []*DeleteProtection { +func ReadDeleteProtectionList(iterator *jsoniter.Iterator) []*DeleteProtection { list := []*DeleteProtection{} for iterator.ReadArray() { - item := readDeleteProtection(iterator) + item := ReadDeleteProtection(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/delete_protection_type.go b/clustersmgmt/v1/delete_protection_type.go index 99f2f572d..deb99d661 100644 --- a/clustersmgmt/v1/delete_protection_type.go +++ b/clustersmgmt/v1/delete_protection_type.go @@ -90,6 +90,29 @@ func (l *DeleteProtectionList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *DeleteProtectionList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *DeleteProtectionList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *DeleteProtectionList) SetItems(items []*DeleteProtection) { + l.items = items +} + +// Items returns the items of the list. +func (l *DeleteProtectionList) Items() []*DeleteProtection { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *DeleteProtectionList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/delete_protection_type_json.go b/clustersmgmt/v1/delete_protection_type_json.go index 6d2914448..f2ff6f32a 100644 --- a/clustersmgmt/v1/delete_protection_type_json.go +++ b/clustersmgmt/v1/delete_protection_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalDeleteProtection writes a value of the 'delete_protection' type to the given writer. func MarshalDeleteProtection(object *DeleteProtection, writer io.Writer) error { stream := helpers.NewStream(writer) - writeDeleteProtection(object, stream) + WriteDeleteProtection(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalDeleteProtection(object *DeleteProtection, writer io.Writer) error { return stream.Error } -// writeDeleteProtection writes a value of the 'delete_protection' type to the given stream. -func writeDeleteProtection(object *DeleteProtection, stream *jsoniter.Stream) { +// WriteDeleteProtection writes a value of the 'delete_protection' type to the given stream. +func WriteDeleteProtection(object *DeleteProtection, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalDeleteProtection(source interface{}) (object *DeleteProtection, er if err != nil { return } - object = readDeleteProtection(iterator) + object = ReadDeleteProtection(iterator) err = iterator.Error return } -// readDeleteProtection reads a value of the 'delete_protection' type from the given iterator. -func readDeleteProtection(iterator *jsoniter.Iterator) *DeleteProtection { +// ReadDeleteProtection reads a value of the 'delete_protection' type from the given iterator. +func ReadDeleteProtection(iterator *jsoniter.Iterator) *DeleteProtection { object := &DeleteProtection{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/detection_type_list_type_json.go b/clustersmgmt/v1/detection_type_list_type_json.go index 93f1bffb8..27860453c 100644 --- a/clustersmgmt/v1/detection_type_list_type_json.go +++ b/clustersmgmt/v1/detection_type_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalDetectionTypeList(list []DetectionType, writer io.Writer) error { stream := helpers.NewStream(writer) - writeDetectionTypeList(list, stream) + WriteDetectionTypeList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalDetectionTypeList(list []DetectionType, writer io.Writer) error { return stream.Error } -// writeDetectionTypeList writes a list of value of the 'detection_type' type to +// WriteDetectionTypeList writes a list of value of the 'detection_type' type to // the given stream. -func writeDetectionTypeList(list []DetectionType, stream *jsoniter.Stream) { +func WriteDetectionTypeList(list []DetectionType, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalDetectionTypeList(source interface{}) (items []DetectionType, err if err != nil { return } - items = readDetectionTypeList(iterator) + items = ReadDetectionTypeList(iterator) err = iterator.Error return } -// readDetectionTypeList reads list of values of the ”detection_type' type from +// ReadDetectionTypeList reads list of values of the ”detection_type' type from // the given iterator. -func readDetectionTypeList(iterator *jsoniter.Iterator) []DetectionType { +func ReadDetectionTypeList(iterator *jsoniter.Iterator) []DetectionType { list := []DetectionType{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/dns_domain_list_type_json.go b/clustersmgmt/v1/dns_domain_list_type_json.go index 52331646e..5b77f9754 100644 --- a/clustersmgmt/v1/dns_domain_list_type_json.go +++ b/clustersmgmt/v1/dns_domain_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalDNSDomainList(list []*DNSDomain, writer io.Writer) error { stream := helpers.NewStream(writer) - writeDNSDomainList(list, stream) + WriteDNSDomainList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalDNSDomainList(list []*DNSDomain, writer io.Writer) error { return stream.Error } -// writeDNSDomainList writes a list of value of the 'DNS_domain' type to +// WriteDNSDomainList writes a list of value of the 'DNS_domain' type to // the given stream. -func writeDNSDomainList(list []*DNSDomain, stream *jsoniter.Stream) { +func WriteDNSDomainList(list []*DNSDomain, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeDNSDomain(value, stream) + WriteDNSDomain(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalDNSDomainList(source interface{}) (items []*DNSDomain, err error) if err != nil { return } - items = readDNSDomainList(iterator) + items = ReadDNSDomainList(iterator) err = iterator.Error return } -// readDNSDomainList reads list of values of the ”DNS_domain' type from +// ReadDNSDomainList reads list of values of the ”DNS_domain' type from // the given iterator. -func readDNSDomainList(iterator *jsoniter.Iterator) []*DNSDomain { +func ReadDNSDomainList(iterator *jsoniter.Iterator) []*DNSDomain { list := []*DNSDomain{} for iterator.ReadArray() { - item := readDNSDomain(iterator) + item := ReadDNSDomain(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/dns_domain_type.go b/clustersmgmt/v1/dns_domain_type.go index 56794ad58..6c9d98e28 100644 --- a/clustersmgmt/v1/dns_domain_type.go +++ b/clustersmgmt/v1/dns_domain_type.go @@ -60,7 +60,7 @@ func (o *DNSDomain) Kind() string { return DNSDomainKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *DNSDomain) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -282,6 +282,29 @@ func (l *DNSDomainList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *DNSDomainList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *DNSDomainList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *DNSDomainList) SetItems(items []*DNSDomain) { + l.items = items +} + +// Items returns the items of the list. +func (l *DNSDomainList) Items() []*DNSDomain { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *DNSDomainList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/dns_domain_type_json.go b/clustersmgmt/v1/dns_domain_type_json.go index 57af53313..7a5c260c0 100644 --- a/clustersmgmt/v1/dns_domain_type_json.go +++ b/clustersmgmt/v1/dns_domain_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalDNSDomain writes a value of the 'DNS_domain' type to the given writer. func MarshalDNSDomain(object *DNSDomain, writer io.Writer) error { stream := helpers.NewStream(writer) - writeDNSDomain(object, stream) + WriteDNSDomain(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalDNSDomain(object *DNSDomain, writer io.Writer) error { return stream.Error } -// writeDNSDomain writes a value of the 'DNS_domain' type to the given stream. -func writeDNSDomain(object *DNSDomain, stream *jsoniter.Stream) { +// WriteDNSDomain writes a value of the 'DNS_domain' type to the given stream. +func WriteDNSDomain(object *DNSDomain, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -72,7 +72,7 @@ func writeDNSDomain(object *DNSDomain, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("cluster") - writeClusterLink(object.cluster, stream) + WriteClusterLink(object.cluster, stream) count++ } present_ = object.bitmap_&16 != 0 @@ -90,7 +90,7 @@ func writeDNSDomain(object *DNSDomain, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("organization") - writeOrganizationLink(object.organization, stream) + WriteOrganizationLink(object.organization, stream) count++ } present_ = object.bitmap_&64 != 0 @@ -120,13 +120,13 @@ func UnmarshalDNSDomain(source interface{}) (object *DNSDomain, err error) { if err != nil { return } - object = readDNSDomain(iterator) + object = ReadDNSDomain(iterator) err = iterator.Error return } -// readDNSDomain reads a value of the 'DNS_domain' type from the given iterator. -func readDNSDomain(iterator *jsoniter.Iterator) *DNSDomain { +// ReadDNSDomain reads a value of the 'DNS_domain' type from the given iterator. +func ReadDNSDomain(iterator *jsoniter.Iterator) *DNSDomain { object := &DNSDomain{} for { field := iterator.ReadObject() @@ -146,7 +146,7 @@ func readDNSDomain(iterator *jsoniter.Iterator) *DNSDomain { object.href = iterator.ReadString() object.bitmap_ |= 4 case "cluster": - value := readClusterLink(iterator) + value := ReadClusterLink(iterator) object.cluster = value object.bitmap_ |= 8 case "cluster_arch": @@ -155,7 +155,7 @@ func readDNSDomain(iterator *jsoniter.Iterator) *DNSDomain { object.clusterArch = value object.bitmap_ |= 16 case "organization": - value := readOrganizationLink(iterator) + value := ReadOrganizationLink(iterator) object.organization = value object.bitmap_ |= 32 case "reserved_at_timestamp": diff --git a/clustersmgmt/v1/dns_domains_resource_json.go b/clustersmgmt/v1/dns_domains_resource_json.go index 77dadef23..0374e7a68 100644 --- a/clustersmgmt/v1/dns_domains_resource_json.go +++ b/clustersmgmt/v1/dns_domains_resource_json.go @@ -57,7 +57,7 @@ func readDNSDomainsListResponse(response *DNSDomainsListResponse, reader io.Read value := iterator.ReadInt() response.total = &value case "items": - items := readDNSDomainList(iterator) + items := ReadDNSDomainList(iterator) response.items = &DNSDomainList{ items: items, } diff --git a/clustersmgmt/v1/dns_list_type_json.go b/clustersmgmt/v1/dns_list_type_json.go index a3c619a55..95b20304a 100644 --- a/clustersmgmt/v1/dns_list_type_json.go +++ b/clustersmgmt/v1/dns_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalDNSList(list []*DNS, writer io.Writer) error { stream := helpers.NewStream(writer) - writeDNSList(list, stream) + WriteDNSList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalDNSList(list []*DNS, writer io.Writer) error { return stream.Error } -// writeDNSList writes a list of value of the 'DNS' type to +// WriteDNSList writes a list of value of the 'DNS' type to // the given stream. -func writeDNSList(list []*DNS, stream *jsoniter.Stream) { +func WriteDNSList(list []*DNS, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeDNS(value, stream) + WriteDNS(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalDNSList(source interface{}) (items []*DNS, err error) { if err != nil { return } - items = readDNSList(iterator) + items = ReadDNSList(iterator) err = iterator.Error return } -// readDNSList reads list of values of the ”DNS' type from +// ReadDNSList reads list of values of the ”DNS' type from // the given iterator. -func readDNSList(iterator *jsoniter.Iterator) []*DNS { +func ReadDNSList(iterator *jsoniter.Iterator) []*DNS { list := []*DNS{} for iterator.ReadArray() { - item := readDNS(iterator) + item := ReadDNS(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/dns_type.go b/clustersmgmt/v1/dns_type.go index 320e5a75b..4f51e51b1 100644 --- a/clustersmgmt/v1/dns_type.go +++ b/clustersmgmt/v1/dns_type.go @@ -168,6 +168,29 @@ func (l *DNSList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *DNSList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *DNSList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *DNSList) SetItems(items []*DNS) { + l.items = items +} + +// Items returns the items of the list. +func (l *DNSList) Items() []*DNS { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *DNSList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/dns_type_json.go b/clustersmgmt/v1/dns_type_json.go index 25b1c8135..3f13d53c4 100644 --- a/clustersmgmt/v1/dns_type_json.go +++ b/clustersmgmt/v1/dns_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalDNS writes a value of the 'DNS' type to the given writer. func MarshalDNS(object *DNS, writer io.Writer) error { stream := helpers.NewStream(writer) - writeDNS(object, stream) + WriteDNS(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalDNS(object *DNS, writer io.Writer) error { return stream.Error } -// writeDNS writes a value of the 'DNS' type to the given stream. -func writeDNS(object *DNS, stream *jsoniter.Stream) { +// WriteDNS writes a value of the 'DNS' type to the given stream. +func WriteDNS(object *DNS, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalDNS(source interface{}) (object *DNS, err error) { if err != nil { return } - object = readDNS(iterator) + object = ReadDNS(iterator) err = iterator.Error return } -// readDNS reads a value of the 'DNS' type from the given iterator. -func readDNS(iterator *jsoniter.Iterator) *DNS { +// ReadDNS reads a value of the 'DNS' type from the given iterator. +func ReadDNS(iterator *jsoniter.Iterator) *DNS { object := &DNS{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/ec_2_metadata_http_tokens_list_type_json.go b/clustersmgmt/v1/ec_2_metadata_http_tokens_list_type_json.go index 791de7cf2..68c2819c0 100644 --- a/clustersmgmt/v1/ec_2_metadata_http_tokens_list_type_json.go +++ b/clustersmgmt/v1/ec_2_metadata_http_tokens_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalEc2MetadataHttpTokensList(list []Ec2MetadataHttpTokens, writer io.Writer) error { stream := helpers.NewStream(writer) - writeEc2MetadataHttpTokensList(list, stream) + WriteEc2MetadataHttpTokensList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalEc2MetadataHttpTokensList(list []Ec2MetadataHttpTokens, writer io.Wr return stream.Error } -// writeEc2MetadataHttpTokensList writes a list of value of the 'ec_2_metadata_http_tokens' type to +// WriteEc2MetadataHttpTokensList writes a list of value of the 'ec_2_metadata_http_tokens' type to // the given stream. -func writeEc2MetadataHttpTokensList(list []Ec2MetadataHttpTokens, stream *jsoniter.Stream) { +func WriteEc2MetadataHttpTokensList(list []Ec2MetadataHttpTokens, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalEc2MetadataHttpTokensList(source interface{}) (items []Ec2Metadata if err != nil { return } - items = readEc2MetadataHttpTokensList(iterator) + items = ReadEc2MetadataHttpTokensList(iterator) err = iterator.Error return } -// readEc2MetadataHttpTokensList reads list of values of the ”ec_2_metadata_http_tokens' type from +// ReadEc2MetadataHttpTokensList reads list of values of the ”ec_2_metadata_http_tokens' type from // the given iterator. -func readEc2MetadataHttpTokensList(iterator *jsoniter.Iterator) []Ec2MetadataHttpTokens { +func ReadEc2MetadataHttpTokensList(iterator *jsoniter.Iterator) []Ec2MetadataHttpTokens { list := []Ec2MetadataHttpTokens{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/encryption_key_list_type_json.go b/clustersmgmt/v1/encryption_key_list_type_json.go index ced90b030..7bb6ad991 100644 --- a/clustersmgmt/v1/encryption_key_list_type_json.go +++ b/clustersmgmt/v1/encryption_key_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalEncryptionKeyList(list []*EncryptionKey, writer io.Writer) error { stream := helpers.NewStream(writer) - writeEncryptionKeyList(list, stream) + WriteEncryptionKeyList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalEncryptionKeyList(list []*EncryptionKey, writer io.Writer) error { return stream.Error } -// writeEncryptionKeyList writes a list of value of the 'encryption_key' type to +// WriteEncryptionKeyList writes a list of value of the 'encryption_key' type to // the given stream. -func writeEncryptionKeyList(list []*EncryptionKey, stream *jsoniter.Stream) { +func WriteEncryptionKeyList(list []*EncryptionKey, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeEncryptionKey(value, stream) + WriteEncryptionKey(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalEncryptionKeyList(source interface{}) (items []*EncryptionKey, err if err != nil { return } - items = readEncryptionKeyList(iterator) + items = ReadEncryptionKeyList(iterator) err = iterator.Error return } -// readEncryptionKeyList reads list of values of the ”encryption_key' type from +// ReadEncryptionKeyList reads list of values of the ”encryption_key' type from // the given iterator. -func readEncryptionKeyList(iterator *jsoniter.Iterator) []*EncryptionKey { +func ReadEncryptionKeyList(iterator *jsoniter.Iterator) []*EncryptionKey { list := []*EncryptionKey{} for iterator.ReadArray() { - item := readEncryptionKey(iterator) + item := ReadEncryptionKey(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/encryption_key_type.go b/clustersmgmt/v1/encryption_key_type.go index 841ec059c..96ac6afba 100644 --- a/clustersmgmt/v1/encryption_key_type.go +++ b/clustersmgmt/v1/encryption_key_type.go @@ -52,7 +52,7 @@ func (o *EncryptionKey) Kind() string { return EncryptionKeyKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *EncryptionKey) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -182,6 +182,29 @@ func (l *EncryptionKeyList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *EncryptionKeyList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *EncryptionKeyList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *EncryptionKeyList) SetItems(items []*EncryptionKey) { + l.items = items +} + +// Items returns the items of the list. +func (l *EncryptionKeyList) Items() []*EncryptionKey { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *EncryptionKeyList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/encryption_key_type_json.go b/clustersmgmt/v1/encryption_key_type_json.go index cf12ffb5b..8010cf887 100644 --- a/clustersmgmt/v1/encryption_key_type_json.go +++ b/clustersmgmt/v1/encryption_key_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalEncryptionKey writes a value of the 'encryption_key' type to the given writer. func MarshalEncryptionKey(object *EncryptionKey, writer io.Writer) error { stream := helpers.NewStream(writer) - writeEncryptionKey(object, stream) + WriteEncryptionKey(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalEncryptionKey(object *EncryptionKey, writer io.Writer) error { return stream.Error } -// writeEncryptionKey writes a value of the 'encryption_key' type to the given stream. -func writeEncryptionKey(object *EncryptionKey, stream *jsoniter.Stream) { +// WriteEncryptionKey writes a value of the 'encryption_key' type to the given stream. +func WriteEncryptionKey(object *EncryptionKey, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -83,13 +83,13 @@ func UnmarshalEncryptionKey(source interface{}) (object *EncryptionKey, err erro if err != nil { return } - object = readEncryptionKey(iterator) + object = ReadEncryptionKey(iterator) err = iterator.Error return } -// readEncryptionKey reads a value of the 'encryption_key' type from the given iterator. -func readEncryptionKey(iterator *jsoniter.Iterator) *EncryptionKey { +// ReadEncryptionKey reads a value of the 'encryption_key' type from the given iterator. +func ReadEncryptionKey(iterator *jsoniter.Iterator) *EncryptionKey { object := &EncryptionKey{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/encryption_keys_inquiry_resource_json.go b/clustersmgmt/v1/encryption_keys_inquiry_resource_json.go index d74703b25..e5e12d7ac 100644 --- a/clustersmgmt/v1/encryption_keys_inquiry_resource_json.go +++ b/clustersmgmt/v1/encryption_keys_inquiry_resource_json.go @@ -49,7 +49,7 @@ func readEncryptionKeysInquirySearchResponse(response *EncryptionKeysInquirySear value := iterator.ReadInt() response.total = &value case "items": - items := readEncryptionKeyList(iterator) + items := ReadEncryptionKeyList(iterator) response.items = &EncryptionKeyList{ items: items, } diff --git a/clustersmgmt/v1/environment_list_type_json.go b/clustersmgmt/v1/environment_list_type_json.go index 8516034e6..7ecc7f8fe 100644 --- a/clustersmgmt/v1/environment_list_type_json.go +++ b/clustersmgmt/v1/environment_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalEnvironmentList(list []*Environment, writer io.Writer) error { stream := helpers.NewStream(writer) - writeEnvironmentList(list, stream) + WriteEnvironmentList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalEnvironmentList(list []*Environment, writer io.Writer) error { return stream.Error } -// writeEnvironmentList writes a list of value of the 'environment' type to +// WriteEnvironmentList writes a list of value of the 'environment' type to // the given stream. -func writeEnvironmentList(list []*Environment, stream *jsoniter.Stream) { +func WriteEnvironmentList(list []*Environment, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeEnvironment(value, stream) + WriteEnvironment(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalEnvironmentList(source interface{}) (items []*Environment, err err if err != nil { return } - items = readEnvironmentList(iterator) + items = ReadEnvironmentList(iterator) err = iterator.Error return } -// readEnvironmentList reads list of values of the ”environment' type from +// ReadEnvironmentList reads list of values of the ”environment' type from // the given iterator. -func readEnvironmentList(iterator *jsoniter.Iterator) []*Environment { +func ReadEnvironmentList(iterator *jsoniter.Iterator) []*Environment { list := []*Environment{} for iterator.ReadArray() { - item := readEnvironment(iterator) + item := ReadEnvironment(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/environment_type.go b/clustersmgmt/v1/environment_type.go index 9a7d1885c..cb936cded 100644 --- a/clustersmgmt/v1/environment_type.go +++ b/clustersmgmt/v1/environment_type.go @@ -158,6 +158,29 @@ func (l *EnvironmentList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *EnvironmentList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *EnvironmentList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *EnvironmentList) SetItems(items []*Environment) { + l.items = items +} + +// Items returns the items of the list. +func (l *EnvironmentList) Items() []*Environment { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *EnvironmentList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/environment_type_json.go b/clustersmgmt/v1/environment_type_json.go index 5e1411be9..88bb1b0a8 100644 --- a/clustersmgmt/v1/environment_type_json.go +++ b/clustersmgmt/v1/environment_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalEnvironment writes a value of the 'environment' type to the given writer. func MarshalEnvironment(object *Environment, writer io.Writer) error { stream := helpers.NewStream(writer) - writeEnvironment(object, stream) + WriteEnvironment(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalEnvironment(object *Environment, writer io.Writer) error { return stream.Error } -// writeEnvironment writes a value of the 'environment' type to the given stream. -func writeEnvironment(object *Environment, stream *jsoniter.Stream) { +// WriteEnvironment writes a value of the 'environment' type to the given stream. +func WriteEnvironment(object *Environment, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -88,13 +88,13 @@ func UnmarshalEnvironment(source interface{}) (object *Environment, err error) { if err != nil { return } - object = readEnvironment(iterator) + object = ReadEnvironment(iterator) err = iterator.Error return } -// readEnvironment reads a value of the 'environment' type from the given iterator. -func readEnvironment(iterator *jsoniter.Iterator) *Environment { +// ReadEnvironment reads a value of the 'environment' type from the given iterator. +func ReadEnvironment(iterator *jsoniter.Iterator) *Environment { object := &Environment{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/event_list_type_json.go b/clustersmgmt/v1/event_list_type_json.go index b714c6717..65b40ea3d 100644 --- a/clustersmgmt/v1/event_list_type_json.go +++ b/clustersmgmt/v1/event_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalEventList(list []*Event, writer io.Writer) error { stream := helpers.NewStream(writer) - writeEventList(list, stream) + WriteEventList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalEventList(list []*Event, writer io.Writer) error { return stream.Error } -// writeEventList writes a list of value of the 'event' type to +// WriteEventList writes a list of value of the 'event' type to // the given stream. -func writeEventList(list []*Event, stream *jsoniter.Stream) { +func WriteEventList(list []*Event, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeEvent(value, stream) + WriteEvent(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalEventList(source interface{}) (items []*Event, err error) { if err != nil { return } - items = readEventList(iterator) + items = ReadEventList(iterator) err = iterator.Error return } -// readEventList reads list of values of the ”event' type from +// ReadEventList reads list of values of the ”event' type from // the given iterator. -func readEventList(iterator *jsoniter.Iterator) []*Event { +func ReadEventList(iterator *jsoniter.Iterator) []*Event { list := []*Event{} for iterator.ReadArray() { - item := readEvent(iterator) + item := ReadEvent(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/event_type.go b/clustersmgmt/v1/event_type.go index 80f4f89d7..67d44e25c 100644 --- a/clustersmgmt/v1/event_type.go +++ b/clustersmgmt/v1/event_type.go @@ -110,6 +110,29 @@ func (l *EventList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *EventList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *EventList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *EventList) SetItems(items []*Event) { + l.items = items +} + +// Items returns the items of the list. +func (l *EventList) Items() []*Event { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *EventList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/event_type_json.go b/clustersmgmt/v1/event_type_json.go index 7e5bf1ca9..7709228a2 100644 --- a/clustersmgmt/v1/event_type_json.go +++ b/clustersmgmt/v1/event_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalEvent writes a value of the 'event' type to the given writer. func MarshalEvent(object *Event, writer io.Writer) error { stream := helpers.NewStream(writer) - writeEvent(object, stream) + WriteEvent(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalEvent(object *Event, writer io.Writer) error { return stream.Error } -// writeEvent writes a value of the 'event' type to the given stream. -func writeEvent(object *Event, stream *jsoniter.Stream) { +// WriteEvent writes a value of the 'event' type to the given stream. +func WriteEvent(object *Event, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -90,13 +90,13 @@ func UnmarshalEvent(source interface{}) (object *Event, err error) { if err != nil { return } - object = readEvent(iterator) + object = ReadEvent(iterator) err = iterator.Error return } -// readEvent reads a value of the 'event' type from the given iterator. -func readEvent(iterator *jsoniter.Iterator) *Event { +// ReadEvent reads a value of the 'event' type from the given iterator. +func ReadEvent(iterator *jsoniter.Iterator) *Event { object := &Event{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/external_auth_claim_list_type_json.go b/clustersmgmt/v1/external_auth_claim_list_type_json.go index 1fc125a0b..2eb4e63df 100644 --- a/clustersmgmt/v1/external_auth_claim_list_type_json.go +++ b/clustersmgmt/v1/external_auth_claim_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalExternalAuthClaimList(list []*ExternalAuthClaim, writer io.Writer) error { stream := helpers.NewStream(writer) - writeExternalAuthClaimList(list, stream) + WriteExternalAuthClaimList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalExternalAuthClaimList(list []*ExternalAuthClaim, writer io.Writer) e return stream.Error } -// writeExternalAuthClaimList writes a list of value of the 'external_auth_claim' type to +// WriteExternalAuthClaimList writes a list of value of the 'external_auth_claim' type to // the given stream. -func writeExternalAuthClaimList(list []*ExternalAuthClaim, stream *jsoniter.Stream) { +func WriteExternalAuthClaimList(list []*ExternalAuthClaim, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeExternalAuthClaim(value, stream) + WriteExternalAuthClaim(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalExternalAuthClaimList(source interface{}) (items []*ExternalAuthCl if err != nil { return } - items = readExternalAuthClaimList(iterator) + items = ReadExternalAuthClaimList(iterator) err = iterator.Error return } -// readExternalAuthClaimList reads list of values of the ”external_auth_claim' type from +// ReadExternalAuthClaimList reads list of values of the ”external_auth_claim' type from // the given iterator. -func readExternalAuthClaimList(iterator *jsoniter.Iterator) []*ExternalAuthClaim { +func ReadExternalAuthClaimList(iterator *jsoniter.Iterator) []*ExternalAuthClaim { list := []*ExternalAuthClaim{} for iterator.ReadArray() { - item := readExternalAuthClaim(iterator) + item := ReadExternalAuthClaim(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/external_auth_claim_type.go b/clustersmgmt/v1/external_auth_claim_type.go index e35f944ca..9653d4ac7 100644 --- a/clustersmgmt/v1/external_auth_claim_type.go +++ b/clustersmgmt/v1/external_auth_claim_type.go @@ -106,6 +106,29 @@ func (l *ExternalAuthClaimList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ExternalAuthClaimList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ExternalAuthClaimList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ExternalAuthClaimList) SetItems(items []*ExternalAuthClaim) { + l.items = items +} + +// Items returns the items of the list. +func (l *ExternalAuthClaimList) Items() []*ExternalAuthClaim { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ExternalAuthClaimList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/external_auth_claim_type_json.go b/clustersmgmt/v1/external_auth_claim_type_json.go index 9a66261d7..3aa82dd13 100644 --- a/clustersmgmt/v1/external_auth_claim_type_json.go +++ b/clustersmgmt/v1/external_auth_claim_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalExternalAuthClaim writes a value of the 'external_auth_claim' type to the given writer. func MarshalExternalAuthClaim(object *ExternalAuthClaim, writer io.Writer) error { stream := helpers.NewStream(writer) - writeExternalAuthClaim(object, stream) + WriteExternalAuthClaim(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalExternalAuthClaim(object *ExternalAuthClaim, writer io.Writer) error return stream.Error } -// writeExternalAuthClaim writes a value of the 'external_auth_claim' type to the given stream. -func writeExternalAuthClaim(object *ExternalAuthClaim, stream *jsoniter.Stream) { +// WriteExternalAuthClaim writes a value of the 'external_auth_claim' type to the given stream. +func WriteExternalAuthClaim(object *ExternalAuthClaim, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeExternalAuthClaim(object *ExternalAuthClaim, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("mappings") - writeTokenClaimMappings(object.mappings, stream) + WriteTokenClaimMappings(object.mappings, stream) count++ } present_ = object.bitmap_&2 != 0 && object.validationRules != nil @@ -57,7 +57,7 @@ func writeExternalAuthClaim(object *ExternalAuthClaim, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("validation_rules") - writeTokenClaimValidationRuleList(object.validationRules, stream) + WriteTokenClaimValidationRuleList(object.validationRules, stream) } stream.WriteObjectEnd() } @@ -69,13 +69,13 @@ func UnmarshalExternalAuthClaim(source interface{}) (object *ExternalAuthClaim, if err != nil { return } - object = readExternalAuthClaim(iterator) + object = ReadExternalAuthClaim(iterator) err = iterator.Error return } -// readExternalAuthClaim reads a value of the 'external_auth_claim' type from the given iterator. -func readExternalAuthClaim(iterator *jsoniter.Iterator) *ExternalAuthClaim { +// ReadExternalAuthClaim reads a value of the 'external_auth_claim' type from the given iterator. +func ReadExternalAuthClaim(iterator *jsoniter.Iterator) *ExternalAuthClaim { object := &ExternalAuthClaim{} for { field := iterator.ReadObject() @@ -84,11 +84,11 @@ func readExternalAuthClaim(iterator *jsoniter.Iterator) *ExternalAuthClaim { } switch field { case "mappings": - value := readTokenClaimMappings(iterator) + value := ReadTokenClaimMappings(iterator) object.mappings = value object.bitmap_ |= 1 case "validation_rules": - value := readTokenClaimValidationRuleList(iterator) + value := ReadTokenClaimValidationRuleList(iterator) object.validationRules = value object.bitmap_ |= 2 default: diff --git a/clustersmgmt/v1/external_auth_client_config_list_type_json.go b/clustersmgmt/v1/external_auth_client_config_list_type_json.go index 7b20a1144..d535fed57 100644 --- a/clustersmgmt/v1/external_auth_client_config_list_type_json.go +++ b/clustersmgmt/v1/external_auth_client_config_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalExternalAuthClientConfigList(list []*ExternalAuthClientConfig, writer io.Writer) error { stream := helpers.NewStream(writer) - writeExternalAuthClientConfigList(list, stream) + WriteExternalAuthClientConfigList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalExternalAuthClientConfigList(list []*ExternalAuthClientConfig, write return stream.Error } -// writeExternalAuthClientConfigList writes a list of value of the 'external_auth_client_config' type to +// WriteExternalAuthClientConfigList writes a list of value of the 'external_auth_client_config' type to // the given stream. -func writeExternalAuthClientConfigList(list []*ExternalAuthClientConfig, stream *jsoniter.Stream) { +func WriteExternalAuthClientConfigList(list []*ExternalAuthClientConfig, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeExternalAuthClientConfig(value, stream) + WriteExternalAuthClientConfig(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalExternalAuthClientConfigList(source interface{}) (items []*Externa if err != nil { return } - items = readExternalAuthClientConfigList(iterator) + items = ReadExternalAuthClientConfigList(iterator) err = iterator.Error return } -// readExternalAuthClientConfigList reads list of values of the ”external_auth_client_config' type from +// ReadExternalAuthClientConfigList reads list of values of the ”external_auth_client_config' type from // the given iterator. -func readExternalAuthClientConfigList(iterator *jsoniter.Iterator) []*ExternalAuthClientConfig { +func ReadExternalAuthClientConfigList(iterator *jsoniter.Iterator) []*ExternalAuthClientConfig { list := []*ExternalAuthClientConfig{} for iterator.ReadArray() { - item := readExternalAuthClientConfig(iterator) + item := ReadExternalAuthClientConfig(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/external_auth_client_config_type.go b/clustersmgmt/v1/external_auth_client_config_type.go index 4628e54d5..e398ce5db 100644 --- a/clustersmgmt/v1/external_auth_client_config_type.go +++ b/clustersmgmt/v1/external_auth_client_config_type.go @@ -155,6 +155,29 @@ func (l *ExternalAuthClientConfigList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ExternalAuthClientConfigList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ExternalAuthClientConfigList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ExternalAuthClientConfigList) SetItems(items []*ExternalAuthClientConfig) { + l.items = items +} + +// Items returns the items of the list. +func (l *ExternalAuthClientConfigList) Items() []*ExternalAuthClientConfig { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ExternalAuthClientConfigList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/external_auth_client_config_type_json.go b/clustersmgmt/v1/external_auth_client_config_type_json.go index 401f81c7e..213ebab09 100644 --- a/clustersmgmt/v1/external_auth_client_config_type_json.go +++ b/clustersmgmt/v1/external_auth_client_config_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalExternalAuthClientConfig writes a value of the 'external_auth_client_config' type to the given writer. func MarshalExternalAuthClientConfig(object *ExternalAuthClientConfig, writer io.Writer) error { stream := helpers.NewStream(writer) - writeExternalAuthClientConfig(object, stream) + WriteExternalAuthClientConfig(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalExternalAuthClientConfig(object *ExternalAuthClientConfig, writer io return stream.Error } -// writeExternalAuthClientConfig writes a value of the 'external_auth_client_config' type to the given stream. -func writeExternalAuthClientConfig(object *ExternalAuthClientConfig, stream *jsoniter.Stream) { +// WriteExternalAuthClientConfig writes a value of the 'external_auth_client_config' type to the given stream. +func WriteExternalAuthClientConfig(object *ExternalAuthClientConfig, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -57,7 +57,7 @@ func writeExternalAuthClientConfig(object *ExternalAuthClientConfig, stream *jso stream.WriteMore() } stream.WriteObjectField("component") - writeClientComponent(object.component, stream) + WriteClientComponent(object.component, stream) count++ } present_ = object.bitmap_&4 != 0 && object.extraScopes != nil @@ -66,7 +66,7 @@ func writeExternalAuthClientConfig(object *ExternalAuthClientConfig, stream *jso stream.WriteMore() } stream.WriteObjectField("extra_scopes") - writeStringList(object.extraScopes, stream) + WriteStringList(object.extraScopes, stream) count++ } present_ = object.bitmap_&8 != 0 @@ -87,13 +87,13 @@ func UnmarshalExternalAuthClientConfig(source interface{}) (object *ExternalAuth if err != nil { return } - object = readExternalAuthClientConfig(iterator) + object = ReadExternalAuthClientConfig(iterator) err = iterator.Error return } -// readExternalAuthClientConfig reads a value of the 'external_auth_client_config' type from the given iterator. -func readExternalAuthClientConfig(iterator *jsoniter.Iterator) *ExternalAuthClientConfig { +// ReadExternalAuthClientConfig reads a value of the 'external_auth_client_config' type from the given iterator. +func ReadExternalAuthClientConfig(iterator *jsoniter.Iterator) *ExternalAuthClientConfig { object := &ExternalAuthClientConfig{} for { field := iterator.ReadObject() @@ -106,11 +106,11 @@ func readExternalAuthClientConfig(iterator *jsoniter.Iterator) *ExternalAuthClie object.id = value object.bitmap_ |= 1 case "component": - value := readClientComponent(iterator) + value := ReadClientComponent(iterator) object.component = value object.bitmap_ |= 2 case "extra_scopes": - value := readStringList(iterator) + value := ReadStringList(iterator) object.extraScopes = value object.bitmap_ |= 4 case "secret": diff --git a/clustersmgmt/v1/external_auth_config_list_type_json.go b/clustersmgmt/v1/external_auth_config_list_type_json.go index 39d632bb2..9c1572a60 100644 --- a/clustersmgmt/v1/external_auth_config_list_type_json.go +++ b/clustersmgmt/v1/external_auth_config_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalExternalAuthConfigList(list []*ExternalAuthConfig, writer io.Writer) error { stream := helpers.NewStream(writer) - writeExternalAuthConfigList(list, stream) + WriteExternalAuthConfigList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalExternalAuthConfigList(list []*ExternalAuthConfig, writer io.Writer) return stream.Error } -// writeExternalAuthConfigList writes a list of value of the 'external_auth_config' type to +// WriteExternalAuthConfigList writes a list of value of the 'external_auth_config' type to // the given stream. -func writeExternalAuthConfigList(list []*ExternalAuthConfig, stream *jsoniter.Stream) { +func WriteExternalAuthConfigList(list []*ExternalAuthConfig, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeExternalAuthConfig(value, stream) + WriteExternalAuthConfig(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalExternalAuthConfigList(source interface{}) (items []*ExternalAuthC if err != nil { return } - items = readExternalAuthConfigList(iterator) + items = ReadExternalAuthConfigList(iterator) err = iterator.Error return } -// readExternalAuthConfigList reads list of values of the ”external_auth_config' type from +// ReadExternalAuthConfigList reads list of values of the ”external_auth_config' type from // the given iterator. -func readExternalAuthConfigList(iterator *jsoniter.Iterator) []*ExternalAuthConfig { +func ReadExternalAuthConfigList(iterator *jsoniter.Iterator) []*ExternalAuthConfig { list := []*ExternalAuthConfig{} for iterator.ReadArray() { - item := readExternalAuthConfig(iterator) + item := ReadExternalAuthConfig(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/external_auth_config_type.go b/clustersmgmt/v1/external_auth_config_type.go index 5cddcdeaa..a647f5af3 100644 --- a/clustersmgmt/v1/external_auth_config_type.go +++ b/clustersmgmt/v1/external_auth_config_type.go @@ -112,6 +112,29 @@ func (l *ExternalAuthConfigList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ExternalAuthConfigList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ExternalAuthConfigList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ExternalAuthConfigList) SetItems(items []*ExternalAuthConfig) { + l.items = items +} + +// Items returns the items of the list. +func (l *ExternalAuthConfigList) Items() []*ExternalAuthConfig { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ExternalAuthConfigList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/external_auth_config_type_json.go b/clustersmgmt/v1/external_auth_config_type_json.go index 09fd28e54..0b1fa5e15 100644 --- a/clustersmgmt/v1/external_auth_config_type_json.go +++ b/clustersmgmt/v1/external_auth_config_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalExternalAuthConfig writes a value of the 'external_auth_config' type to the given writer. func MarshalExternalAuthConfig(object *ExternalAuthConfig, writer io.Writer) error { stream := helpers.NewStream(writer) - writeExternalAuthConfig(object, stream) + WriteExternalAuthConfig(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalExternalAuthConfig(object *ExternalAuthConfig, writer io.Writer) err return stream.Error } -// writeExternalAuthConfig writes a value of the 'external_auth_config' type to the given stream. -func writeExternalAuthConfig(object *ExternalAuthConfig, stream *jsoniter.Stream) { +// WriteExternalAuthConfig writes a value of the 'external_auth_config' type to the given stream. +func WriteExternalAuthConfig(object *ExternalAuthConfig, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -59,7 +59,7 @@ func writeExternalAuthConfig(object *ExternalAuthConfig, stream *jsoniter.Stream stream.WriteObjectField("external_auths") stream.WriteObjectStart() stream.WriteObjectField("items") - writeExternalAuthList(object.externalAuths.items, stream) + WriteExternalAuthList(object.externalAuths.Items(), stream) stream.WriteObjectEnd() } stream.WriteObjectEnd() @@ -72,13 +72,13 @@ func UnmarshalExternalAuthConfig(source interface{}) (object *ExternalAuthConfig if err != nil { return } - object = readExternalAuthConfig(iterator) + object = ReadExternalAuthConfig(iterator) err = iterator.Error return } -// readExternalAuthConfig reads a value of the 'external_auth_config' type from the given iterator. -func readExternalAuthConfig(iterator *jsoniter.Iterator) *ExternalAuthConfig { +// ReadExternalAuthConfig reads a value of the 'external_auth_config' type from the given iterator. +func ReadExternalAuthConfig(iterator *jsoniter.Iterator) *ExternalAuthConfig { object := &ExternalAuthConfig{} for { field := iterator.ReadObject() @@ -100,11 +100,11 @@ func readExternalAuthConfig(iterator *jsoniter.Iterator) *ExternalAuthConfig { switch field { case "kind": text := iterator.ReadString() - value.link = text == ExternalAuthListLinkKind + value.SetLink(text == ExternalAuthListLinkKind) case "href": - value.href = iterator.ReadString() + value.SetHREF(iterator.ReadString()) case "items": - value.items = readExternalAuthList(iterator) + value.SetItems(ReadExternalAuthList(iterator)) default: iterator.ReadAny() } diff --git a/clustersmgmt/v1/external_auth_list_type_json.go b/clustersmgmt/v1/external_auth_list_type_json.go index 2a809315f..ff2f13366 100644 --- a/clustersmgmt/v1/external_auth_list_type_json.go +++ b/clustersmgmt/v1/external_auth_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalExternalAuthList(list []*ExternalAuth, writer io.Writer) error { stream := helpers.NewStream(writer) - writeExternalAuthList(list, stream) + WriteExternalAuthList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalExternalAuthList(list []*ExternalAuth, writer io.Writer) error { return stream.Error } -// writeExternalAuthList writes a list of value of the 'external_auth' type to +// WriteExternalAuthList writes a list of value of the 'external_auth' type to // the given stream. -func writeExternalAuthList(list []*ExternalAuth, stream *jsoniter.Stream) { +func WriteExternalAuthList(list []*ExternalAuth, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeExternalAuth(value, stream) + WriteExternalAuth(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalExternalAuthList(source interface{}) (items []*ExternalAuth, err e if err != nil { return } - items = readExternalAuthList(iterator) + items = ReadExternalAuthList(iterator) err = iterator.Error return } -// readExternalAuthList reads list of values of the ”external_auth' type from +// ReadExternalAuthList reads list of values of the ”external_auth' type from // the given iterator. -func readExternalAuthList(iterator *jsoniter.Iterator) []*ExternalAuth { +func ReadExternalAuthList(iterator *jsoniter.Iterator) []*ExternalAuth { list := []*ExternalAuth{} for iterator.ReadArray() { - item := readExternalAuth(iterator) + item := ReadExternalAuth(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/external_auth_type.go b/clustersmgmt/v1/external_auth_type.go index 8f5bb0862..dc25337f6 100644 --- a/clustersmgmt/v1/external_auth_type.go +++ b/clustersmgmt/v1/external_auth_type.go @@ -54,7 +54,7 @@ func (o *ExternalAuth) Kind() string { return ExternalAuthKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *ExternalAuth) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -230,6 +230,29 @@ func (l *ExternalAuthList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ExternalAuthList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ExternalAuthList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ExternalAuthList) SetItems(items []*ExternalAuth) { + l.items = items +} + +// Items returns the items of the list. +func (l *ExternalAuthList) Items() []*ExternalAuth { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ExternalAuthList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/external_auth_type_json.go b/clustersmgmt/v1/external_auth_type_json.go index 0def4dec5..b9aa05d79 100644 --- a/clustersmgmt/v1/external_auth_type_json.go +++ b/clustersmgmt/v1/external_auth_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalExternalAuth writes a value of the 'external_auth' type to the given writer. func MarshalExternalAuth(object *ExternalAuth, writer io.Writer) error { stream := helpers.NewStream(writer) - writeExternalAuth(object, stream) + WriteExternalAuth(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalExternalAuth(object *ExternalAuth, writer io.Writer) error { return stream.Error } -// writeExternalAuth writes a value of the 'external_auth' type to the given stream. -func writeExternalAuth(object *ExternalAuth, stream *jsoniter.Stream) { +// WriteExternalAuth writes a value of the 'external_auth' type to the given stream. +func WriteExternalAuth(object *ExternalAuth, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -71,7 +71,7 @@ func writeExternalAuth(object *ExternalAuth, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("claim") - writeExternalAuthClaim(object.claim, stream) + WriteExternalAuthClaim(object.claim, stream) count++ } present_ = object.bitmap_&16 != 0 && object.clients != nil @@ -80,7 +80,7 @@ func writeExternalAuth(object *ExternalAuth, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("clients") - writeExternalAuthClientConfigList(object.clients, stream) + WriteExternalAuthClientConfigList(object.clients, stream) count++ } present_ = object.bitmap_&32 != 0 && object.issuer != nil @@ -89,7 +89,7 @@ func writeExternalAuth(object *ExternalAuth, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("issuer") - writeTokenIssuer(object.issuer, stream) + WriteTokenIssuer(object.issuer, stream) } stream.WriteObjectEnd() } @@ -101,13 +101,13 @@ func UnmarshalExternalAuth(source interface{}) (object *ExternalAuth, err error) if err != nil { return } - object = readExternalAuth(iterator) + object = ReadExternalAuth(iterator) err = iterator.Error return } -// readExternalAuth reads a value of the 'external_auth' type from the given iterator. -func readExternalAuth(iterator *jsoniter.Iterator) *ExternalAuth { +// ReadExternalAuth reads a value of the 'external_auth' type from the given iterator. +func ReadExternalAuth(iterator *jsoniter.Iterator) *ExternalAuth { object := &ExternalAuth{} for { field := iterator.ReadObject() @@ -127,15 +127,15 @@ func readExternalAuth(iterator *jsoniter.Iterator) *ExternalAuth { object.href = iterator.ReadString() object.bitmap_ |= 4 case "claim": - value := readExternalAuthClaim(iterator) + value := ReadExternalAuthClaim(iterator) object.claim = value object.bitmap_ |= 8 case "clients": - value := readExternalAuthClientConfigList(iterator) + value := ReadExternalAuthClientConfigList(iterator) object.clients = value object.bitmap_ |= 16 case "issuer": - value := readTokenIssuer(iterator) + value := ReadTokenIssuer(iterator) object.issuer = value object.bitmap_ |= 32 default: diff --git a/clustersmgmt/v1/external_auths_resource_json.go b/clustersmgmt/v1/external_auths_resource_json.go index 96bfda692..836ed362c 100644 --- a/clustersmgmt/v1/external_auths_resource_json.go +++ b/clustersmgmt/v1/external_auths_resource_json.go @@ -57,7 +57,7 @@ func readExternalAuthsListResponse(response *ExternalAuthsListResponse, reader i value := iterator.ReadInt() response.total = &value case "items": - items := readExternalAuthList(iterator) + items := ReadExternalAuthList(iterator) response.items = &ExternalAuthList{ items: items, } diff --git a/clustersmgmt/v1/external_configuration_list_type_json.go b/clustersmgmt/v1/external_configuration_list_type_json.go index 4c9350155..43f6ab734 100644 --- a/clustersmgmt/v1/external_configuration_list_type_json.go +++ b/clustersmgmt/v1/external_configuration_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalExternalConfigurationList(list []*ExternalConfiguration, writer io.Writer) error { stream := helpers.NewStream(writer) - writeExternalConfigurationList(list, stream) + WriteExternalConfigurationList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalExternalConfigurationList(list []*ExternalConfiguration, writer io.W return stream.Error } -// writeExternalConfigurationList writes a list of value of the 'external_configuration' type to +// WriteExternalConfigurationList writes a list of value of the 'external_configuration' type to // the given stream. -func writeExternalConfigurationList(list []*ExternalConfiguration, stream *jsoniter.Stream) { +func WriteExternalConfigurationList(list []*ExternalConfiguration, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeExternalConfiguration(value, stream) + WriteExternalConfiguration(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalExternalConfigurationList(source interface{}) (items []*ExternalCo if err != nil { return } - items = readExternalConfigurationList(iterator) + items = ReadExternalConfigurationList(iterator) err = iterator.Error return } -// readExternalConfigurationList reads list of values of the ”external_configuration' type from +// ReadExternalConfigurationList reads list of values of the ”external_configuration' type from // the given iterator. -func readExternalConfigurationList(iterator *jsoniter.Iterator) []*ExternalConfiguration { +func ReadExternalConfigurationList(iterator *jsoniter.Iterator) []*ExternalConfiguration { list := []*ExternalConfiguration{} for iterator.ReadArray() { - item := readExternalConfiguration(iterator) + item := ReadExternalConfiguration(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/external_configuration_type.go b/clustersmgmt/v1/external_configuration_type.go index a3cf18449..58a162615 100644 --- a/clustersmgmt/v1/external_configuration_type.go +++ b/clustersmgmt/v1/external_configuration_type.go @@ -130,6 +130,29 @@ func (l *ExternalConfigurationList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ExternalConfigurationList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ExternalConfigurationList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ExternalConfigurationList) SetItems(items []*ExternalConfiguration) { + l.items = items +} + +// Items returns the items of the list. +func (l *ExternalConfigurationList) Items() []*ExternalConfiguration { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ExternalConfigurationList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/external_configuration_type_json.go b/clustersmgmt/v1/external_configuration_type_json.go index a0c786658..8054257ec 100644 --- a/clustersmgmt/v1/external_configuration_type_json.go +++ b/clustersmgmt/v1/external_configuration_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalExternalConfiguration writes a value of the 'external_configuration' type to the given writer. func MarshalExternalConfiguration(object *ExternalConfiguration, writer io.Writer) error { stream := helpers.NewStream(writer) - writeExternalConfiguration(object, stream) + WriteExternalConfiguration(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalExternalConfiguration(object *ExternalConfiguration, writer io.Write return stream.Error } -// writeExternalConfiguration writes a value of the 'external_configuration' type to the given stream. -func writeExternalConfiguration(object *ExternalConfiguration, stream *jsoniter.Stream) { +// WriteExternalConfiguration writes a value of the 'external_configuration' type to the given stream. +func WriteExternalConfiguration(object *ExternalConfiguration, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -50,7 +50,7 @@ func writeExternalConfiguration(object *ExternalConfiguration, stream *jsoniter. stream.WriteObjectField("labels") stream.WriteObjectStart() stream.WriteObjectField("items") - writeLabelList(object.labels.items, stream) + WriteLabelList(object.labels.Items(), stream) stream.WriteObjectEnd() count++ } @@ -62,7 +62,7 @@ func writeExternalConfiguration(object *ExternalConfiguration, stream *jsoniter. stream.WriteObjectField("manifests") stream.WriteObjectStart() stream.WriteObjectField("items") - writeManifestList(object.manifests.items, stream) + WriteManifestList(object.manifests.Items(), stream) stream.WriteObjectEnd() count++ } @@ -74,7 +74,7 @@ func writeExternalConfiguration(object *ExternalConfiguration, stream *jsoniter. stream.WriteObjectField("syncsets") stream.WriteObjectStart() stream.WriteObjectField("items") - writeSyncsetList(object.syncsets.items, stream) + WriteSyncsetList(object.syncsets.Items(), stream) stream.WriteObjectEnd() } stream.WriteObjectEnd() @@ -87,13 +87,13 @@ func UnmarshalExternalConfiguration(source interface{}) (object *ExternalConfigu if err != nil { return } - object = readExternalConfiguration(iterator) + object = ReadExternalConfiguration(iterator) err = iterator.Error return } -// readExternalConfiguration reads a value of the 'external_configuration' type from the given iterator. -func readExternalConfiguration(iterator *jsoniter.Iterator) *ExternalConfiguration { +// ReadExternalConfiguration reads a value of the 'external_configuration' type from the given iterator. +func ReadExternalConfiguration(iterator *jsoniter.Iterator) *ExternalConfiguration { object := &ExternalConfiguration{} for { field := iterator.ReadObject() @@ -111,11 +111,11 @@ func readExternalConfiguration(iterator *jsoniter.Iterator) *ExternalConfigurati switch field { case "kind": text := iterator.ReadString() - value.link = text == LabelListLinkKind + value.SetLink(text == LabelListLinkKind) case "href": - value.href = iterator.ReadString() + value.SetHREF(iterator.ReadString()) case "items": - value.items = readLabelList(iterator) + value.SetItems(ReadLabelList(iterator)) default: iterator.ReadAny() } @@ -132,11 +132,11 @@ func readExternalConfiguration(iterator *jsoniter.Iterator) *ExternalConfigurati switch field { case "kind": text := iterator.ReadString() - value.link = text == ManifestListLinkKind + value.SetLink(text == ManifestListLinkKind) case "href": - value.href = iterator.ReadString() + value.SetHREF(iterator.ReadString()) case "items": - value.items = readManifestList(iterator) + value.SetItems(ReadManifestList(iterator)) default: iterator.ReadAny() } @@ -153,11 +153,11 @@ func readExternalConfiguration(iterator *jsoniter.Iterator) *ExternalConfigurati switch field { case "kind": text := iterator.ReadString() - value.link = text == SyncsetListLinkKind + value.SetLink(text == SyncsetListLinkKind) case "href": - value.href = iterator.ReadString() + value.SetHREF(iterator.ReadString()) case "items": - value.items = readSyncsetList(iterator) + value.SetItems(ReadSyncsetList(iterator)) default: iterator.ReadAny() } diff --git a/clustersmgmt/v1/flavour_list_type_json.go b/clustersmgmt/v1/flavour_list_type_json.go index ac2cbc9cf..73c0a125c 100644 --- a/clustersmgmt/v1/flavour_list_type_json.go +++ b/clustersmgmt/v1/flavour_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalFlavourList(list []*Flavour, writer io.Writer) error { stream := helpers.NewStream(writer) - writeFlavourList(list, stream) + WriteFlavourList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalFlavourList(list []*Flavour, writer io.Writer) error { return stream.Error } -// writeFlavourList writes a list of value of the 'flavour' type to +// WriteFlavourList writes a list of value of the 'flavour' type to // the given stream. -func writeFlavourList(list []*Flavour, stream *jsoniter.Stream) { +func WriteFlavourList(list []*Flavour, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeFlavour(value, stream) + WriteFlavour(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalFlavourList(source interface{}) (items []*Flavour, err error) { if err != nil { return } - items = readFlavourList(iterator) + items = ReadFlavourList(iterator) err = iterator.Error return } -// readFlavourList reads list of values of the ”flavour' type from +// ReadFlavourList reads list of values of the ”flavour' type from // the given iterator. -func readFlavourList(iterator *jsoniter.Iterator) []*Flavour { +func ReadFlavourList(iterator *jsoniter.Iterator) []*Flavour { list := []*Flavour{} for iterator.ReadArray() { - item := readFlavour(iterator) + item := ReadFlavour(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/flavour_nodes_list_type_json.go b/clustersmgmt/v1/flavour_nodes_list_type_json.go index 89d5463ad..95a838414 100644 --- a/clustersmgmt/v1/flavour_nodes_list_type_json.go +++ b/clustersmgmt/v1/flavour_nodes_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalFlavourNodesList(list []*FlavourNodes, writer io.Writer) error { stream := helpers.NewStream(writer) - writeFlavourNodesList(list, stream) + WriteFlavourNodesList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalFlavourNodesList(list []*FlavourNodes, writer io.Writer) error { return stream.Error } -// writeFlavourNodesList writes a list of value of the 'flavour_nodes' type to +// WriteFlavourNodesList writes a list of value of the 'flavour_nodes' type to // the given stream. -func writeFlavourNodesList(list []*FlavourNodes, stream *jsoniter.Stream) { +func WriteFlavourNodesList(list []*FlavourNodes, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeFlavourNodes(value, stream) + WriteFlavourNodes(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalFlavourNodesList(source interface{}) (items []*FlavourNodes, err e if err != nil { return } - items = readFlavourNodesList(iterator) + items = ReadFlavourNodesList(iterator) err = iterator.Error return } -// readFlavourNodesList reads list of values of the ”flavour_nodes' type from +// ReadFlavourNodesList reads list of values of the ”flavour_nodes' type from // the given iterator. -func readFlavourNodesList(iterator *jsoniter.Iterator) []*FlavourNodes { +func ReadFlavourNodesList(iterator *jsoniter.Iterator) []*FlavourNodes { list := []*FlavourNodes{} for iterator.ReadArray() { - item := readFlavourNodes(iterator) + item := ReadFlavourNodes(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/flavour_nodes_type.go b/clustersmgmt/v1/flavour_nodes_type.go index fac7f547f..98ecdf9e4 100644 --- a/clustersmgmt/v1/flavour_nodes_type.go +++ b/clustersmgmt/v1/flavour_nodes_type.go @@ -82,6 +82,29 @@ func (l *FlavourNodesList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *FlavourNodesList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *FlavourNodesList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *FlavourNodesList) SetItems(items []*FlavourNodes) { + l.items = items +} + +// Items returns the items of the list. +func (l *FlavourNodesList) Items() []*FlavourNodes { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *FlavourNodesList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/flavour_nodes_type_json.go b/clustersmgmt/v1/flavour_nodes_type_json.go index c724d7469..6be881103 100644 --- a/clustersmgmt/v1/flavour_nodes_type_json.go +++ b/clustersmgmt/v1/flavour_nodes_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalFlavourNodes writes a value of the 'flavour_nodes' type to the given writer. func MarshalFlavourNodes(object *FlavourNodes, writer io.Writer) error { stream := helpers.NewStream(writer) - writeFlavourNodes(object, stream) + WriteFlavourNodes(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalFlavourNodes(object *FlavourNodes, writer io.Writer) error { return stream.Error } -// writeFlavourNodes writes a value of the 'flavour_nodes' type to the given stream. -func writeFlavourNodes(object *FlavourNodes, stream *jsoniter.Stream) { +// WriteFlavourNodes writes a value of the 'flavour_nodes' type to the given stream. +func WriteFlavourNodes(object *FlavourNodes, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalFlavourNodes(source interface{}) (object *FlavourNodes, err error) if err != nil { return } - object = readFlavourNodes(iterator) + object = ReadFlavourNodes(iterator) err = iterator.Error return } -// readFlavourNodes reads a value of the 'flavour_nodes' type from the given iterator. -func readFlavourNodes(iterator *jsoniter.Iterator) *FlavourNodes { +// ReadFlavourNodes reads a value of the 'flavour_nodes' type from the given iterator. +func ReadFlavourNodes(iterator *jsoniter.Iterator) *FlavourNodes { object := &FlavourNodes{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/flavour_type.go b/clustersmgmt/v1/flavour_type.go index c86d0a89f..30a0f8ef0 100644 --- a/clustersmgmt/v1/flavour_type.go +++ b/clustersmgmt/v1/flavour_type.go @@ -57,7 +57,7 @@ func (o *Flavour) Kind() string { return FlavourKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Flavour) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -295,6 +295,29 @@ func (l *FlavourList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *FlavourList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *FlavourList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *FlavourList) SetItems(items []*Flavour) { + l.items = items +} + +// Items returns the items of the list. +func (l *FlavourList) Items() []*Flavour { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *FlavourList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/flavour_type_json.go b/clustersmgmt/v1/flavour_type_json.go index e513e023e..c36ba139d 100644 --- a/clustersmgmt/v1/flavour_type_json.go +++ b/clustersmgmt/v1/flavour_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalFlavour writes a value of the 'flavour' type to the given writer. func MarshalFlavour(object *Flavour, writer io.Writer) error { stream := helpers.NewStream(writer) - writeFlavour(object, stream) + WriteFlavour(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalFlavour(object *Flavour, writer io.Writer) error { return stream.Error } -// writeFlavour writes a value of the 'flavour' type to the given stream. -func writeFlavour(object *Flavour, stream *jsoniter.Stream) { +// WriteFlavour writes a value of the 'flavour' type to the given stream. +func WriteFlavour(object *Flavour, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -71,7 +71,7 @@ func writeFlavour(object *Flavour, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("aws") - writeAWSFlavour(object.aws, stream) + WriteAWSFlavour(object.aws, stream) count++ } present_ = object.bitmap_&16 != 0 && object.gcp != nil @@ -80,7 +80,7 @@ func writeFlavour(object *Flavour, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("gcp") - writeGCPFlavour(object.gcp, stream) + WriteGCPFlavour(object.gcp, stream) count++ } present_ = object.bitmap_&32 != 0 @@ -98,7 +98,7 @@ func writeFlavour(object *Flavour, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("network") - writeNetwork(object.network, stream) + WriteNetwork(object.network, stream) count++ } present_ = object.bitmap_&128 != 0 && object.nodes != nil @@ -107,7 +107,7 @@ func writeFlavour(object *Flavour, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("nodes") - writeFlavourNodes(object.nodes, stream) + WriteFlavourNodes(object.nodes, stream) } stream.WriteObjectEnd() } @@ -119,13 +119,13 @@ func UnmarshalFlavour(source interface{}) (object *Flavour, err error) { if err != nil { return } - object = readFlavour(iterator) + object = ReadFlavour(iterator) err = iterator.Error return } -// readFlavour reads a value of the 'flavour' type from the given iterator. -func readFlavour(iterator *jsoniter.Iterator) *Flavour { +// ReadFlavour reads a value of the 'flavour' type from the given iterator. +func ReadFlavour(iterator *jsoniter.Iterator) *Flavour { object := &Flavour{} for { field := iterator.ReadObject() @@ -145,11 +145,11 @@ func readFlavour(iterator *jsoniter.Iterator) *Flavour { object.href = iterator.ReadString() object.bitmap_ |= 4 case "aws": - value := readAWSFlavour(iterator) + value := ReadAWSFlavour(iterator) object.aws = value object.bitmap_ |= 8 case "gcp": - value := readGCPFlavour(iterator) + value := ReadGCPFlavour(iterator) object.gcp = value object.bitmap_ |= 16 case "name": @@ -157,11 +157,11 @@ func readFlavour(iterator *jsoniter.Iterator) *Flavour { object.name = value object.bitmap_ |= 32 case "network": - value := readNetwork(iterator) + value := ReadNetwork(iterator) object.network = value object.bitmap_ |= 64 case "nodes": - value := readFlavourNodes(iterator) + value := ReadFlavourNodes(iterator) object.nodes = value object.bitmap_ |= 128 default: diff --git a/clustersmgmt/v1/flavours_resource_json.go b/clustersmgmt/v1/flavours_resource_json.go index 7017fc8f8..2737dd2e2 100644 --- a/clustersmgmt/v1/flavours_resource_json.go +++ b/clustersmgmt/v1/flavours_resource_json.go @@ -49,7 +49,7 @@ func readFlavoursListResponse(response *FlavoursListResponse, reader io.Reader) value := iterator.ReadInt() response.total = &value case "items": - items := readFlavourList(iterator) + items := ReadFlavourList(iterator) response.items = &FlavourList{ items: items, } diff --git a/clustersmgmt/v1/float_list_type_json.go b/clustersmgmt/v1/float_list_type_json.go index e9910b3c1..77cfaac90 100644 --- a/clustersmgmt/v1/float_list_type_json.go +++ b/clustersmgmt/v1/float_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalFloatList(list []float64, writer io.Writer) error { stream := helpers.NewStream(writer) - writeFloatList(list, stream) + WriteFloatList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalFloatList(list []float64, writer io.Writer) error { return stream.Error } -// writeFloatList writes a list of value of the 'float' type to +// WriteFloatList writes a list of value of the 'float' type to // the given stream. -func writeFloatList(list []float64, stream *jsoniter.Stream) { +func WriteFloatList(list []float64, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalFloatList(source interface{}) (items []float64, err error) { if err != nil { return } - items = readFloatList(iterator) + items = ReadFloatList(iterator) err = iterator.Error return } -// readFloatList reads list of values of the ”float' type from +// ReadFloatList reads list of values of the ”float' type from // the given iterator. -func readFloatList(iterator *jsoniter.Iterator) []float64 { +func ReadFloatList(iterator *jsoniter.Iterator) []float64 { list := []float64{} for iterator.ReadArray() { item := iterator.ReadFloat64() diff --git a/clustersmgmt/v1/gcp_authentication_list_type_json.go b/clustersmgmt/v1/gcp_authentication_list_type_json.go index 12a7e2e97..efd6ea791 100644 --- a/clustersmgmt/v1/gcp_authentication_list_type_json.go +++ b/clustersmgmt/v1/gcp_authentication_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalGcpAuthenticationList(list []*GcpAuthentication, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGcpAuthenticationList(list, stream) + WriteGcpAuthenticationList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalGcpAuthenticationList(list []*GcpAuthentication, writer io.Writer) e return stream.Error } -// writeGcpAuthenticationList writes a list of value of the 'gcp_authentication' type to +// WriteGcpAuthenticationList writes a list of value of the 'gcp_authentication' type to // the given stream. -func writeGcpAuthenticationList(list []*GcpAuthentication, stream *jsoniter.Stream) { +func WriteGcpAuthenticationList(list []*GcpAuthentication, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeGcpAuthentication(value, stream) + WriteGcpAuthentication(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalGcpAuthenticationList(source interface{}) (items []*GcpAuthenticat if err != nil { return } - items = readGcpAuthenticationList(iterator) + items = ReadGcpAuthenticationList(iterator) err = iterator.Error return } -// readGcpAuthenticationList reads list of values of the ”gcp_authentication' type from +// ReadGcpAuthenticationList reads list of values of the ”gcp_authentication' type from // the given iterator. -func readGcpAuthenticationList(iterator *jsoniter.Iterator) []*GcpAuthentication { +func ReadGcpAuthenticationList(iterator *jsoniter.Iterator) []*GcpAuthentication { list := []*GcpAuthentication{} for iterator.ReadArray() { - item := readGcpAuthentication(iterator) + item := ReadGcpAuthentication(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/gcp_authentication_type.go b/clustersmgmt/v1/gcp_authentication_type.go index b4cc1d38d..838cfa28b 100644 --- a/clustersmgmt/v1/gcp_authentication_type.go +++ b/clustersmgmt/v1/gcp_authentication_type.go @@ -130,6 +130,29 @@ func (l *GcpAuthenticationList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *GcpAuthenticationList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *GcpAuthenticationList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *GcpAuthenticationList) SetItems(items []*GcpAuthentication) { + l.items = items +} + +// Items returns the items of the list. +func (l *GcpAuthenticationList) Items() []*GcpAuthentication { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *GcpAuthenticationList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/gcp_authentication_type_json.go b/clustersmgmt/v1/gcp_authentication_type_json.go index fb113dbb7..bf3cb6fdb 100644 --- a/clustersmgmt/v1/gcp_authentication_type_json.go +++ b/clustersmgmt/v1/gcp_authentication_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalGcpAuthentication writes a value of the 'gcp_authentication' type to the given writer. func MarshalGcpAuthentication(object *GcpAuthentication, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGcpAuthentication(object, stream) + WriteGcpAuthentication(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalGcpAuthentication(object *GcpAuthentication, writer io.Writer) error return stream.Error } -// writeGcpAuthentication writes a value of the 'gcp_authentication' type to the given stream. -func writeGcpAuthentication(object *GcpAuthentication, stream *jsoniter.Stream) { +// WriteGcpAuthentication writes a value of the 'gcp_authentication' type to the given stream. +func WriteGcpAuthentication(object *GcpAuthentication, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -78,13 +78,13 @@ func UnmarshalGcpAuthentication(source interface{}) (object *GcpAuthentication, if err != nil { return } - object = readGcpAuthentication(iterator) + object = ReadGcpAuthentication(iterator) err = iterator.Error return } -// readGcpAuthentication reads a value of the 'gcp_authentication' type from the given iterator. -func readGcpAuthentication(iterator *jsoniter.Iterator) *GcpAuthentication { +// ReadGcpAuthentication reads a value of the 'gcp_authentication' type from the given iterator. +func ReadGcpAuthentication(iterator *jsoniter.Iterator) *GcpAuthentication { object := &GcpAuthentication{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/gcp_encryption_key_list_type_json.go b/clustersmgmt/v1/gcp_encryption_key_list_type_json.go index 1080127d6..b6d7499c0 100644 --- a/clustersmgmt/v1/gcp_encryption_key_list_type_json.go +++ b/clustersmgmt/v1/gcp_encryption_key_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalGCPEncryptionKeyList(list []*GCPEncryptionKey, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGCPEncryptionKeyList(list, stream) + WriteGCPEncryptionKeyList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalGCPEncryptionKeyList(list []*GCPEncryptionKey, writer io.Writer) err return stream.Error } -// writeGCPEncryptionKeyList writes a list of value of the 'GCP_encryption_key' type to +// WriteGCPEncryptionKeyList writes a list of value of the 'GCP_encryption_key' type to // the given stream. -func writeGCPEncryptionKeyList(list []*GCPEncryptionKey, stream *jsoniter.Stream) { +func WriteGCPEncryptionKeyList(list []*GCPEncryptionKey, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeGCPEncryptionKey(value, stream) + WriteGCPEncryptionKey(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalGCPEncryptionKeyList(source interface{}) (items []*GCPEncryptionKe if err != nil { return } - items = readGCPEncryptionKeyList(iterator) + items = ReadGCPEncryptionKeyList(iterator) err = iterator.Error return } -// readGCPEncryptionKeyList reads list of values of the ”GCP_encryption_key' type from +// ReadGCPEncryptionKeyList reads list of values of the ”GCP_encryption_key' type from // the given iterator. -func readGCPEncryptionKeyList(iterator *jsoniter.Iterator) []*GCPEncryptionKey { +func ReadGCPEncryptionKeyList(iterator *jsoniter.Iterator) []*GCPEncryptionKey { list := []*GCPEncryptionKey{} for iterator.ReadArray() { - item := readGCPEncryptionKey(iterator) + item := ReadGCPEncryptionKey(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/gcp_encryption_key_type.go b/clustersmgmt/v1/gcp_encryption_key_type.go index 188e8b847..36f8cb1d5 100644 --- a/clustersmgmt/v1/gcp_encryption_key_type.go +++ b/clustersmgmt/v1/gcp_encryption_key_type.go @@ -154,6 +154,29 @@ func (l *GCPEncryptionKeyList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *GCPEncryptionKeyList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *GCPEncryptionKeyList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *GCPEncryptionKeyList) SetItems(items []*GCPEncryptionKey) { + l.items = items +} + +// Items returns the items of the list. +func (l *GCPEncryptionKeyList) Items() []*GCPEncryptionKey { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *GCPEncryptionKeyList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/gcp_encryption_key_type_json.go b/clustersmgmt/v1/gcp_encryption_key_type_json.go index af28836c7..d4e1b4fd2 100644 --- a/clustersmgmt/v1/gcp_encryption_key_type_json.go +++ b/clustersmgmt/v1/gcp_encryption_key_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalGCPEncryptionKey writes a value of the 'GCP_encryption_key' type to the given writer. func MarshalGCPEncryptionKey(object *GCPEncryptionKey, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGCPEncryptionKey(object, stream) + WriteGCPEncryptionKey(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalGCPEncryptionKey(object *GCPEncryptionKey, writer io.Writer) error { return stream.Error } -// writeGCPEncryptionKey writes a value of the 'GCP_encryption_key' type to the given stream. -func writeGCPEncryptionKey(object *GCPEncryptionKey, stream *jsoniter.Stream) { +// WriteGCPEncryptionKey writes a value of the 'GCP_encryption_key' type to the given stream. +func WriteGCPEncryptionKey(object *GCPEncryptionKey, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -87,13 +87,13 @@ func UnmarshalGCPEncryptionKey(source interface{}) (object *GCPEncryptionKey, er if err != nil { return } - object = readGCPEncryptionKey(iterator) + object = ReadGCPEncryptionKey(iterator) err = iterator.Error return } -// readGCPEncryptionKey reads a value of the 'GCP_encryption_key' type from the given iterator. -func readGCPEncryptionKey(iterator *jsoniter.Iterator) *GCPEncryptionKey { +// ReadGCPEncryptionKey reads a value of the 'GCP_encryption_key' type from the given iterator. +func ReadGCPEncryptionKey(iterator *jsoniter.Iterator) *GCPEncryptionKey { object := &GCPEncryptionKey{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/gcp_flavour_list_type_json.go b/clustersmgmt/v1/gcp_flavour_list_type_json.go index 29b456a6d..2e85a4d1b 100644 --- a/clustersmgmt/v1/gcp_flavour_list_type_json.go +++ b/clustersmgmt/v1/gcp_flavour_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalGCPFlavourList(list []*GCPFlavour, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGCPFlavourList(list, stream) + WriteGCPFlavourList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalGCPFlavourList(list []*GCPFlavour, writer io.Writer) error { return stream.Error } -// writeGCPFlavourList writes a list of value of the 'GCP_flavour' type to +// WriteGCPFlavourList writes a list of value of the 'GCP_flavour' type to // the given stream. -func writeGCPFlavourList(list []*GCPFlavour, stream *jsoniter.Stream) { +func WriteGCPFlavourList(list []*GCPFlavour, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeGCPFlavour(value, stream) + WriteGCPFlavour(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalGCPFlavourList(source interface{}) (items []*GCPFlavour, err error if err != nil { return } - items = readGCPFlavourList(iterator) + items = ReadGCPFlavourList(iterator) err = iterator.Error return } -// readGCPFlavourList reads list of values of the ”GCP_flavour' type from +// ReadGCPFlavourList reads list of values of the ”GCP_flavour' type from // the given iterator. -func readGCPFlavourList(iterator *jsoniter.Iterator) []*GCPFlavour { +func ReadGCPFlavourList(iterator *jsoniter.Iterator) []*GCPFlavour { list := []*GCPFlavour{} for iterator.ReadArray() { - item := readGCPFlavour(iterator) + item := ReadGCPFlavour(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/gcp_flavour_type.go b/clustersmgmt/v1/gcp_flavour_type.go index 7f7446c7a..39577c25c 100644 --- a/clustersmgmt/v1/gcp_flavour_type.go +++ b/clustersmgmt/v1/gcp_flavour_type.go @@ -206,6 +206,29 @@ func (l *GCPFlavourList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *GCPFlavourList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *GCPFlavourList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *GCPFlavourList) SetItems(items []*GCPFlavour) { + l.items = items +} + +// Items returns the items of the list. +func (l *GCPFlavourList) Items() []*GCPFlavour { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *GCPFlavourList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/gcp_flavour_type_json.go b/clustersmgmt/v1/gcp_flavour_type_json.go index 1fa15fa50..d1d7b03b8 100644 --- a/clustersmgmt/v1/gcp_flavour_type_json.go +++ b/clustersmgmt/v1/gcp_flavour_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalGCPFlavour writes a value of the 'GCP_flavour' type to the given writer. func MarshalGCPFlavour(object *GCPFlavour, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGCPFlavour(object, stream) + WriteGCPFlavour(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalGCPFlavour(object *GCPFlavour, writer io.Writer) error { return stream.Error } -// writeGCPFlavour writes a value of the 'GCP_flavour' type to the given stream. -func writeGCPFlavour(object *GCPFlavour, stream *jsoniter.Stream) { +// WriteGCPFlavour writes a value of the 'GCP_flavour' type to the given stream. +func WriteGCPFlavour(object *GCPFlavour, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -66,7 +66,7 @@ func writeGCPFlavour(object *GCPFlavour, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("infra_volume") - writeGCPVolume(object.infraVolume, stream) + WriteGCPVolume(object.infraVolume, stream) count++ } present_ = object.bitmap_&8 != 0 @@ -84,7 +84,7 @@ func writeGCPFlavour(object *GCPFlavour, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("master_volume") - writeGCPVolume(object.masterVolume, stream) + WriteGCPVolume(object.masterVolume, stream) count++ } present_ = object.bitmap_&32 != 0 && object.workerVolume != nil @@ -93,7 +93,7 @@ func writeGCPFlavour(object *GCPFlavour, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("worker_volume") - writeGCPVolume(object.workerVolume, stream) + WriteGCPVolume(object.workerVolume, stream) } stream.WriteObjectEnd() } @@ -105,13 +105,13 @@ func UnmarshalGCPFlavour(source interface{}) (object *GCPFlavour, err error) { if err != nil { return } - object = readGCPFlavour(iterator) + object = ReadGCPFlavour(iterator) err = iterator.Error return } -// readGCPFlavour reads a value of the 'GCP_flavour' type from the given iterator. -func readGCPFlavour(iterator *jsoniter.Iterator) *GCPFlavour { +// ReadGCPFlavour reads a value of the 'GCP_flavour' type from the given iterator. +func ReadGCPFlavour(iterator *jsoniter.Iterator) *GCPFlavour { object := &GCPFlavour{} for { field := iterator.ReadObject() @@ -128,7 +128,7 @@ func readGCPFlavour(iterator *jsoniter.Iterator) *GCPFlavour { object.infraInstanceType = value object.bitmap_ |= 2 case "infra_volume": - value := readGCPVolume(iterator) + value := ReadGCPVolume(iterator) object.infraVolume = value object.bitmap_ |= 4 case "master_instance_type": @@ -136,11 +136,11 @@ func readGCPFlavour(iterator *jsoniter.Iterator) *GCPFlavour { object.masterInstanceType = value object.bitmap_ |= 8 case "master_volume": - value := readGCPVolume(iterator) + value := ReadGCPVolume(iterator) object.masterVolume = value object.bitmap_ |= 16 case "worker_volume": - value := readGCPVolume(iterator) + value := ReadGCPVolume(iterator) object.workerVolume = value object.bitmap_ |= 32 default: diff --git a/clustersmgmt/v1/gcp_image_override_list_type_json.go b/clustersmgmt/v1/gcp_image_override_list_type_json.go index 50be9e591..dede31701 100644 --- a/clustersmgmt/v1/gcp_image_override_list_type_json.go +++ b/clustersmgmt/v1/gcp_image_override_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalGCPImageOverrideList(list []*GCPImageOverride, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGCPImageOverrideList(list, stream) + WriteGCPImageOverrideList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalGCPImageOverrideList(list []*GCPImageOverride, writer io.Writer) err return stream.Error } -// writeGCPImageOverrideList writes a list of value of the 'GCP_image_override' type to +// WriteGCPImageOverrideList writes a list of value of the 'GCP_image_override' type to // the given stream. -func writeGCPImageOverrideList(list []*GCPImageOverride, stream *jsoniter.Stream) { +func WriteGCPImageOverrideList(list []*GCPImageOverride, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeGCPImageOverride(value, stream) + WriteGCPImageOverride(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalGCPImageOverrideList(source interface{}) (items []*GCPImageOverrid if err != nil { return } - items = readGCPImageOverrideList(iterator) + items = ReadGCPImageOverrideList(iterator) err = iterator.Error return } -// readGCPImageOverrideList reads list of values of the ”GCP_image_override' type from +// ReadGCPImageOverrideList reads list of values of the ”GCP_image_override' type from // the given iterator. -func readGCPImageOverrideList(iterator *jsoniter.Iterator) []*GCPImageOverride { +func ReadGCPImageOverrideList(iterator *jsoniter.Iterator) []*GCPImageOverride { list := []*GCPImageOverride{} for iterator.ReadArray() { - item := readGCPImageOverride(iterator) + item := ReadGCPImageOverride(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/gcp_image_override_type.go b/clustersmgmt/v1/gcp_image_override_type.go index 830c1dcbf..d00ac35ec 100644 --- a/clustersmgmt/v1/gcp_image_override_type.go +++ b/clustersmgmt/v1/gcp_image_override_type.go @@ -55,7 +55,7 @@ func (o *GCPImageOverride) Kind() string { return GCPImageOverrideKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *GCPImageOverride) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -254,6 +254,29 @@ func (l *GCPImageOverrideList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *GCPImageOverrideList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *GCPImageOverrideList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *GCPImageOverrideList) SetItems(items []*GCPImageOverride) { + l.items = items +} + +// Items returns the items of the list. +func (l *GCPImageOverrideList) Items() []*GCPImageOverride { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *GCPImageOverrideList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/gcp_image_override_type_json.go b/clustersmgmt/v1/gcp_image_override_type_json.go index 85dd5b84a..d8371f346 100644 --- a/clustersmgmt/v1/gcp_image_override_type_json.go +++ b/clustersmgmt/v1/gcp_image_override_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalGCPImageOverride writes a value of the 'GCP_image_override' type to the given writer. func MarshalGCPImageOverride(object *GCPImageOverride, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGCPImageOverride(object, stream) + WriteGCPImageOverride(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalGCPImageOverride(object *GCPImageOverride, writer io.Writer) error { return stream.Error } -// writeGCPImageOverride writes a value of the 'GCP_image_override' type to the given stream. -func writeGCPImageOverride(object *GCPImageOverride, stream *jsoniter.Stream) { +// WriteGCPImageOverride writes a value of the 'GCP_image_override' type to the given stream. +func WriteGCPImageOverride(object *GCPImageOverride, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -71,7 +71,7 @@ func writeGCPImageOverride(object *GCPImageOverride, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("billing_model") - writeBillingModelItem(object.billingModel, stream) + WriteBillingModelItem(object.billingModel, stream) count++ } present_ = object.bitmap_&16 != 0 @@ -89,7 +89,7 @@ func writeGCPImageOverride(object *GCPImageOverride, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("product") - writeProduct(object.product, stream) + WriteProduct(object.product, stream) count++ } present_ = object.bitmap_&64 != 0 @@ -110,13 +110,13 @@ func UnmarshalGCPImageOverride(source interface{}) (object *GCPImageOverride, er if err != nil { return } - object = readGCPImageOverride(iterator) + object = ReadGCPImageOverride(iterator) err = iterator.Error return } -// readGCPImageOverride reads a value of the 'GCP_image_override' type from the given iterator. -func readGCPImageOverride(iterator *jsoniter.Iterator) *GCPImageOverride { +// ReadGCPImageOverride reads a value of the 'GCP_image_override' type from the given iterator. +func ReadGCPImageOverride(iterator *jsoniter.Iterator) *GCPImageOverride { object := &GCPImageOverride{} for { field := iterator.ReadObject() @@ -136,7 +136,7 @@ func readGCPImageOverride(iterator *jsoniter.Iterator) *GCPImageOverride { object.href = iterator.ReadString() object.bitmap_ |= 4 case "billing_model": - value := readBillingModelItem(iterator) + value := ReadBillingModelItem(iterator) object.billingModel = value object.bitmap_ |= 8 case "image_id": @@ -144,7 +144,7 @@ func readGCPImageOverride(iterator *jsoniter.Iterator) *GCPImageOverride { object.imageID = value object.bitmap_ |= 16 case "product": - value := readProduct(iterator) + value := ReadProduct(iterator) object.product = value object.bitmap_ |= 32 case "project_id": diff --git a/clustersmgmt/v1/gcp_list_type_json.go b/clustersmgmt/v1/gcp_list_type_json.go index f384167ed..8940a7a70 100644 --- a/clustersmgmt/v1/gcp_list_type_json.go +++ b/clustersmgmt/v1/gcp_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalGCPList(list []*GCP, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGCPList(list, stream) + WriteGCPList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalGCPList(list []*GCP, writer io.Writer) error { return stream.Error } -// writeGCPList writes a list of value of the 'GCP' type to +// WriteGCPList writes a list of value of the 'GCP' type to // the given stream. -func writeGCPList(list []*GCP, stream *jsoniter.Stream) { +func WriteGCPList(list []*GCP, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeGCP(value, stream) + WriteGCP(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalGCPList(source interface{}) (items []*GCP, err error) { if err != nil { return } - items = readGCPList(iterator) + items = ReadGCPList(iterator) err = iterator.Error return } -// readGCPList reads list of values of the ”GCP' type from +// ReadGCPList reads list of values of the ”GCP' type from // the given iterator. -func readGCPList(iterator *jsoniter.Iterator) []*GCP { +func ReadGCPList(iterator *jsoniter.Iterator) []*GCP { list := []*GCP{} for iterator.ReadArray() { - item := readGCP(iterator) + item := ReadGCP(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/gcp_network_list_type_json.go b/clustersmgmt/v1/gcp_network_list_type_json.go index 276a6a3b5..1a38ce094 100644 --- a/clustersmgmt/v1/gcp_network_list_type_json.go +++ b/clustersmgmt/v1/gcp_network_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalGCPNetworkList(list []*GCPNetwork, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGCPNetworkList(list, stream) + WriteGCPNetworkList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalGCPNetworkList(list []*GCPNetwork, writer io.Writer) error { return stream.Error } -// writeGCPNetworkList writes a list of value of the 'GCP_network' type to +// WriteGCPNetworkList writes a list of value of the 'GCP_network' type to // the given stream. -func writeGCPNetworkList(list []*GCPNetwork, stream *jsoniter.Stream) { +func WriteGCPNetworkList(list []*GCPNetwork, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeGCPNetwork(value, stream) + WriteGCPNetwork(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalGCPNetworkList(source interface{}) (items []*GCPNetwork, err error if err != nil { return } - items = readGCPNetworkList(iterator) + items = ReadGCPNetworkList(iterator) err = iterator.Error return } -// readGCPNetworkList reads list of values of the ”GCP_network' type from +// ReadGCPNetworkList reads list of values of the ”GCP_network' type from // the given iterator. -func readGCPNetworkList(iterator *jsoniter.Iterator) []*GCPNetwork { +func ReadGCPNetworkList(iterator *jsoniter.Iterator) []*GCPNetwork { list := []*GCPNetwork{} for iterator.ReadArray() { - item := readGCPNetwork(iterator) + item := ReadGCPNetwork(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/gcp_network_type.go b/clustersmgmt/v1/gcp_network_type.go index 195f2a797..3b4b112d5 100644 --- a/clustersmgmt/v1/gcp_network_type.go +++ b/clustersmgmt/v1/gcp_network_type.go @@ -154,6 +154,29 @@ func (l *GCPNetworkList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *GCPNetworkList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *GCPNetworkList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *GCPNetworkList) SetItems(items []*GCPNetwork) { + l.items = items +} + +// Items returns the items of the list. +func (l *GCPNetworkList) Items() []*GCPNetwork { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *GCPNetworkList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/gcp_network_type_json.go b/clustersmgmt/v1/gcp_network_type_json.go index 22028bf7d..2ded9eb82 100644 --- a/clustersmgmt/v1/gcp_network_type_json.go +++ b/clustersmgmt/v1/gcp_network_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalGCPNetwork writes a value of the 'GCP_network' type to the given writer. func MarshalGCPNetwork(object *GCPNetwork, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGCPNetwork(object, stream) + WriteGCPNetwork(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalGCPNetwork(object *GCPNetwork, writer io.Writer) error { return stream.Error } -// writeGCPNetwork writes a value of the 'GCP_network' type to the given stream. -func writeGCPNetwork(object *GCPNetwork, stream *jsoniter.Stream) { +// WriteGCPNetwork writes a value of the 'GCP_network' type to the given stream. +func WriteGCPNetwork(object *GCPNetwork, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -87,13 +87,13 @@ func UnmarshalGCPNetwork(source interface{}) (object *GCPNetwork, err error) { if err != nil { return } - object = readGCPNetwork(iterator) + object = ReadGCPNetwork(iterator) err = iterator.Error return } -// readGCPNetwork reads a value of the 'GCP_network' type from the given iterator. -func readGCPNetwork(iterator *jsoniter.Iterator) *GCPNetwork { +// ReadGCPNetwork reads a value of the 'GCP_network' type from the given iterator. +func ReadGCPNetwork(iterator *jsoniter.Iterator) *GCPNetwork { object := &GCPNetwork{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/gcp_private_service_connect_list_type_json.go b/clustersmgmt/v1/gcp_private_service_connect_list_type_json.go index 81ba60ca7..9e257069d 100644 --- a/clustersmgmt/v1/gcp_private_service_connect_list_type_json.go +++ b/clustersmgmt/v1/gcp_private_service_connect_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalGcpPrivateServiceConnectList(list []*GcpPrivateServiceConnect, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGcpPrivateServiceConnectList(list, stream) + WriteGcpPrivateServiceConnectList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalGcpPrivateServiceConnectList(list []*GcpPrivateServiceConnect, write return stream.Error } -// writeGcpPrivateServiceConnectList writes a list of value of the 'gcp_private_service_connect' type to +// WriteGcpPrivateServiceConnectList writes a list of value of the 'gcp_private_service_connect' type to // the given stream. -func writeGcpPrivateServiceConnectList(list []*GcpPrivateServiceConnect, stream *jsoniter.Stream) { +func WriteGcpPrivateServiceConnectList(list []*GcpPrivateServiceConnect, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeGcpPrivateServiceConnect(value, stream) + WriteGcpPrivateServiceConnect(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalGcpPrivateServiceConnectList(source interface{}) (items []*GcpPriv if err != nil { return } - items = readGcpPrivateServiceConnectList(iterator) + items = ReadGcpPrivateServiceConnectList(iterator) err = iterator.Error return } -// readGcpPrivateServiceConnectList reads list of values of the ”gcp_private_service_connect' type from +// ReadGcpPrivateServiceConnectList reads list of values of the ”gcp_private_service_connect' type from // the given iterator. -func readGcpPrivateServiceConnectList(iterator *jsoniter.Iterator) []*GcpPrivateServiceConnect { +func ReadGcpPrivateServiceConnectList(iterator *jsoniter.Iterator) []*GcpPrivateServiceConnect { list := []*GcpPrivateServiceConnect{} for iterator.ReadArray() { - item := readGcpPrivateServiceConnect(iterator) + item := ReadGcpPrivateServiceConnect(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/gcp_private_service_connect_type.go b/clustersmgmt/v1/gcp_private_service_connect_type.go index 509b87144..c49b5c538 100644 --- a/clustersmgmt/v1/gcp_private_service_connect_type.go +++ b/clustersmgmt/v1/gcp_private_service_connect_type.go @@ -82,6 +82,29 @@ func (l *GcpPrivateServiceConnectList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *GcpPrivateServiceConnectList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *GcpPrivateServiceConnectList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *GcpPrivateServiceConnectList) SetItems(items []*GcpPrivateServiceConnect) { + l.items = items +} + +// Items returns the items of the list. +func (l *GcpPrivateServiceConnectList) Items() []*GcpPrivateServiceConnect { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *GcpPrivateServiceConnectList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/gcp_private_service_connect_type_json.go b/clustersmgmt/v1/gcp_private_service_connect_type_json.go index eaf5d4bbf..f840694aa 100644 --- a/clustersmgmt/v1/gcp_private_service_connect_type_json.go +++ b/clustersmgmt/v1/gcp_private_service_connect_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalGcpPrivateServiceConnect writes a value of the 'gcp_private_service_connect' type to the given writer. func MarshalGcpPrivateServiceConnect(object *GcpPrivateServiceConnect, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGcpPrivateServiceConnect(object, stream) + WriteGcpPrivateServiceConnect(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalGcpPrivateServiceConnect(object *GcpPrivateServiceConnect, writer io return stream.Error } -// writeGcpPrivateServiceConnect writes a value of the 'gcp_private_service_connect' type to the given stream. -func writeGcpPrivateServiceConnect(object *GcpPrivateServiceConnect, stream *jsoniter.Stream) { +// WriteGcpPrivateServiceConnect writes a value of the 'gcp_private_service_connect' type to the given stream. +func WriteGcpPrivateServiceConnect(object *GcpPrivateServiceConnect, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalGcpPrivateServiceConnect(source interface{}) (object *GcpPrivateSe if err != nil { return } - object = readGcpPrivateServiceConnect(iterator) + object = ReadGcpPrivateServiceConnect(iterator) err = iterator.Error return } -// readGcpPrivateServiceConnect reads a value of the 'gcp_private_service_connect' type from the given iterator. -func readGcpPrivateServiceConnect(iterator *jsoniter.Iterator) *GcpPrivateServiceConnect { +// ReadGcpPrivateServiceConnect reads a value of the 'gcp_private_service_connect' type from the given iterator. +func ReadGcpPrivateServiceConnect(iterator *jsoniter.Iterator) *GcpPrivateServiceConnect { object := &GcpPrivateServiceConnect{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/gcp_region_machine_types_inquiry_resource_json.go b/clustersmgmt/v1/gcp_region_machine_types_inquiry_resource_json.go index e674f98d0..a9cdb2334 100644 --- a/clustersmgmt/v1/gcp_region_machine_types_inquiry_resource_json.go +++ b/clustersmgmt/v1/gcp_region_machine_types_inquiry_resource_json.go @@ -49,7 +49,7 @@ func readGCPRegionMachineTypesInquirySearchResponse(response *GCPRegionMachineTy value := iterator.ReadInt() response.total = &value case "items": - items := readMachineTypeList(iterator) + items := ReadMachineTypeList(iterator) response.items = &MachineTypeList{ items: items, } diff --git a/clustersmgmt/v1/gcp_security_list_type_json.go b/clustersmgmt/v1/gcp_security_list_type_json.go index b45feea92..5c8a2588e 100644 --- a/clustersmgmt/v1/gcp_security_list_type_json.go +++ b/clustersmgmt/v1/gcp_security_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalGcpSecurityList(list []*GcpSecurity, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGcpSecurityList(list, stream) + WriteGcpSecurityList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalGcpSecurityList(list []*GcpSecurity, writer io.Writer) error { return stream.Error } -// writeGcpSecurityList writes a list of value of the 'gcp_security' type to +// WriteGcpSecurityList writes a list of value of the 'gcp_security' type to // the given stream. -func writeGcpSecurityList(list []*GcpSecurity, stream *jsoniter.Stream) { +func WriteGcpSecurityList(list []*GcpSecurity, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeGcpSecurity(value, stream) + WriteGcpSecurity(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalGcpSecurityList(source interface{}) (items []*GcpSecurity, err err if err != nil { return } - items = readGcpSecurityList(iterator) + items = ReadGcpSecurityList(iterator) err = iterator.Error return } -// readGcpSecurityList reads list of values of the ”gcp_security' type from +// ReadGcpSecurityList reads list of values of the ”gcp_security' type from // the given iterator. -func readGcpSecurityList(iterator *jsoniter.Iterator) []*GcpSecurity { +func ReadGcpSecurityList(iterator *jsoniter.Iterator) []*GcpSecurity { list := []*GcpSecurity{} for iterator.ReadArray() { - item := readGcpSecurity(iterator) + item := ReadGcpSecurity(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/gcp_security_type.go b/clustersmgmt/v1/gcp_security_type.go index 043de3d6f..d2b91661e 100644 --- a/clustersmgmt/v1/gcp_security_type.go +++ b/clustersmgmt/v1/gcp_security_type.go @@ -82,6 +82,29 @@ func (l *GcpSecurityList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *GcpSecurityList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *GcpSecurityList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *GcpSecurityList) SetItems(items []*GcpSecurity) { + l.items = items +} + +// Items returns the items of the list. +func (l *GcpSecurityList) Items() []*GcpSecurity { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *GcpSecurityList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/gcp_security_type_json.go b/clustersmgmt/v1/gcp_security_type_json.go index 4d1a7d868..81b8be180 100644 --- a/clustersmgmt/v1/gcp_security_type_json.go +++ b/clustersmgmt/v1/gcp_security_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalGcpSecurity writes a value of the 'gcp_security' type to the given writer. func MarshalGcpSecurity(object *GcpSecurity, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGcpSecurity(object, stream) + WriteGcpSecurity(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalGcpSecurity(object *GcpSecurity, writer io.Writer) error { return stream.Error } -// writeGcpSecurity writes a value of the 'gcp_security' type to the given stream. -func writeGcpSecurity(object *GcpSecurity, stream *jsoniter.Stream) { +// WriteGcpSecurity writes a value of the 'gcp_security' type to the given stream. +func WriteGcpSecurity(object *GcpSecurity, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalGcpSecurity(source interface{}) (object *GcpSecurity, err error) { if err != nil { return } - object = readGcpSecurity(iterator) + object = ReadGcpSecurity(iterator) err = iterator.Error return } -// readGcpSecurity reads a value of the 'gcp_security' type from the given iterator. -func readGcpSecurity(iterator *jsoniter.Iterator) *GcpSecurity { +// ReadGcpSecurity reads a value of the 'gcp_security' type from the given iterator. +func ReadGcpSecurity(iterator *jsoniter.Iterator) *GcpSecurity { object := &GcpSecurity{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/gcp_type.go b/clustersmgmt/v1/gcp_type.go index c672169d4..1898f109b 100644 --- a/clustersmgmt/v1/gcp_type.go +++ b/clustersmgmt/v1/gcp_type.go @@ -370,6 +370,29 @@ func (l *GCPList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *GCPList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *GCPList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *GCPList) SetItems(items []*GCP) { + l.items = items +} + +// Items returns the items of the list. +func (l *GCPList) Items() []*GCP { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *GCPList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/gcp_type_json.go b/clustersmgmt/v1/gcp_type_json.go index 7f2655331..4c6ce51bc 100644 --- a/clustersmgmt/v1/gcp_type_json.go +++ b/clustersmgmt/v1/gcp_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalGCP writes a value of the 'GCP' type to the given writer. func MarshalGCP(object *GCP, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGCP(object, stream) + WriteGCP(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalGCP(object *GCP, writer io.Writer) error { return stream.Error } -// writeGCP writes a value of the 'GCP' type to the given stream. -func writeGCP(object *GCP, stream *jsoniter.Stream) { +// WriteGCP writes a value of the 'GCP' type to the given stream. +func WriteGCP(object *GCP, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -66,7 +66,7 @@ func writeGCP(object *GCP, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("authentication") - writeGcpAuthentication(object.authentication, stream) + WriteGcpAuthentication(object.authentication, stream) count++ } present_ = object.bitmap_&8 != 0 @@ -120,7 +120,7 @@ func writeGCP(object *GCP, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("private_service_connect") - writeGcpPrivateServiceConnect(object.privateServiceConnect, stream) + WriteGcpPrivateServiceConnect(object.privateServiceConnect, stream) count++ } present_ = object.bitmap_&512 != 0 @@ -138,7 +138,7 @@ func writeGCP(object *GCP, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("security") - writeGcpSecurity(object.security, stream) + WriteGcpSecurity(object.security, stream) count++ } present_ = object.bitmap_&2048 != 0 @@ -168,13 +168,13 @@ func UnmarshalGCP(source interface{}) (object *GCP, err error) { if err != nil { return } - object = readGCP(iterator) + object = ReadGCP(iterator) err = iterator.Error return } -// readGCP reads a value of the 'GCP' type from the given iterator. -func readGCP(iterator *jsoniter.Iterator) *GCP { +// ReadGCP reads a value of the 'GCP' type from the given iterator. +func ReadGCP(iterator *jsoniter.Iterator) *GCP { object := &GCP{} for { field := iterator.ReadObject() @@ -191,7 +191,7 @@ func readGCP(iterator *jsoniter.Iterator) *GCP { object.authProviderX509CertURL = value object.bitmap_ |= 2 case "authentication": - value := readGcpAuthentication(iterator) + value := ReadGcpAuthentication(iterator) object.authentication = value object.bitmap_ |= 4 case "client_id": @@ -215,7 +215,7 @@ func readGCP(iterator *jsoniter.Iterator) *GCP { object.privateKeyID = value object.bitmap_ |= 128 case "private_service_connect": - value := readGcpPrivateServiceConnect(iterator) + value := ReadGcpPrivateServiceConnect(iterator) object.privateServiceConnect = value object.bitmap_ |= 256 case "project_id": @@ -223,7 +223,7 @@ func readGCP(iterator *jsoniter.Iterator) *GCP { object.projectID = value object.bitmap_ |= 512 case "security": - value := readGcpSecurity(iterator) + value := ReadGcpSecurity(iterator) object.security = value object.bitmap_ |= 1024 case "token_uri": diff --git a/clustersmgmt/v1/gcp_volume_list_type_json.go b/clustersmgmt/v1/gcp_volume_list_type_json.go index 9c25954e0..c2b392207 100644 --- a/clustersmgmt/v1/gcp_volume_list_type_json.go +++ b/clustersmgmt/v1/gcp_volume_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalGCPVolumeList(list []*GCPVolume, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGCPVolumeList(list, stream) + WriteGCPVolumeList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalGCPVolumeList(list []*GCPVolume, writer io.Writer) error { return stream.Error } -// writeGCPVolumeList writes a list of value of the 'GCP_volume' type to +// WriteGCPVolumeList writes a list of value of the 'GCP_volume' type to // the given stream. -func writeGCPVolumeList(list []*GCPVolume, stream *jsoniter.Stream) { +func WriteGCPVolumeList(list []*GCPVolume, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeGCPVolume(value, stream) + WriteGCPVolume(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalGCPVolumeList(source interface{}) (items []*GCPVolume, err error) if err != nil { return } - items = readGCPVolumeList(iterator) + items = ReadGCPVolumeList(iterator) err = iterator.Error return } -// readGCPVolumeList reads list of values of the ”GCP_volume' type from +// ReadGCPVolumeList reads list of values of the ”GCP_volume' type from // the given iterator. -func readGCPVolumeList(iterator *jsoniter.Iterator) []*GCPVolume { +func ReadGCPVolumeList(iterator *jsoniter.Iterator) []*GCPVolume { list := []*GCPVolume{} for iterator.ReadArray() { - item := readGCPVolume(iterator) + item := ReadGCPVolume(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/gcp_volume_type.go b/clustersmgmt/v1/gcp_volume_type.go index 1c2be007d..e98a8e913 100644 --- a/clustersmgmt/v1/gcp_volume_type.go +++ b/clustersmgmt/v1/gcp_volume_type.go @@ -82,6 +82,29 @@ func (l *GCPVolumeList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *GCPVolumeList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *GCPVolumeList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *GCPVolumeList) SetItems(items []*GCPVolume) { + l.items = items +} + +// Items returns the items of the list. +func (l *GCPVolumeList) Items() []*GCPVolume { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *GCPVolumeList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/gcp_volume_type_json.go b/clustersmgmt/v1/gcp_volume_type_json.go index c46a15f4e..d5c98dde1 100644 --- a/clustersmgmt/v1/gcp_volume_type_json.go +++ b/clustersmgmt/v1/gcp_volume_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalGCPVolume writes a value of the 'GCP_volume' type to the given writer. func MarshalGCPVolume(object *GCPVolume, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGCPVolume(object, stream) + WriteGCPVolume(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalGCPVolume(object *GCPVolume, writer io.Writer) error { return stream.Error } -// writeGCPVolume writes a value of the 'GCP_volume' type to the given stream. -func writeGCPVolume(object *GCPVolume, stream *jsoniter.Stream) { +// WriteGCPVolume writes a value of the 'GCP_volume' type to the given stream. +func WriteGCPVolume(object *GCPVolume, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalGCPVolume(source interface{}) (object *GCPVolume, err error) { if err != nil { return } - object = readGCPVolume(iterator) + object = ReadGCPVolume(iterator) err = iterator.Error return } -// readGCPVolume reads a value of the 'GCP_volume' type from the given iterator. -func readGCPVolume(iterator *jsoniter.Iterator) *GCPVolume { +// ReadGCPVolume reads a value of the 'GCP_volume' type from the given iterator. +func ReadGCPVolume(iterator *jsoniter.Iterator) *GCPVolume { object := &GCPVolume{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/github_identity_provider_list_type_json.go b/clustersmgmt/v1/github_identity_provider_list_type_json.go index 3d1a49c9c..04c249e6a 100644 --- a/clustersmgmt/v1/github_identity_provider_list_type_json.go +++ b/clustersmgmt/v1/github_identity_provider_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalGithubIdentityProviderList(list []*GithubIdentityProvider, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGithubIdentityProviderList(list, stream) + WriteGithubIdentityProviderList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalGithubIdentityProviderList(list []*GithubIdentityProvider, writer io return stream.Error } -// writeGithubIdentityProviderList writes a list of value of the 'github_identity_provider' type to +// WriteGithubIdentityProviderList writes a list of value of the 'github_identity_provider' type to // the given stream. -func writeGithubIdentityProviderList(list []*GithubIdentityProvider, stream *jsoniter.Stream) { +func WriteGithubIdentityProviderList(list []*GithubIdentityProvider, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeGithubIdentityProvider(value, stream) + WriteGithubIdentityProvider(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalGithubIdentityProviderList(source interface{}) (items []*GithubIde if err != nil { return } - items = readGithubIdentityProviderList(iterator) + items = ReadGithubIdentityProviderList(iterator) err = iterator.Error return } -// readGithubIdentityProviderList reads list of values of the ”github_identity_provider' type from +// ReadGithubIdentityProviderList reads list of values of the ”github_identity_provider' type from // the given iterator. -func readGithubIdentityProviderList(iterator *jsoniter.Iterator) []*GithubIdentityProvider { +func ReadGithubIdentityProviderList(iterator *jsoniter.Iterator) []*GithubIdentityProvider { list := []*GithubIdentityProvider{} for iterator.ReadArray() { - item := readGithubIdentityProvider(iterator) + item := ReadGithubIdentityProvider(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/github_identity_provider_type.go b/clustersmgmt/v1/github_identity_provider_type.go index ec445df04..acbd8b311 100644 --- a/clustersmgmt/v1/github_identity_provider_type.go +++ b/clustersmgmt/v1/github_identity_provider_type.go @@ -210,6 +210,29 @@ func (l *GithubIdentityProviderList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *GithubIdentityProviderList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *GithubIdentityProviderList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *GithubIdentityProviderList) SetItems(items []*GithubIdentityProvider) { + l.items = items +} + +// Items returns the items of the list. +func (l *GithubIdentityProviderList) Items() []*GithubIdentityProvider { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *GithubIdentityProviderList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/github_identity_provider_type_json.go b/clustersmgmt/v1/github_identity_provider_type_json.go index 626101c01..b6feed85f 100644 --- a/clustersmgmt/v1/github_identity_provider_type_json.go +++ b/clustersmgmt/v1/github_identity_provider_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalGithubIdentityProvider writes a value of the 'github_identity_provider' type to the given writer. func MarshalGithubIdentityProvider(object *GithubIdentityProvider, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGithubIdentityProvider(object, stream) + WriteGithubIdentityProvider(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalGithubIdentityProvider(object *GithubIdentityProvider, writer io.Wri return stream.Error } -// writeGithubIdentityProvider writes a value of the 'github_identity_provider' type to the given stream. -func writeGithubIdentityProvider(object *GithubIdentityProvider, stream *jsoniter.Stream) { +// WriteGithubIdentityProvider writes a value of the 'github_identity_provider' type to the given stream. +func WriteGithubIdentityProvider(object *GithubIdentityProvider, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -84,7 +84,7 @@ func writeGithubIdentityProvider(object *GithubIdentityProvider, stream *jsonite stream.WriteMore() } stream.WriteObjectField("organizations") - writeStringList(object.organizations, stream) + WriteStringList(object.organizations, stream) count++ } present_ = object.bitmap_&32 != 0 && object.teams != nil @@ -93,7 +93,7 @@ func writeGithubIdentityProvider(object *GithubIdentityProvider, stream *jsonite stream.WriteMore() } stream.WriteObjectField("teams") - writeStringList(object.teams, stream) + WriteStringList(object.teams, stream) } stream.WriteObjectEnd() } @@ -105,13 +105,13 @@ func UnmarshalGithubIdentityProvider(source interface{}) (object *GithubIdentity if err != nil { return } - object = readGithubIdentityProvider(iterator) + object = ReadGithubIdentityProvider(iterator) err = iterator.Error return } -// readGithubIdentityProvider reads a value of the 'github_identity_provider' type from the given iterator. -func readGithubIdentityProvider(iterator *jsoniter.Iterator) *GithubIdentityProvider { +// ReadGithubIdentityProvider reads a value of the 'github_identity_provider' type from the given iterator. +func ReadGithubIdentityProvider(iterator *jsoniter.Iterator) *GithubIdentityProvider { object := &GithubIdentityProvider{} for { field := iterator.ReadObject() @@ -136,11 +136,11 @@ func readGithubIdentityProvider(iterator *jsoniter.Iterator) *GithubIdentityProv object.hostname = value object.bitmap_ |= 8 case "organizations": - value := readStringList(iterator) + value := ReadStringList(iterator) object.organizations = value object.bitmap_ |= 16 case "teams": - value := readStringList(iterator) + value := ReadStringList(iterator) object.teams = value object.bitmap_ |= 32 default: diff --git a/clustersmgmt/v1/gitlab_identity_provider_list_type_json.go b/clustersmgmt/v1/gitlab_identity_provider_list_type_json.go index 0336fd3c6..98a51624f 100644 --- a/clustersmgmt/v1/gitlab_identity_provider_list_type_json.go +++ b/clustersmgmt/v1/gitlab_identity_provider_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalGitlabIdentityProviderList(list []*GitlabIdentityProvider, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGitlabIdentityProviderList(list, stream) + WriteGitlabIdentityProviderList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalGitlabIdentityProviderList(list []*GitlabIdentityProvider, writer io return stream.Error } -// writeGitlabIdentityProviderList writes a list of value of the 'gitlab_identity_provider' type to +// WriteGitlabIdentityProviderList writes a list of value of the 'gitlab_identity_provider' type to // the given stream. -func writeGitlabIdentityProviderList(list []*GitlabIdentityProvider, stream *jsoniter.Stream) { +func WriteGitlabIdentityProviderList(list []*GitlabIdentityProvider, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeGitlabIdentityProvider(value, stream) + WriteGitlabIdentityProvider(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalGitlabIdentityProviderList(source interface{}) (items []*GitlabIde if err != nil { return } - items = readGitlabIdentityProviderList(iterator) + items = ReadGitlabIdentityProviderList(iterator) err = iterator.Error return } -// readGitlabIdentityProviderList reads list of values of the ”gitlab_identity_provider' type from +// ReadGitlabIdentityProviderList reads list of values of the ”gitlab_identity_provider' type from // the given iterator. -func readGitlabIdentityProviderList(iterator *jsoniter.Iterator) []*GitlabIdentityProvider { +func ReadGitlabIdentityProviderList(iterator *jsoniter.Iterator) []*GitlabIdentityProvider { list := []*GitlabIdentityProvider{} for iterator.ReadArray() { - item := readGitlabIdentityProvider(iterator) + item := ReadGitlabIdentityProvider(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/gitlab_identity_provider_type.go b/clustersmgmt/v1/gitlab_identity_provider_type.go index 26c8ded6d..b5e013e69 100644 --- a/clustersmgmt/v1/gitlab_identity_provider_type.go +++ b/clustersmgmt/v1/gitlab_identity_provider_type.go @@ -154,6 +154,29 @@ func (l *GitlabIdentityProviderList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *GitlabIdentityProviderList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *GitlabIdentityProviderList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *GitlabIdentityProviderList) SetItems(items []*GitlabIdentityProvider) { + l.items = items +} + +// Items returns the items of the list. +func (l *GitlabIdentityProviderList) Items() []*GitlabIdentityProvider { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *GitlabIdentityProviderList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/gitlab_identity_provider_type_json.go b/clustersmgmt/v1/gitlab_identity_provider_type_json.go index f2d5f8ab1..b2942fc11 100644 --- a/clustersmgmt/v1/gitlab_identity_provider_type_json.go +++ b/clustersmgmt/v1/gitlab_identity_provider_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalGitlabIdentityProvider writes a value of the 'gitlab_identity_provider' type to the given writer. func MarshalGitlabIdentityProvider(object *GitlabIdentityProvider, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGitlabIdentityProvider(object, stream) + WriteGitlabIdentityProvider(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalGitlabIdentityProvider(object *GitlabIdentityProvider, writer io.Wri return stream.Error } -// writeGitlabIdentityProvider writes a value of the 'gitlab_identity_provider' type to the given stream. -func writeGitlabIdentityProvider(object *GitlabIdentityProvider, stream *jsoniter.Stream) { +// WriteGitlabIdentityProvider writes a value of the 'gitlab_identity_provider' type to the given stream. +func WriteGitlabIdentityProvider(object *GitlabIdentityProvider, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -87,13 +87,13 @@ func UnmarshalGitlabIdentityProvider(source interface{}) (object *GitlabIdentity if err != nil { return } - object = readGitlabIdentityProvider(iterator) + object = ReadGitlabIdentityProvider(iterator) err = iterator.Error return } -// readGitlabIdentityProvider reads a value of the 'gitlab_identity_provider' type from the given iterator. -func readGitlabIdentityProvider(iterator *jsoniter.Iterator) *GitlabIdentityProvider { +// ReadGitlabIdentityProvider reads a value of the 'gitlab_identity_provider' type from the given iterator. +func ReadGitlabIdentityProvider(iterator *jsoniter.Iterator) *GitlabIdentityProvider { object := &GitlabIdentityProvider{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/google_identity_provider_list_type_json.go b/clustersmgmt/v1/google_identity_provider_list_type_json.go index 37d93fedb..1d907a1b4 100644 --- a/clustersmgmt/v1/google_identity_provider_list_type_json.go +++ b/clustersmgmt/v1/google_identity_provider_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalGoogleIdentityProviderList(list []*GoogleIdentityProvider, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGoogleIdentityProviderList(list, stream) + WriteGoogleIdentityProviderList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalGoogleIdentityProviderList(list []*GoogleIdentityProvider, writer io return stream.Error } -// writeGoogleIdentityProviderList writes a list of value of the 'google_identity_provider' type to +// WriteGoogleIdentityProviderList writes a list of value of the 'google_identity_provider' type to // the given stream. -func writeGoogleIdentityProviderList(list []*GoogleIdentityProvider, stream *jsoniter.Stream) { +func WriteGoogleIdentityProviderList(list []*GoogleIdentityProvider, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeGoogleIdentityProvider(value, stream) + WriteGoogleIdentityProvider(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalGoogleIdentityProviderList(source interface{}) (items []*GoogleIde if err != nil { return } - items = readGoogleIdentityProviderList(iterator) + items = ReadGoogleIdentityProviderList(iterator) err = iterator.Error return } -// readGoogleIdentityProviderList reads list of values of the ”google_identity_provider' type from +// ReadGoogleIdentityProviderList reads list of values of the ”google_identity_provider' type from // the given iterator. -func readGoogleIdentityProviderList(iterator *jsoniter.Iterator) []*GoogleIdentityProvider { +func ReadGoogleIdentityProviderList(iterator *jsoniter.Iterator) []*GoogleIdentityProvider { list := []*GoogleIdentityProvider{} for iterator.ReadArray() { - item := readGoogleIdentityProvider(iterator) + item := ReadGoogleIdentityProvider(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/google_identity_provider_type.go b/clustersmgmt/v1/google_identity_provider_type.go index 7fbca8251..f4e5e466a 100644 --- a/clustersmgmt/v1/google_identity_provider_type.go +++ b/clustersmgmt/v1/google_identity_provider_type.go @@ -130,6 +130,29 @@ func (l *GoogleIdentityProviderList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *GoogleIdentityProviderList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *GoogleIdentityProviderList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *GoogleIdentityProviderList) SetItems(items []*GoogleIdentityProvider) { + l.items = items +} + +// Items returns the items of the list. +func (l *GoogleIdentityProviderList) Items() []*GoogleIdentityProvider { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *GoogleIdentityProviderList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/google_identity_provider_type_json.go b/clustersmgmt/v1/google_identity_provider_type_json.go index 9efc02c67..f759d50de 100644 --- a/clustersmgmt/v1/google_identity_provider_type_json.go +++ b/clustersmgmt/v1/google_identity_provider_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalGoogleIdentityProvider writes a value of the 'google_identity_provider' type to the given writer. func MarshalGoogleIdentityProvider(object *GoogleIdentityProvider, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGoogleIdentityProvider(object, stream) + WriteGoogleIdentityProvider(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalGoogleIdentityProvider(object *GoogleIdentityProvider, writer io.Wri return stream.Error } -// writeGoogleIdentityProvider writes a value of the 'google_identity_provider' type to the given stream. -func writeGoogleIdentityProvider(object *GoogleIdentityProvider, stream *jsoniter.Stream) { +// WriteGoogleIdentityProvider writes a value of the 'google_identity_provider' type to the given stream. +func WriteGoogleIdentityProvider(object *GoogleIdentityProvider, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -78,13 +78,13 @@ func UnmarshalGoogleIdentityProvider(source interface{}) (object *GoogleIdentity if err != nil { return } - object = readGoogleIdentityProvider(iterator) + object = ReadGoogleIdentityProvider(iterator) err = iterator.Error return } -// readGoogleIdentityProvider reads a value of the 'google_identity_provider' type from the given iterator. -func readGoogleIdentityProvider(iterator *jsoniter.Iterator) *GoogleIdentityProvider { +// ReadGoogleIdentityProvider reads a value of the 'google_identity_provider' type from the given iterator. +func ReadGoogleIdentityProvider(iterator *jsoniter.Iterator) *GoogleIdentityProvider { object := &GoogleIdentityProvider{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/group_list_type_json.go b/clustersmgmt/v1/group_list_type_json.go index e54fb6515..672b21b91 100644 --- a/clustersmgmt/v1/group_list_type_json.go +++ b/clustersmgmt/v1/group_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalGroupList(list []*Group, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGroupList(list, stream) + WriteGroupList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalGroupList(list []*Group, writer io.Writer) error { return stream.Error } -// writeGroupList writes a list of value of the 'group' type to +// WriteGroupList writes a list of value of the 'group' type to // the given stream. -func writeGroupList(list []*Group, stream *jsoniter.Stream) { +func WriteGroupList(list []*Group, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeGroup(value, stream) + WriteGroup(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalGroupList(source interface{}) (items []*Group, err error) { if err != nil { return } - items = readGroupList(iterator) + items = ReadGroupList(iterator) err = iterator.Error return } -// readGroupList reads list of values of the ”group' type from +// ReadGroupList reads list of values of the ”group' type from // the given iterator. -func readGroupList(iterator *jsoniter.Iterator) []*Group { +func ReadGroupList(iterator *jsoniter.Iterator) []*Group { list := []*Group{} for iterator.ReadArray() { - item := readGroup(iterator) + item := ReadGroup(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/group_type.go b/clustersmgmt/v1/group_type.go index 475554bb3..c443594c6 100644 --- a/clustersmgmt/v1/group_type.go +++ b/clustersmgmt/v1/group_type.go @@ -52,7 +52,7 @@ func (o *Group) Kind() string { return GroupKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Group) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -182,6 +182,29 @@ func (l *GroupList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *GroupList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *GroupList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *GroupList) SetItems(items []*Group) { + l.items = items +} + +// Items returns the items of the list. +func (l *GroupList) Items() []*Group { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *GroupList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/group_type_json.go b/clustersmgmt/v1/group_type_json.go index 5221afcaf..ea82310f8 100644 --- a/clustersmgmt/v1/group_type_json.go +++ b/clustersmgmt/v1/group_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalGroup writes a value of the 'group' type to the given writer. func MarshalGroup(object *Group, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGroup(object, stream) + WriteGroup(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalGroup(object *Group, writer io.Writer) error { return stream.Error } -// writeGroup writes a value of the 'group' type to the given stream. -func writeGroup(object *Group, stream *jsoniter.Stream) { +// WriteGroup writes a value of the 'group' type to the given stream. +func WriteGroup(object *Group, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -73,7 +73,7 @@ func writeGroup(object *Group, stream *jsoniter.Stream) { stream.WriteObjectField("users") stream.WriteObjectStart() stream.WriteObjectField("items") - writeUserList(object.users.items, stream) + WriteUserList(object.users.Items(), stream) stream.WriteObjectEnd() } stream.WriteObjectEnd() @@ -86,13 +86,13 @@ func UnmarshalGroup(source interface{}) (object *Group, err error) { if err != nil { return } - object = readGroup(iterator) + object = ReadGroup(iterator) err = iterator.Error return } -// readGroup reads a value of the 'group' type from the given iterator. -func readGroup(iterator *jsoniter.Iterator) *Group { +// ReadGroup reads a value of the 'group' type from the given iterator. +func ReadGroup(iterator *jsoniter.Iterator) *Group { object := &Group{} for { field := iterator.ReadObject() @@ -121,11 +121,11 @@ func readGroup(iterator *jsoniter.Iterator) *Group { switch field { case "kind": text := iterator.ReadString() - value.link = text == UserListLinkKind + value.SetLink(text == UserListLinkKind) case "href": - value.href = iterator.ReadString() + value.SetHREF(iterator.ReadString()) case "items": - value.items = readUserList(iterator) + value.SetItems(ReadUserList(iterator)) default: iterator.ReadAny() } diff --git a/clustersmgmt/v1/groups_claim_list_type_json.go b/clustersmgmt/v1/groups_claim_list_type_json.go index e8c565ec3..5d6a295df 100644 --- a/clustersmgmt/v1/groups_claim_list_type_json.go +++ b/clustersmgmt/v1/groups_claim_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalGroupsClaimList(list []*GroupsClaim, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGroupsClaimList(list, stream) + WriteGroupsClaimList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalGroupsClaimList(list []*GroupsClaim, writer io.Writer) error { return stream.Error } -// writeGroupsClaimList writes a list of value of the 'groups_claim' type to +// WriteGroupsClaimList writes a list of value of the 'groups_claim' type to // the given stream. -func writeGroupsClaimList(list []*GroupsClaim, stream *jsoniter.Stream) { +func WriteGroupsClaimList(list []*GroupsClaim, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeGroupsClaim(value, stream) + WriteGroupsClaim(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalGroupsClaimList(source interface{}) (items []*GroupsClaim, err err if err != nil { return } - items = readGroupsClaimList(iterator) + items = ReadGroupsClaimList(iterator) err = iterator.Error return } -// readGroupsClaimList reads list of values of the ”groups_claim' type from +// ReadGroupsClaimList reads list of values of the ”groups_claim' type from // the given iterator. -func readGroupsClaimList(iterator *jsoniter.Iterator) []*GroupsClaim { +func ReadGroupsClaimList(iterator *jsoniter.Iterator) []*GroupsClaim { list := []*GroupsClaim{} for iterator.ReadArray() { - item := readGroupsClaim(iterator) + item := ReadGroupsClaim(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/groups_claim_type.go b/clustersmgmt/v1/groups_claim_type.go index be43e121d..ce2c3ee5d 100644 --- a/clustersmgmt/v1/groups_claim_type.go +++ b/clustersmgmt/v1/groups_claim_type.go @@ -104,6 +104,29 @@ func (l *GroupsClaimList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *GroupsClaimList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *GroupsClaimList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *GroupsClaimList) SetItems(items []*GroupsClaim) { + l.items = items +} + +// Items returns the items of the list. +func (l *GroupsClaimList) Items() []*GroupsClaim { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *GroupsClaimList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/groups_claim_type_json.go b/clustersmgmt/v1/groups_claim_type_json.go index 8d678ba33..9034d268a 100644 --- a/clustersmgmt/v1/groups_claim_type_json.go +++ b/clustersmgmt/v1/groups_claim_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalGroupsClaim writes a value of the 'groups_claim' type to the given writer. func MarshalGroupsClaim(object *GroupsClaim, writer io.Writer) error { stream := helpers.NewStream(writer) - writeGroupsClaim(object, stream) + WriteGroupsClaim(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalGroupsClaim(object *GroupsClaim, writer io.Writer) error { return stream.Error } -// writeGroupsClaim writes a value of the 'groups_claim' type to the given stream. -func writeGroupsClaim(object *GroupsClaim, stream *jsoniter.Stream) { +// WriteGroupsClaim writes a value of the 'groups_claim' type to the given stream. +func WriteGroupsClaim(object *GroupsClaim, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalGroupsClaim(source interface{}) (object *GroupsClaim, err error) { if err != nil { return } - object = readGroupsClaim(iterator) + object = ReadGroupsClaim(iterator) err = iterator.Error return } -// readGroupsClaim reads a value of the 'groups_claim' type from the given iterator. -func readGroupsClaim(iterator *jsoniter.Iterator) *GroupsClaim { +// ReadGroupsClaim reads a value of the 'groups_claim' type from the given iterator. +func ReadGroupsClaim(iterator *jsoniter.Iterator) *GroupsClaim { object := &GroupsClaim{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/groups_resource_json.go b/clustersmgmt/v1/groups_resource_json.go index 58e520ff8..1297d58b7 100644 --- a/clustersmgmt/v1/groups_resource_json.go +++ b/clustersmgmt/v1/groups_resource_json.go @@ -49,7 +49,7 @@ func readGroupsListResponse(response *GroupsListResponse, reader io.Reader) erro value := iterator.ReadInt() response.total = &value case "items": - items := readGroupList(iterator) + items := ReadGroupList(iterator) response.items = &GroupList{ items: items, } diff --git a/clustersmgmt/v1/ht_passwd_identity_provider_list_type_json.go b/clustersmgmt/v1/ht_passwd_identity_provider_list_type_json.go index 731f1745d..d150728df 100644 --- a/clustersmgmt/v1/ht_passwd_identity_provider_list_type_json.go +++ b/clustersmgmt/v1/ht_passwd_identity_provider_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalHTPasswdIdentityProviderList(list []*HTPasswdIdentityProvider, writer io.Writer) error { stream := helpers.NewStream(writer) - writeHTPasswdIdentityProviderList(list, stream) + WriteHTPasswdIdentityProviderList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalHTPasswdIdentityProviderList(list []*HTPasswdIdentityProvider, write return stream.Error } -// writeHTPasswdIdentityProviderList writes a list of value of the 'HT_passwd_identity_provider' type to +// WriteHTPasswdIdentityProviderList writes a list of value of the 'HT_passwd_identity_provider' type to // the given stream. -func writeHTPasswdIdentityProviderList(list []*HTPasswdIdentityProvider, stream *jsoniter.Stream) { +func WriteHTPasswdIdentityProviderList(list []*HTPasswdIdentityProvider, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeHTPasswdIdentityProvider(value, stream) + WriteHTPasswdIdentityProvider(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalHTPasswdIdentityProviderList(source interface{}) (items []*HTPassw if err != nil { return } - items = readHTPasswdIdentityProviderList(iterator) + items = ReadHTPasswdIdentityProviderList(iterator) err = iterator.Error return } -// readHTPasswdIdentityProviderList reads list of values of the ”HT_passwd_identity_provider' type from +// ReadHTPasswdIdentityProviderList reads list of values of the ”HT_passwd_identity_provider' type from // the given iterator. -func readHTPasswdIdentityProviderList(iterator *jsoniter.Iterator) []*HTPasswdIdentityProvider { +func ReadHTPasswdIdentityProviderList(iterator *jsoniter.Iterator) []*HTPasswdIdentityProvider { list := []*HTPasswdIdentityProvider{} for iterator.ReadArray() { - item := readHTPasswdIdentityProvider(iterator) + item := ReadHTPasswdIdentityProvider(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/ht_passwd_identity_provider_type.go b/clustersmgmt/v1/ht_passwd_identity_provider_type.go index 23cbd59ba..3fc37d5d6 100644 --- a/clustersmgmt/v1/ht_passwd_identity_provider_type.go +++ b/clustersmgmt/v1/ht_passwd_identity_provider_type.go @@ -130,6 +130,29 @@ func (l *HTPasswdIdentityProviderList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *HTPasswdIdentityProviderList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *HTPasswdIdentityProviderList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *HTPasswdIdentityProviderList) SetItems(items []*HTPasswdIdentityProvider) { + l.items = items +} + +// Items returns the items of the list. +func (l *HTPasswdIdentityProviderList) Items() []*HTPasswdIdentityProvider { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *HTPasswdIdentityProviderList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/ht_passwd_identity_provider_type_json.go b/clustersmgmt/v1/ht_passwd_identity_provider_type_json.go index dd5f5bf36..9aa8c9d3d 100644 --- a/clustersmgmt/v1/ht_passwd_identity_provider_type_json.go +++ b/clustersmgmt/v1/ht_passwd_identity_provider_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalHTPasswdIdentityProvider writes a value of the 'HT_passwd_identity_provider' type to the given writer. func MarshalHTPasswdIdentityProvider(object *HTPasswdIdentityProvider, writer io.Writer) error { stream := helpers.NewStream(writer) - writeHTPasswdIdentityProvider(object, stream) + WriteHTPasswdIdentityProvider(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalHTPasswdIdentityProvider(object *HTPasswdIdentityProvider, writer io return stream.Error } -// writeHTPasswdIdentityProvider writes a value of the 'HT_passwd_identity_provider' type to the given stream. -func writeHTPasswdIdentityProvider(object *HTPasswdIdentityProvider, stream *jsoniter.Stream) { +// WriteHTPasswdIdentityProvider writes a value of the 'HT_passwd_identity_provider' type to the given stream. +func WriteHTPasswdIdentityProvider(object *HTPasswdIdentityProvider, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -68,7 +68,7 @@ func writeHTPasswdIdentityProvider(object *HTPasswdIdentityProvider, stream *jso stream.WriteObjectField("users") stream.WriteObjectStart() stream.WriteObjectField("items") - writeHTPasswdUserList(object.users.items, stream) + WriteHTPasswdUserList(object.users.Items(), stream) stream.WriteObjectEnd() } stream.WriteObjectEnd() @@ -81,13 +81,13 @@ func UnmarshalHTPasswdIdentityProvider(source interface{}) (object *HTPasswdIden if err != nil { return } - object = readHTPasswdIdentityProvider(iterator) + object = ReadHTPasswdIdentityProvider(iterator) err = iterator.Error return } -// readHTPasswdIdentityProvider reads a value of the 'HT_passwd_identity_provider' type from the given iterator. -func readHTPasswdIdentityProvider(iterator *jsoniter.Iterator) *HTPasswdIdentityProvider { +// ReadHTPasswdIdentityProvider reads a value of the 'HT_passwd_identity_provider' type from the given iterator. +func ReadHTPasswdIdentityProvider(iterator *jsoniter.Iterator) *HTPasswdIdentityProvider { object := &HTPasswdIdentityProvider{} for { field := iterator.ReadObject() @@ -113,11 +113,11 @@ func readHTPasswdIdentityProvider(iterator *jsoniter.Iterator) *HTPasswdIdentity switch field { case "kind": text := iterator.ReadString() - value.link = text == HTPasswdUserListLinkKind + value.SetLink(text == HTPasswdUserListLinkKind) case "href": - value.href = iterator.ReadString() + value.SetHREF(iterator.ReadString()) case "items": - value.items = readHTPasswdUserList(iterator) + value.SetItems(ReadHTPasswdUserList(iterator)) default: iterator.ReadAny() } diff --git a/clustersmgmt/v1/ht_passwd_user_list_type_json.go b/clustersmgmt/v1/ht_passwd_user_list_type_json.go index f88250bbc..3a4220353 100644 --- a/clustersmgmt/v1/ht_passwd_user_list_type_json.go +++ b/clustersmgmt/v1/ht_passwd_user_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalHTPasswdUserList(list []*HTPasswdUser, writer io.Writer) error { stream := helpers.NewStream(writer) - writeHTPasswdUserList(list, stream) + WriteHTPasswdUserList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalHTPasswdUserList(list []*HTPasswdUser, writer io.Writer) error { return stream.Error } -// writeHTPasswdUserList writes a list of value of the 'HT_passwd_user' type to +// WriteHTPasswdUserList writes a list of value of the 'HT_passwd_user' type to // the given stream. -func writeHTPasswdUserList(list []*HTPasswdUser, stream *jsoniter.Stream) { +func WriteHTPasswdUserList(list []*HTPasswdUser, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeHTPasswdUser(value, stream) + WriteHTPasswdUser(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalHTPasswdUserList(source interface{}) (items []*HTPasswdUser, err e if err != nil { return } - items = readHTPasswdUserList(iterator) + items = ReadHTPasswdUserList(iterator) err = iterator.Error return } -// readHTPasswdUserList reads list of values of the ”HT_passwd_user' type from +// ReadHTPasswdUserList reads list of values of the ”HT_passwd_user' type from // the given iterator. -func readHTPasswdUserList(iterator *jsoniter.Iterator) []*HTPasswdUser { +func ReadHTPasswdUserList(iterator *jsoniter.Iterator) []*HTPasswdUser { list := []*HTPasswdUser{} for iterator.ReadArray() { - item := readHTPasswdUser(iterator) + item := ReadHTPasswdUser(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/ht_passwd_user_type.go b/clustersmgmt/v1/ht_passwd_user_type.go index 778f220fd..15913ed5c 100644 --- a/clustersmgmt/v1/ht_passwd_user_type.go +++ b/clustersmgmt/v1/ht_passwd_user_type.go @@ -156,6 +156,29 @@ func (l *HTPasswdUserList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *HTPasswdUserList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *HTPasswdUserList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *HTPasswdUserList) SetItems(items []*HTPasswdUser) { + l.items = items +} + +// Items returns the items of the list. +func (l *HTPasswdUserList) Items() []*HTPasswdUser { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *HTPasswdUserList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/ht_passwd_user_type_json.go b/clustersmgmt/v1/ht_passwd_user_type_json.go index 39e8e8bbf..8c89f8a12 100644 --- a/clustersmgmt/v1/ht_passwd_user_type_json.go +++ b/clustersmgmt/v1/ht_passwd_user_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalHTPasswdUser writes a value of the 'HT_passwd_user' type to the given writer. func MarshalHTPasswdUser(object *HTPasswdUser, writer io.Writer) error { stream := helpers.NewStream(writer) - writeHTPasswdUser(object, stream) + WriteHTPasswdUser(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalHTPasswdUser(object *HTPasswdUser, writer io.Writer) error { return stream.Error } -// writeHTPasswdUser writes a value of the 'HT_passwd_user' type to the given stream. -func writeHTPasswdUser(object *HTPasswdUser, stream *jsoniter.Stream) { +// WriteHTPasswdUser writes a value of the 'HT_passwd_user' type to the given stream. +func WriteHTPasswdUser(object *HTPasswdUser, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -87,13 +87,13 @@ func UnmarshalHTPasswdUser(source interface{}) (object *HTPasswdUser, err error) if err != nil { return } - object = readHTPasswdUser(iterator) + object = ReadHTPasswdUser(iterator) err = iterator.Error return } -// readHTPasswdUser reads a value of the 'HT_passwd_user' type from the given iterator. -func readHTPasswdUser(iterator *jsoniter.Iterator) *HTPasswdUser { +// ReadHTPasswdUser reads a value of the 'HT_passwd_user' type from the given iterator. +func ReadHTPasswdUser(iterator *jsoniter.Iterator) *HTPasswdUser { object := &HTPasswdUser{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/ht_passwd_users_resource_json.go b/clustersmgmt/v1/ht_passwd_users_resource_json.go index 94cb94910..4bf78377a 100644 --- a/clustersmgmt/v1/ht_passwd_users_resource_json.go +++ b/clustersmgmt/v1/ht_passwd_users_resource_json.go @@ -42,7 +42,7 @@ func writeHTPasswdUsersImportRequest(request *HTPasswdUsersImportRequest, writer stream.WriteMore() } stream.WriteObjectField("items") - writeHTPasswdUserList(request.items, stream) + WriteHTPasswdUserList(request.items, stream) count++ } if request.page != nil { @@ -80,7 +80,7 @@ func readHTPasswdUsersImportResponse(response *HTPasswdUsersImportResponse, read } switch field { case "items": - value := readHTPasswdUserList(iterator) + value := ReadHTPasswdUserList(iterator) response.items = value case "page": value := iterator.ReadInt() @@ -121,7 +121,7 @@ func readHTPasswdUsersListResponse(response *HTPasswdUsersListResponse, reader i value := iterator.ReadInt() response.total = &value case "items": - items := readHTPasswdUserList(iterator) + items := ReadHTPasswdUserList(iterator) response.items = &HTPasswdUserList{ items: items, } diff --git a/clustersmgmt/v1/hypershift_config_list_type_json.go b/clustersmgmt/v1/hypershift_config_list_type_json.go index 8959489b6..9a10b424f 100644 --- a/clustersmgmt/v1/hypershift_config_list_type_json.go +++ b/clustersmgmt/v1/hypershift_config_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalHypershiftConfigList(list []*HypershiftConfig, writer io.Writer) error { stream := helpers.NewStream(writer) - writeHypershiftConfigList(list, stream) + WriteHypershiftConfigList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalHypershiftConfigList(list []*HypershiftConfig, writer io.Writer) err return stream.Error } -// writeHypershiftConfigList writes a list of value of the 'hypershift_config' type to +// WriteHypershiftConfigList writes a list of value of the 'hypershift_config' type to // the given stream. -func writeHypershiftConfigList(list []*HypershiftConfig, stream *jsoniter.Stream) { +func WriteHypershiftConfigList(list []*HypershiftConfig, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeHypershiftConfig(value, stream) + WriteHypershiftConfig(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalHypershiftConfigList(source interface{}) (items []*HypershiftConfi if err != nil { return } - items = readHypershiftConfigList(iterator) + items = ReadHypershiftConfigList(iterator) err = iterator.Error return } -// readHypershiftConfigList reads list of values of the ”hypershift_config' type from +// ReadHypershiftConfigList reads list of values of the ”hypershift_config' type from // the given iterator. -func readHypershiftConfigList(iterator *jsoniter.Iterator) []*HypershiftConfig { +func ReadHypershiftConfigList(iterator *jsoniter.Iterator) []*HypershiftConfig { list := []*HypershiftConfig{} for iterator.ReadArray() { - item := readHypershiftConfig(iterator) + item := ReadHypershiftConfig(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/hypershift_config_type.go b/clustersmgmt/v1/hypershift_config_type.go index 4298398ad..e8adbfe45 100644 --- a/clustersmgmt/v1/hypershift_config_type.go +++ b/clustersmgmt/v1/hypershift_config_type.go @@ -144,6 +144,29 @@ func (l *HypershiftConfigList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *HypershiftConfigList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *HypershiftConfigList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *HypershiftConfigList) SetItems(items []*HypershiftConfig) { + l.items = items +} + +// Items returns the items of the list. +func (l *HypershiftConfigList) Items() []*HypershiftConfig { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *HypershiftConfigList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/hypershift_config_type_json.go b/clustersmgmt/v1/hypershift_config_type_json.go index 2ef8c1c0a..c4cb1a3a6 100644 --- a/clustersmgmt/v1/hypershift_config_type_json.go +++ b/clustersmgmt/v1/hypershift_config_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalHypershiftConfig writes a value of the 'hypershift_config' type to the given writer. func MarshalHypershiftConfig(object *HypershiftConfig, writer io.Writer) error { stream := helpers.NewStream(writer) - writeHypershiftConfig(object, stream) + WriteHypershiftConfig(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalHypershiftConfig(object *HypershiftConfig, writer io.Writer) error { return stream.Error } -// writeHypershiftConfig writes a value of the 'hypershift_config' type to the given stream. -func writeHypershiftConfig(object *HypershiftConfig, stream *jsoniter.Stream) { +// WriteHypershiftConfig writes a value of the 'hypershift_config' type to the given stream. +func WriteHypershiftConfig(object *HypershiftConfig, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -78,13 +78,13 @@ func UnmarshalHypershiftConfig(source interface{}) (object *HypershiftConfig, er if err != nil { return } - object = readHypershiftConfig(iterator) + object = ReadHypershiftConfig(iterator) err = iterator.Error return } -// readHypershiftConfig reads a value of the 'hypershift_config' type from the given iterator. -func readHypershiftConfig(iterator *jsoniter.Iterator) *HypershiftConfig { +// ReadHypershiftConfig reads a value of the 'hypershift_config' type from the given iterator. +func ReadHypershiftConfig(iterator *jsoniter.Iterator) *HypershiftConfig { object := &HypershiftConfig{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/hypershift_list_type_json.go b/clustersmgmt/v1/hypershift_list_type_json.go index 79d0d7247..750952a64 100644 --- a/clustersmgmt/v1/hypershift_list_type_json.go +++ b/clustersmgmt/v1/hypershift_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalHypershiftList(list []*Hypershift, writer io.Writer) error { stream := helpers.NewStream(writer) - writeHypershiftList(list, stream) + WriteHypershiftList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalHypershiftList(list []*Hypershift, writer io.Writer) error { return stream.Error } -// writeHypershiftList writes a list of value of the 'hypershift' type to +// WriteHypershiftList writes a list of value of the 'hypershift' type to // the given stream. -func writeHypershiftList(list []*Hypershift, stream *jsoniter.Stream) { +func WriteHypershiftList(list []*Hypershift, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeHypershift(value, stream) + WriteHypershift(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalHypershiftList(source interface{}) (items []*Hypershift, err error if err != nil { return } - items = readHypershiftList(iterator) + items = ReadHypershiftList(iterator) err = iterator.Error return } -// readHypershiftList reads list of values of the ”hypershift' type from +// ReadHypershiftList reads list of values of the ”hypershift' type from // the given iterator. -func readHypershiftList(iterator *jsoniter.Iterator) []*Hypershift { +func ReadHypershiftList(iterator *jsoniter.Iterator) []*Hypershift { list := []*Hypershift{} for iterator.ReadArray() { - item := readHypershift(iterator) + item := ReadHypershift(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/hypershift_type.go b/clustersmgmt/v1/hypershift_type.go index 182a928d3..2a998acb4 100644 --- a/clustersmgmt/v1/hypershift_type.go +++ b/clustersmgmt/v1/hypershift_type.go @@ -92,6 +92,29 @@ func (l *HypershiftList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *HypershiftList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *HypershiftList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *HypershiftList) SetItems(items []*Hypershift) { + l.items = items +} + +// Items returns the items of the list. +func (l *HypershiftList) Items() []*Hypershift { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *HypershiftList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/hypershift_type_json.go b/clustersmgmt/v1/hypershift_type_json.go index f12fbf3c4..a07b5ddff 100644 --- a/clustersmgmt/v1/hypershift_type_json.go +++ b/clustersmgmt/v1/hypershift_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalHypershift writes a value of the 'hypershift' type to the given writer. func MarshalHypershift(object *Hypershift, writer io.Writer) error { stream := helpers.NewStream(writer) - writeHypershift(object, stream) + WriteHypershift(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalHypershift(object *Hypershift, writer io.Writer) error { return stream.Error } -// writeHypershift writes a value of the 'hypershift' type to the given stream. -func writeHypershift(object *Hypershift, stream *jsoniter.Stream) { +// WriteHypershift writes a value of the 'hypershift' type to the given stream. +func WriteHypershift(object *Hypershift, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalHypershift(source interface{}) (object *Hypershift, err error) { if err != nil { return } - object = readHypershift(iterator) + object = ReadHypershift(iterator) err = iterator.Error return } -// readHypershift reads a value of the 'hypershift' type from the given iterator. -func readHypershift(iterator *jsoniter.Iterator) *Hypershift { +// ReadHypershift reads a value of the 'hypershift' type from the given iterator. +func ReadHypershift(iterator *jsoniter.Iterator) *Hypershift { object := &Hypershift{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/identity_provider_list_type_json.go b/clustersmgmt/v1/identity_provider_list_type_json.go index 5593e84cb..cb8bdc661 100644 --- a/clustersmgmt/v1/identity_provider_list_type_json.go +++ b/clustersmgmt/v1/identity_provider_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalIdentityProviderList(list []*IdentityProvider, writer io.Writer) error { stream := helpers.NewStream(writer) - writeIdentityProviderList(list, stream) + WriteIdentityProviderList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalIdentityProviderList(list []*IdentityProvider, writer io.Writer) err return stream.Error } -// writeIdentityProviderList writes a list of value of the 'identity_provider' type to +// WriteIdentityProviderList writes a list of value of the 'identity_provider' type to // the given stream. -func writeIdentityProviderList(list []*IdentityProvider, stream *jsoniter.Stream) { +func WriteIdentityProviderList(list []*IdentityProvider, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeIdentityProvider(value, stream) + WriteIdentityProvider(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalIdentityProviderList(source interface{}) (items []*IdentityProvide if err != nil { return } - items = readIdentityProviderList(iterator) + items = ReadIdentityProviderList(iterator) err = iterator.Error return } -// readIdentityProviderList reads list of values of the ”identity_provider' type from +// ReadIdentityProviderList reads list of values of the ”identity_provider' type from // the given iterator. -func readIdentityProviderList(iterator *jsoniter.Iterator) []*IdentityProvider { +func ReadIdentityProviderList(iterator *jsoniter.Iterator) []*IdentityProvider { list := []*IdentityProvider{} for iterator.ReadArray() { - item := readIdentityProvider(iterator) + item := ReadIdentityProvider(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/identity_provider_mapping_method_list_type_json.go b/clustersmgmt/v1/identity_provider_mapping_method_list_type_json.go index 97b3dff0b..2a3bfbd3e 100644 --- a/clustersmgmt/v1/identity_provider_mapping_method_list_type_json.go +++ b/clustersmgmt/v1/identity_provider_mapping_method_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalIdentityProviderMappingMethodList(list []IdentityProviderMappingMethod, writer io.Writer) error { stream := helpers.NewStream(writer) - writeIdentityProviderMappingMethodList(list, stream) + WriteIdentityProviderMappingMethodList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalIdentityProviderMappingMethodList(list []IdentityProviderMappingMeth return stream.Error } -// writeIdentityProviderMappingMethodList writes a list of value of the 'identity_provider_mapping_method' type to +// WriteIdentityProviderMappingMethodList writes a list of value of the 'identity_provider_mapping_method' type to // the given stream. -func writeIdentityProviderMappingMethodList(list []IdentityProviderMappingMethod, stream *jsoniter.Stream) { +func WriteIdentityProviderMappingMethodList(list []IdentityProviderMappingMethod, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalIdentityProviderMappingMethodList(source interface{}) (items []Ide if err != nil { return } - items = readIdentityProviderMappingMethodList(iterator) + items = ReadIdentityProviderMappingMethodList(iterator) err = iterator.Error return } -// readIdentityProviderMappingMethodList reads list of values of the ”identity_provider_mapping_method' type from +// ReadIdentityProviderMappingMethodList reads list of values of the ”identity_provider_mapping_method' type from // the given iterator. -func readIdentityProviderMappingMethodList(iterator *jsoniter.Iterator) []IdentityProviderMappingMethod { +func ReadIdentityProviderMappingMethodList(iterator *jsoniter.Iterator) []IdentityProviderMappingMethod { list := []IdentityProviderMappingMethod{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/identity_provider_type.go b/clustersmgmt/v1/identity_provider_type.go index e3cb70e6e..fee61e099 100644 --- a/clustersmgmt/v1/identity_provider_type.go +++ b/clustersmgmt/v1/identity_provider_type.go @@ -62,7 +62,7 @@ func (o *IdentityProvider) Kind() string { return IdentityProviderKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *IdentityProvider) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -432,6 +432,29 @@ func (l *IdentityProviderList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *IdentityProviderList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *IdentityProviderList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *IdentityProviderList) SetItems(items []*IdentityProvider) { + l.items = items +} + +// Items returns the items of the list. +func (l *IdentityProviderList) Items() []*IdentityProvider { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *IdentityProviderList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/identity_provider_type_json.go b/clustersmgmt/v1/identity_provider_type_json.go index cca33d807..903f176a6 100644 --- a/clustersmgmt/v1/identity_provider_type_json.go +++ b/clustersmgmt/v1/identity_provider_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalIdentityProvider writes a value of the 'identity_provider' type to the given writer. func MarshalIdentityProvider(object *IdentityProvider, writer io.Writer) error { stream := helpers.NewStream(writer) - writeIdentityProvider(object, stream) + WriteIdentityProvider(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalIdentityProvider(object *IdentityProvider, writer io.Writer) error { return stream.Error } -// writeIdentityProvider writes a value of the 'identity_provider' type to the given stream. -func writeIdentityProvider(object *IdentityProvider, stream *jsoniter.Stream) { +// WriteIdentityProvider writes a value of the 'identity_provider' type to the given stream. +func WriteIdentityProvider(object *IdentityProvider, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -71,7 +71,7 @@ func writeIdentityProvider(object *IdentityProvider, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("ldap") - writeLDAPIdentityProvider(object.ldap, stream) + WriteLDAPIdentityProvider(object.ldap, stream) count++ } present_ = object.bitmap_&16 != 0 @@ -89,7 +89,7 @@ func writeIdentityProvider(object *IdentityProvider, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("github") - writeGithubIdentityProvider(object.github, stream) + WriteGithubIdentityProvider(object.github, stream) count++ } present_ = object.bitmap_&64 != 0 && object.gitlab != nil @@ -98,7 +98,7 @@ func writeIdentityProvider(object *IdentityProvider, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("gitlab") - writeGitlabIdentityProvider(object.gitlab, stream) + WriteGitlabIdentityProvider(object.gitlab, stream) count++ } present_ = object.bitmap_&128 != 0 && object.google != nil @@ -107,7 +107,7 @@ func writeIdentityProvider(object *IdentityProvider, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("google") - writeGoogleIdentityProvider(object.google, stream) + WriteGoogleIdentityProvider(object.google, stream) count++ } present_ = object.bitmap_&256 != 0 && object.htpasswd != nil @@ -116,7 +116,7 @@ func writeIdentityProvider(object *IdentityProvider, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("htpasswd") - writeHTPasswdIdentityProvider(object.htpasswd, stream) + WriteHTPasswdIdentityProvider(object.htpasswd, stream) count++ } present_ = object.bitmap_&512 != 0 @@ -152,7 +152,7 @@ func writeIdentityProvider(object *IdentityProvider, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("open_id") - writeOpenIDIdentityProvider(object.openID, stream) + WriteOpenIDIdentityProvider(object.openID, stream) count++ } present_ = object.bitmap_&8192 != 0 @@ -173,13 +173,13 @@ func UnmarshalIdentityProvider(source interface{}) (object *IdentityProvider, er if err != nil { return } - object = readIdentityProvider(iterator) + object = ReadIdentityProvider(iterator) err = iterator.Error return } -// readIdentityProvider reads a value of the 'identity_provider' type from the given iterator. -func readIdentityProvider(iterator *jsoniter.Iterator) *IdentityProvider { +// ReadIdentityProvider reads a value of the 'identity_provider' type from the given iterator. +func ReadIdentityProvider(iterator *jsoniter.Iterator) *IdentityProvider { object := &IdentityProvider{} for { field := iterator.ReadObject() @@ -199,7 +199,7 @@ func readIdentityProvider(iterator *jsoniter.Iterator) *IdentityProvider { object.href = iterator.ReadString() object.bitmap_ |= 4 case "ldap": - value := readLDAPIdentityProvider(iterator) + value := ReadLDAPIdentityProvider(iterator) object.ldap = value object.bitmap_ |= 8 case "challenge": @@ -207,19 +207,19 @@ func readIdentityProvider(iterator *jsoniter.Iterator) *IdentityProvider { object.challenge = value object.bitmap_ |= 16 case "github": - value := readGithubIdentityProvider(iterator) + value := ReadGithubIdentityProvider(iterator) object.github = value object.bitmap_ |= 32 case "gitlab": - value := readGitlabIdentityProvider(iterator) + value := ReadGitlabIdentityProvider(iterator) object.gitlab = value object.bitmap_ |= 64 case "google": - value := readGoogleIdentityProvider(iterator) + value := ReadGoogleIdentityProvider(iterator) object.google = value object.bitmap_ |= 128 case "htpasswd": - value := readHTPasswdIdentityProvider(iterator) + value := ReadHTPasswdIdentityProvider(iterator) object.htpasswd = value object.bitmap_ |= 256 case "login": @@ -236,7 +236,7 @@ func readIdentityProvider(iterator *jsoniter.Iterator) *IdentityProvider { object.name = value object.bitmap_ |= 2048 case "open_id": - value := readOpenIDIdentityProvider(iterator) + value := ReadOpenIDIdentityProvider(iterator) object.openID = value object.bitmap_ |= 4096 case "type": diff --git a/clustersmgmt/v1/identity_provider_type_list_type_json.go b/clustersmgmt/v1/identity_provider_type_list_type_json.go index 745214952..a2a19299b 100644 --- a/clustersmgmt/v1/identity_provider_type_list_type_json.go +++ b/clustersmgmt/v1/identity_provider_type_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalIdentityProviderTypeList(list []IdentityProviderType, writer io.Writer) error { stream := helpers.NewStream(writer) - writeIdentityProviderTypeList(list, stream) + WriteIdentityProviderTypeList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalIdentityProviderTypeList(list []IdentityProviderType, writer io.Writ return stream.Error } -// writeIdentityProviderTypeList writes a list of value of the 'identity_provider_type' type to +// WriteIdentityProviderTypeList writes a list of value of the 'identity_provider_type' type to // the given stream. -func writeIdentityProviderTypeList(list []IdentityProviderType, stream *jsoniter.Stream) { +func WriteIdentityProviderTypeList(list []IdentityProviderType, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalIdentityProviderTypeList(source interface{}) (items []IdentityProv if err != nil { return } - items = readIdentityProviderTypeList(iterator) + items = ReadIdentityProviderTypeList(iterator) err = iterator.Error return } -// readIdentityProviderTypeList reads list of values of the ”identity_provider_type' type from +// ReadIdentityProviderTypeList reads list of values of the ”identity_provider_type' type from // the given iterator. -func readIdentityProviderTypeList(iterator *jsoniter.Iterator) []IdentityProviderType { +func ReadIdentityProviderTypeList(iterator *jsoniter.Iterator) []IdentityProviderType { list := []IdentityProviderType{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/identity_providers_resource_json.go b/clustersmgmt/v1/identity_providers_resource_json.go index d624f4427..f08dec82c 100644 --- a/clustersmgmt/v1/identity_providers_resource_json.go +++ b/clustersmgmt/v1/identity_providers_resource_json.go @@ -57,7 +57,7 @@ func readIdentityProvidersListResponse(response *IdentityProvidersListResponse, value := iterator.ReadInt() response.total = &value case "items": - items := readIdentityProviderList(iterator) + items := ReadIdentityProviderList(iterator) response.items = &IdentityProviderList{ items: items, } diff --git a/clustersmgmt/v1/image_overrides_list_type_json.go b/clustersmgmt/v1/image_overrides_list_type_json.go index c3f40e938..af1458217 100644 --- a/clustersmgmt/v1/image_overrides_list_type_json.go +++ b/clustersmgmt/v1/image_overrides_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalImageOverridesList(list []*ImageOverrides, writer io.Writer) error { stream := helpers.NewStream(writer) - writeImageOverridesList(list, stream) + WriteImageOverridesList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalImageOverridesList(list []*ImageOverrides, writer io.Writer) error { return stream.Error } -// writeImageOverridesList writes a list of value of the 'image_overrides' type to +// WriteImageOverridesList writes a list of value of the 'image_overrides' type to // the given stream. -func writeImageOverridesList(list []*ImageOverrides, stream *jsoniter.Stream) { +func WriteImageOverridesList(list []*ImageOverrides, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeImageOverrides(value, stream) + WriteImageOverrides(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalImageOverridesList(source interface{}) (items []*ImageOverrides, e if err != nil { return } - items = readImageOverridesList(iterator) + items = ReadImageOverridesList(iterator) err = iterator.Error return } -// readImageOverridesList reads list of values of the ”image_overrides' type from +// ReadImageOverridesList reads list of values of the ”image_overrides' type from // the given iterator. -func readImageOverridesList(iterator *jsoniter.Iterator) []*ImageOverrides { +func ReadImageOverridesList(iterator *jsoniter.Iterator) []*ImageOverrides { list := []*ImageOverrides{} for iterator.ReadArray() { - item := readImageOverrides(iterator) + item := ReadImageOverrides(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/image_overrides_type.go b/clustersmgmt/v1/image_overrides_type.go index a9938a18a..5696c570a 100644 --- a/clustersmgmt/v1/image_overrides_type.go +++ b/clustersmgmt/v1/image_overrides_type.go @@ -53,7 +53,7 @@ func (o *ImageOverrides) Kind() string { return ImageOverridesKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *ImageOverrides) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -198,6 +198,29 @@ func (l *ImageOverridesList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ImageOverridesList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ImageOverridesList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ImageOverridesList) SetItems(items []*ImageOverrides) { + l.items = items +} + +// Items returns the items of the list. +func (l *ImageOverridesList) Items() []*ImageOverrides { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ImageOverridesList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/image_overrides_type_json.go b/clustersmgmt/v1/image_overrides_type_json.go index 8e9401f30..ce07c8418 100644 --- a/clustersmgmt/v1/image_overrides_type_json.go +++ b/clustersmgmt/v1/image_overrides_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalImageOverrides writes a value of the 'image_overrides' type to the given writer. func MarshalImageOverrides(object *ImageOverrides, writer io.Writer) error { stream := helpers.NewStream(writer) - writeImageOverrides(object, stream) + WriteImageOverrides(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalImageOverrides(object *ImageOverrides, writer io.Writer) error { return stream.Error } -// writeImageOverrides writes a value of the 'image_overrides' type to the given stream. -func writeImageOverrides(object *ImageOverrides, stream *jsoniter.Stream) { +// WriteImageOverrides writes a value of the 'image_overrides' type to the given stream. +func WriteImageOverrides(object *ImageOverrides, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -71,7 +71,7 @@ func writeImageOverrides(object *ImageOverrides, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("aws") - writeAMIOverrideList(object.aws, stream) + WriteAMIOverrideList(object.aws, stream) count++ } present_ = object.bitmap_&16 != 0 && object.gcp != nil @@ -80,7 +80,7 @@ func writeImageOverrides(object *ImageOverrides, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("gcp") - writeGCPImageOverrideList(object.gcp, stream) + WriteGCPImageOverrideList(object.gcp, stream) } stream.WriteObjectEnd() } @@ -92,13 +92,13 @@ func UnmarshalImageOverrides(source interface{}) (object *ImageOverrides, err er if err != nil { return } - object = readImageOverrides(iterator) + object = ReadImageOverrides(iterator) err = iterator.Error return } -// readImageOverrides reads a value of the 'image_overrides' type from the given iterator. -func readImageOverrides(iterator *jsoniter.Iterator) *ImageOverrides { +// ReadImageOverrides reads a value of the 'image_overrides' type from the given iterator. +func ReadImageOverrides(iterator *jsoniter.Iterator) *ImageOverrides { object := &ImageOverrides{} for { field := iterator.ReadObject() @@ -118,11 +118,11 @@ func readImageOverrides(iterator *jsoniter.Iterator) *ImageOverrides { object.href = iterator.ReadString() object.bitmap_ |= 4 case "aws": - value := readAMIOverrideList(iterator) + value := ReadAMIOverrideList(iterator) object.aws = value object.bitmap_ |= 8 case "gcp": - value := readGCPImageOverrideList(iterator) + value := ReadGCPImageOverrideList(iterator) object.gcp = value object.bitmap_ |= 16 default: diff --git a/clustersmgmt/v1/inflight_check_list_type_json.go b/clustersmgmt/v1/inflight_check_list_type_json.go index dbd702c2b..bff9f4910 100644 --- a/clustersmgmt/v1/inflight_check_list_type_json.go +++ b/clustersmgmt/v1/inflight_check_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalInflightCheckList(list []*InflightCheck, writer io.Writer) error { stream := helpers.NewStream(writer) - writeInflightCheckList(list, stream) + WriteInflightCheckList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalInflightCheckList(list []*InflightCheck, writer io.Writer) error { return stream.Error } -// writeInflightCheckList writes a list of value of the 'inflight_check' type to +// WriteInflightCheckList writes a list of value of the 'inflight_check' type to // the given stream. -func writeInflightCheckList(list []*InflightCheck, stream *jsoniter.Stream) { +func WriteInflightCheckList(list []*InflightCheck, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeInflightCheck(value, stream) + WriteInflightCheck(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalInflightCheckList(source interface{}) (items []*InflightCheck, err if err != nil { return } - items = readInflightCheckList(iterator) + items = ReadInflightCheckList(iterator) err = iterator.Error return } -// readInflightCheckList reads list of values of the ”inflight_check' type from +// ReadInflightCheckList reads list of values of the ”inflight_check' type from // the given iterator. -func readInflightCheckList(iterator *jsoniter.Iterator) []*InflightCheck { +func ReadInflightCheckList(iterator *jsoniter.Iterator) []*InflightCheck { list := []*InflightCheck{} for iterator.ReadArray() { - item := readInflightCheck(iterator) + item := ReadInflightCheck(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/inflight_check_state_list_type_json.go b/clustersmgmt/v1/inflight_check_state_list_type_json.go index 6f0be3850..f2e48f375 100644 --- a/clustersmgmt/v1/inflight_check_state_list_type_json.go +++ b/clustersmgmt/v1/inflight_check_state_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalInflightCheckStateList(list []InflightCheckState, writer io.Writer) error { stream := helpers.NewStream(writer) - writeInflightCheckStateList(list, stream) + WriteInflightCheckStateList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalInflightCheckStateList(list []InflightCheckState, writer io.Writer) return stream.Error } -// writeInflightCheckStateList writes a list of value of the 'inflight_check_state' type to +// WriteInflightCheckStateList writes a list of value of the 'inflight_check_state' type to // the given stream. -func writeInflightCheckStateList(list []InflightCheckState, stream *jsoniter.Stream) { +func WriteInflightCheckStateList(list []InflightCheckState, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalInflightCheckStateList(source interface{}) (items []InflightCheckS if err != nil { return } - items = readInflightCheckStateList(iterator) + items = ReadInflightCheckStateList(iterator) err = iterator.Error return } -// readInflightCheckStateList reads list of values of the ”inflight_check_state' type from +// ReadInflightCheckStateList reads list of values of the ”inflight_check_state' type from // the given iterator. -func readInflightCheckStateList(iterator *jsoniter.Iterator) []InflightCheckState { +func ReadInflightCheckStateList(iterator *jsoniter.Iterator) []InflightCheckState { list := []InflightCheckState{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/inflight_check_type.go b/clustersmgmt/v1/inflight_check_type.go index 6e22a5a72..884d4cd9d 100644 --- a/clustersmgmt/v1/inflight_check_type.go +++ b/clustersmgmt/v1/inflight_check_type.go @@ -61,7 +61,7 @@ func (o *InflightCheck) Kind() string { return InflightCheckKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *InflightCheck) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -306,6 +306,29 @@ func (l *InflightCheckList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *InflightCheckList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *InflightCheckList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *InflightCheckList) SetItems(items []*InflightCheck) { + l.items = items +} + +// Items returns the items of the list. +func (l *InflightCheckList) Items() []*InflightCheck { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *InflightCheckList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/inflight_check_type_json.go b/clustersmgmt/v1/inflight_check_type_json.go index d395f6b88..2e3d76993 100644 --- a/clustersmgmt/v1/inflight_check_type_json.go +++ b/clustersmgmt/v1/inflight_check_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalInflightCheck writes a value of the 'inflight_check' type to the given writer. func MarshalInflightCheck(object *InflightCheck, writer io.Writer) error { stream := helpers.NewStream(writer) - writeInflightCheck(object, stream) + WriteInflightCheck(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalInflightCheck(object *InflightCheck, writer io.Writer) error { return stream.Error } -// writeInflightCheck writes a value of the 'inflight_check' type to the given stream. -func writeInflightCheck(object *InflightCheck, stream *jsoniter.Stream) { +// WriteInflightCheck writes a value of the 'inflight_check' type to the given stream. +func WriteInflightCheck(object *InflightCheck, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -129,13 +129,13 @@ func UnmarshalInflightCheck(source interface{}) (object *InflightCheck, err erro if err != nil { return } - object = readInflightCheck(iterator) + object = ReadInflightCheck(iterator) err = iterator.Error return } -// readInflightCheck reads a value of the 'inflight_check' type from the given iterator. -func readInflightCheck(iterator *jsoniter.Iterator) *InflightCheck { +// ReadInflightCheck reads a value of the 'inflight_check' type from the given iterator. +func ReadInflightCheck(iterator *jsoniter.Iterator) *InflightCheck { object := &InflightCheck{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/inflight_checks_resource_json.go b/clustersmgmt/v1/inflight_checks_resource_json.go index d66645f9f..761f81ece 100644 --- a/clustersmgmt/v1/inflight_checks_resource_json.go +++ b/clustersmgmt/v1/inflight_checks_resource_json.go @@ -49,7 +49,7 @@ func readInflightChecksListResponse(response *InflightChecksListResponse, reader value := iterator.ReadInt() response.total = &value case "items": - items := readInflightCheckList(iterator) + items := ReadInflightCheckList(iterator) response.items = &InflightCheckList{ items: items, } diff --git a/clustersmgmt/v1/ingress_list_type_json.go b/clustersmgmt/v1/ingress_list_type_json.go index 22cd93f34..2c172c3c4 100644 --- a/clustersmgmt/v1/ingress_list_type_json.go +++ b/clustersmgmt/v1/ingress_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalIngressList(list []*Ingress, writer io.Writer) error { stream := helpers.NewStream(writer) - writeIngressList(list, stream) + WriteIngressList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalIngressList(list []*Ingress, writer io.Writer) error { return stream.Error } -// writeIngressList writes a list of value of the 'ingress' type to +// WriteIngressList writes a list of value of the 'ingress' type to // the given stream. -func writeIngressList(list []*Ingress, stream *jsoniter.Stream) { +func WriteIngressList(list []*Ingress, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeIngress(value, stream) + WriteIngress(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalIngressList(source interface{}) (items []*Ingress, err error) { if err != nil { return } - items = readIngressList(iterator) + items = ReadIngressList(iterator) err = iterator.Error return } -// readIngressList reads list of values of the ”ingress' type from +// ReadIngressList reads list of values of the ”ingress' type from // the given iterator. -func readIngressList(iterator *jsoniter.Iterator) []*Ingress { +func ReadIngressList(iterator *jsoniter.Iterator) []*Ingress { list := []*Ingress{} for iterator.ReadArray() { - item := readIngress(iterator) + item := ReadIngress(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/ingress_type.go b/clustersmgmt/v1/ingress_type.go index 0596695e8..aa6b6a620 100644 --- a/clustersmgmt/v1/ingress_type.go +++ b/clustersmgmt/v1/ingress_type.go @@ -62,7 +62,7 @@ func (o *Ingress) Kind() string { return IngressKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Ingress) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -422,6 +422,29 @@ func (l *IngressList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *IngressList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *IngressList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *IngressList) SetItems(items []*Ingress) { + l.items = items +} + +// Items returns the items of the list. +func (l *IngressList) Items() []*Ingress { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *IngressList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/ingress_type_json.go b/clustersmgmt/v1/ingress_type_json.go index 923dbdea6..31866c3ba 100644 --- a/clustersmgmt/v1/ingress_type_json.go +++ b/clustersmgmt/v1/ingress_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalIngress writes a value of the 'ingress' type to the given writer. func MarshalIngress(object *Ingress, writer io.Writer) error { stream := helpers.NewStream(writer) - writeIngress(object, stream) + WriteIngress(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalIngress(object *Ingress, writer io.Writer) error { return stream.Error } -// writeIngress writes a value of the 'ingress' type to the given stream. -func writeIngress(object *Ingress, stream *jsoniter.Stream) { +// WriteIngress writes a value of the 'ingress' type to the given stream. +func WriteIngress(object *Ingress, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -114,7 +114,7 @@ func writeIngress(object *Ingress, stream *jsoniter.Stream) { } item := object.componentRoutes[key] stream.WriteObjectField(key) - writeComponentRoute(item, stream) + WriteComponentRoute(item, stream) } stream.WriteObjectEnd() } else { @@ -137,7 +137,7 @@ func writeIngress(object *Ingress, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("excluded_namespaces") - writeStringList(object.excludedNamespaces, stream) + WriteStringList(object.excludedNamespaces, stream) count++ } present_ = object.bitmap_&512 != 0 @@ -214,13 +214,13 @@ func UnmarshalIngress(source interface{}) (object *Ingress, err error) { if err != nil { return } - object = readIngress(iterator) + object = ReadIngress(iterator) err = iterator.Error return } -// readIngress reads a value of the 'ingress' type from the given iterator. -func readIngress(iterator *jsoniter.Iterator) *Ingress { +// ReadIngress reads a value of the 'ingress' type from the given iterator. +func ReadIngress(iterator *jsoniter.Iterator) *Ingress { object := &Ingress{} for { field := iterator.ReadObject() @@ -258,7 +258,7 @@ func readIngress(iterator *jsoniter.Iterator) *Ingress { if key == "" { break } - item := readComponentRoute(iterator) + item := ReadComponentRoute(iterator) value[key] = item } object.componentRoutes = value @@ -268,7 +268,7 @@ func readIngress(iterator *jsoniter.Iterator) *Ingress { object.default_ = value object.bitmap_ |= 128 case "excluded_namespaces": - value := readStringList(iterator) + value := ReadStringList(iterator) object.excludedNamespaces = value object.bitmap_ |= 256 case "listening": diff --git a/clustersmgmt/v1/ingresses_resource_json.go b/clustersmgmt/v1/ingresses_resource_json.go index c53ad9a46..385c4a69b 100644 --- a/clustersmgmt/v1/ingresses_resource_json.go +++ b/clustersmgmt/v1/ingresses_resource_json.go @@ -57,7 +57,7 @@ func readIngressesListResponse(response *IngressesListResponse, reader io.Reader value := iterator.ReadInt() response.total = &value case "items": - items := readIngressList(iterator) + items := ReadIngressList(iterator) response.items = &IngressList{ items: items, } diff --git a/clustersmgmt/v1/instance_iam_roles_list_type_json.go b/clustersmgmt/v1/instance_iam_roles_list_type_json.go index b447b1048..80a57643c 100644 --- a/clustersmgmt/v1/instance_iam_roles_list_type_json.go +++ b/clustersmgmt/v1/instance_iam_roles_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalInstanceIAMRolesList(list []*InstanceIAMRoles, writer io.Writer) error { stream := helpers.NewStream(writer) - writeInstanceIAMRolesList(list, stream) + WriteInstanceIAMRolesList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalInstanceIAMRolesList(list []*InstanceIAMRoles, writer io.Writer) err return stream.Error } -// writeInstanceIAMRolesList writes a list of value of the 'instance_IAM_roles' type to +// WriteInstanceIAMRolesList writes a list of value of the 'instance_IAM_roles' type to // the given stream. -func writeInstanceIAMRolesList(list []*InstanceIAMRoles, stream *jsoniter.Stream) { +func WriteInstanceIAMRolesList(list []*InstanceIAMRoles, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeInstanceIAMRoles(value, stream) + WriteInstanceIAMRoles(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalInstanceIAMRolesList(source interface{}) (items []*InstanceIAMRole if err != nil { return } - items = readInstanceIAMRolesList(iterator) + items = ReadInstanceIAMRolesList(iterator) err = iterator.Error return } -// readInstanceIAMRolesList reads list of values of the ”instance_IAM_roles' type from +// ReadInstanceIAMRolesList reads list of values of the ”instance_IAM_roles' type from // the given iterator. -func readInstanceIAMRolesList(iterator *jsoniter.Iterator) []*InstanceIAMRoles { +func ReadInstanceIAMRolesList(iterator *jsoniter.Iterator) []*InstanceIAMRoles { list := []*InstanceIAMRoles{} for iterator.ReadArray() { - item := readInstanceIAMRoles(iterator) + item := ReadInstanceIAMRoles(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/instance_iam_roles_type.go b/clustersmgmt/v1/instance_iam_roles_type.go index 983a5402f..15c78ae1a 100644 --- a/clustersmgmt/v1/instance_iam_roles_type.go +++ b/clustersmgmt/v1/instance_iam_roles_type.go @@ -106,6 +106,29 @@ func (l *InstanceIAMRolesList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *InstanceIAMRolesList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *InstanceIAMRolesList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *InstanceIAMRolesList) SetItems(items []*InstanceIAMRoles) { + l.items = items +} + +// Items returns the items of the list. +func (l *InstanceIAMRolesList) Items() []*InstanceIAMRoles { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *InstanceIAMRolesList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/instance_iam_roles_type_json.go b/clustersmgmt/v1/instance_iam_roles_type_json.go index 481f4029c..d0704a6cc 100644 --- a/clustersmgmt/v1/instance_iam_roles_type_json.go +++ b/clustersmgmt/v1/instance_iam_roles_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalInstanceIAMRoles writes a value of the 'instance_IAM_roles' type to the given writer. func MarshalInstanceIAMRoles(object *InstanceIAMRoles, writer io.Writer) error { stream := helpers.NewStream(writer) - writeInstanceIAMRoles(object, stream) + WriteInstanceIAMRoles(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalInstanceIAMRoles(object *InstanceIAMRoles, writer io.Writer) error { return stream.Error } -// writeInstanceIAMRoles writes a value of the 'instance_IAM_roles' type to the given stream. -func writeInstanceIAMRoles(object *InstanceIAMRoles, stream *jsoniter.Stream) { +// WriteInstanceIAMRoles writes a value of the 'instance_IAM_roles' type to the given stream. +func WriteInstanceIAMRoles(object *InstanceIAMRoles, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalInstanceIAMRoles(source interface{}) (object *InstanceIAMRoles, er if err != nil { return } - object = readInstanceIAMRoles(iterator) + object = ReadInstanceIAMRoles(iterator) err = iterator.Error return } -// readInstanceIAMRoles reads a value of the 'instance_IAM_roles' type from the given iterator. -func readInstanceIAMRoles(iterator *jsoniter.Iterator) *InstanceIAMRoles { +// ReadInstanceIAMRoles reads a value of the 'instance_IAM_roles' type from the given iterator. +func ReadInstanceIAMRoles(iterator *jsoniter.Iterator) *InstanceIAMRoles { object := &InstanceIAMRoles{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/integer_list_type_json.go b/clustersmgmt/v1/integer_list_type_json.go index 3417ea83e..6b869d469 100644 --- a/clustersmgmt/v1/integer_list_type_json.go +++ b/clustersmgmt/v1/integer_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalIntegerList(list []int, writer io.Writer) error { stream := helpers.NewStream(writer) - writeIntegerList(list, stream) + WriteIntegerList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalIntegerList(list []int, writer io.Writer) error { return stream.Error } -// writeIntegerList writes a list of value of the 'integer' type to +// WriteIntegerList writes a list of value of the 'integer' type to // the given stream. -func writeIntegerList(list []int, stream *jsoniter.Stream) { +func WriteIntegerList(list []int, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalIntegerList(source interface{}) (items []int, err error) { if err != nil { return } - items = readIntegerList(iterator) + items = ReadIntegerList(iterator) err = iterator.Error return } -// readIntegerList reads list of values of the ”integer' type from +// ReadIntegerList reads list of values of the ”integer' type from // the given iterator. -func readIntegerList(iterator *jsoniter.Iterator) []int { +func ReadIntegerList(iterator *jsoniter.Iterator) []int { list := []int{} for iterator.ReadArray() { item := iterator.ReadInt() diff --git a/clustersmgmt/v1/interface_list_type_json.go b/clustersmgmt/v1/interface_list_type_json.go index 64e8b3c70..27636c97d 100644 --- a/clustersmgmt/v1/interface_list_type_json.go +++ b/clustersmgmt/v1/interface_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalInterfaceList(list []interface{}, writer io.Writer) error { stream := helpers.NewStream(writer) - writeInterfaceList(list, stream) + WriteInterfaceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalInterfaceList(list []interface{}, writer io.Writer) error { return stream.Error } -// writeInterfaceList writes a list of value of the 'interface' type to +// WriteInterfaceList writes a list of value of the 'interface' type to // the given stream. -func writeInterfaceList(list []interface{}, stream *jsoniter.Stream) { +func WriteInterfaceList(list []interface{}, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalInterfaceList(source interface{}) (items []interface{}, err error) if err != nil { return } - items = readInterfaceList(iterator) + items = ReadInterfaceList(iterator) err = iterator.Error return } -// readInterfaceList reads list of values of the ”interface' type from +// ReadInterfaceList reads list of values of the ”interface' type from // the given iterator. -func readInterfaceList(iterator *jsoniter.Iterator) []interface{} { +func ReadInterfaceList(iterator *jsoniter.Iterator) []interface{} { list := []interface{}{} for iterator.ReadArray() { var item interface{} diff --git a/clustersmgmt/v1/key_ring_list_type_json.go b/clustersmgmt/v1/key_ring_list_type_json.go index b035715a6..fb79bd470 100644 --- a/clustersmgmt/v1/key_ring_list_type_json.go +++ b/clustersmgmt/v1/key_ring_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalKeyRingList(list []*KeyRing, writer io.Writer) error { stream := helpers.NewStream(writer) - writeKeyRingList(list, stream) + WriteKeyRingList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalKeyRingList(list []*KeyRing, writer io.Writer) error { return stream.Error } -// writeKeyRingList writes a list of value of the 'key_ring' type to +// WriteKeyRingList writes a list of value of the 'key_ring' type to // the given stream. -func writeKeyRingList(list []*KeyRing, stream *jsoniter.Stream) { +func WriteKeyRingList(list []*KeyRing, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeKeyRing(value, stream) + WriteKeyRing(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalKeyRingList(source interface{}) (items []*KeyRing, err error) { if err != nil { return } - items = readKeyRingList(iterator) + items = ReadKeyRingList(iterator) err = iterator.Error return } -// readKeyRingList reads list of values of the ”key_ring' type from +// ReadKeyRingList reads list of values of the ”key_ring' type from // the given iterator. -func readKeyRingList(iterator *jsoniter.Iterator) []*KeyRing { +func ReadKeyRingList(iterator *jsoniter.Iterator) []*KeyRing { list := []*KeyRing{} for iterator.ReadArray() { - item := readKeyRing(iterator) + item := ReadKeyRing(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/key_ring_type.go b/clustersmgmt/v1/key_ring_type.go index 26a13350c..aa50b9a22 100644 --- a/clustersmgmt/v1/key_ring_type.go +++ b/clustersmgmt/v1/key_ring_type.go @@ -52,7 +52,7 @@ func (o *KeyRing) Kind() string { return KeyRingKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *KeyRing) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -182,6 +182,29 @@ func (l *KeyRingList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *KeyRingList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *KeyRingList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *KeyRingList) SetItems(items []*KeyRing) { + l.items = items +} + +// Items returns the items of the list. +func (l *KeyRingList) Items() []*KeyRing { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *KeyRingList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/key_ring_type_json.go b/clustersmgmt/v1/key_ring_type_json.go index 281945bba..67033e30e 100644 --- a/clustersmgmt/v1/key_ring_type_json.go +++ b/clustersmgmt/v1/key_ring_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalKeyRing writes a value of the 'key_ring' type to the given writer. func MarshalKeyRing(object *KeyRing, writer io.Writer) error { stream := helpers.NewStream(writer) - writeKeyRing(object, stream) + WriteKeyRing(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalKeyRing(object *KeyRing, writer io.Writer) error { return stream.Error } -// writeKeyRing writes a value of the 'key_ring' type to the given stream. -func writeKeyRing(object *KeyRing, stream *jsoniter.Stream) { +// WriteKeyRing writes a value of the 'key_ring' type to the given stream. +func WriteKeyRing(object *KeyRing, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -83,13 +83,13 @@ func UnmarshalKeyRing(source interface{}) (object *KeyRing, err error) { if err != nil { return } - object = readKeyRing(iterator) + object = ReadKeyRing(iterator) err = iterator.Error return } -// readKeyRing reads a value of the 'key_ring' type from the given iterator. -func readKeyRing(iterator *jsoniter.Iterator) *KeyRing { +// ReadKeyRing reads a value of the 'key_ring' type from the given iterator. +func ReadKeyRing(iterator *jsoniter.Iterator) *KeyRing { object := &KeyRing{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/key_rings_inquiry_resource_json.go b/clustersmgmt/v1/key_rings_inquiry_resource_json.go index e28149bf7..155e32e75 100644 --- a/clustersmgmt/v1/key_rings_inquiry_resource_json.go +++ b/clustersmgmt/v1/key_rings_inquiry_resource_json.go @@ -49,7 +49,7 @@ func readKeyRingsInquirySearchResponse(response *KeyRingsInquirySearchResponse, value := iterator.ReadInt() response.total = &value case "items": - items := readKeyRingList(iterator) + items := ReadKeyRingList(iterator) response.items = &KeyRingList{ items: items, } diff --git a/clustersmgmt/v1/kubelet_config_list_type_json.go b/clustersmgmt/v1/kubelet_config_list_type_json.go index babb12da2..5bab34cf0 100644 --- a/clustersmgmt/v1/kubelet_config_list_type_json.go +++ b/clustersmgmt/v1/kubelet_config_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalKubeletConfigList(list []*KubeletConfig, writer io.Writer) error { stream := helpers.NewStream(writer) - writeKubeletConfigList(list, stream) + WriteKubeletConfigList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalKubeletConfigList(list []*KubeletConfig, writer io.Writer) error { return stream.Error } -// writeKubeletConfigList writes a list of value of the 'kubelet_config' type to +// WriteKubeletConfigList writes a list of value of the 'kubelet_config' type to // the given stream. -func writeKubeletConfigList(list []*KubeletConfig, stream *jsoniter.Stream) { +func WriteKubeletConfigList(list []*KubeletConfig, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeKubeletConfig(value, stream) + WriteKubeletConfig(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalKubeletConfigList(source interface{}) (items []*KubeletConfig, err if err != nil { return } - items = readKubeletConfigList(iterator) + items = ReadKubeletConfigList(iterator) err = iterator.Error return } -// readKubeletConfigList reads list of values of the ”kubelet_config' type from +// ReadKubeletConfigList reads list of values of the ”kubelet_config' type from // the given iterator. -func readKubeletConfigList(iterator *jsoniter.Iterator) []*KubeletConfig { +func ReadKubeletConfigList(iterator *jsoniter.Iterator) []*KubeletConfig { list := []*KubeletConfig{} for iterator.ReadArray() { - item := readKubeletConfig(iterator) + item := ReadKubeletConfig(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/kubelet_config_type.go b/clustersmgmt/v1/kubelet_config_type.go index 8b4218739..59037352b 100644 --- a/clustersmgmt/v1/kubelet_config_type.go +++ b/clustersmgmt/v1/kubelet_config_type.go @@ -54,7 +54,7 @@ func (o *KubeletConfig) Kind() string { return KubeletConfigKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *KubeletConfig) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -211,6 +211,29 @@ func (l *KubeletConfigList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *KubeletConfigList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *KubeletConfigList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *KubeletConfigList) SetItems(items []*KubeletConfig) { + l.items = items +} + +// Items returns the items of the list. +func (l *KubeletConfigList) Items() []*KubeletConfig { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *KubeletConfigList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/kubelet_config_type_json.go b/clustersmgmt/v1/kubelet_config_type_json.go index 27dca2c9e..07278bab1 100644 --- a/clustersmgmt/v1/kubelet_config_type_json.go +++ b/clustersmgmt/v1/kubelet_config_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalKubeletConfig writes a value of the 'kubelet_config' type to the given writer. func MarshalKubeletConfig(object *KubeletConfig, writer io.Writer) error { stream := helpers.NewStream(writer) - writeKubeletConfig(object, stream) + WriteKubeletConfig(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalKubeletConfig(object *KubeletConfig, writer io.Writer) error { return stream.Error } -// writeKubeletConfig writes a value of the 'kubelet_config' type to the given stream. -func writeKubeletConfig(object *KubeletConfig, stream *jsoniter.Stream) { +// WriteKubeletConfig writes a value of the 'kubelet_config' type to the given stream. +func WriteKubeletConfig(object *KubeletConfig, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -92,13 +92,13 @@ func UnmarshalKubeletConfig(source interface{}) (object *KubeletConfig, err erro if err != nil { return } - object = readKubeletConfig(iterator) + object = ReadKubeletConfig(iterator) err = iterator.Error return } -// readKubeletConfig reads a value of the 'kubelet_config' type from the given iterator. -func readKubeletConfig(iterator *jsoniter.Iterator) *KubeletConfig { +// ReadKubeletConfig reads a value of the 'kubelet_config' type from the given iterator. +func ReadKubeletConfig(iterator *jsoniter.Iterator) *KubeletConfig { object := &KubeletConfig{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/kubelet_configs_resource_json.go b/clustersmgmt/v1/kubelet_configs_resource_json.go index 3272d1a5a..c8ecfe424 100644 --- a/clustersmgmt/v1/kubelet_configs_resource_json.go +++ b/clustersmgmt/v1/kubelet_configs_resource_json.go @@ -57,7 +57,7 @@ func readKubeletConfigsListResponse(response *KubeletConfigsListResponse, reader value := iterator.ReadInt() response.total = &value case "items": - items := readKubeletConfigList(iterator) + items := ReadKubeletConfigList(iterator) response.items = &KubeletConfigList{ items: items, } diff --git a/clustersmgmt/v1/label_list_type_json.go b/clustersmgmt/v1/label_list_type_json.go index 2f17530f5..5c8aa069a 100644 --- a/clustersmgmt/v1/label_list_type_json.go +++ b/clustersmgmt/v1/label_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalLabelList(list []*Label, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLabelList(list, stream) + WriteLabelList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalLabelList(list []*Label, writer io.Writer) error { return stream.Error } -// writeLabelList writes a list of value of the 'label' type to +// WriteLabelList writes a list of value of the 'label' type to // the given stream. -func writeLabelList(list []*Label, stream *jsoniter.Stream) { +func WriteLabelList(list []*Label, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeLabel(value, stream) + WriteLabel(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalLabelList(source interface{}) (items []*Label, err error) { if err != nil { return } - items = readLabelList(iterator) + items = ReadLabelList(iterator) err = iterator.Error return } -// readLabelList reads list of values of the ”label' type from +// ReadLabelList reads list of values of the ”label' type from // the given iterator. -func readLabelList(iterator *jsoniter.Iterator) []*Label { +func ReadLabelList(iterator *jsoniter.Iterator) []*Label { list := []*Label{} for iterator.ReadArray() { - item := readLabel(iterator) + item := ReadLabel(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/label_type.go b/clustersmgmt/v1/label_type.go index da3792b52..8bc27d925 100644 --- a/clustersmgmt/v1/label_type.go +++ b/clustersmgmt/v1/label_type.go @@ -53,7 +53,7 @@ func (o *Label) Kind() string { return LabelKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Label) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -206,6 +206,29 @@ func (l *LabelList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *LabelList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *LabelList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *LabelList) SetItems(items []*Label) { + l.items = items +} + +// Items returns the items of the list. +func (l *LabelList) Items() []*Label { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *LabelList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/label_type_json.go b/clustersmgmt/v1/label_type_json.go index c2205294e..5202b3335 100644 --- a/clustersmgmt/v1/label_type_json.go +++ b/clustersmgmt/v1/label_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalLabel writes a value of the 'label' type to the given writer. func MarshalLabel(object *Label, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLabel(object, stream) + WriteLabel(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalLabel(object *Label, writer io.Writer) error { return stream.Error } -// writeLabel writes a value of the 'label' type to the given stream. -func writeLabel(object *Label, stream *jsoniter.Stream) { +// WriteLabel writes a value of the 'label' type to the given stream. +func WriteLabel(object *Label, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -92,13 +92,13 @@ func UnmarshalLabel(source interface{}) (object *Label, err error) { if err != nil { return } - object = readLabel(iterator) + object = ReadLabel(iterator) err = iterator.Error return } -// readLabel reads a value of the 'label' type from the given iterator. -func readLabel(iterator *jsoniter.Iterator) *Label { +// ReadLabel reads a value of the 'label' type from the given iterator. +func ReadLabel(iterator *jsoniter.Iterator) *Label { object := &Label{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/labels_resource_json.go b/clustersmgmt/v1/labels_resource_json.go index 8351096f0..fadb68c9e 100644 --- a/clustersmgmt/v1/labels_resource_json.go +++ b/clustersmgmt/v1/labels_resource_json.go @@ -57,7 +57,7 @@ func readLabelsListResponse(response *LabelsListResponse, reader io.Reader) erro value := iterator.ReadInt() response.total = &value case "items": - items := readLabelList(iterator) + items := ReadLabelList(iterator) response.items = &LabelList{ items: items, } diff --git a/clustersmgmt/v1/ldap_attributes_list_type_json.go b/clustersmgmt/v1/ldap_attributes_list_type_json.go index ba385ce22..634ef661f 100644 --- a/clustersmgmt/v1/ldap_attributes_list_type_json.go +++ b/clustersmgmt/v1/ldap_attributes_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalLDAPAttributesList(list []*LDAPAttributes, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLDAPAttributesList(list, stream) + WriteLDAPAttributesList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalLDAPAttributesList(list []*LDAPAttributes, writer io.Writer) error { return stream.Error } -// writeLDAPAttributesList writes a list of value of the 'LDAP_attributes' type to +// WriteLDAPAttributesList writes a list of value of the 'LDAP_attributes' type to // the given stream. -func writeLDAPAttributesList(list []*LDAPAttributes, stream *jsoniter.Stream) { +func WriteLDAPAttributesList(list []*LDAPAttributes, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeLDAPAttributes(value, stream) + WriteLDAPAttributes(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalLDAPAttributesList(source interface{}) (items []*LDAPAttributes, e if err != nil { return } - items = readLDAPAttributesList(iterator) + items = ReadLDAPAttributesList(iterator) err = iterator.Error return } -// readLDAPAttributesList reads list of values of the ”LDAP_attributes' type from +// ReadLDAPAttributesList reads list of values of the ”LDAP_attributes' type from // the given iterator. -func readLDAPAttributesList(iterator *jsoniter.Iterator) []*LDAPAttributes { +func ReadLDAPAttributesList(iterator *jsoniter.Iterator) []*LDAPAttributes { list := []*LDAPAttributes{} for iterator.ReadArray() { - item := readLDAPAttributes(iterator) + item := ReadLDAPAttributes(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/ldap_attributes_type.go b/clustersmgmt/v1/ldap_attributes_type.go index d42329068..d335bb671 100644 --- a/clustersmgmt/v1/ldap_attributes_type.go +++ b/clustersmgmt/v1/ldap_attributes_type.go @@ -154,6 +154,29 @@ func (l *LDAPAttributesList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *LDAPAttributesList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *LDAPAttributesList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *LDAPAttributesList) SetItems(items []*LDAPAttributes) { + l.items = items +} + +// Items returns the items of the list. +func (l *LDAPAttributesList) Items() []*LDAPAttributes { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *LDAPAttributesList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/ldap_attributes_type_json.go b/clustersmgmt/v1/ldap_attributes_type_json.go index 16b31fed9..28920a8e4 100644 --- a/clustersmgmt/v1/ldap_attributes_type_json.go +++ b/clustersmgmt/v1/ldap_attributes_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalLDAPAttributes writes a value of the 'LDAP_attributes' type to the given writer. func MarshalLDAPAttributes(object *LDAPAttributes, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLDAPAttributes(object, stream) + WriteLDAPAttributes(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalLDAPAttributes(object *LDAPAttributes, writer io.Writer) error { return stream.Error } -// writeLDAPAttributes writes a value of the 'LDAP_attributes' type to the given stream. -func writeLDAPAttributes(object *LDAPAttributes, stream *jsoniter.Stream) { +// WriteLDAPAttributes writes a value of the 'LDAP_attributes' type to the given stream. +func WriteLDAPAttributes(object *LDAPAttributes, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeLDAPAttributes(object *LDAPAttributes, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("id") - writeStringList(object.id, stream) + WriteStringList(object.id, stream) count++ } present_ = object.bitmap_&2 != 0 && object.email != nil @@ -57,7 +57,7 @@ func writeLDAPAttributes(object *LDAPAttributes, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("email") - writeStringList(object.email, stream) + WriteStringList(object.email, stream) count++ } present_ = object.bitmap_&4 != 0 && object.name != nil @@ -66,7 +66,7 @@ func writeLDAPAttributes(object *LDAPAttributes, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("name") - writeStringList(object.name, stream) + WriteStringList(object.name, stream) count++ } present_ = object.bitmap_&8 != 0 && object.preferredUsername != nil @@ -75,7 +75,7 @@ func writeLDAPAttributes(object *LDAPAttributes, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("preferred_username") - writeStringList(object.preferredUsername, stream) + WriteStringList(object.preferredUsername, stream) } stream.WriteObjectEnd() } @@ -87,13 +87,13 @@ func UnmarshalLDAPAttributes(source interface{}) (object *LDAPAttributes, err er if err != nil { return } - object = readLDAPAttributes(iterator) + object = ReadLDAPAttributes(iterator) err = iterator.Error return } -// readLDAPAttributes reads a value of the 'LDAP_attributes' type from the given iterator. -func readLDAPAttributes(iterator *jsoniter.Iterator) *LDAPAttributes { +// ReadLDAPAttributes reads a value of the 'LDAP_attributes' type from the given iterator. +func ReadLDAPAttributes(iterator *jsoniter.Iterator) *LDAPAttributes { object := &LDAPAttributes{} for { field := iterator.ReadObject() @@ -102,19 +102,19 @@ func readLDAPAttributes(iterator *jsoniter.Iterator) *LDAPAttributes { } switch field { case "id": - value := readStringList(iterator) + value := ReadStringList(iterator) object.id = value object.bitmap_ |= 1 case "email": - value := readStringList(iterator) + value := ReadStringList(iterator) object.email = value object.bitmap_ |= 2 case "name": - value := readStringList(iterator) + value := ReadStringList(iterator) object.name = value object.bitmap_ |= 4 case "preferred_username": - value := readStringList(iterator) + value := ReadStringList(iterator) object.preferredUsername = value object.bitmap_ |= 8 default: diff --git a/clustersmgmt/v1/ldap_identity_provider_list_type_json.go b/clustersmgmt/v1/ldap_identity_provider_list_type_json.go index ed3d92ecb..01cbb7065 100644 --- a/clustersmgmt/v1/ldap_identity_provider_list_type_json.go +++ b/clustersmgmt/v1/ldap_identity_provider_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalLDAPIdentityProviderList(list []*LDAPIdentityProvider, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLDAPIdentityProviderList(list, stream) + WriteLDAPIdentityProviderList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalLDAPIdentityProviderList(list []*LDAPIdentityProvider, writer io.Wri return stream.Error } -// writeLDAPIdentityProviderList writes a list of value of the 'LDAP_identity_provider' type to +// WriteLDAPIdentityProviderList writes a list of value of the 'LDAP_identity_provider' type to // the given stream. -func writeLDAPIdentityProviderList(list []*LDAPIdentityProvider, stream *jsoniter.Stream) { +func WriteLDAPIdentityProviderList(list []*LDAPIdentityProvider, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeLDAPIdentityProvider(value, stream) + WriteLDAPIdentityProvider(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalLDAPIdentityProviderList(source interface{}) (items []*LDAPIdentit if err != nil { return } - items = readLDAPIdentityProviderList(iterator) + items = ReadLDAPIdentityProviderList(iterator) err = iterator.Error return } -// readLDAPIdentityProviderList reads list of values of the ”LDAP_identity_provider' type from +// ReadLDAPIdentityProviderList reads list of values of the ”LDAP_identity_provider' type from // the given iterator. -func readLDAPIdentityProviderList(iterator *jsoniter.Iterator) []*LDAPIdentityProvider { +func ReadLDAPIdentityProviderList(iterator *jsoniter.Iterator) []*LDAPIdentityProvider { list := []*LDAPIdentityProvider{} for iterator.ReadArray() { - item := readLDAPIdentityProvider(iterator) + item := ReadLDAPIdentityProvider(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/ldap_identity_provider_type.go b/clustersmgmt/v1/ldap_identity_provider_type.go index 33a10ecd9..be34e2cc6 100644 --- a/clustersmgmt/v1/ldap_identity_provider_type.go +++ b/clustersmgmt/v1/ldap_identity_provider_type.go @@ -206,6 +206,29 @@ func (l *LDAPIdentityProviderList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *LDAPIdentityProviderList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *LDAPIdentityProviderList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *LDAPIdentityProviderList) SetItems(items []*LDAPIdentityProvider) { + l.items = items +} + +// Items returns the items of the list. +func (l *LDAPIdentityProviderList) Items() []*LDAPIdentityProvider { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *LDAPIdentityProviderList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/ldap_identity_provider_type_json.go b/clustersmgmt/v1/ldap_identity_provider_type_json.go index 584ca19c0..13f76b6ac 100644 --- a/clustersmgmt/v1/ldap_identity_provider_type_json.go +++ b/clustersmgmt/v1/ldap_identity_provider_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalLDAPIdentityProvider writes a value of the 'LDAP_identity_provider' type to the given writer. func MarshalLDAPIdentityProvider(object *LDAPIdentityProvider, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLDAPIdentityProvider(object, stream) + WriteLDAPIdentityProvider(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalLDAPIdentityProvider(object *LDAPIdentityProvider, writer io.Writer) return stream.Error } -// writeLDAPIdentityProvider writes a value of the 'LDAP_identity_provider' type to the given stream. -func writeLDAPIdentityProvider(object *LDAPIdentityProvider, stream *jsoniter.Stream) { +// WriteLDAPIdentityProvider writes a value of the 'LDAP_identity_provider' type to the given stream. +func WriteLDAPIdentityProvider(object *LDAPIdentityProvider, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -66,7 +66,7 @@ func writeLDAPIdentityProvider(object *LDAPIdentityProvider, stream *jsoniter.St stream.WriteMore() } stream.WriteObjectField("attributes") - writeLDAPAttributes(object.attributes, stream) + WriteLDAPAttributes(object.attributes, stream) count++ } present_ = object.bitmap_&8 != 0 @@ -105,13 +105,13 @@ func UnmarshalLDAPIdentityProvider(source interface{}) (object *LDAPIdentityProv if err != nil { return } - object = readLDAPIdentityProvider(iterator) + object = ReadLDAPIdentityProvider(iterator) err = iterator.Error return } -// readLDAPIdentityProvider reads a value of the 'LDAP_identity_provider' type from the given iterator. -func readLDAPIdentityProvider(iterator *jsoniter.Iterator) *LDAPIdentityProvider { +// ReadLDAPIdentityProvider reads a value of the 'LDAP_identity_provider' type from the given iterator. +func ReadLDAPIdentityProvider(iterator *jsoniter.Iterator) *LDAPIdentityProvider { object := &LDAPIdentityProvider{} for { field := iterator.ReadObject() @@ -128,7 +128,7 @@ func readLDAPIdentityProvider(iterator *jsoniter.Iterator) *LDAPIdentityProvider object.url = value object.bitmap_ |= 2 case "attributes": - value := readLDAPAttributes(iterator) + value := ReadLDAPAttributes(iterator) object.attributes = value object.bitmap_ |= 4 case "bind_dn": diff --git a/clustersmgmt/v1/limited_support_reason_list_type_json.go b/clustersmgmt/v1/limited_support_reason_list_type_json.go index c91d9acbd..94910b0f7 100644 --- a/clustersmgmt/v1/limited_support_reason_list_type_json.go +++ b/clustersmgmt/v1/limited_support_reason_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalLimitedSupportReasonList(list []*LimitedSupportReason, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLimitedSupportReasonList(list, stream) + WriteLimitedSupportReasonList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalLimitedSupportReasonList(list []*LimitedSupportReason, writer io.Wri return stream.Error } -// writeLimitedSupportReasonList writes a list of value of the 'limited_support_reason' type to +// WriteLimitedSupportReasonList writes a list of value of the 'limited_support_reason' type to // the given stream. -func writeLimitedSupportReasonList(list []*LimitedSupportReason, stream *jsoniter.Stream) { +func WriteLimitedSupportReasonList(list []*LimitedSupportReason, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeLimitedSupportReason(value, stream) + WriteLimitedSupportReason(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalLimitedSupportReasonList(source interface{}) (items []*LimitedSupp if err != nil { return } - items = readLimitedSupportReasonList(iterator) + items = ReadLimitedSupportReasonList(iterator) err = iterator.Error return } -// readLimitedSupportReasonList reads list of values of the ”limited_support_reason' type from +// ReadLimitedSupportReasonList reads list of values of the ”limited_support_reason' type from // the given iterator. -func readLimitedSupportReasonList(iterator *jsoniter.Iterator) []*LimitedSupportReason { +func ReadLimitedSupportReasonList(iterator *jsoniter.Iterator) []*LimitedSupportReason { list := []*LimitedSupportReason{} for iterator.ReadArray() { - item := readLimitedSupportReason(iterator) + item := ReadLimitedSupportReason(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/limited_support_reason_override_list_type_json.go b/clustersmgmt/v1/limited_support_reason_override_list_type_json.go index 0956cd5ed..624c6c674 100644 --- a/clustersmgmt/v1/limited_support_reason_override_list_type_json.go +++ b/clustersmgmt/v1/limited_support_reason_override_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalLimitedSupportReasonOverrideList(list []*LimitedSupportReasonOverride, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLimitedSupportReasonOverrideList(list, stream) + WriteLimitedSupportReasonOverrideList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalLimitedSupportReasonOverrideList(list []*LimitedSupportReasonOverrid return stream.Error } -// writeLimitedSupportReasonOverrideList writes a list of value of the 'limited_support_reason_override' type to +// WriteLimitedSupportReasonOverrideList writes a list of value of the 'limited_support_reason_override' type to // the given stream. -func writeLimitedSupportReasonOverrideList(list []*LimitedSupportReasonOverride, stream *jsoniter.Stream) { +func WriteLimitedSupportReasonOverrideList(list []*LimitedSupportReasonOverride, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeLimitedSupportReasonOverride(value, stream) + WriteLimitedSupportReasonOverride(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalLimitedSupportReasonOverrideList(source interface{}) (items []*Lim if err != nil { return } - items = readLimitedSupportReasonOverrideList(iterator) + items = ReadLimitedSupportReasonOverrideList(iterator) err = iterator.Error return } -// readLimitedSupportReasonOverrideList reads list of values of the ”limited_support_reason_override' type from +// ReadLimitedSupportReasonOverrideList reads list of values of the ”limited_support_reason_override' type from // the given iterator. -func readLimitedSupportReasonOverrideList(iterator *jsoniter.Iterator) []*LimitedSupportReasonOverride { +func ReadLimitedSupportReasonOverrideList(iterator *jsoniter.Iterator) []*LimitedSupportReasonOverride { list := []*LimitedSupportReasonOverride{} for iterator.ReadArray() { - item := readLimitedSupportReasonOverride(iterator) + item := ReadLimitedSupportReasonOverride(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/limited_support_reason_override_type.go b/clustersmgmt/v1/limited_support_reason_override_type.go index fcd7638cd..63f12380b 100644 --- a/clustersmgmt/v1/limited_support_reason_override_type.go +++ b/clustersmgmt/v1/limited_support_reason_override_type.go @@ -52,7 +52,7 @@ func (o *LimitedSupportReasonOverride) Kind() string { return LimitedSupportReasonOverrideKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *LimitedSupportReasonOverride) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -182,6 +182,29 @@ func (l *LimitedSupportReasonOverrideList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *LimitedSupportReasonOverrideList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *LimitedSupportReasonOverrideList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *LimitedSupportReasonOverrideList) SetItems(items []*LimitedSupportReasonOverride) { + l.items = items +} + +// Items returns the items of the list. +func (l *LimitedSupportReasonOverrideList) Items() []*LimitedSupportReasonOverride { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *LimitedSupportReasonOverrideList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/limited_support_reason_override_type_json.go b/clustersmgmt/v1/limited_support_reason_override_type_json.go index 5a936133f..1c627d550 100644 --- a/clustersmgmt/v1/limited_support_reason_override_type_json.go +++ b/clustersmgmt/v1/limited_support_reason_override_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalLimitedSupportReasonOverride writes a value of the 'limited_support_reason_override' type to the given writer. func MarshalLimitedSupportReasonOverride(object *LimitedSupportReasonOverride, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLimitedSupportReasonOverride(object, stream) + WriteLimitedSupportReasonOverride(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalLimitedSupportReasonOverride(object *LimitedSupportReasonOverride, w return stream.Error } -// writeLimitedSupportReasonOverride writes a value of the 'limited_support_reason_override' type to the given stream. -func writeLimitedSupportReasonOverride(object *LimitedSupportReasonOverride, stream *jsoniter.Stream) { +// WriteLimitedSupportReasonOverride writes a value of the 'limited_support_reason_override' type to the given stream. +func WriteLimitedSupportReasonOverride(object *LimitedSupportReasonOverride, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -83,13 +83,13 @@ func UnmarshalLimitedSupportReasonOverride(source interface{}) (object *LimitedS if err != nil { return } - object = readLimitedSupportReasonOverride(iterator) + object = ReadLimitedSupportReasonOverride(iterator) err = iterator.Error return } -// readLimitedSupportReasonOverride reads a value of the 'limited_support_reason_override' type from the given iterator. -func readLimitedSupportReasonOverride(iterator *jsoniter.Iterator) *LimitedSupportReasonOverride { +// ReadLimitedSupportReasonOverride reads a value of the 'limited_support_reason_override' type from the given iterator. +func ReadLimitedSupportReasonOverride(iterator *jsoniter.Iterator) *LimitedSupportReasonOverride { object := &LimitedSupportReasonOverride{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/limited_support_reason_template_list_type_json.go b/clustersmgmt/v1/limited_support_reason_template_list_type_json.go index 14abccbd5..19ec1db49 100644 --- a/clustersmgmt/v1/limited_support_reason_template_list_type_json.go +++ b/clustersmgmt/v1/limited_support_reason_template_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalLimitedSupportReasonTemplateList(list []*LimitedSupportReasonTemplate, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLimitedSupportReasonTemplateList(list, stream) + WriteLimitedSupportReasonTemplateList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalLimitedSupportReasonTemplateList(list []*LimitedSupportReasonTemplat return stream.Error } -// writeLimitedSupportReasonTemplateList writes a list of value of the 'limited_support_reason_template' type to +// WriteLimitedSupportReasonTemplateList writes a list of value of the 'limited_support_reason_template' type to // the given stream. -func writeLimitedSupportReasonTemplateList(list []*LimitedSupportReasonTemplate, stream *jsoniter.Stream) { +func WriteLimitedSupportReasonTemplateList(list []*LimitedSupportReasonTemplate, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeLimitedSupportReasonTemplate(value, stream) + WriteLimitedSupportReasonTemplate(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalLimitedSupportReasonTemplateList(source interface{}) (items []*Lim if err != nil { return } - items = readLimitedSupportReasonTemplateList(iterator) + items = ReadLimitedSupportReasonTemplateList(iterator) err = iterator.Error return } -// readLimitedSupportReasonTemplateList reads list of values of the ”limited_support_reason_template' type from +// ReadLimitedSupportReasonTemplateList reads list of values of the ”limited_support_reason_template' type from // the given iterator. -func readLimitedSupportReasonTemplateList(iterator *jsoniter.Iterator) []*LimitedSupportReasonTemplate { +func ReadLimitedSupportReasonTemplateList(iterator *jsoniter.Iterator) []*LimitedSupportReasonTemplate { list := []*LimitedSupportReasonTemplate{} for iterator.ReadArray() { - item := readLimitedSupportReasonTemplate(iterator) + item := ReadLimitedSupportReasonTemplate(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/limited_support_reason_template_type.go b/clustersmgmt/v1/limited_support_reason_template_type.go index b6a2c2356..c63dd23ef 100644 --- a/clustersmgmt/v1/limited_support_reason_template_type.go +++ b/clustersmgmt/v1/limited_support_reason_template_type.go @@ -53,7 +53,7 @@ func (o *LimitedSupportReasonTemplate) Kind() string { return LimitedSupportReasonTemplateKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *LimitedSupportReasonTemplate) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -206,6 +206,29 @@ func (l *LimitedSupportReasonTemplateList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *LimitedSupportReasonTemplateList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *LimitedSupportReasonTemplateList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *LimitedSupportReasonTemplateList) SetItems(items []*LimitedSupportReasonTemplate) { + l.items = items +} + +// Items returns the items of the list. +func (l *LimitedSupportReasonTemplateList) Items() []*LimitedSupportReasonTemplate { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *LimitedSupportReasonTemplateList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/limited_support_reason_template_type_json.go b/clustersmgmt/v1/limited_support_reason_template_type_json.go index ee7b04ac1..4d797e236 100644 --- a/clustersmgmt/v1/limited_support_reason_template_type_json.go +++ b/clustersmgmt/v1/limited_support_reason_template_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalLimitedSupportReasonTemplate writes a value of the 'limited_support_reason_template' type to the given writer. func MarshalLimitedSupportReasonTemplate(object *LimitedSupportReasonTemplate, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLimitedSupportReasonTemplate(object, stream) + WriteLimitedSupportReasonTemplate(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalLimitedSupportReasonTemplate(object *LimitedSupportReasonTemplate, w return stream.Error } -// writeLimitedSupportReasonTemplate writes a value of the 'limited_support_reason_template' type to the given stream. -func writeLimitedSupportReasonTemplate(object *LimitedSupportReasonTemplate, stream *jsoniter.Stream) { +// WriteLimitedSupportReasonTemplate writes a value of the 'limited_support_reason_template' type to the given stream. +func WriteLimitedSupportReasonTemplate(object *LimitedSupportReasonTemplate, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -92,13 +92,13 @@ func UnmarshalLimitedSupportReasonTemplate(source interface{}) (object *LimitedS if err != nil { return } - object = readLimitedSupportReasonTemplate(iterator) + object = ReadLimitedSupportReasonTemplate(iterator) err = iterator.Error return } -// readLimitedSupportReasonTemplate reads a value of the 'limited_support_reason_template' type from the given iterator. -func readLimitedSupportReasonTemplate(iterator *jsoniter.Iterator) *LimitedSupportReasonTemplate { +// ReadLimitedSupportReasonTemplate reads a value of the 'limited_support_reason_template' type from the given iterator. +func ReadLimitedSupportReasonTemplate(iterator *jsoniter.Iterator) *LimitedSupportReasonTemplate { object := &LimitedSupportReasonTemplate{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/limited_support_reason_templates_resource_json.go b/clustersmgmt/v1/limited_support_reason_templates_resource_json.go index 687bacf22..63bda6161 100644 --- a/clustersmgmt/v1/limited_support_reason_templates_resource_json.go +++ b/clustersmgmt/v1/limited_support_reason_templates_resource_json.go @@ -49,7 +49,7 @@ func readLimitedSupportReasonTemplatesListResponse(response *LimitedSupportReaso value := iterator.ReadInt() response.total = &value case "items": - items := readLimitedSupportReasonTemplateList(iterator) + items := ReadLimitedSupportReasonTemplateList(iterator) response.items = &LimitedSupportReasonTemplateList{ items: items, } diff --git a/clustersmgmt/v1/limited_support_reason_type.go b/clustersmgmt/v1/limited_support_reason_type.go index 9194c4c5c..65223d4c7 100644 --- a/clustersmgmt/v1/limited_support_reason_type.go +++ b/clustersmgmt/v1/limited_support_reason_type.go @@ -61,7 +61,7 @@ func (o *LimitedSupportReason) Kind() string { return LimitedSupportReasonKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *LimitedSupportReason) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -308,6 +308,29 @@ func (l *LimitedSupportReasonList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *LimitedSupportReasonList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *LimitedSupportReasonList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *LimitedSupportReasonList) SetItems(items []*LimitedSupportReason) { + l.items = items +} + +// Items returns the items of the list. +func (l *LimitedSupportReasonList) Items() []*LimitedSupportReason { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *LimitedSupportReasonList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/limited_support_reason_type_json.go b/clustersmgmt/v1/limited_support_reason_type_json.go index 9f09d05ba..aacd8a163 100644 --- a/clustersmgmt/v1/limited_support_reason_type_json.go +++ b/clustersmgmt/v1/limited_support_reason_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalLimitedSupportReason writes a value of the 'limited_support_reason' type to the given writer. func MarshalLimitedSupportReason(object *LimitedSupportReason, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLimitedSupportReason(object, stream) + WriteLimitedSupportReason(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalLimitedSupportReason(object *LimitedSupportReason, writer io.Writer) return stream.Error } -// writeLimitedSupportReason writes a value of the 'limited_support_reason' type to the given stream. -func writeLimitedSupportReason(object *LimitedSupportReason, stream *jsoniter.Stream) { +// WriteLimitedSupportReason writes a value of the 'limited_support_reason' type to the given stream. +func WriteLimitedSupportReason(object *LimitedSupportReason, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -99,7 +99,7 @@ func writeLimitedSupportReason(object *LimitedSupportReason, stream *jsoniter.St stream.WriteMore() } stream.WriteObjectField("override") - writeLimitedSupportReasonOverride(object.override, stream) + WriteLimitedSupportReasonOverride(object.override, stream) count++ } present_ = object.bitmap_&128 != 0 @@ -117,7 +117,7 @@ func writeLimitedSupportReason(object *LimitedSupportReason, stream *jsoniter.St stream.WriteMore() } stream.WriteObjectField("template") - writeLimitedSupportReasonTemplate(object.template, stream) + WriteLimitedSupportReasonTemplate(object.template, stream) } stream.WriteObjectEnd() } @@ -129,13 +129,13 @@ func UnmarshalLimitedSupportReason(source interface{}) (object *LimitedSupportRe if err != nil { return } - object = readLimitedSupportReason(iterator) + object = ReadLimitedSupportReason(iterator) err = iterator.Error return } -// readLimitedSupportReason reads a value of the 'limited_support_reason' type from the given iterator. -func readLimitedSupportReason(iterator *jsoniter.Iterator) *LimitedSupportReason { +// ReadLimitedSupportReason reads a value of the 'limited_support_reason' type from the given iterator. +func ReadLimitedSupportReason(iterator *jsoniter.Iterator) *LimitedSupportReason { object := &LimitedSupportReason{} for { field := iterator.ReadObject() @@ -172,7 +172,7 @@ func readLimitedSupportReason(iterator *jsoniter.Iterator) *LimitedSupportReason object.detectionType = value object.bitmap_ |= 32 case "override": - value := readLimitedSupportReasonOverride(iterator) + value := ReadLimitedSupportReasonOverride(iterator) object.override = value object.bitmap_ |= 64 case "summary": @@ -180,7 +180,7 @@ func readLimitedSupportReason(iterator *jsoniter.Iterator) *LimitedSupportReason object.summary = value object.bitmap_ |= 128 case "template": - value := readLimitedSupportReasonTemplate(iterator) + value := ReadLimitedSupportReasonTemplate(iterator) object.template = value object.bitmap_ |= 256 default: diff --git a/clustersmgmt/v1/limited_support_reasons_resource_json.go b/clustersmgmt/v1/limited_support_reasons_resource_json.go index 22448431d..8ce5e50e4 100644 --- a/clustersmgmt/v1/limited_support_reasons_resource_json.go +++ b/clustersmgmt/v1/limited_support_reasons_resource_json.go @@ -57,7 +57,7 @@ func readLimitedSupportReasonsListResponse(response *LimitedSupportReasonsListRe value := iterator.ReadInt() response.total = &value case "items": - items := readLimitedSupportReasonList(iterator) + items := ReadLimitedSupportReasonList(iterator) response.items = &LimitedSupportReasonList{ items: items, } diff --git a/clustersmgmt/v1/listening_method_list_type_json.go b/clustersmgmt/v1/listening_method_list_type_json.go index 494f4cf4d..3ca3fa917 100644 --- a/clustersmgmt/v1/listening_method_list_type_json.go +++ b/clustersmgmt/v1/listening_method_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalListeningMethodList(list []ListeningMethod, writer io.Writer) error { stream := helpers.NewStream(writer) - writeListeningMethodList(list, stream) + WriteListeningMethodList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalListeningMethodList(list []ListeningMethod, writer io.Writer) error return stream.Error } -// writeListeningMethodList writes a list of value of the 'listening_method' type to +// WriteListeningMethodList writes a list of value of the 'listening_method' type to // the given stream. -func writeListeningMethodList(list []ListeningMethod, stream *jsoniter.Stream) { +func WriteListeningMethodList(list []ListeningMethod, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalListeningMethodList(source interface{}) (items []ListeningMethod, if err != nil { return } - items = readListeningMethodList(iterator) + items = ReadListeningMethodList(iterator) err = iterator.Error return } -// readListeningMethodList reads list of values of the ”listening_method' type from +// ReadListeningMethodList reads list of values of the ”listening_method' type from // the given iterator. -func readListeningMethodList(iterator *jsoniter.Iterator) []ListeningMethod { +func ReadListeningMethodList(iterator *jsoniter.Iterator) []ListeningMethod { list := []ListeningMethod{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/load_balancer_flavor_list_type_json.go b/clustersmgmt/v1/load_balancer_flavor_list_type_json.go index ea84f51be..035ef6494 100644 --- a/clustersmgmt/v1/load_balancer_flavor_list_type_json.go +++ b/clustersmgmt/v1/load_balancer_flavor_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalLoadBalancerFlavorList(list []LoadBalancerFlavor, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLoadBalancerFlavorList(list, stream) + WriteLoadBalancerFlavorList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalLoadBalancerFlavorList(list []LoadBalancerFlavor, writer io.Writer) return stream.Error } -// writeLoadBalancerFlavorList writes a list of value of the 'load_balancer_flavor' type to +// WriteLoadBalancerFlavorList writes a list of value of the 'load_balancer_flavor' type to // the given stream. -func writeLoadBalancerFlavorList(list []LoadBalancerFlavor, stream *jsoniter.Stream) { +func WriteLoadBalancerFlavorList(list []LoadBalancerFlavor, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalLoadBalancerFlavorList(source interface{}) (items []LoadBalancerFl if err != nil { return } - items = readLoadBalancerFlavorList(iterator) + items = ReadLoadBalancerFlavorList(iterator) err = iterator.Error return } -// readLoadBalancerFlavorList reads list of values of the ”load_balancer_flavor' type from +// ReadLoadBalancerFlavorList reads list of values of the ”load_balancer_flavor' type from // the given iterator. -func readLoadBalancerFlavorList(iterator *jsoniter.Iterator) []LoadBalancerFlavor { +func ReadLoadBalancerFlavorList(iterator *jsoniter.Iterator) []LoadBalancerFlavor { list := []LoadBalancerFlavor{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/load_balancer_quota_values_resource_json.go b/clustersmgmt/v1/load_balancer_quota_values_resource_json.go index 1b046364c..9e2252c32 100644 --- a/clustersmgmt/v1/load_balancer_quota_values_resource_json.go +++ b/clustersmgmt/v1/load_balancer_quota_values_resource_json.go @@ -49,7 +49,7 @@ func readLoadBalancerQuotaValuesListResponse(response *LoadBalancerQuotaValuesLi value := iterator.ReadInt() response.total = &value case "items": - items := readIntegerList(iterator) + items := ReadIntegerList(iterator) response.items = items default: iterator.ReadAny() diff --git a/clustersmgmt/v1/log_list_type_json.go b/clustersmgmt/v1/log_list_type_json.go index 7d16fd9ce..69806b823 100644 --- a/clustersmgmt/v1/log_list_type_json.go +++ b/clustersmgmt/v1/log_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalLogList(list []*Log, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLogList(list, stream) + WriteLogList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalLogList(list []*Log, writer io.Writer) error { return stream.Error } -// writeLogList writes a list of value of the 'log' type to +// WriteLogList writes a list of value of the 'log' type to // the given stream. -func writeLogList(list []*Log, stream *jsoniter.Stream) { +func WriteLogList(list []*Log, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeLog(value, stream) + WriteLog(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalLogList(source interface{}) (items []*Log, err error) { if err != nil { return } - items = readLogList(iterator) + items = ReadLogList(iterator) err = iterator.Error return } -// readLogList reads list of values of the ”log' type from +// ReadLogList reads list of values of the ”log' type from // the given iterator. -func readLogList(iterator *jsoniter.Iterator) []*Log { +func ReadLogList(iterator *jsoniter.Iterator) []*Log { list := []*Log{} for iterator.ReadArray() { - item := readLog(iterator) + item := ReadLog(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/log_type.go b/clustersmgmt/v1/log_type.go index 76c58e51e..79063af77 100644 --- a/clustersmgmt/v1/log_type.go +++ b/clustersmgmt/v1/log_type.go @@ -52,7 +52,7 @@ func (o *Log) Kind() string { return LogKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Log) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -182,6 +182,29 @@ func (l *LogList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *LogList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *LogList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *LogList) SetItems(items []*Log) { + l.items = items +} + +// Items returns the items of the list. +func (l *LogList) Items() []*Log { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *LogList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/log_type_json.go b/clustersmgmt/v1/log_type_json.go index 035b639d4..6f211dcc5 100644 --- a/clustersmgmt/v1/log_type_json.go +++ b/clustersmgmt/v1/log_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalLog writes a value of the 'log' type to the given writer. func MarshalLog(object *Log, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLog(object, stream) + WriteLog(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalLog(object *Log, writer io.Writer) error { return stream.Error } -// writeLog writes a value of the 'log' type to the given stream. -func writeLog(object *Log, stream *jsoniter.Stream) { +// WriteLog writes a value of the 'log' type to the given stream. +func WriteLog(object *Log, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -83,13 +83,13 @@ func UnmarshalLog(source interface{}) (object *Log, err error) { if err != nil { return } - object = readLog(iterator) + object = ReadLog(iterator) err = iterator.Error return } -// readLog reads a value of the 'log' type from the given iterator. -func readLog(iterator *jsoniter.Iterator) *Log { +// ReadLog reads a value of the 'log' type from the given iterator. +func ReadLog(iterator *jsoniter.Iterator) *Log { object := &Log{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/logs_resource_json.go b/clustersmgmt/v1/logs_resource_json.go index 7da467e0c..2d90b4206 100644 --- a/clustersmgmt/v1/logs_resource_json.go +++ b/clustersmgmt/v1/logs_resource_json.go @@ -49,7 +49,7 @@ func readLogsListResponse(response *LogsListResponse, reader io.Reader) error { value := iterator.ReadInt() response.total = &value case "items": - items := readLogList(iterator) + items := ReadLogList(iterator) response.items = &LogList{ items: items, } diff --git a/clustersmgmt/v1/long_list_type_json.go b/clustersmgmt/v1/long_list_type_json.go index 0186168be..b49f23506 100644 --- a/clustersmgmt/v1/long_list_type_json.go +++ b/clustersmgmt/v1/long_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalLongList(list []int64, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLongList(list, stream) + WriteLongList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalLongList(list []int64, writer io.Writer) error { return stream.Error } -// writeLongList writes a list of value of the 'long' type to +// WriteLongList writes a list of value of the 'long' type to // the given stream. -func writeLongList(list []int64, stream *jsoniter.Stream) { +func WriteLongList(list []int64, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalLongList(source interface{}) (items []int64, err error) { if err != nil { return } - items = readLongList(iterator) + items = ReadLongList(iterator) err = iterator.Error return } -// readLongList reads list of values of the ”long' type from +// ReadLongList reads list of values of the ”long' type from // the given iterator. -func readLongList(iterator *jsoniter.Iterator) []int64 { +func ReadLongList(iterator *jsoniter.Iterator) []int64 { list := []int64{} for iterator.ReadArray() { item := iterator.ReadInt64() diff --git a/clustersmgmt/v1/machine_pool_autoscaling_list_type_json.go b/clustersmgmt/v1/machine_pool_autoscaling_list_type_json.go index ff6237f24..767a2d363 100644 --- a/clustersmgmt/v1/machine_pool_autoscaling_list_type_json.go +++ b/clustersmgmt/v1/machine_pool_autoscaling_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalMachinePoolAutoscalingList(list []*MachinePoolAutoscaling, writer io.Writer) error { stream := helpers.NewStream(writer) - writeMachinePoolAutoscalingList(list, stream) + WriteMachinePoolAutoscalingList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalMachinePoolAutoscalingList(list []*MachinePoolAutoscaling, writer io return stream.Error } -// writeMachinePoolAutoscalingList writes a list of value of the 'machine_pool_autoscaling' type to +// WriteMachinePoolAutoscalingList writes a list of value of the 'machine_pool_autoscaling' type to // the given stream. -func writeMachinePoolAutoscalingList(list []*MachinePoolAutoscaling, stream *jsoniter.Stream) { +func WriteMachinePoolAutoscalingList(list []*MachinePoolAutoscaling, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeMachinePoolAutoscaling(value, stream) + WriteMachinePoolAutoscaling(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalMachinePoolAutoscalingList(source interface{}) (items []*MachinePo if err != nil { return } - items = readMachinePoolAutoscalingList(iterator) + items = ReadMachinePoolAutoscalingList(iterator) err = iterator.Error return } -// readMachinePoolAutoscalingList reads list of values of the ”machine_pool_autoscaling' type from +// ReadMachinePoolAutoscalingList reads list of values of the ”machine_pool_autoscaling' type from // the given iterator. -func readMachinePoolAutoscalingList(iterator *jsoniter.Iterator) []*MachinePoolAutoscaling { +func ReadMachinePoolAutoscalingList(iterator *jsoniter.Iterator) []*MachinePoolAutoscaling { list := []*MachinePoolAutoscaling{} for iterator.ReadArray() { - item := readMachinePoolAutoscaling(iterator) + item := ReadMachinePoolAutoscaling(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/machine_pool_autoscaling_type.go b/clustersmgmt/v1/machine_pool_autoscaling_type.go index 869bc7f5a..a4cb38834 100644 --- a/clustersmgmt/v1/machine_pool_autoscaling_type.go +++ b/clustersmgmt/v1/machine_pool_autoscaling_type.go @@ -53,7 +53,7 @@ func (o *MachinePoolAutoscaling) Kind() string { return MachinePoolAutoscalingKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *MachinePoolAutoscaling) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -206,6 +206,29 @@ func (l *MachinePoolAutoscalingList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *MachinePoolAutoscalingList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *MachinePoolAutoscalingList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *MachinePoolAutoscalingList) SetItems(items []*MachinePoolAutoscaling) { + l.items = items +} + +// Items returns the items of the list. +func (l *MachinePoolAutoscalingList) Items() []*MachinePoolAutoscaling { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *MachinePoolAutoscalingList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/machine_pool_autoscaling_type_json.go b/clustersmgmt/v1/machine_pool_autoscaling_type_json.go index f09696f94..6461806f4 100644 --- a/clustersmgmt/v1/machine_pool_autoscaling_type_json.go +++ b/clustersmgmt/v1/machine_pool_autoscaling_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalMachinePoolAutoscaling writes a value of the 'machine_pool_autoscaling' type to the given writer. func MarshalMachinePoolAutoscaling(object *MachinePoolAutoscaling, writer io.Writer) error { stream := helpers.NewStream(writer) - writeMachinePoolAutoscaling(object, stream) + WriteMachinePoolAutoscaling(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalMachinePoolAutoscaling(object *MachinePoolAutoscaling, writer io.Wri return stream.Error } -// writeMachinePoolAutoscaling writes a value of the 'machine_pool_autoscaling' type to the given stream. -func writeMachinePoolAutoscaling(object *MachinePoolAutoscaling, stream *jsoniter.Stream) { +// WriteMachinePoolAutoscaling writes a value of the 'machine_pool_autoscaling' type to the given stream. +func WriteMachinePoolAutoscaling(object *MachinePoolAutoscaling, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -92,13 +92,13 @@ func UnmarshalMachinePoolAutoscaling(source interface{}) (object *MachinePoolAut if err != nil { return } - object = readMachinePoolAutoscaling(iterator) + object = ReadMachinePoolAutoscaling(iterator) err = iterator.Error return } -// readMachinePoolAutoscaling reads a value of the 'machine_pool_autoscaling' type from the given iterator. -func readMachinePoolAutoscaling(iterator *jsoniter.Iterator) *MachinePoolAutoscaling { +// ReadMachinePoolAutoscaling reads a value of the 'machine_pool_autoscaling' type from the given iterator. +func ReadMachinePoolAutoscaling(iterator *jsoniter.Iterator) *MachinePoolAutoscaling { object := &MachinePoolAutoscaling{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/machine_pool_list_type_json.go b/clustersmgmt/v1/machine_pool_list_type_json.go index 809a653f2..d73b8fd19 100644 --- a/clustersmgmt/v1/machine_pool_list_type_json.go +++ b/clustersmgmt/v1/machine_pool_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalMachinePoolList(list []*MachinePool, writer io.Writer) error { stream := helpers.NewStream(writer) - writeMachinePoolList(list, stream) + WriteMachinePoolList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalMachinePoolList(list []*MachinePool, writer io.Writer) error { return stream.Error } -// writeMachinePoolList writes a list of value of the 'machine_pool' type to +// WriteMachinePoolList writes a list of value of the 'machine_pool' type to // the given stream. -func writeMachinePoolList(list []*MachinePool, stream *jsoniter.Stream) { +func WriteMachinePoolList(list []*MachinePool, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeMachinePool(value, stream) + WriteMachinePool(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalMachinePoolList(source interface{}) (items []*MachinePool, err err if err != nil { return } - items = readMachinePoolList(iterator) + items = ReadMachinePoolList(iterator) err = iterator.Error return } -// readMachinePoolList reads list of values of the ”machine_pool' type from +// ReadMachinePoolList reads list of values of the ”machine_pool' type from // the given iterator. -func readMachinePoolList(iterator *jsoniter.Iterator) []*MachinePool { +func ReadMachinePoolList(iterator *jsoniter.Iterator) []*MachinePool { list := []*MachinePool{} for iterator.ReadArray() { - item := readMachinePool(iterator) + item := ReadMachinePool(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/machine_pool_security_group_filter_list_type_json.go b/clustersmgmt/v1/machine_pool_security_group_filter_list_type_json.go index 2523fcda3..6c6e2a4b7 100644 --- a/clustersmgmt/v1/machine_pool_security_group_filter_list_type_json.go +++ b/clustersmgmt/v1/machine_pool_security_group_filter_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalMachinePoolSecurityGroupFilterList(list []*MachinePoolSecurityGroupFilter, writer io.Writer) error { stream := helpers.NewStream(writer) - writeMachinePoolSecurityGroupFilterList(list, stream) + WriteMachinePoolSecurityGroupFilterList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalMachinePoolSecurityGroupFilterList(list []*MachinePoolSecurityGroupF return stream.Error } -// writeMachinePoolSecurityGroupFilterList writes a list of value of the 'machine_pool_security_group_filter' type to +// WriteMachinePoolSecurityGroupFilterList writes a list of value of the 'machine_pool_security_group_filter' type to // the given stream. -func writeMachinePoolSecurityGroupFilterList(list []*MachinePoolSecurityGroupFilter, stream *jsoniter.Stream) { +func WriteMachinePoolSecurityGroupFilterList(list []*MachinePoolSecurityGroupFilter, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeMachinePoolSecurityGroupFilter(value, stream) + WriteMachinePoolSecurityGroupFilter(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalMachinePoolSecurityGroupFilterList(source interface{}) (items []*M if err != nil { return } - items = readMachinePoolSecurityGroupFilterList(iterator) + items = ReadMachinePoolSecurityGroupFilterList(iterator) err = iterator.Error return } -// readMachinePoolSecurityGroupFilterList reads list of values of the ”machine_pool_security_group_filter' type from +// ReadMachinePoolSecurityGroupFilterList reads list of values of the ”machine_pool_security_group_filter' type from // the given iterator. -func readMachinePoolSecurityGroupFilterList(iterator *jsoniter.Iterator) []*MachinePoolSecurityGroupFilter { +func ReadMachinePoolSecurityGroupFilterList(iterator *jsoniter.Iterator) []*MachinePoolSecurityGroupFilter { list := []*MachinePoolSecurityGroupFilter{} for iterator.ReadArray() { - item := readMachinePoolSecurityGroupFilter(iterator) + item := ReadMachinePoolSecurityGroupFilter(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/machine_pool_security_group_filter_type.go b/clustersmgmt/v1/machine_pool_security_group_filter_type.go index 82d24cba1..e38531dc6 100644 --- a/clustersmgmt/v1/machine_pool_security_group_filter_type.go +++ b/clustersmgmt/v1/machine_pool_security_group_filter_type.go @@ -98,6 +98,29 @@ func (l *MachinePoolSecurityGroupFilterList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *MachinePoolSecurityGroupFilterList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *MachinePoolSecurityGroupFilterList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *MachinePoolSecurityGroupFilterList) SetItems(items []*MachinePoolSecurityGroupFilter) { + l.items = items +} + +// Items returns the items of the list. +func (l *MachinePoolSecurityGroupFilterList) Items() []*MachinePoolSecurityGroupFilter { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *MachinePoolSecurityGroupFilterList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/machine_pool_security_group_filter_type_json.go b/clustersmgmt/v1/machine_pool_security_group_filter_type_json.go index 0a944bf27..71f4c847a 100644 --- a/clustersmgmt/v1/machine_pool_security_group_filter_type_json.go +++ b/clustersmgmt/v1/machine_pool_security_group_filter_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalMachinePoolSecurityGroupFilter writes a value of the 'machine_pool_security_group_filter' type to the given writer. func MarshalMachinePoolSecurityGroupFilter(object *MachinePoolSecurityGroupFilter, writer io.Writer) error { stream := helpers.NewStream(writer) - writeMachinePoolSecurityGroupFilter(object, stream) + WriteMachinePoolSecurityGroupFilter(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalMachinePoolSecurityGroupFilter(object *MachinePoolSecurityGroupFilte return stream.Error } -// writeMachinePoolSecurityGroupFilter writes a value of the 'machine_pool_security_group_filter' type to the given stream. -func writeMachinePoolSecurityGroupFilter(object *MachinePoolSecurityGroupFilter, stream *jsoniter.Stream) { +// WriteMachinePoolSecurityGroupFilter writes a value of the 'machine_pool_security_group_filter' type to the given stream. +func WriteMachinePoolSecurityGroupFilter(object *MachinePoolSecurityGroupFilter, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalMachinePoolSecurityGroupFilter(source interface{}) (object *Machin if err != nil { return } - object = readMachinePoolSecurityGroupFilter(iterator) + object = ReadMachinePoolSecurityGroupFilter(iterator) err = iterator.Error return } -// readMachinePoolSecurityGroupFilter reads a value of the 'machine_pool_security_group_filter' type from the given iterator. -func readMachinePoolSecurityGroupFilter(iterator *jsoniter.Iterator) *MachinePoolSecurityGroupFilter { +// ReadMachinePoolSecurityGroupFilter reads a value of the 'machine_pool_security_group_filter' type from the given iterator. +func ReadMachinePoolSecurityGroupFilter(iterator *jsoniter.Iterator) *MachinePoolSecurityGroupFilter { object := &MachinePoolSecurityGroupFilter{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/machine_pool_type.go b/clustersmgmt/v1/machine_pool_type.go index 9359d02ec..6ad934952 100644 --- a/clustersmgmt/v1/machine_pool_type.go +++ b/clustersmgmt/v1/machine_pool_type.go @@ -61,7 +61,7 @@ func (o *MachinePool) Kind() string { return MachinePoolKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *MachinePool) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -402,6 +402,29 @@ func (l *MachinePoolList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *MachinePoolList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *MachinePoolList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *MachinePoolList) SetItems(items []*MachinePool) { + l.items = items +} + +// Items returns the items of the list. +func (l *MachinePoolList) Items() []*MachinePool { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *MachinePoolList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/machine_pool_type_json.go b/clustersmgmt/v1/machine_pool_type_json.go index 4067668f6..a8e5b3fcd 100644 --- a/clustersmgmt/v1/machine_pool_type_json.go +++ b/clustersmgmt/v1/machine_pool_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalMachinePool writes a value of the 'machine_pool' type to the given writer. func MarshalMachinePool(object *MachinePool, writer io.Writer) error { stream := helpers.NewStream(writer) - writeMachinePool(object, stream) + WriteMachinePool(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalMachinePool(object *MachinePool, writer io.Writer) error { return stream.Error } -// writeMachinePool writes a value of the 'machine_pool' type to the given stream. -func writeMachinePool(object *MachinePool, stream *jsoniter.Stream) { +// WriteMachinePool writes a value of the 'machine_pool' type to the given stream. +func WriteMachinePool(object *MachinePool, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -72,7 +72,7 @@ func writeMachinePool(object *MachinePool, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("aws") - writeAWSMachinePool(object.aws, stream) + WriteAWSMachinePool(object.aws, stream) count++ } present_ = object.bitmap_&16 != 0 && object.autoscaling != nil @@ -81,7 +81,7 @@ func writeMachinePool(object *MachinePool, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("autoscaling") - writeMachinePoolAutoscaling(object.autoscaling, stream) + WriteMachinePoolAutoscaling(object.autoscaling, stream) count++ } present_ = object.bitmap_&32 != 0 && object.availabilityZones != nil @@ -90,7 +90,7 @@ func writeMachinePool(object *MachinePool, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("availability_zones") - writeStringList(object.availabilityZones, stream) + WriteStringList(object.availabilityZones, stream) count++ } present_ = object.bitmap_&64 != 0 @@ -146,7 +146,7 @@ func writeMachinePool(object *MachinePool, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("root_volume") - writeRootVolume(object.rootVolume, stream) + WriteRootVolume(object.rootVolume, stream) count++ } present_ = object.bitmap_&1024 != 0 && object.securityGroupFilters != nil @@ -155,7 +155,7 @@ func writeMachinePool(object *MachinePool, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("security_group_filters") - writeMachinePoolSecurityGroupFilterList(object.securityGroupFilters, stream) + WriteMachinePoolSecurityGroupFilterList(object.securityGroupFilters, stream) count++ } present_ = object.bitmap_&2048 != 0 && object.subnets != nil @@ -164,7 +164,7 @@ func writeMachinePool(object *MachinePool, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("subnets") - writeStringList(object.subnets, stream) + WriteStringList(object.subnets, stream) count++ } present_ = object.bitmap_&4096 != 0 && object.taints != nil @@ -173,7 +173,7 @@ func writeMachinePool(object *MachinePool, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("taints") - writeTaintList(object.taints, stream) + WriteTaintList(object.taints, stream) } stream.WriteObjectEnd() } @@ -185,13 +185,13 @@ func UnmarshalMachinePool(source interface{}) (object *MachinePool, err error) { if err != nil { return } - object = readMachinePool(iterator) + object = ReadMachinePool(iterator) err = iterator.Error return } -// readMachinePool reads a value of the 'machine_pool' type from the given iterator. -func readMachinePool(iterator *jsoniter.Iterator) *MachinePool { +// ReadMachinePool reads a value of the 'machine_pool' type from the given iterator. +func ReadMachinePool(iterator *jsoniter.Iterator) *MachinePool { object := &MachinePool{} for { field := iterator.ReadObject() @@ -211,15 +211,15 @@ func readMachinePool(iterator *jsoniter.Iterator) *MachinePool { object.href = iterator.ReadString() object.bitmap_ |= 4 case "aws": - value := readAWSMachinePool(iterator) + value := ReadAWSMachinePool(iterator) object.aws = value object.bitmap_ |= 8 case "autoscaling": - value := readMachinePoolAutoscaling(iterator) + value := ReadMachinePoolAutoscaling(iterator) object.autoscaling = value object.bitmap_ |= 16 case "availability_zones": - value := readStringList(iterator) + value := ReadStringList(iterator) object.availabilityZones = value object.bitmap_ |= 32 case "instance_type": @@ -243,19 +243,19 @@ func readMachinePool(iterator *jsoniter.Iterator) *MachinePool { object.replicas = value object.bitmap_ |= 256 case "root_volume": - value := readRootVolume(iterator) + value := ReadRootVolume(iterator) object.rootVolume = value object.bitmap_ |= 512 case "security_group_filters": - value := readMachinePoolSecurityGroupFilterList(iterator) + value := ReadMachinePoolSecurityGroupFilterList(iterator) object.securityGroupFilters = value object.bitmap_ |= 1024 case "subnets": - value := readStringList(iterator) + value := ReadStringList(iterator) object.subnets = value object.bitmap_ |= 2048 case "taints": - value := readTaintList(iterator) + value := ReadTaintList(iterator) object.taints = value object.bitmap_ |= 4096 default: diff --git a/clustersmgmt/v1/machine_pools_resource_json.go b/clustersmgmt/v1/machine_pools_resource_json.go index b206ce9d7..d74298a5a 100644 --- a/clustersmgmt/v1/machine_pools_resource_json.go +++ b/clustersmgmt/v1/machine_pools_resource_json.go @@ -57,7 +57,7 @@ func readMachinePoolsListResponse(response *MachinePoolsListResponse, reader io. value := iterator.ReadInt() response.total = &value case "items": - items := readMachinePoolList(iterator) + items := ReadMachinePoolList(iterator) response.items = &MachinePoolList{ items: items, } diff --git a/clustersmgmt/v1/machine_type_category_list_type_json.go b/clustersmgmt/v1/machine_type_category_list_type_json.go index 7cb64c609..644647a0a 100644 --- a/clustersmgmt/v1/machine_type_category_list_type_json.go +++ b/clustersmgmt/v1/machine_type_category_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalMachineTypeCategoryList(list []MachineTypeCategory, writer io.Writer) error { stream := helpers.NewStream(writer) - writeMachineTypeCategoryList(list, stream) + WriteMachineTypeCategoryList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalMachineTypeCategoryList(list []MachineTypeCategory, writer io.Writer return stream.Error } -// writeMachineTypeCategoryList writes a list of value of the 'machine_type_category' type to +// WriteMachineTypeCategoryList writes a list of value of the 'machine_type_category' type to // the given stream. -func writeMachineTypeCategoryList(list []MachineTypeCategory, stream *jsoniter.Stream) { +func WriteMachineTypeCategoryList(list []MachineTypeCategory, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalMachineTypeCategoryList(source interface{}) (items []MachineTypeCa if err != nil { return } - items = readMachineTypeCategoryList(iterator) + items = ReadMachineTypeCategoryList(iterator) err = iterator.Error return } -// readMachineTypeCategoryList reads list of values of the ”machine_type_category' type from +// ReadMachineTypeCategoryList reads list of values of the ”machine_type_category' type from // the given iterator. -func readMachineTypeCategoryList(iterator *jsoniter.Iterator) []MachineTypeCategory { +func ReadMachineTypeCategoryList(iterator *jsoniter.Iterator) []MachineTypeCategory { list := []MachineTypeCategory{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/machine_type_list_type_json.go b/clustersmgmt/v1/machine_type_list_type_json.go index ebc77bcc5..80f385c5f 100644 --- a/clustersmgmt/v1/machine_type_list_type_json.go +++ b/clustersmgmt/v1/machine_type_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalMachineTypeList(list []*MachineType, writer io.Writer) error { stream := helpers.NewStream(writer) - writeMachineTypeList(list, stream) + WriteMachineTypeList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalMachineTypeList(list []*MachineType, writer io.Writer) error { return stream.Error } -// writeMachineTypeList writes a list of value of the 'machine_type' type to +// WriteMachineTypeList writes a list of value of the 'machine_type' type to // the given stream. -func writeMachineTypeList(list []*MachineType, stream *jsoniter.Stream) { +func WriteMachineTypeList(list []*MachineType, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeMachineType(value, stream) + WriteMachineType(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalMachineTypeList(source interface{}) (items []*MachineType, err err if err != nil { return } - items = readMachineTypeList(iterator) + items = ReadMachineTypeList(iterator) err = iterator.Error return } -// readMachineTypeList reads list of values of the ”machine_type' type from +// ReadMachineTypeList reads list of values of the ”machine_type' type from // the given iterator. -func readMachineTypeList(iterator *jsoniter.Iterator) []*MachineType { +func ReadMachineTypeList(iterator *jsoniter.Iterator) []*MachineType { list := []*MachineType{} for iterator.ReadArray() { - item := readMachineType(iterator) + item := ReadMachineType(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/machine_type_size_list_type_json.go b/clustersmgmt/v1/machine_type_size_list_type_json.go index 772537639..e5c8a9f45 100644 --- a/clustersmgmt/v1/machine_type_size_list_type_json.go +++ b/clustersmgmt/v1/machine_type_size_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalMachineTypeSizeList(list []MachineTypeSize, writer io.Writer) error { stream := helpers.NewStream(writer) - writeMachineTypeSizeList(list, stream) + WriteMachineTypeSizeList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalMachineTypeSizeList(list []MachineTypeSize, writer io.Writer) error return stream.Error } -// writeMachineTypeSizeList writes a list of value of the 'machine_type_size' type to +// WriteMachineTypeSizeList writes a list of value of the 'machine_type_size' type to // the given stream. -func writeMachineTypeSizeList(list []MachineTypeSize, stream *jsoniter.Stream) { +func WriteMachineTypeSizeList(list []MachineTypeSize, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalMachineTypeSizeList(source interface{}) (items []MachineTypeSize, if err != nil { return } - items = readMachineTypeSizeList(iterator) + items = ReadMachineTypeSizeList(iterator) err = iterator.Error return } -// readMachineTypeSizeList reads list of values of the ”machine_type_size' type from +// ReadMachineTypeSizeList reads list of values of the ”machine_type_size' type from // the given iterator. -func readMachineTypeSizeList(iterator *jsoniter.Iterator) []MachineTypeSize { +func ReadMachineTypeSizeList(iterator *jsoniter.Iterator) []MachineTypeSize { list := []MachineTypeSize{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/machine_type_type.go b/clustersmgmt/v1/machine_type_type.go index acff165c3..fb24e6f27 100644 --- a/clustersmgmt/v1/machine_type_type.go +++ b/clustersmgmt/v1/machine_type_type.go @@ -60,7 +60,7 @@ func (o *MachineType) Kind() string { return MachineTypeKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *MachineType) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -380,6 +380,29 @@ func (l *MachineTypeList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *MachineTypeList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *MachineTypeList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *MachineTypeList) SetItems(items []*MachineType) { + l.items = items +} + +// Items returns the items of the list. +func (l *MachineTypeList) Items() []*MachineType { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *MachineTypeList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/machine_type_type_json.go b/clustersmgmt/v1/machine_type_type_json.go index 0cf4dcd81..ba05022d7 100644 --- a/clustersmgmt/v1/machine_type_type_json.go +++ b/clustersmgmt/v1/machine_type_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalMachineType writes a value of the 'machine_type' type to the given writer. func MarshalMachineType(object *MachineType, writer io.Writer) error { stream := helpers.NewStream(writer) - writeMachineType(object, stream) + WriteMachineType(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalMachineType(object *MachineType, writer io.Writer) error { return stream.Error } -// writeMachineType writes a value of the 'machine_type' type to the given stream. -func writeMachineType(object *MachineType, stream *jsoniter.Stream) { +// WriteMachineType writes a value of the 'machine_type' type to the given stream. +func WriteMachineType(object *MachineType, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -80,7 +80,7 @@ func writeMachineType(object *MachineType, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("cpu") - writeValue(object.cpu, stream) + WriteValue(object.cpu, stream) count++ } present_ = object.bitmap_&32 != 0 @@ -107,7 +107,7 @@ func writeMachineType(object *MachineType, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("cloud_provider") - writeCloudProvider(object.cloudProvider, stream) + WriteCloudProvider(object.cloudProvider, stream) count++ } present_ = object.bitmap_&256 != 0 @@ -125,7 +125,7 @@ func writeMachineType(object *MachineType, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("memory") - writeValue(object.memory, stream) + WriteValue(object.memory, stream) count++ } present_ = object.bitmap_&1024 != 0 @@ -155,13 +155,13 @@ func UnmarshalMachineType(source interface{}) (object *MachineType, err error) { if err != nil { return } - object = readMachineType(iterator) + object = ReadMachineType(iterator) err = iterator.Error return } -// readMachineType reads a value of the 'machine_type' type from the given iterator. -func readMachineType(iterator *jsoniter.Iterator) *MachineType { +// ReadMachineType reads a value of the 'machine_type' type from the given iterator. +func ReadMachineType(iterator *jsoniter.Iterator) *MachineType { object := &MachineType{} for { field := iterator.ReadObject() @@ -185,7 +185,7 @@ func readMachineType(iterator *jsoniter.Iterator) *MachineType { object.ccsOnly = value object.bitmap_ |= 8 case "cpu": - value := readValue(iterator) + value := ReadValue(iterator) object.cpu = value object.bitmap_ |= 16 case "architecture": @@ -199,7 +199,7 @@ func readMachineType(iterator *jsoniter.Iterator) *MachineType { object.category = value object.bitmap_ |= 64 case "cloud_provider": - value := readCloudProvider(iterator) + value := ReadCloudProvider(iterator) object.cloudProvider = value object.bitmap_ |= 128 case "generic_name": @@ -207,7 +207,7 @@ func readMachineType(iterator *jsoniter.Iterator) *MachineType { object.genericName = value object.bitmap_ |= 256 case "memory": - value := readValue(iterator) + value := ReadValue(iterator) object.memory = value object.bitmap_ |= 512 case "name": diff --git a/clustersmgmt/v1/machine_types_resource_json.go b/clustersmgmt/v1/machine_types_resource_json.go index 63165b691..dad34f99d 100644 --- a/clustersmgmt/v1/machine_types_resource_json.go +++ b/clustersmgmt/v1/machine_types_resource_json.go @@ -49,7 +49,7 @@ func readMachineTypesListResponse(response *MachineTypesListResponse, reader io. value := iterator.ReadInt() response.total = &value case "items": - items := readMachineTypeList(iterator) + items := ReadMachineTypeList(iterator) response.items = &MachineTypeList{ items: items, } diff --git a/clustersmgmt/v1/managed_service_list_type_json.go b/clustersmgmt/v1/managed_service_list_type_json.go index 3cde0388a..141364755 100644 --- a/clustersmgmt/v1/managed_service_list_type_json.go +++ b/clustersmgmt/v1/managed_service_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalManagedServiceList(list []*ManagedService, writer io.Writer) error { stream := helpers.NewStream(writer) - writeManagedServiceList(list, stream) + WriteManagedServiceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalManagedServiceList(list []*ManagedService, writer io.Writer) error { return stream.Error } -// writeManagedServiceList writes a list of value of the 'managed_service' type to +// WriteManagedServiceList writes a list of value of the 'managed_service' type to // the given stream. -func writeManagedServiceList(list []*ManagedService, stream *jsoniter.Stream) { +func WriteManagedServiceList(list []*ManagedService, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeManagedService(value, stream) + WriteManagedService(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalManagedServiceList(source interface{}) (items []*ManagedService, e if err != nil { return } - items = readManagedServiceList(iterator) + items = ReadManagedServiceList(iterator) err = iterator.Error return } -// readManagedServiceList reads list of values of the ”managed_service' type from +// ReadManagedServiceList reads list of values of the ”managed_service' type from // the given iterator. -func readManagedServiceList(iterator *jsoniter.Iterator) []*ManagedService { +func ReadManagedServiceList(iterator *jsoniter.Iterator) []*ManagedService { list := []*ManagedService{} for iterator.ReadArray() { - item := readManagedService(iterator) + item := ReadManagedService(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/managed_service_type.go b/clustersmgmt/v1/managed_service_type.go index b3ed2effb..eaec3e780 100644 --- a/clustersmgmt/v1/managed_service_type.go +++ b/clustersmgmt/v1/managed_service_type.go @@ -86,6 +86,29 @@ func (l *ManagedServiceList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ManagedServiceList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ManagedServiceList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ManagedServiceList) SetItems(items []*ManagedService) { + l.items = items +} + +// Items returns the items of the list. +func (l *ManagedServiceList) Items() []*ManagedService { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ManagedServiceList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/managed_service_type_json.go b/clustersmgmt/v1/managed_service_type_json.go index 16c7a3512..9de3d3d87 100644 --- a/clustersmgmt/v1/managed_service_type_json.go +++ b/clustersmgmt/v1/managed_service_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalManagedService writes a value of the 'managed_service' type to the given writer. func MarshalManagedService(object *ManagedService, writer io.Writer) error { stream := helpers.NewStream(writer) - writeManagedService(object, stream) + WriteManagedService(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalManagedService(object *ManagedService, writer io.Writer) error { return stream.Error } -// writeManagedService writes a value of the 'managed_service' type to the given stream. -func writeManagedService(object *ManagedService, stream *jsoniter.Stream) { +// WriteManagedService writes a value of the 'managed_service' type to the given stream. +func WriteManagedService(object *ManagedService, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalManagedService(source interface{}) (object *ManagedService, err er if err != nil { return } - object = readManagedService(iterator) + object = ReadManagedService(iterator) err = iterator.Error return } -// readManagedService reads a value of the 'managed_service' type from the given iterator. -func readManagedService(iterator *jsoniter.Iterator) *ManagedService { +// ReadManagedService reads a value of the 'managed_service' type from the given iterator. +func ReadManagedService(iterator *jsoniter.Iterator) *ManagedService { object := &ManagedService{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/manifest_list_type_json.go b/clustersmgmt/v1/manifest_list_type_json.go index 2e9dcb6b1..e2518941e 100644 --- a/clustersmgmt/v1/manifest_list_type_json.go +++ b/clustersmgmt/v1/manifest_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalManifestList(list []*Manifest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeManifestList(list, stream) + WriteManifestList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalManifestList(list []*Manifest, writer io.Writer) error { return stream.Error } -// writeManifestList writes a list of value of the 'manifest' type to +// WriteManifestList writes a list of value of the 'manifest' type to // the given stream. -func writeManifestList(list []*Manifest, stream *jsoniter.Stream) { +func WriteManifestList(list []*Manifest, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeManifest(value, stream) + WriteManifest(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalManifestList(source interface{}) (items []*Manifest, err error) { if err != nil { return } - items = readManifestList(iterator) + items = ReadManifestList(iterator) err = iterator.Error return } -// readManifestList reads list of values of the ”manifest' type from +// ReadManifestList reads list of values of the ”manifest' type from // the given iterator. -func readManifestList(iterator *jsoniter.Iterator) []*Manifest { +func ReadManifestList(iterator *jsoniter.Iterator) []*Manifest { list := []*Manifest{} for iterator.ReadArray() { - item := readManifest(iterator) + item := ReadManifest(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/manifest_type.go b/clustersmgmt/v1/manifest_type.go index d2b8515f8..0131c99c7 100644 --- a/clustersmgmt/v1/manifest_type.go +++ b/clustersmgmt/v1/manifest_type.go @@ -60,7 +60,7 @@ func (o *Manifest) Kind() string { return ManifestKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Manifest) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -284,6 +284,29 @@ func (l *ManifestList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ManifestList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ManifestList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ManifestList) SetItems(items []*Manifest) { + l.items = items +} + +// Items returns the items of the list. +func (l *ManifestList) Items() []*Manifest { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ManifestList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/manifest_type_json.go b/clustersmgmt/v1/manifest_type_json.go index 85ee07bc4..08a7ff4bd 100644 --- a/clustersmgmt/v1/manifest_type_json.go +++ b/clustersmgmt/v1/manifest_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalManifest writes a value of the 'manifest' type to the given writer. func MarshalManifest(object *Manifest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeManifest(object, stream) + WriteManifest(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalManifest(object *Manifest, writer io.Writer) error { return stream.Error } -// writeManifest writes a value of the 'manifest' type to the given stream. -func writeManifest(object *Manifest, stream *jsoniter.Stream) { +// WriteManifest writes a value of the 'manifest' type to the given stream. +func WriteManifest(object *Manifest, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -108,7 +108,7 @@ func writeManifest(object *Manifest, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("workloads") - writeInterfaceList(object.workloads, stream) + WriteInterfaceList(object.workloads, stream) } stream.WriteObjectEnd() } @@ -120,13 +120,13 @@ func UnmarshalManifest(source interface{}) (object *Manifest, err error) { if err != nil { return } - object = readManifest(iterator) + object = ReadManifest(iterator) err = iterator.Error return } -// readManifest reads a value of the 'manifest' type from the given iterator. -func readManifest(iterator *jsoniter.Iterator) *Manifest { +// ReadManifest reads a value of the 'manifest' type from the given iterator. +func ReadManifest(iterator *jsoniter.Iterator) *Manifest { object := &Manifest{} for { field := iterator.ReadObject() @@ -172,7 +172,7 @@ func readManifest(iterator *jsoniter.Iterator) *Manifest { object.updatedTimestamp = value object.bitmap_ |= 64 case "workloads": - value := readInterfaceList(iterator) + value := ReadInterfaceList(iterator) object.workloads = value object.bitmap_ |= 128 default: diff --git a/clustersmgmt/v1/manifests_resource_json.go b/clustersmgmt/v1/manifests_resource_json.go index 4d9c7350d..f15507d28 100644 --- a/clustersmgmt/v1/manifests_resource_json.go +++ b/clustersmgmt/v1/manifests_resource_json.go @@ -57,7 +57,7 @@ func readManifestsListResponse(response *ManifestsListResponse, reader io.Reader value := iterator.ReadInt() response.total = &value case "items": - items := readManifestList(iterator) + items := ReadManifestList(iterator) response.items = &ManifestList{ items: items, } diff --git a/clustersmgmt/v1/namespace_ownership_policy_list_type_json.go b/clustersmgmt/v1/namespace_ownership_policy_list_type_json.go index 3ca586fdd..d5fb398a8 100644 --- a/clustersmgmt/v1/namespace_ownership_policy_list_type_json.go +++ b/clustersmgmt/v1/namespace_ownership_policy_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalNamespaceOwnershipPolicyList(list []NamespaceOwnershipPolicy, writer io.Writer) error { stream := helpers.NewStream(writer) - writeNamespaceOwnershipPolicyList(list, stream) + WriteNamespaceOwnershipPolicyList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalNamespaceOwnershipPolicyList(list []NamespaceOwnershipPolicy, writer return stream.Error } -// writeNamespaceOwnershipPolicyList writes a list of value of the 'namespace_ownership_policy' type to +// WriteNamespaceOwnershipPolicyList writes a list of value of the 'namespace_ownership_policy' type to // the given stream. -func writeNamespaceOwnershipPolicyList(list []NamespaceOwnershipPolicy, stream *jsoniter.Stream) { +func WriteNamespaceOwnershipPolicyList(list []NamespaceOwnershipPolicy, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalNamespaceOwnershipPolicyList(source interface{}) (items []Namespac if err != nil { return } - items = readNamespaceOwnershipPolicyList(iterator) + items = ReadNamespaceOwnershipPolicyList(iterator) err = iterator.Error return } -// readNamespaceOwnershipPolicyList reads list of values of the ”namespace_ownership_policy' type from +// ReadNamespaceOwnershipPolicyList reads list of values of the ”namespace_ownership_policy' type from // the given iterator. -func readNamespaceOwnershipPolicyList(iterator *jsoniter.Iterator) []NamespaceOwnershipPolicy { +func ReadNamespaceOwnershipPolicyList(iterator *jsoniter.Iterator) []NamespaceOwnershipPolicy { list := []NamespaceOwnershipPolicy{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/network_list_type_json.go b/clustersmgmt/v1/network_list_type_json.go index 387930cf6..3c4937c96 100644 --- a/clustersmgmt/v1/network_list_type_json.go +++ b/clustersmgmt/v1/network_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalNetworkList(list []*Network, writer io.Writer) error { stream := helpers.NewStream(writer) - writeNetworkList(list, stream) + WriteNetworkList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalNetworkList(list []*Network, writer io.Writer) error { return stream.Error } -// writeNetworkList writes a list of value of the 'network' type to +// WriteNetworkList writes a list of value of the 'network' type to // the given stream. -func writeNetworkList(list []*Network, stream *jsoniter.Stream) { +func WriteNetworkList(list []*Network, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeNetwork(value, stream) + WriteNetwork(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalNetworkList(source interface{}) (items []*Network, err error) { if err != nil { return } - items = readNetworkList(iterator) + items = ReadNetworkList(iterator) err = iterator.Error return } -// readNetworkList reads list of values of the ”network' type from +// ReadNetworkList reads list of values of the ”network' type from // the given iterator. -func readNetworkList(iterator *jsoniter.Iterator) []*Network { +func ReadNetworkList(iterator *jsoniter.Iterator) []*Network { list := []*Network{} for iterator.ReadArray() { - item := readNetwork(iterator) + item := ReadNetwork(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/network_type.go b/clustersmgmt/v1/network_type.go index 2c554ea8c..d47600e6c 100644 --- a/clustersmgmt/v1/network_type.go +++ b/clustersmgmt/v1/network_type.go @@ -178,6 +178,29 @@ func (l *NetworkList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *NetworkList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *NetworkList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *NetworkList) SetItems(items []*Network) { + l.items = items +} + +// Items returns the items of the list. +func (l *NetworkList) Items() []*Network { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *NetworkList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/network_type_json.go b/clustersmgmt/v1/network_type_json.go index c1965e8ec..7dc2ed536 100644 --- a/clustersmgmt/v1/network_type_json.go +++ b/clustersmgmt/v1/network_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalNetwork writes a value of the 'network' type to the given writer. func MarshalNetwork(object *Network, writer io.Writer) error { stream := helpers.NewStream(writer) - writeNetwork(object, stream) + WriteNetwork(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalNetwork(object *Network, writer io.Writer) error { return stream.Error } -// writeNetwork writes a value of the 'network' type to the given stream. -func writeNetwork(object *Network, stream *jsoniter.Stream) { +// WriteNetwork writes a value of the 'network' type to the given stream. +func WriteNetwork(object *Network, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -96,13 +96,13 @@ func UnmarshalNetwork(source interface{}) (object *Network, err error) { if err != nil { return } - object = readNetwork(iterator) + object = ReadNetwork(iterator) err = iterator.Error return } -// readNetwork reads a value of the 'network' type from the given iterator. -func readNetwork(iterator *jsoniter.Iterator) *Network { +// ReadNetwork reads a value of the 'network' type from the given iterator. +func ReadNetwork(iterator *jsoniter.Iterator) *Network { object := &Network{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/network_verification_list_type_json.go b/clustersmgmt/v1/network_verification_list_type_json.go index b715adb20..89737cb68 100644 --- a/clustersmgmt/v1/network_verification_list_type_json.go +++ b/clustersmgmt/v1/network_verification_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalNetworkVerificationList(list []*NetworkVerification, writer io.Writer) error { stream := helpers.NewStream(writer) - writeNetworkVerificationList(list, stream) + WriteNetworkVerificationList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalNetworkVerificationList(list []*NetworkVerification, writer io.Write return stream.Error } -// writeNetworkVerificationList writes a list of value of the 'network_verification' type to +// WriteNetworkVerificationList writes a list of value of the 'network_verification' type to // the given stream. -func writeNetworkVerificationList(list []*NetworkVerification, stream *jsoniter.Stream) { +func WriteNetworkVerificationList(list []*NetworkVerification, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeNetworkVerification(value, stream) + WriteNetworkVerification(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalNetworkVerificationList(source interface{}) (items []*NetworkVerif if err != nil { return } - items = readNetworkVerificationList(iterator) + items = ReadNetworkVerificationList(iterator) err = iterator.Error return } -// readNetworkVerificationList reads list of values of the ”network_verification' type from +// ReadNetworkVerificationList reads list of values of the ”network_verification' type from // the given iterator. -func readNetworkVerificationList(iterator *jsoniter.Iterator) []*NetworkVerification { +func ReadNetworkVerificationList(iterator *jsoniter.Iterator) []*NetworkVerification { list := []*NetworkVerification{} for iterator.ReadArray() { - item := readNetworkVerification(iterator) + item := ReadNetworkVerification(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/network_verification_type.go b/clustersmgmt/v1/network_verification_type.go index 27c07a69c..baff90207 100644 --- a/clustersmgmt/v1/network_verification_type.go +++ b/clustersmgmt/v1/network_verification_type.go @@ -176,6 +176,29 @@ func (l *NetworkVerificationList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *NetworkVerificationList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *NetworkVerificationList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *NetworkVerificationList) SetItems(items []*NetworkVerification) { + l.items = items +} + +// Items returns the items of the list. +func (l *NetworkVerificationList) Items() []*NetworkVerification { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *NetworkVerificationList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/network_verification_type_json.go b/clustersmgmt/v1/network_verification_type_json.go index caed93e1d..c30eb2dfc 100644 --- a/clustersmgmt/v1/network_verification_type_json.go +++ b/clustersmgmt/v1/network_verification_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalNetworkVerification writes a value of the 'network_verification' type to the given writer. func MarshalNetworkVerification(object *NetworkVerification, writer io.Writer) error { stream := helpers.NewStream(writer) - writeNetworkVerification(object, stream) + WriteNetworkVerification(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalNetworkVerification(object *NetworkVerification, writer io.Writer) e return stream.Error } -// writeNetworkVerification writes a value of the 'network_verification' type to the given stream. -func writeNetworkVerification(object *NetworkVerification, stream *jsoniter.Stream) { +// WriteNetworkVerification writes a value of the 'network_verification' type to the given stream. +func WriteNetworkVerification(object *NetworkVerification, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeNetworkVerification(object *NetworkVerification, stream *jsoniter.Stre stream.WriteMore() } stream.WriteObjectField("cloud_provider_data") - writeCloudProviderData(object.cloudProviderData, stream) + WriteCloudProviderData(object.cloudProviderData, stream) count++ } present_ = object.bitmap_&2 != 0 @@ -66,7 +66,7 @@ func writeNetworkVerification(object *NetworkVerification, stream *jsoniter.Stre stream.WriteMore() } stream.WriteObjectField("items") - writeSubnetNetworkVerificationList(object.items, stream) + WriteSubnetNetworkVerificationList(object.items, stream) count++ } present_ = object.bitmap_&8 != 0 @@ -96,13 +96,13 @@ func UnmarshalNetworkVerification(source interface{}) (object *NetworkVerificati if err != nil { return } - object = readNetworkVerification(iterator) + object = ReadNetworkVerification(iterator) err = iterator.Error return } -// readNetworkVerification reads a value of the 'network_verification' type from the given iterator. -func readNetworkVerification(iterator *jsoniter.Iterator) *NetworkVerification { +// ReadNetworkVerification reads a value of the 'network_verification' type from the given iterator. +func ReadNetworkVerification(iterator *jsoniter.Iterator) *NetworkVerification { object := &NetworkVerification{} for { field := iterator.ReadObject() @@ -111,7 +111,7 @@ func readNetworkVerification(iterator *jsoniter.Iterator) *NetworkVerification { } switch field { case "cloud_provider_data": - value := readCloudProviderData(iterator) + value := ReadCloudProviderData(iterator) object.cloudProviderData = value object.bitmap_ |= 1 case "cluster_id": @@ -119,7 +119,7 @@ func readNetworkVerification(iterator *jsoniter.Iterator) *NetworkVerification { object.clusterId = value object.bitmap_ |= 2 case "items": - value := readSubnetNetworkVerificationList(iterator) + value := ReadSubnetNetworkVerificationList(iterator) object.items = value object.bitmap_ |= 4 case "platform": diff --git a/clustersmgmt/v1/node_info_list_type_json.go b/clustersmgmt/v1/node_info_list_type_json.go index f16a2d73e..81cb5d09b 100644 --- a/clustersmgmt/v1/node_info_list_type_json.go +++ b/clustersmgmt/v1/node_info_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalNodeInfoList(list []*NodeInfo, writer io.Writer) error { stream := helpers.NewStream(writer) - writeNodeInfoList(list, stream) + WriteNodeInfoList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalNodeInfoList(list []*NodeInfo, writer io.Writer) error { return stream.Error } -// writeNodeInfoList writes a list of value of the 'node_info' type to +// WriteNodeInfoList writes a list of value of the 'node_info' type to // the given stream. -func writeNodeInfoList(list []*NodeInfo, stream *jsoniter.Stream) { +func WriteNodeInfoList(list []*NodeInfo, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeNodeInfo(value, stream) + WriteNodeInfo(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalNodeInfoList(source interface{}) (items []*NodeInfo, err error) { if err != nil { return } - items = readNodeInfoList(iterator) + items = ReadNodeInfoList(iterator) err = iterator.Error return } -// readNodeInfoList reads list of values of the ”node_info' type from +// ReadNodeInfoList reads list of values of the ”node_info' type from // the given iterator. -func readNodeInfoList(iterator *jsoniter.Iterator) []*NodeInfo { +func ReadNodeInfoList(iterator *jsoniter.Iterator) []*NodeInfo { list := []*NodeInfo{} for iterator.ReadArray() { - item := readNodeInfo(iterator) + item := ReadNodeInfo(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/node_info_type.go b/clustersmgmt/v1/node_info_type.go index 32297e8fd..93472d089 100644 --- a/clustersmgmt/v1/node_info_type.go +++ b/clustersmgmt/v1/node_info_type.go @@ -106,6 +106,29 @@ func (l *NodeInfoList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *NodeInfoList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *NodeInfoList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *NodeInfoList) SetItems(items []*NodeInfo) { + l.items = items +} + +// Items returns the items of the list. +func (l *NodeInfoList) Items() []*NodeInfo { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *NodeInfoList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/node_info_type_json.go b/clustersmgmt/v1/node_info_type_json.go index e3fe85704..ca796a0df 100644 --- a/clustersmgmt/v1/node_info_type_json.go +++ b/clustersmgmt/v1/node_info_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalNodeInfo writes a value of the 'node_info' type to the given writer. func MarshalNodeInfo(object *NodeInfo, writer io.Writer) error { stream := helpers.NewStream(writer) - writeNodeInfo(object, stream) + WriteNodeInfo(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalNodeInfo(object *NodeInfo, writer io.Writer) error { return stream.Error } -// writeNodeInfo writes a value of the 'node_info' type to the given stream. -func writeNodeInfo(object *NodeInfo, stream *jsoniter.Stream) { +// WriteNodeInfo writes a value of the 'node_info' type to the given stream. +func WriteNodeInfo(object *NodeInfo, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalNodeInfo(source interface{}) (object *NodeInfo, err error) { if err != nil { return } - object = readNodeInfo(iterator) + object = ReadNodeInfo(iterator) err = iterator.Error return } -// readNodeInfo reads a value of the 'node_info' type from the given iterator. -func readNodeInfo(iterator *jsoniter.Iterator) *NodeInfo { +// ReadNodeInfo reads a value of the 'node_info' type from the given iterator. +func ReadNodeInfo(iterator *jsoniter.Iterator) *NodeInfo { object := &NodeInfo{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/node_pool_autoscaling_list_type_json.go b/clustersmgmt/v1/node_pool_autoscaling_list_type_json.go index f0dfab9ac..fa53edc7a 100644 --- a/clustersmgmt/v1/node_pool_autoscaling_list_type_json.go +++ b/clustersmgmt/v1/node_pool_autoscaling_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalNodePoolAutoscalingList(list []*NodePoolAutoscaling, writer io.Writer) error { stream := helpers.NewStream(writer) - writeNodePoolAutoscalingList(list, stream) + WriteNodePoolAutoscalingList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalNodePoolAutoscalingList(list []*NodePoolAutoscaling, writer io.Write return stream.Error } -// writeNodePoolAutoscalingList writes a list of value of the 'node_pool_autoscaling' type to +// WriteNodePoolAutoscalingList writes a list of value of the 'node_pool_autoscaling' type to // the given stream. -func writeNodePoolAutoscalingList(list []*NodePoolAutoscaling, stream *jsoniter.Stream) { +func WriteNodePoolAutoscalingList(list []*NodePoolAutoscaling, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeNodePoolAutoscaling(value, stream) + WriteNodePoolAutoscaling(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalNodePoolAutoscalingList(source interface{}) (items []*NodePoolAuto if err != nil { return } - items = readNodePoolAutoscalingList(iterator) + items = ReadNodePoolAutoscalingList(iterator) err = iterator.Error return } -// readNodePoolAutoscalingList reads list of values of the ”node_pool_autoscaling' type from +// ReadNodePoolAutoscalingList reads list of values of the ”node_pool_autoscaling' type from // the given iterator. -func readNodePoolAutoscalingList(iterator *jsoniter.Iterator) []*NodePoolAutoscaling { +func ReadNodePoolAutoscalingList(iterator *jsoniter.Iterator) []*NodePoolAutoscaling { list := []*NodePoolAutoscaling{} for iterator.ReadArray() { - item := readNodePoolAutoscaling(iterator) + item := ReadNodePoolAutoscaling(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/node_pool_autoscaling_type.go b/clustersmgmt/v1/node_pool_autoscaling_type.go index 216d08904..1b4b26cca 100644 --- a/clustersmgmt/v1/node_pool_autoscaling_type.go +++ b/clustersmgmt/v1/node_pool_autoscaling_type.go @@ -53,7 +53,7 @@ func (o *NodePoolAutoscaling) Kind() string { return NodePoolAutoscalingKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *NodePoolAutoscaling) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -206,6 +206,29 @@ func (l *NodePoolAutoscalingList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *NodePoolAutoscalingList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *NodePoolAutoscalingList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *NodePoolAutoscalingList) SetItems(items []*NodePoolAutoscaling) { + l.items = items +} + +// Items returns the items of the list. +func (l *NodePoolAutoscalingList) Items() []*NodePoolAutoscaling { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *NodePoolAutoscalingList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/node_pool_autoscaling_type_json.go b/clustersmgmt/v1/node_pool_autoscaling_type_json.go index 78bd81797..91da92c44 100644 --- a/clustersmgmt/v1/node_pool_autoscaling_type_json.go +++ b/clustersmgmt/v1/node_pool_autoscaling_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalNodePoolAutoscaling writes a value of the 'node_pool_autoscaling' type to the given writer. func MarshalNodePoolAutoscaling(object *NodePoolAutoscaling, writer io.Writer) error { stream := helpers.NewStream(writer) - writeNodePoolAutoscaling(object, stream) + WriteNodePoolAutoscaling(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalNodePoolAutoscaling(object *NodePoolAutoscaling, writer io.Writer) e return stream.Error } -// writeNodePoolAutoscaling writes a value of the 'node_pool_autoscaling' type to the given stream. -func writeNodePoolAutoscaling(object *NodePoolAutoscaling, stream *jsoniter.Stream) { +// WriteNodePoolAutoscaling writes a value of the 'node_pool_autoscaling' type to the given stream. +func WriteNodePoolAutoscaling(object *NodePoolAutoscaling, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -92,13 +92,13 @@ func UnmarshalNodePoolAutoscaling(source interface{}) (object *NodePoolAutoscali if err != nil { return } - object = readNodePoolAutoscaling(iterator) + object = ReadNodePoolAutoscaling(iterator) err = iterator.Error return } -// readNodePoolAutoscaling reads a value of the 'node_pool_autoscaling' type from the given iterator. -func readNodePoolAutoscaling(iterator *jsoniter.Iterator) *NodePoolAutoscaling { +// ReadNodePoolAutoscaling reads a value of the 'node_pool_autoscaling' type from the given iterator. +func ReadNodePoolAutoscaling(iterator *jsoniter.Iterator) *NodePoolAutoscaling { object := &NodePoolAutoscaling{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/node_pool_list_type_json.go b/clustersmgmt/v1/node_pool_list_type_json.go index 8e0f69ee0..85b783f6c 100644 --- a/clustersmgmt/v1/node_pool_list_type_json.go +++ b/clustersmgmt/v1/node_pool_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalNodePoolList(list []*NodePool, writer io.Writer) error { stream := helpers.NewStream(writer) - writeNodePoolList(list, stream) + WriteNodePoolList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalNodePoolList(list []*NodePool, writer io.Writer) error { return stream.Error } -// writeNodePoolList writes a list of value of the 'node_pool' type to +// WriteNodePoolList writes a list of value of the 'node_pool' type to // the given stream. -func writeNodePoolList(list []*NodePool, stream *jsoniter.Stream) { +func WriteNodePoolList(list []*NodePool, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeNodePool(value, stream) + WriteNodePool(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalNodePoolList(source interface{}) (items []*NodePool, err error) { if err != nil { return } - items = readNodePoolList(iterator) + items = ReadNodePoolList(iterator) err = iterator.Error return } -// readNodePoolList reads list of values of the ”node_pool' type from +// ReadNodePoolList reads list of values of the ”node_pool' type from // the given iterator. -func readNodePoolList(iterator *jsoniter.Iterator) []*NodePool { +func ReadNodePoolList(iterator *jsoniter.Iterator) []*NodePool { list := []*NodePool{} for iterator.ReadArray() { - item := readNodePool(iterator) + item := ReadNodePool(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/node_pool_management_upgrade_list_type_json.go b/clustersmgmt/v1/node_pool_management_upgrade_list_type_json.go index aeff394cd..d824d750f 100644 --- a/clustersmgmt/v1/node_pool_management_upgrade_list_type_json.go +++ b/clustersmgmt/v1/node_pool_management_upgrade_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalNodePoolManagementUpgradeList(list []*NodePoolManagementUpgrade, writer io.Writer) error { stream := helpers.NewStream(writer) - writeNodePoolManagementUpgradeList(list, stream) + WriteNodePoolManagementUpgradeList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalNodePoolManagementUpgradeList(list []*NodePoolManagementUpgrade, wri return stream.Error } -// writeNodePoolManagementUpgradeList writes a list of value of the 'node_pool_management_upgrade' type to +// WriteNodePoolManagementUpgradeList writes a list of value of the 'node_pool_management_upgrade' type to // the given stream. -func writeNodePoolManagementUpgradeList(list []*NodePoolManagementUpgrade, stream *jsoniter.Stream) { +func WriteNodePoolManagementUpgradeList(list []*NodePoolManagementUpgrade, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeNodePoolManagementUpgrade(value, stream) + WriteNodePoolManagementUpgrade(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalNodePoolManagementUpgradeList(source interface{}) (items []*NodePo if err != nil { return } - items = readNodePoolManagementUpgradeList(iterator) + items = ReadNodePoolManagementUpgradeList(iterator) err = iterator.Error return } -// readNodePoolManagementUpgradeList reads list of values of the ”node_pool_management_upgrade' type from +// ReadNodePoolManagementUpgradeList reads list of values of the ”node_pool_management_upgrade' type from // the given iterator. -func readNodePoolManagementUpgradeList(iterator *jsoniter.Iterator) []*NodePoolManagementUpgrade { +func ReadNodePoolManagementUpgradeList(iterator *jsoniter.Iterator) []*NodePoolManagementUpgrade { list := []*NodePoolManagementUpgrade{} for iterator.ReadArray() { - item := readNodePoolManagementUpgrade(iterator) + item := ReadNodePoolManagementUpgrade(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/node_pool_management_upgrade_type.go b/clustersmgmt/v1/node_pool_management_upgrade_type.go index c3c963dcd..3e055eaed 100644 --- a/clustersmgmt/v1/node_pool_management_upgrade_type.go +++ b/clustersmgmt/v1/node_pool_management_upgrade_type.go @@ -54,7 +54,7 @@ func (o *NodePoolManagementUpgrade) Kind() string { return NodePoolManagementUpgradeKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *NodePoolManagementUpgrade) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -230,6 +230,29 @@ func (l *NodePoolManagementUpgradeList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *NodePoolManagementUpgradeList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *NodePoolManagementUpgradeList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *NodePoolManagementUpgradeList) SetItems(items []*NodePoolManagementUpgrade) { + l.items = items +} + +// Items returns the items of the list. +func (l *NodePoolManagementUpgradeList) Items() []*NodePoolManagementUpgrade { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *NodePoolManagementUpgradeList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/node_pool_management_upgrade_type_json.go b/clustersmgmt/v1/node_pool_management_upgrade_type_json.go index d8f75f4fa..1a1a53c27 100644 --- a/clustersmgmt/v1/node_pool_management_upgrade_type_json.go +++ b/clustersmgmt/v1/node_pool_management_upgrade_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalNodePoolManagementUpgrade writes a value of the 'node_pool_management_upgrade' type to the given writer. func MarshalNodePoolManagementUpgrade(object *NodePoolManagementUpgrade, writer io.Writer) error { stream := helpers.NewStream(writer) - writeNodePoolManagementUpgrade(object, stream) + WriteNodePoolManagementUpgrade(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalNodePoolManagementUpgrade(object *NodePoolManagementUpgrade, writer return stream.Error } -// writeNodePoolManagementUpgrade writes a value of the 'node_pool_management_upgrade' type to the given stream. -func writeNodePoolManagementUpgrade(object *NodePoolManagementUpgrade, stream *jsoniter.Stream) { +// WriteNodePoolManagementUpgrade writes a value of the 'node_pool_management_upgrade' type to the given stream. +func WriteNodePoolManagementUpgrade(object *NodePoolManagementUpgrade, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -101,13 +101,13 @@ func UnmarshalNodePoolManagementUpgrade(source interface{}) (object *NodePoolMan if err != nil { return } - object = readNodePoolManagementUpgrade(iterator) + object = ReadNodePoolManagementUpgrade(iterator) err = iterator.Error return } -// readNodePoolManagementUpgrade reads a value of the 'node_pool_management_upgrade' type from the given iterator. -func readNodePoolManagementUpgrade(iterator *jsoniter.Iterator) *NodePoolManagementUpgrade { +// ReadNodePoolManagementUpgrade reads a value of the 'node_pool_management_upgrade' type from the given iterator. +func ReadNodePoolManagementUpgrade(iterator *jsoniter.Iterator) *NodePoolManagementUpgrade { object := &NodePoolManagementUpgrade{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/node_pool_status_list_type_json.go b/clustersmgmt/v1/node_pool_status_list_type_json.go index 8ffdac1bf..2d7fbb2e1 100644 --- a/clustersmgmt/v1/node_pool_status_list_type_json.go +++ b/clustersmgmt/v1/node_pool_status_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalNodePoolStatusList(list []*NodePoolStatus, writer io.Writer) error { stream := helpers.NewStream(writer) - writeNodePoolStatusList(list, stream) + WriteNodePoolStatusList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalNodePoolStatusList(list []*NodePoolStatus, writer io.Writer) error { return stream.Error } -// writeNodePoolStatusList writes a list of value of the 'node_pool_status' type to +// WriteNodePoolStatusList writes a list of value of the 'node_pool_status' type to // the given stream. -func writeNodePoolStatusList(list []*NodePoolStatus, stream *jsoniter.Stream) { +func WriteNodePoolStatusList(list []*NodePoolStatus, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeNodePoolStatus(value, stream) + WriteNodePoolStatus(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalNodePoolStatusList(source interface{}) (items []*NodePoolStatus, e if err != nil { return } - items = readNodePoolStatusList(iterator) + items = ReadNodePoolStatusList(iterator) err = iterator.Error return } -// readNodePoolStatusList reads list of values of the ”node_pool_status' type from +// ReadNodePoolStatusList reads list of values of the ”node_pool_status' type from // the given iterator. -func readNodePoolStatusList(iterator *jsoniter.Iterator) []*NodePoolStatus { +func ReadNodePoolStatusList(iterator *jsoniter.Iterator) []*NodePoolStatus { list := []*NodePoolStatus{} for iterator.ReadArray() { - item := readNodePoolStatus(iterator) + item := ReadNodePoolStatus(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/node_pool_status_type.go b/clustersmgmt/v1/node_pool_status_type.go index 066bfa299..2f1200879 100644 --- a/clustersmgmt/v1/node_pool_status_type.go +++ b/clustersmgmt/v1/node_pool_status_type.go @@ -53,7 +53,7 @@ func (o *NodePoolStatus) Kind() string { return NodePoolStatusKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *NodePoolStatus) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -206,6 +206,29 @@ func (l *NodePoolStatusList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *NodePoolStatusList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *NodePoolStatusList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *NodePoolStatusList) SetItems(items []*NodePoolStatus) { + l.items = items +} + +// Items returns the items of the list. +func (l *NodePoolStatusList) Items() []*NodePoolStatus { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *NodePoolStatusList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/node_pool_status_type_json.go b/clustersmgmt/v1/node_pool_status_type_json.go index b3f7e03bd..1fb7b7e26 100644 --- a/clustersmgmt/v1/node_pool_status_type_json.go +++ b/clustersmgmt/v1/node_pool_status_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalNodePoolStatus writes a value of the 'node_pool_status' type to the given writer. func MarshalNodePoolStatus(object *NodePoolStatus, writer io.Writer) error { stream := helpers.NewStream(writer) - writeNodePoolStatus(object, stream) + WriteNodePoolStatus(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalNodePoolStatus(object *NodePoolStatus, writer io.Writer) error { return stream.Error } -// writeNodePoolStatus writes a value of the 'node_pool_status' type to the given stream. -func writeNodePoolStatus(object *NodePoolStatus, stream *jsoniter.Stream) { +// WriteNodePoolStatus writes a value of the 'node_pool_status' type to the given stream. +func WriteNodePoolStatus(object *NodePoolStatus, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -92,13 +92,13 @@ func UnmarshalNodePoolStatus(source interface{}) (object *NodePoolStatus, err er if err != nil { return } - object = readNodePoolStatus(iterator) + object = ReadNodePoolStatus(iterator) err = iterator.Error return } -// readNodePoolStatus reads a value of the 'node_pool_status' type from the given iterator. -func readNodePoolStatus(iterator *jsoniter.Iterator) *NodePoolStatus { +// ReadNodePoolStatus reads a value of the 'node_pool_status' type from the given iterator. +func ReadNodePoolStatus(iterator *jsoniter.Iterator) *NodePoolStatus { object := &NodePoolStatus{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/node_pool_type.go b/clustersmgmt/v1/node_pool_type.go index 62afd68b0..550932cab 100644 --- a/clustersmgmt/v1/node_pool_type.go +++ b/clustersmgmt/v1/node_pool_type.go @@ -66,7 +66,7 @@ func (o *NodePool) Kind() string { return NodePoolKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *NodePool) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -522,6 +522,29 @@ func (l *NodePoolList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *NodePoolList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *NodePoolList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *NodePoolList) SetItems(items []*NodePool) { + l.items = items +} + +// Items returns the items of the list. +func (l *NodePoolList) Items() []*NodePool { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *NodePoolList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/node_pool_type_json.go b/clustersmgmt/v1/node_pool_type_json.go index 9a1a16e13..67d5c6149 100644 --- a/clustersmgmt/v1/node_pool_type_json.go +++ b/clustersmgmt/v1/node_pool_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalNodePool writes a value of the 'node_pool' type to the given writer. func MarshalNodePool(object *NodePool, writer io.Writer) error { stream := helpers.NewStream(writer) - writeNodePool(object, stream) + WriteNodePool(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalNodePool(object *NodePool, writer io.Writer) error { return stream.Error } -// writeNodePool writes a value of the 'node_pool' type to the given stream. -func writeNodePool(object *NodePool, stream *jsoniter.Stream) { +// WriteNodePool writes a value of the 'node_pool' type to the given stream. +func WriteNodePool(object *NodePool, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -72,7 +72,7 @@ func writeNodePool(object *NodePool, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("aws_node_pool") - writeAWSNodePool(object.awsNodePool, stream) + WriteAWSNodePool(object.awsNodePool, stream) count++ } present_ = object.bitmap_&16 != 0 @@ -90,7 +90,7 @@ func writeNodePool(object *NodePool, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("autoscaling") - writeNodePoolAutoscaling(object.autoscaling, stream) + WriteNodePoolAutoscaling(object.autoscaling, stream) count++ } present_ = object.bitmap_&64 != 0 @@ -108,7 +108,7 @@ func writeNodePool(object *NodePool, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("azure_node_pool") - writeAzureNodePool(object.azureNodePool, stream) + WriteAzureNodePool(object.azureNodePool, stream) count++ } present_ = object.bitmap_&256 != 0 && object.kubeletConfigs != nil @@ -117,7 +117,7 @@ func writeNodePool(object *NodePool, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("kubelet_configs") - writeStringList(object.kubeletConfigs, stream) + WriteStringList(object.kubeletConfigs, stream) count++ } present_ = object.bitmap_&512 != 0 && object.labels != nil @@ -155,7 +155,7 @@ func writeNodePool(object *NodePool, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("management_upgrade") - writeNodePoolManagementUpgrade(object.managementUpgrade, stream) + WriteNodePoolManagementUpgrade(object.managementUpgrade, stream) count++ } present_ = object.bitmap_&2048 != 0 && object.nodeDrainGracePeriod != nil @@ -164,7 +164,7 @@ func writeNodePool(object *NodePool, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("node_drain_grace_period") - writeValue(object.nodeDrainGracePeriod, stream) + WriteValue(object.nodeDrainGracePeriod, stream) count++ } present_ = object.bitmap_&4096 != 0 @@ -182,7 +182,7 @@ func writeNodePool(object *NodePool, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("status") - writeNodePoolStatus(object.status, stream) + WriteNodePoolStatus(object.status, stream) count++ } present_ = object.bitmap_&16384 != 0 @@ -200,7 +200,7 @@ func writeNodePool(object *NodePool, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("taints") - writeTaintList(object.taints, stream) + WriteTaintList(object.taints, stream) count++ } present_ = object.bitmap_&65536 != 0 && object.tuningConfigs != nil @@ -209,7 +209,7 @@ func writeNodePool(object *NodePool, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("tuning_configs") - writeStringList(object.tuningConfigs, stream) + WriteStringList(object.tuningConfigs, stream) count++ } present_ = object.bitmap_&131072 != 0 && object.version != nil @@ -218,7 +218,7 @@ func writeNodePool(object *NodePool, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("version") - writeVersion(object.version, stream) + WriteVersion(object.version, stream) } stream.WriteObjectEnd() } @@ -230,13 +230,13 @@ func UnmarshalNodePool(source interface{}) (object *NodePool, err error) { if err != nil { return } - object = readNodePool(iterator) + object = ReadNodePool(iterator) err = iterator.Error return } -// readNodePool reads a value of the 'node_pool' type from the given iterator. -func readNodePool(iterator *jsoniter.Iterator) *NodePool { +// ReadNodePool reads a value of the 'node_pool' type from the given iterator. +func ReadNodePool(iterator *jsoniter.Iterator) *NodePool { object := &NodePool{} for { field := iterator.ReadObject() @@ -256,7 +256,7 @@ func readNodePool(iterator *jsoniter.Iterator) *NodePool { object.href = iterator.ReadString() object.bitmap_ |= 4 case "aws_node_pool": - value := readAWSNodePool(iterator) + value := ReadAWSNodePool(iterator) object.awsNodePool = value object.bitmap_ |= 8 case "auto_repair": @@ -264,7 +264,7 @@ func readNodePool(iterator *jsoniter.Iterator) *NodePool { object.autoRepair = value object.bitmap_ |= 16 case "autoscaling": - value := readNodePoolAutoscaling(iterator) + value := ReadNodePoolAutoscaling(iterator) object.autoscaling = value object.bitmap_ |= 32 case "availability_zone": @@ -272,11 +272,11 @@ func readNodePool(iterator *jsoniter.Iterator) *NodePool { object.availabilityZone = value object.bitmap_ |= 64 case "azure_node_pool": - value := readAzureNodePool(iterator) + value := ReadAzureNodePool(iterator) object.azureNodePool = value object.bitmap_ |= 128 case "kubelet_configs": - value := readStringList(iterator) + value := ReadStringList(iterator) object.kubeletConfigs = value object.bitmap_ |= 256 case "labels": @@ -292,11 +292,11 @@ func readNodePool(iterator *jsoniter.Iterator) *NodePool { object.labels = value object.bitmap_ |= 512 case "management_upgrade": - value := readNodePoolManagementUpgrade(iterator) + value := ReadNodePoolManagementUpgrade(iterator) object.managementUpgrade = value object.bitmap_ |= 1024 case "node_drain_grace_period": - value := readValue(iterator) + value := ReadValue(iterator) object.nodeDrainGracePeriod = value object.bitmap_ |= 2048 case "replicas": @@ -304,7 +304,7 @@ func readNodePool(iterator *jsoniter.Iterator) *NodePool { object.replicas = value object.bitmap_ |= 4096 case "status": - value := readNodePoolStatus(iterator) + value := ReadNodePoolStatus(iterator) object.status = value object.bitmap_ |= 8192 case "subnet": @@ -312,15 +312,15 @@ func readNodePool(iterator *jsoniter.Iterator) *NodePool { object.subnet = value object.bitmap_ |= 16384 case "taints": - value := readTaintList(iterator) + value := ReadTaintList(iterator) object.taints = value object.bitmap_ |= 32768 case "tuning_configs": - value := readStringList(iterator) + value := ReadStringList(iterator) object.tuningConfigs = value object.bitmap_ |= 65536 case "version": - value := readVersion(iterator) + value := ReadVersion(iterator) object.version = value object.bitmap_ |= 131072 default: diff --git a/clustersmgmt/v1/node_pool_upgrade_policies_resource_json.go b/clustersmgmt/v1/node_pool_upgrade_policies_resource_json.go index 87515c0c7..0f2108b96 100644 --- a/clustersmgmt/v1/node_pool_upgrade_policies_resource_json.go +++ b/clustersmgmt/v1/node_pool_upgrade_policies_resource_json.go @@ -57,7 +57,7 @@ func readNodePoolUpgradePoliciesListResponse(response *NodePoolUpgradePoliciesLi value := iterator.ReadInt() response.total = &value case "items": - items := readNodePoolUpgradePolicyList(iterator) + items := ReadNodePoolUpgradePolicyList(iterator) response.items = &NodePoolUpgradePolicyList{ items: items, } diff --git a/clustersmgmt/v1/node_pool_upgrade_policy_list_type_json.go b/clustersmgmt/v1/node_pool_upgrade_policy_list_type_json.go index b7370f771..2bd68a678 100644 --- a/clustersmgmt/v1/node_pool_upgrade_policy_list_type_json.go +++ b/clustersmgmt/v1/node_pool_upgrade_policy_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalNodePoolUpgradePolicyList(list []*NodePoolUpgradePolicy, writer io.Writer) error { stream := helpers.NewStream(writer) - writeNodePoolUpgradePolicyList(list, stream) + WriteNodePoolUpgradePolicyList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalNodePoolUpgradePolicyList(list []*NodePoolUpgradePolicy, writer io.W return stream.Error } -// writeNodePoolUpgradePolicyList writes a list of value of the 'node_pool_upgrade_policy' type to +// WriteNodePoolUpgradePolicyList writes a list of value of the 'node_pool_upgrade_policy' type to // the given stream. -func writeNodePoolUpgradePolicyList(list []*NodePoolUpgradePolicy, stream *jsoniter.Stream) { +func WriteNodePoolUpgradePolicyList(list []*NodePoolUpgradePolicy, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeNodePoolUpgradePolicy(value, stream) + WriteNodePoolUpgradePolicy(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalNodePoolUpgradePolicyList(source interface{}) (items []*NodePoolUp if err != nil { return } - items = readNodePoolUpgradePolicyList(iterator) + items = ReadNodePoolUpgradePolicyList(iterator) err = iterator.Error return } -// readNodePoolUpgradePolicyList reads list of values of the ”node_pool_upgrade_policy' type from +// ReadNodePoolUpgradePolicyList reads list of values of the ”node_pool_upgrade_policy' type from // the given iterator. -func readNodePoolUpgradePolicyList(iterator *jsoniter.Iterator) []*NodePoolUpgradePolicy { +func ReadNodePoolUpgradePolicyList(iterator *jsoniter.Iterator) []*NodePoolUpgradePolicy { list := []*NodePoolUpgradePolicy{} for iterator.ReadArray() { - item := readNodePoolUpgradePolicy(iterator) + item := ReadNodePoolUpgradePolicy(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/node_pool_upgrade_policy_type.go b/clustersmgmt/v1/node_pool_upgrade_policy_type.go index 521348c0e..0acd03aa7 100644 --- a/clustersmgmt/v1/node_pool_upgrade_policy_type.go +++ b/clustersmgmt/v1/node_pool_upgrade_policy_type.go @@ -66,7 +66,7 @@ func (o *NodePoolUpgradePolicy) Kind() string { return NodePoolUpgradePolicyKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *NodePoolUpgradePolicy) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -426,6 +426,29 @@ func (l *NodePoolUpgradePolicyList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *NodePoolUpgradePolicyList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *NodePoolUpgradePolicyList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *NodePoolUpgradePolicyList) SetItems(items []*NodePoolUpgradePolicy) { + l.items = items +} + +// Items returns the items of the list. +func (l *NodePoolUpgradePolicyList) Items() []*NodePoolUpgradePolicy { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *NodePoolUpgradePolicyList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/node_pool_upgrade_policy_type_json.go b/clustersmgmt/v1/node_pool_upgrade_policy_type_json.go index fabd033e2..cee1c9cfe 100644 --- a/clustersmgmt/v1/node_pool_upgrade_policy_type_json.go +++ b/clustersmgmt/v1/node_pool_upgrade_policy_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalNodePoolUpgradePolicy writes a value of the 'node_pool_upgrade_policy' type to the given writer. func MarshalNodePoolUpgradePolicy(object *NodePoolUpgradePolicy, writer io.Writer) error { stream := helpers.NewStream(writer) - writeNodePoolUpgradePolicy(object, stream) + WriteNodePoolUpgradePolicy(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalNodePoolUpgradePolicy(object *NodePoolUpgradePolicy, writer io.Write return stream.Error } -// writeNodePoolUpgradePolicy writes a value of the 'node_pool_upgrade_policy' type to the given stream. -func writeNodePoolUpgradePolicy(object *NodePoolUpgradePolicy, stream *jsoniter.Stream) { +// WriteNodePoolUpgradePolicy writes a value of the 'node_pool_upgrade_policy' type to the given stream. +func WriteNodePoolUpgradePolicy(object *NodePoolUpgradePolicy, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -144,7 +144,7 @@ func writeNodePoolUpgradePolicy(object *NodePoolUpgradePolicy, stream *jsoniter. stream.WriteMore() } stream.WriteObjectField("state") - writeUpgradePolicyState(object.state, stream) + WriteUpgradePolicyState(object.state, stream) count++ } present_ = object.bitmap_&4096 != 0 @@ -174,13 +174,13 @@ func UnmarshalNodePoolUpgradePolicy(source interface{}) (object *NodePoolUpgrade if err != nil { return } - object = readNodePoolUpgradePolicy(iterator) + object = ReadNodePoolUpgradePolicy(iterator) err = iterator.Error return } -// readNodePoolUpgradePolicy reads a value of the 'node_pool_upgrade_policy' type from the given iterator. -func readNodePoolUpgradePolicy(iterator *jsoniter.Iterator) *NodePoolUpgradePolicy { +// ReadNodePoolUpgradePolicy reads a value of the 'node_pool_upgrade_policy' type from the given iterator. +func ReadNodePoolUpgradePolicy(iterator *jsoniter.Iterator) *NodePoolUpgradePolicy { object := &NodePoolUpgradePolicy{} for { field := iterator.ReadObject() @@ -245,7 +245,7 @@ func readNodePoolUpgradePolicy(iterator *jsoniter.Iterator) *NodePoolUpgradePoli object.scheduleType = value object.bitmap_ |= 1024 case "state": - value := readUpgradePolicyState(iterator) + value := ReadUpgradePolicyState(iterator) object.state = value object.bitmap_ |= 2048 case "upgrade_type": diff --git a/clustersmgmt/v1/node_pools_resource_json.go b/clustersmgmt/v1/node_pools_resource_json.go index 484e8c827..485ffb520 100644 --- a/clustersmgmt/v1/node_pools_resource_json.go +++ b/clustersmgmt/v1/node_pools_resource_json.go @@ -57,7 +57,7 @@ func readNodePoolsListResponse(response *NodePoolsListResponse, reader io.Reader value := iterator.ReadInt() response.total = &value case "items": - items := readNodePoolList(iterator) + items := ReadNodePoolList(iterator) response.items = &NodePoolList{ items: items, } diff --git a/clustersmgmt/v1/node_type_list_type_json.go b/clustersmgmt/v1/node_type_list_type_json.go index 36dcbf702..9fffdb0d9 100644 --- a/clustersmgmt/v1/node_type_list_type_json.go +++ b/clustersmgmt/v1/node_type_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalNodeTypeList(list []NodeType, writer io.Writer) error { stream := helpers.NewStream(writer) - writeNodeTypeList(list, stream) + WriteNodeTypeList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalNodeTypeList(list []NodeType, writer io.Writer) error { return stream.Error } -// writeNodeTypeList writes a list of value of the 'node_type' type to +// WriteNodeTypeList writes a list of value of the 'node_type' type to // the given stream. -func writeNodeTypeList(list []NodeType, stream *jsoniter.Stream) { +func WriteNodeTypeList(list []NodeType, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalNodeTypeList(source interface{}) (items []NodeType, err error) { if err != nil { return } - items = readNodeTypeList(iterator) + items = ReadNodeTypeList(iterator) err = iterator.Error return } -// readNodeTypeList reads list of values of the ”node_type' type from +// ReadNodeTypeList reads list of values of the ”node_type' type from // the given iterator. -func readNodeTypeList(iterator *jsoniter.Iterator) []NodeType { +func ReadNodeTypeList(iterator *jsoniter.Iterator) []NodeType { list := []NodeType{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/nodes_info_list_type_json.go b/clustersmgmt/v1/nodes_info_list_type_json.go index 5b2f8149d..877dd775e 100644 --- a/clustersmgmt/v1/nodes_info_list_type_json.go +++ b/clustersmgmt/v1/nodes_info_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalNodesInfoList(list []*NodesInfo, writer io.Writer) error { stream := helpers.NewStream(writer) - writeNodesInfoList(list, stream) + WriteNodesInfoList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalNodesInfoList(list []*NodesInfo, writer io.Writer) error { return stream.Error } -// writeNodesInfoList writes a list of value of the 'nodes_info' type to +// WriteNodesInfoList writes a list of value of the 'nodes_info' type to // the given stream. -func writeNodesInfoList(list []*NodesInfo, stream *jsoniter.Stream) { +func WriteNodesInfoList(list []*NodesInfo, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeNodesInfo(value, stream) + WriteNodesInfo(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalNodesInfoList(source interface{}) (items []*NodesInfo, err error) if err != nil { return } - items = readNodesInfoList(iterator) + items = ReadNodesInfoList(iterator) err = iterator.Error return } -// readNodesInfoList reads list of values of the ”nodes_info' type from +// ReadNodesInfoList reads list of values of the ”nodes_info' type from // the given iterator. -func readNodesInfoList(iterator *jsoniter.Iterator) []*NodesInfo { +func ReadNodesInfoList(iterator *jsoniter.Iterator) []*NodesInfo { list := []*NodesInfo{} for iterator.ReadArray() { - item := readNodesInfo(iterator) + item := ReadNodesInfo(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/nodes_info_type.go b/clustersmgmt/v1/nodes_info_type.go index cb9574654..1a0c3389f 100644 --- a/clustersmgmt/v1/nodes_info_type.go +++ b/clustersmgmt/v1/nodes_info_type.go @@ -78,6 +78,29 @@ func (l *NodesInfoList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *NodesInfoList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *NodesInfoList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *NodesInfoList) SetItems(items []*NodesInfo) { + l.items = items +} + +// Items returns the items of the list. +func (l *NodesInfoList) Items() []*NodesInfo { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *NodesInfoList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/nodes_info_type_json.go b/clustersmgmt/v1/nodes_info_type_json.go index e55659280..cbad80303 100644 --- a/clustersmgmt/v1/nodes_info_type_json.go +++ b/clustersmgmt/v1/nodes_info_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalNodesInfo writes a value of the 'nodes_info' type to the given writer. func MarshalNodesInfo(object *NodesInfo, writer io.Writer) error { stream := helpers.NewStream(writer) - writeNodesInfo(object, stream) + WriteNodesInfo(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalNodesInfo(object *NodesInfo, writer io.Writer) error { return stream.Error } -// writeNodesInfo writes a value of the 'nodes_info' type to the given stream. -func writeNodesInfo(object *NodesInfo, stream *jsoniter.Stream) { +// WriteNodesInfo writes a value of the 'nodes_info' type to the given stream. +func WriteNodesInfo(object *NodesInfo, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeNodesInfo(object *NodesInfo, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("nodes") - writeNodeInfoList(object.nodes, stream) + WriteNodeInfoList(object.nodes, stream) } stream.WriteObjectEnd() } @@ -60,13 +60,13 @@ func UnmarshalNodesInfo(source interface{}) (object *NodesInfo, err error) { if err != nil { return } - object = readNodesInfo(iterator) + object = ReadNodesInfo(iterator) err = iterator.Error return } -// readNodesInfo reads a value of the 'nodes_info' type from the given iterator. -func readNodesInfo(iterator *jsoniter.Iterator) *NodesInfo { +// ReadNodesInfo reads a value of the 'nodes_info' type from the given iterator. +func ReadNodesInfo(iterator *jsoniter.Iterator) *NodesInfo { object := &NodesInfo{} for { field := iterator.ReadObject() @@ -75,7 +75,7 @@ func readNodesInfo(iterator *jsoniter.Iterator) *NodesInfo { } switch field { case "nodes": - value := readNodeInfoList(iterator) + value := ReadNodeInfoList(iterator) object.nodes = value object.bitmap_ |= 1 default: diff --git a/clustersmgmt/v1/oidc_config_list_type_json.go b/clustersmgmt/v1/oidc_config_list_type_json.go index f89fd765f..d101e693c 100644 --- a/clustersmgmt/v1/oidc_config_list_type_json.go +++ b/clustersmgmt/v1/oidc_config_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalOidcConfigList(list []*OidcConfig, writer io.Writer) error { stream := helpers.NewStream(writer) - writeOidcConfigList(list, stream) + WriteOidcConfigList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalOidcConfigList(list []*OidcConfig, writer io.Writer) error { return stream.Error } -// writeOidcConfigList writes a list of value of the 'oidc_config' type to +// WriteOidcConfigList writes a list of value of the 'oidc_config' type to // the given stream. -func writeOidcConfigList(list []*OidcConfig, stream *jsoniter.Stream) { +func WriteOidcConfigList(list []*OidcConfig, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeOidcConfig(value, stream) + WriteOidcConfig(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalOidcConfigList(source interface{}) (items []*OidcConfig, err error if err != nil { return } - items = readOidcConfigList(iterator) + items = ReadOidcConfigList(iterator) err = iterator.Error return } -// readOidcConfigList reads list of values of the ”oidc_config' type from +// ReadOidcConfigList reads list of values of the ”oidc_config' type from // the given iterator. -func readOidcConfigList(iterator *jsoniter.Iterator) []*OidcConfig { +func ReadOidcConfigList(iterator *jsoniter.Iterator) []*OidcConfig { list := []*OidcConfig{} for iterator.ReadArray() { - item := readOidcConfig(iterator) + item := ReadOidcConfig(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/oidc_config_type.go b/clustersmgmt/v1/oidc_config_type.go index 5115e9fc9..eeee680c2 100644 --- a/clustersmgmt/v1/oidc_config_type.go +++ b/clustersmgmt/v1/oidc_config_type.go @@ -326,6 +326,29 @@ func (l *OidcConfigList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *OidcConfigList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *OidcConfigList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *OidcConfigList) SetItems(items []*OidcConfig) { + l.items = items +} + +// Items returns the items of the list. +func (l *OidcConfigList) Items() []*OidcConfig { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *OidcConfigList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/oidc_config_type_json.go b/clustersmgmt/v1/oidc_config_type_json.go index 5b09a5f88..11cd82972 100644 --- a/clustersmgmt/v1/oidc_config_type_json.go +++ b/clustersmgmt/v1/oidc_config_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalOidcConfig writes a value of the 'oidc_config' type to the given writer. func MarshalOidcConfig(object *OidcConfig, writer io.Writer) error { stream := helpers.NewStream(writer) - writeOidcConfig(object, stream) + WriteOidcConfig(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalOidcConfig(object *OidcConfig, writer io.Writer) error { return stream.Error } -// writeOidcConfig writes a value of the 'oidc_config' type to the given stream. -func writeOidcConfig(object *OidcConfig, stream *jsoniter.Stream) { +// WriteOidcConfig writes a value of the 'oidc_config' type to the given stream. +func WriteOidcConfig(object *OidcConfig, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -151,13 +151,13 @@ func UnmarshalOidcConfig(source interface{}) (object *OidcConfig, err error) { if err != nil { return } - object = readOidcConfig(iterator) + object = ReadOidcConfig(iterator) err = iterator.Error return } -// readOidcConfig reads a value of the 'oidc_config' type from the given iterator. -func readOidcConfig(iterator *jsoniter.Iterator) *OidcConfig { +// ReadOidcConfig reads a value of the 'oidc_config' type from the given iterator. +func ReadOidcConfig(iterator *jsoniter.Iterator) *OidcConfig { object := &OidcConfig{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/oidc_configs_resource_json.go b/clustersmgmt/v1/oidc_configs_resource_json.go index 370fcdaef..6757babae 100644 --- a/clustersmgmt/v1/oidc_configs_resource_json.go +++ b/clustersmgmt/v1/oidc_configs_resource_json.go @@ -57,7 +57,7 @@ func readOidcConfigsListResponse(response *OidcConfigsListResponse, reader io.Re value := iterator.ReadInt() response.total = &value case "items": - items := readOidcConfigList(iterator) + items := ReadOidcConfigList(iterator) response.items = &OidcConfigList{ items: items, } diff --git a/clustersmgmt/v1/oidc_thumbprint_input_list_type_json.go b/clustersmgmt/v1/oidc_thumbprint_input_list_type_json.go index d0991a9ca..266a2033d 100644 --- a/clustersmgmt/v1/oidc_thumbprint_input_list_type_json.go +++ b/clustersmgmt/v1/oidc_thumbprint_input_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalOidcThumbprintInputList(list []*OidcThumbprintInput, writer io.Writer) error { stream := helpers.NewStream(writer) - writeOidcThumbprintInputList(list, stream) + WriteOidcThumbprintInputList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalOidcThumbprintInputList(list []*OidcThumbprintInput, writer io.Write return stream.Error } -// writeOidcThumbprintInputList writes a list of value of the 'oidc_thumbprint_input' type to +// WriteOidcThumbprintInputList writes a list of value of the 'oidc_thumbprint_input' type to // the given stream. -func writeOidcThumbprintInputList(list []*OidcThumbprintInput, stream *jsoniter.Stream) { +func WriteOidcThumbprintInputList(list []*OidcThumbprintInput, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeOidcThumbprintInput(value, stream) + WriteOidcThumbprintInput(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalOidcThumbprintInputList(source interface{}) (items []*OidcThumbpri if err != nil { return } - items = readOidcThumbprintInputList(iterator) + items = ReadOidcThumbprintInputList(iterator) err = iterator.Error return } -// readOidcThumbprintInputList reads list of values of the ”oidc_thumbprint_input' type from +// ReadOidcThumbprintInputList reads list of values of the ”oidc_thumbprint_input' type from // the given iterator. -func readOidcThumbprintInputList(iterator *jsoniter.Iterator) []*OidcThumbprintInput { +func ReadOidcThumbprintInputList(iterator *jsoniter.Iterator) []*OidcThumbprintInput { list := []*OidcThumbprintInput{} for iterator.ReadArray() { - item := readOidcThumbprintInput(iterator) + item := ReadOidcThumbprintInput(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/oidc_thumbprint_input_type.go b/clustersmgmt/v1/oidc_thumbprint_input_type.go index 63d1e4019..92ce50f56 100644 --- a/clustersmgmt/v1/oidc_thumbprint_input_type.go +++ b/clustersmgmt/v1/oidc_thumbprint_input_type.go @@ -106,6 +106,29 @@ func (l *OidcThumbprintInputList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *OidcThumbprintInputList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *OidcThumbprintInputList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *OidcThumbprintInputList) SetItems(items []*OidcThumbprintInput) { + l.items = items +} + +// Items returns the items of the list. +func (l *OidcThumbprintInputList) Items() []*OidcThumbprintInput { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *OidcThumbprintInputList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/oidc_thumbprint_input_type_json.go b/clustersmgmt/v1/oidc_thumbprint_input_type_json.go index b2bf050e3..5a7f94e35 100644 --- a/clustersmgmt/v1/oidc_thumbprint_input_type_json.go +++ b/clustersmgmt/v1/oidc_thumbprint_input_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalOidcThumbprintInput writes a value of the 'oidc_thumbprint_input' type to the given writer. func MarshalOidcThumbprintInput(object *OidcThumbprintInput, writer io.Writer) error { stream := helpers.NewStream(writer) - writeOidcThumbprintInput(object, stream) + WriteOidcThumbprintInput(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalOidcThumbprintInput(object *OidcThumbprintInput, writer io.Writer) e return stream.Error } -// writeOidcThumbprintInput writes a value of the 'oidc_thumbprint_input' type to the given stream. -func writeOidcThumbprintInput(object *OidcThumbprintInput, stream *jsoniter.Stream) { +// WriteOidcThumbprintInput writes a value of the 'oidc_thumbprint_input' type to the given stream. +func WriteOidcThumbprintInput(object *OidcThumbprintInput, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalOidcThumbprintInput(source interface{}) (object *OidcThumbprintInp if err != nil { return } - object = readOidcThumbprintInput(iterator) + object = ReadOidcThumbprintInput(iterator) err = iterator.Error return } -// readOidcThumbprintInput reads a value of the 'oidc_thumbprint_input' type from the given iterator. -func readOidcThumbprintInput(iterator *jsoniter.Iterator) *OidcThumbprintInput { +// ReadOidcThumbprintInput reads a value of the 'oidc_thumbprint_input' type from the given iterator. +func ReadOidcThumbprintInput(iterator *jsoniter.Iterator) *OidcThumbprintInput { object := &OidcThumbprintInput{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/oidc_thumbprint_list_type_json.go b/clustersmgmt/v1/oidc_thumbprint_list_type_json.go index 5810deb30..c9e494f86 100644 --- a/clustersmgmt/v1/oidc_thumbprint_list_type_json.go +++ b/clustersmgmt/v1/oidc_thumbprint_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalOidcThumbprintList(list []*OidcThumbprint, writer io.Writer) error { stream := helpers.NewStream(writer) - writeOidcThumbprintList(list, stream) + WriteOidcThumbprintList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalOidcThumbprintList(list []*OidcThumbprint, writer io.Writer) error { return stream.Error } -// writeOidcThumbprintList writes a list of value of the 'oidc_thumbprint' type to +// WriteOidcThumbprintList writes a list of value of the 'oidc_thumbprint' type to // the given stream. -func writeOidcThumbprintList(list []*OidcThumbprint, stream *jsoniter.Stream) { +func WriteOidcThumbprintList(list []*OidcThumbprint, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeOidcThumbprint(value, stream) + WriteOidcThumbprint(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalOidcThumbprintList(source interface{}) (items []*OidcThumbprint, e if err != nil { return } - items = readOidcThumbprintList(iterator) + items = ReadOidcThumbprintList(iterator) err = iterator.Error return } -// readOidcThumbprintList reads list of values of the ”oidc_thumbprint' type from +// ReadOidcThumbprintList reads list of values of the ”oidc_thumbprint' type from // the given iterator. -func readOidcThumbprintList(iterator *jsoniter.Iterator) []*OidcThumbprint { +func ReadOidcThumbprintList(iterator *jsoniter.Iterator) []*OidcThumbprint { list := []*OidcThumbprint{} for iterator.ReadArray() { - item := readOidcThumbprint(iterator) + item := ReadOidcThumbprint(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/oidc_thumbprint_type.go b/clustersmgmt/v1/oidc_thumbprint_type.go index 59916c28b..b72b183cd 100644 --- a/clustersmgmt/v1/oidc_thumbprint_type.go +++ b/clustersmgmt/v1/oidc_thumbprint_type.go @@ -178,6 +178,29 @@ func (l *OidcThumbprintList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *OidcThumbprintList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *OidcThumbprintList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *OidcThumbprintList) SetItems(items []*OidcThumbprint) { + l.items = items +} + +// Items returns the items of the list. +func (l *OidcThumbprintList) Items() []*OidcThumbprint { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *OidcThumbprintList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/oidc_thumbprint_type_json.go b/clustersmgmt/v1/oidc_thumbprint_type_json.go index ccadb2f00..c4fdcdf76 100644 --- a/clustersmgmt/v1/oidc_thumbprint_type_json.go +++ b/clustersmgmt/v1/oidc_thumbprint_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalOidcThumbprint writes a value of the 'oidc_thumbprint' type to the given writer. func MarshalOidcThumbprint(object *OidcThumbprint, writer io.Writer) error { stream := helpers.NewStream(writer) - writeOidcThumbprint(object, stream) + WriteOidcThumbprint(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalOidcThumbprint(object *OidcThumbprint, writer io.Writer) error { return stream.Error } -// writeOidcThumbprint writes a value of the 'oidc_thumbprint' type to the given stream. -func writeOidcThumbprint(object *OidcThumbprint, stream *jsoniter.Stream) { +// WriteOidcThumbprint writes a value of the 'oidc_thumbprint' type to the given stream. +func WriteOidcThumbprint(object *OidcThumbprint, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -96,13 +96,13 @@ func UnmarshalOidcThumbprint(source interface{}) (object *OidcThumbprint, err er if err != nil { return } - object = readOidcThumbprint(iterator) + object = ReadOidcThumbprint(iterator) err = iterator.Error return } -// readOidcThumbprint reads a value of the 'oidc_thumbprint' type from the given iterator. -func readOidcThumbprint(iterator *jsoniter.Iterator) *OidcThumbprint { +// ReadOidcThumbprint reads a value of the 'oidc_thumbprint' type from the given iterator. +func ReadOidcThumbprint(iterator *jsoniter.Iterator) *OidcThumbprint { object := &OidcThumbprint{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/open_id_claims_list_type_json.go b/clustersmgmt/v1/open_id_claims_list_type_json.go index e4857926e..35279b48a 100644 --- a/clustersmgmt/v1/open_id_claims_list_type_json.go +++ b/clustersmgmt/v1/open_id_claims_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalOpenIDClaimsList(list []*OpenIDClaims, writer io.Writer) error { stream := helpers.NewStream(writer) - writeOpenIDClaimsList(list, stream) + WriteOpenIDClaimsList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalOpenIDClaimsList(list []*OpenIDClaims, writer io.Writer) error { return stream.Error } -// writeOpenIDClaimsList writes a list of value of the 'open_ID_claims' type to +// WriteOpenIDClaimsList writes a list of value of the 'open_ID_claims' type to // the given stream. -func writeOpenIDClaimsList(list []*OpenIDClaims, stream *jsoniter.Stream) { +func WriteOpenIDClaimsList(list []*OpenIDClaims, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeOpenIDClaims(value, stream) + WriteOpenIDClaims(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalOpenIDClaimsList(source interface{}) (items []*OpenIDClaims, err e if err != nil { return } - items = readOpenIDClaimsList(iterator) + items = ReadOpenIDClaimsList(iterator) err = iterator.Error return } -// readOpenIDClaimsList reads list of values of the ”open_ID_claims' type from +// ReadOpenIDClaimsList reads list of values of the ”open_ID_claims' type from // the given iterator. -func readOpenIDClaimsList(iterator *jsoniter.Iterator) []*OpenIDClaims { +func ReadOpenIDClaimsList(iterator *jsoniter.Iterator) []*OpenIDClaims { list := []*OpenIDClaims{} for iterator.ReadArray() { - item := readOpenIDClaims(iterator) + item := ReadOpenIDClaims(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/open_id_claims_type.go b/clustersmgmt/v1/open_id_claims_type.go index 6a7c06959..ac56a742b 100644 --- a/clustersmgmt/v1/open_id_claims_type.go +++ b/clustersmgmt/v1/open_id_claims_type.go @@ -154,6 +154,29 @@ func (l *OpenIDClaimsList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *OpenIDClaimsList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *OpenIDClaimsList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *OpenIDClaimsList) SetItems(items []*OpenIDClaims) { + l.items = items +} + +// Items returns the items of the list. +func (l *OpenIDClaimsList) Items() []*OpenIDClaims { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *OpenIDClaimsList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/open_id_claims_type_json.go b/clustersmgmt/v1/open_id_claims_type_json.go index bd578534f..e709fe56e 100644 --- a/clustersmgmt/v1/open_id_claims_type_json.go +++ b/clustersmgmt/v1/open_id_claims_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalOpenIDClaims writes a value of the 'open_ID_claims' type to the given writer. func MarshalOpenIDClaims(object *OpenIDClaims, writer io.Writer) error { stream := helpers.NewStream(writer) - writeOpenIDClaims(object, stream) + WriteOpenIDClaims(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalOpenIDClaims(object *OpenIDClaims, writer io.Writer) error { return stream.Error } -// writeOpenIDClaims writes a value of the 'open_ID_claims' type to the given stream. -func writeOpenIDClaims(object *OpenIDClaims, stream *jsoniter.Stream) { +// WriteOpenIDClaims writes a value of the 'open_ID_claims' type to the given stream. +func WriteOpenIDClaims(object *OpenIDClaims, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeOpenIDClaims(object *OpenIDClaims, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("email") - writeStringList(object.email, stream) + WriteStringList(object.email, stream) count++ } present_ = object.bitmap_&2 != 0 && object.groups != nil @@ -57,7 +57,7 @@ func writeOpenIDClaims(object *OpenIDClaims, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("groups") - writeStringList(object.groups, stream) + WriteStringList(object.groups, stream) count++ } present_ = object.bitmap_&4 != 0 && object.name != nil @@ -66,7 +66,7 @@ func writeOpenIDClaims(object *OpenIDClaims, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("name") - writeStringList(object.name, stream) + WriteStringList(object.name, stream) count++ } present_ = object.bitmap_&8 != 0 && object.preferredUsername != nil @@ -75,7 +75,7 @@ func writeOpenIDClaims(object *OpenIDClaims, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("preferred_username") - writeStringList(object.preferredUsername, stream) + WriteStringList(object.preferredUsername, stream) } stream.WriteObjectEnd() } @@ -87,13 +87,13 @@ func UnmarshalOpenIDClaims(source interface{}) (object *OpenIDClaims, err error) if err != nil { return } - object = readOpenIDClaims(iterator) + object = ReadOpenIDClaims(iterator) err = iterator.Error return } -// readOpenIDClaims reads a value of the 'open_ID_claims' type from the given iterator. -func readOpenIDClaims(iterator *jsoniter.Iterator) *OpenIDClaims { +// ReadOpenIDClaims reads a value of the 'open_ID_claims' type from the given iterator. +func ReadOpenIDClaims(iterator *jsoniter.Iterator) *OpenIDClaims { object := &OpenIDClaims{} for { field := iterator.ReadObject() @@ -102,19 +102,19 @@ func readOpenIDClaims(iterator *jsoniter.Iterator) *OpenIDClaims { } switch field { case "email": - value := readStringList(iterator) + value := ReadStringList(iterator) object.email = value object.bitmap_ |= 1 case "groups": - value := readStringList(iterator) + value := ReadStringList(iterator) object.groups = value object.bitmap_ |= 2 case "name": - value := readStringList(iterator) + value := ReadStringList(iterator) object.name = value object.bitmap_ |= 4 case "preferred_username": - value := readStringList(iterator) + value := ReadStringList(iterator) object.preferredUsername = value object.bitmap_ |= 8 default: diff --git a/clustersmgmt/v1/open_id_identity_provider_list_type_json.go b/clustersmgmt/v1/open_id_identity_provider_list_type_json.go index 965156d1d..7f21aa9e5 100644 --- a/clustersmgmt/v1/open_id_identity_provider_list_type_json.go +++ b/clustersmgmt/v1/open_id_identity_provider_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalOpenIDIdentityProviderList(list []*OpenIDIdentityProvider, writer io.Writer) error { stream := helpers.NewStream(writer) - writeOpenIDIdentityProviderList(list, stream) + WriteOpenIDIdentityProviderList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalOpenIDIdentityProviderList(list []*OpenIDIdentityProvider, writer io return stream.Error } -// writeOpenIDIdentityProviderList writes a list of value of the 'open_ID_identity_provider' type to +// WriteOpenIDIdentityProviderList writes a list of value of the 'open_ID_identity_provider' type to // the given stream. -func writeOpenIDIdentityProviderList(list []*OpenIDIdentityProvider, stream *jsoniter.Stream) { +func WriteOpenIDIdentityProviderList(list []*OpenIDIdentityProvider, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeOpenIDIdentityProvider(value, stream) + WriteOpenIDIdentityProvider(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalOpenIDIdentityProviderList(source interface{}) (items []*OpenIDIde if err != nil { return } - items = readOpenIDIdentityProviderList(iterator) + items = ReadOpenIDIdentityProviderList(iterator) err = iterator.Error return } -// readOpenIDIdentityProviderList reads list of values of the ”open_ID_identity_provider' type from +// ReadOpenIDIdentityProviderList reads list of values of the ”open_ID_identity_provider' type from // the given iterator. -func readOpenIDIdentityProviderList(iterator *jsoniter.Iterator) []*OpenIDIdentityProvider { +func ReadOpenIDIdentityProviderList(iterator *jsoniter.Iterator) []*OpenIDIdentityProvider { list := []*OpenIDIdentityProvider{} for iterator.ReadArray() { - item := readOpenIDIdentityProvider(iterator) + item := ReadOpenIDIdentityProvider(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/open_id_identity_provider_type.go b/clustersmgmt/v1/open_id_identity_provider_type.go index 7b2bb76f1..27f2a5b2e 100644 --- a/clustersmgmt/v1/open_id_identity_provider_type.go +++ b/clustersmgmt/v1/open_id_identity_provider_type.go @@ -228,6 +228,29 @@ func (l *OpenIDIdentityProviderList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *OpenIDIdentityProviderList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *OpenIDIdentityProviderList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *OpenIDIdentityProviderList) SetItems(items []*OpenIDIdentityProvider) { + l.items = items +} + +// Items returns the items of the list. +func (l *OpenIDIdentityProviderList) Items() []*OpenIDIdentityProvider { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *OpenIDIdentityProviderList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/open_id_identity_provider_type_json.go b/clustersmgmt/v1/open_id_identity_provider_type_json.go index e14c22626..af271153c 100644 --- a/clustersmgmt/v1/open_id_identity_provider_type_json.go +++ b/clustersmgmt/v1/open_id_identity_provider_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalOpenIDIdentityProvider writes a value of the 'open_ID_identity_provider' type to the given writer. func MarshalOpenIDIdentityProvider(object *OpenIDIdentityProvider, writer io.Writer) error { stream := helpers.NewStream(writer) - writeOpenIDIdentityProvider(object, stream) + WriteOpenIDIdentityProvider(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalOpenIDIdentityProvider(object *OpenIDIdentityProvider, writer io.Wri return stream.Error } -// writeOpenIDIdentityProvider writes a value of the 'open_ID_identity_provider' type to the given stream. -func writeOpenIDIdentityProvider(object *OpenIDIdentityProvider, stream *jsoniter.Stream) { +// WriteOpenIDIdentityProvider writes a value of the 'open_ID_identity_provider' type to the given stream. +func WriteOpenIDIdentityProvider(object *OpenIDIdentityProvider, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -58,7 +58,7 @@ func writeOpenIDIdentityProvider(object *OpenIDIdentityProvider, stream *jsonite stream.WriteMore() } stream.WriteObjectField("claims") - writeOpenIDClaims(object.claims, stream) + WriteOpenIDClaims(object.claims, stream) count++ } present_ = object.bitmap_&4 != 0 @@ -114,7 +114,7 @@ func writeOpenIDIdentityProvider(object *OpenIDIdentityProvider, stream *jsonite stream.WriteMore() } stream.WriteObjectField("extra_scopes") - writeStringList(object.extraScopes, stream) + WriteStringList(object.extraScopes, stream) count++ } present_ = object.bitmap_&64 != 0 @@ -135,13 +135,13 @@ func UnmarshalOpenIDIdentityProvider(source interface{}) (object *OpenIDIdentity if err != nil { return } - object = readOpenIDIdentityProvider(iterator) + object = ReadOpenIDIdentityProvider(iterator) err = iterator.Error return } -// readOpenIDIdentityProvider reads a value of the 'open_ID_identity_provider' type from the given iterator. -func readOpenIDIdentityProvider(iterator *jsoniter.Iterator) *OpenIDIdentityProvider { +// ReadOpenIDIdentityProvider reads a value of the 'open_ID_identity_provider' type from the given iterator. +func ReadOpenIDIdentityProvider(iterator *jsoniter.Iterator) *OpenIDIdentityProvider { object := &OpenIDIdentityProvider{} for { field := iterator.ReadObject() @@ -154,7 +154,7 @@ func readOpenIDIdentityProvider(iterator *jsoniter.Iterator) *OpenIDIdentityProv object.ca = value object.bitmap_ |= 1 case "claims": - value := readOpenIDClaims(iterator) + value := ReadOpenIDClaims(iterator) object.claims = value object.bitmap_ |= 2 case "client_id": @@ -178,7 +178,7 @@ func readOpenIDIdentityProvider(iterator *jsoniter.Iterator) *OpenIDIdentityProv object.extraAuthorizeParameters = value object.bitmap_ |= 16 case "extra_scopes": - value := readStringList(iterator) + value := ReadStringList(iterator) object.extraScopes = value object.bitmap_ |= 32 case "issuer": diff --git a/clustersmgmt/v1/operator_iam_role_list_type_json.go b/clustersmgmt/v1/operator_iam_role_list_type_json.go index a65721c7c..2a8eb5a3b 100644 --- a/clustersmgmt/v1/operator_iam_role_list_type_json.go +++ b/clustersmgmt/v1/operator_iam_role_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalOperatorIAMRoleList(list []*OperatorIAMRole, writer io.Writer) error { stream := helpers.NewStream(writer) - writeOperatorIAMRoleList(list, stream) + WriteOperatorIAMRoleList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalOperatorIAMRoleList(list []*OperatorIAMRole, writer io.Writer) error return stream.Error } -// writeOperatorIAMRoleList writes a list of value of the 'operator_IAM_role' type to +// WriteOperatorIAMRoleList writes a list of value of the 'operator_IAM_role' type to // the given stream. -func writeOperatorIAMRoleList(list []*OperatorIAMRole, stream *jsoniter.Stream) { +func WriteOperatorIAMRoleList(list []*OperatorIAMRole, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeOperatorIAMRole(value, stream) + WriteOperatorIAMRole(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalOperatorIAMRoleList(source interface{}) (items []*OperatorIAMRole, if err != nil { return } - items = readOperatorIAMRoleList(iterator) + items = ReadOperatorIAMRoleList(iterator) err = iterator.Error return } -// readOperatorIAMRoleList reads list of values of the ”operator_IAM_role' type from +// ReadOperatorIAMRoleList reads list of values of the ”operator_IAM_role' type from // the given iterator. -func readOperatorIAMRoleList(iterator *jsoniter.Iterator) []*OperatorIAMRole { +func ReadOperatorIAMRoleList(iterator *jsoniter.Iterator) []*OperatorIAMRole { list := []*OperatorIAMRole{} for iterator.ReadArray() { - item := readOperatorIAMRole(iterator) + item := ReadOperatorIAMRole(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/operator_iam_role_type.go b/clustersmgmt/v1/operator_iam_role_type.go index 83229ac21..5d84e59e0 100644 --- a/clustersmgmt/v1/operator_iam_role_type.go +++ b/clustersmgmt/v1/operator_iam_role_type.go @@ -178,6 +178,29 @@ func (l *OperatorIAMRoleList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *OperatorIAMRoleList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *OperatorIAMRoleList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *OperatorIAMRoleList) SetItems(items []*OperatorIAMRole) { + l.items = items +} + +// Items returns the items of the list. +func (l *OperatorIAMRoleList) Items() []*OperatorIAMRole { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *OperatorIAMRoleList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/operator_iam_role_type_json.go b/clustersmgmt/v1/operator_iam_role_type_json.go index 0cedd30cd..1e96ae58c 100644 --- a/clustersmgmt/v1/operator_iam_role_type_json.go +++ b/clustersmgmt/v1/operator_iam_role_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalOperatorIAMRole writes a value of the 'operator_IAM_role' type to the given writer. func MarshalOperatorIAMRole(object *OperatorIAMRole, writer io.Writer) error { stream := helpers.NewStream(writer) - writeOperatorIAMRole(object, stream) + WriteOperatorIAMRole(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalOperatorIAMRole(object *OperatorIAMRole, writer io.Writer) error { return stream.Error } -// writeOperatorIAMRole writes a value of the 'operator_IAM_role' type to the given stream. -func writeOperatorIAMRole(object *OperatorIAMRole, stream *jsoniter.Stream) { +// WriteOperatorIAMRole writes a value of the 'operator_IAM_role' type to the given stream. +func WriteOperatorIAMRole(object *OperatorIAMRole, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -96,13 +96,13 @@ func UnmarshalOperatorIAMRole(source interface{}) (object *OperatorIAMRole, err if err != nil { return } - object = readOperatorIAMRole(iterator) + object = ReadOperatorIAMRole(iterator) err = iterator.Error return } -// readOperatorIAMRole reads a value of the 'operator_IAM_role' type from the given iterator. -func readOperatorIAMRole(iterator *jsoniter.Iterator) *OperatorIAMRole { +// ReadOperatorIAMRole reads a value of the 'operator_IAM_role' type from the given iterator. +func ReadOperatorIAMRole(iterator *jsoniter.Iterator) *OperatorIAMRole { object := &OperatorIAMRole{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/operator_iam_roles_resource_json.go b/clustersmgmt/v1/operator_iam_roles_resource_json.go index 875a2096c..0110803bf 100644 --- a/clustersmgmt/v1/operator_iam_roles_resource_json.go +++ b/clustersmgmt/v1/operator_iam_roles_resource_json.go @@ -57,7 +57,7 @@ func readOperatorIAMRolesListResponse(response *OperatorIAMRolesListResponse, re value := iterator.ReadInt() response.total = &value case "items": - items := readOperatorIAMRoleList(iterator) + items := ReadOperatorIAMRoleList(iterator) response.items = &OperatorIAMRoleList{ items: items, } diff --git a/clustersmgmt/v1/organization_link_list_type_json.go b/clustersmgmt/v1/organization_link_list_type_json.go index 3330b14e0..5a3b58a72 100644 --- a/clustersmgmt/v1/organization_link_list_type_json.go +++ b/clustersmgmt/v1/organization_link_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalOrganizationLinkList(list []*OrganizationLink, writer io.Writer) error { stream := helpers.NewStream(writer) - writeOrganizationLinkList(list, stream) + WriteOrganizationLinkList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalOrganizationLinkList(list []*OrganizationLink, writer io.Writer) err return stream.Error } -// writeOrganizationLinkList writes a list of value of the 'organization_link' type to +// WriteOrganizationLinkList writes a list of value of the 'organization_link' type to // the given stream. -func writeOrganizationLinkList(list []*OrganizationLink, stream *jsoniter.Stream) { +func WriteOrganizationLinkList(list []*OrganizationLink, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeOrganizationLink(value, stream) + WriteOrganizationLink(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalOrganizationLinkList(source interface{}) (items []*OrganizationLin if err != nil { return } - items = readOrganizationLinkList(iterator) + items = ReadOrganizationLinkList(iterator) err = iterator.Error return } -// readOrganizationLinkList reads list of values of the ”organization_link' type from +// ReadOrganizationLinkList reads list of values of the ”organization_link' type from // the given iterator. -func readOrganizationLinkList(iterator *jsoniter.Iterator) []*OrganizationLink { +func ReadOrganizationLinkList(iterator *jsoniter.Iterator) []*OrganizationLink { list := []*OrganizationLink{} for iterator.ReadArray() { - item := readOrganizationLink(iterator) + item := ReadOrganizationLink(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/organization_link_type.go b/clustersmgmt/v1/organization_link_type.go index 047da297e..2c939f8b6 100644 --- a/clustersmgmt/v1/organization_link_type.go +++ b/clustersmgmt/v1/organization_link_type.go @@ -106,6 +106,29 @@ func (l *OrganizationLinkList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *OrganizationLinkList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *OrganizationLinkList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *OrganizationLinkList) SetItems(items []*OrganizationLink) { + l.items = items +} + +// Items returns the items of the list. +func (l *OrganizationLinkList) Items() []*OrganizationLink { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *OrganizationLinkList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/organization_link_type_json.go b/clustersmgmt/v1/organization_link_type_json.go index 8d96e161b..ab51fea47 100644 --- a/clustersmgmt/v1/organization_link_type_json.go +++ b/clustersmgmt/v1/organization_link_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalOrganizationLink writes a value of the 'organization_link' type to the given writer. func MarshalOrganizationLink(object *OrganizationLink, writer io.Writer) error { stream := helpers.NewStream(writer) - writeOrganizationLink(object, stream) + WriteOrganizationLink(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalOrganizationLink(object *OrganizationLink, writer io.Writer) error { return stream.Error } -// writeOrganizationLink writes a value of the 'organization_link' type to the given stream. -func writeOrganizationLink(object *OrganizationLink, stream *jsoniter.Stream) { +// WriteOrganizationLink writes a value of the 'organization_link' type to the given stream. +func WriteOrganizationLink(object *OrganizationLink, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalOrganizationLink(source interface{}) (object *OrganizationLink, er if err != nil { return } - object = readOrganizationLink(iterator) + object = ReadOrganizationLink(iterator) err = iterator.Error return } -// readOrganizationLink reads a value of the 'organization_link' type from the given iterator. -func readOrganizationLink(iterator *jsoniter.Iterator) *OrganizationLink { +// ReadOrganizationLink reads a value of the 'organization_link' type from the given iterator. +func ReadOrganizationLink(iterator *jsoniter.Iterator) *OrganizationLink { object := &OrganizationLink{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/pending_delete_cluster_list_type_json.go b/clustersmgmt/v1/pending_delete_cluster_list_type_json.go index 7937d9fd5..b9736f9a3 100644 --- a/clustersmgmt/v1/pending_delete_cluster_list_type_json.go +++ b/clustersmgmt/v1/pending_delete_cluster_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalPendingDeleteClusterList(list []*PendingDeleteCluster, writer io.Writer) error { stream := helpers.NewStream(writer) - writePendingDeleteClusterList(list, stream) + WritePendingDeleteClusterList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalPendingDeleteClusterList(list []*PendingDeleteCluster, writer io.Wri return stream.Error } -// writePendingDeleteClusterList writes a list of value of the 'pending_delete_cluster' type to +// WritePendingDeleteClusterList writes a list of value of the 'pending_delete_cluster' type to // the given stream. -func writePendingDeleteClusterList(list []*PendingDeleteCluster, stream *jsoniter.Stream) { +func WritePendingDeleteClusterList(list []*PendingDeleteCluster, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writePendingDeleteCluster(value, stream) + WritePendingDeleteCluster(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalPendingDeleteClusterList(source interface{}) (items []*PendingDele if err != nil { return } - items = readPendingDeleteClusterList(iterator) + items = ReadPendingDeleteClusterList(iterator) err = iterator.Error return } -// readPendingDeleteClusterList reads list of values of the ”pending_delete_cluster' type from +// ReadPendingDeleteClusterList reads list of values of the ”pending_delete_cluster' type from // the given iterator. -func readPendingDeleteClusterList(iterator *jsoniter.Iterator) []*PendingDeleteCluster { +func ReadPendingDeleteClusterList(iterator *jsoniter.Iterator) []*PendingDeleteCluster { list := []*PendingDeleteCluster{} for iterator.ReadArray() { - item := readPendingDeleteCluster(iterator) + item := ReadPendingDeleteCluster(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/pending_delete_cluster_type.go b/clustersmgmt/v1/pending_delete_cluster_type.go index a2f6cb20c..2bd72a8da 100644 --- a/clustersmgmt/v1/pending_delete_cluster_type.go +++ b/clustersmgmt/v1/pending_delete_cluster_type.go @@ -58,7 +58,7 @@ func (o *PendingDeleteCluster) Kind() string { return PendingDeleteClusterKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *PendingDeleteCluster) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -236,6 +236,29 @@ func (l *PendingDeleteClusterList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *PendingDeleteClusterList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *PendingDeleteClusterList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *PendingDeleteClusterList) SetItems(items []*PendingDeleteCluster) { + l.items = items +} + +// Items returns the items of the list. +func (l *PendingDeleteClusterList) Items() []*PendingDeleteCluster { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *PendingDeleteClusterList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/pending_delete_cluster_type_json.go b/clustersmgmt/v1/pending_delete_cluster_type_json.go index a92835571..f8625c7de 100644 --- a/clustersmgmt/v1/pending_delete_cluster_type_json.go +++ b/clustersmgmt/v1/pending_delete_cluster_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalPendingDeleteCluster writes a value of the 'pending_delete_cluster' type to the given writer. func MarshalPendingDeleteCluster(object *PendingDeleteCluster, writer io.Writer) error { stream := helpers.NewStream(writer) - writePendingDeleteCluster(object, stream) + WritePendingDeleteCluster(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalPendingDeleteCluster(object *PendingDeleteCluster, writer io.Writer) return stream.Error } -// writePendingDeleteCluster writes a value of the 'pending_delete_cluster' type to the given stream. -func writePendingDeleteCluster(object *PendingDeleteCluster, stream *jsoniter.Stream) { +// WritePendingDeleteCluster writes a value of the 'pending_delete_cluster' type to the given stream. +func WritePendingDeleteCluster(object *PendingDeleteCluster, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -81,7 +81,7 @@ func writePendingDeleteCluster(object *PendingDeleteCluster, stream *jsoniter.St stream.WriteMore() } stream.WriteObjectField("cluster") - writeCluster(object.cluster, stream) + WriteCluster(object.cluster, stream) count++ } present_ = object.bitmap_&32 != 0 @@ -102,13 +102,13 @@ func UnmarshalPendingDeleteCluster(source interface{}) (object *PendingDeleteClu if err != nil { return } - object = readPendingDeleteCluster(iterator) + object = ReadPendingDeleteCluster(iterator) err = iterator.Error return } -// readPendingDeleteCluster reads a value of the 'pending_delete_cluster' type from the given iterator. -func readPendingDeleteCluster(iterator *jsoniter.Iterator) *PendingDeleteCluster { +// ReadPendingDeleteCluster reads a value of the 'pending_delete_cluster' type from the given iterator. +func ReadPendingDeleteCluster(iterator *jsoniter.Iterator) *PendingDeleteCluster { object := &PendingDeleteCluster{} for { field := iterator.ReadObject() @@ -132,7 +132,7 @@ func readPendingDeleteCluster(iterator *jsoniter.Iterator) *PendingDeleteCluster object.bestEffort = value object.bitmap_ |= 8 case "cluster": - value := readCluster(iterator) + value := ReadCluster(iterator) object.cluster = value object.bitmap_ |= 16 case "creation_timestamp": diff --git a/clustersmgmt/v1/pending_delete_clusters_resource_json.go b/clustersmgmt/v1/pending_delete_clusters_resource_json.go index 06bdfcf69..1831d135e 100644 --- a/clustersmgmt/v1/pending_delete_clusters_resource_json.go +++ b/clustersmgmt/v1/pending_delete_clusters_resource_json.go @@ -49,7 +49,7 @@ func readPendingDeleteClustersListResponse(response *PendingDeleteClustersListRe value := iterator.ReadInt() response.total = &value case "items": - items := readPendingDeleteClusterList(iterator) + items := ReadPendingDeleteClusterList(iterator) response.items = &PendingDeleteClusterList{ items: items, } diff --git a/clustersmgmt/v1/platform_list_type_json.go b/clustersmgmt/v1/platform_list_type_json.go index 6deebe0f3..107c3af41 100644 --- a/clustersmgmt/v1/platform_list_type_json.go +++ b/clustersmgmt/v1/platform_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalPlatformList(list []Platform, writer io.Writer) error { stream := helpers.NewStream(writer) - writePlatformList(list, stream) + WritePlatformList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalPlatformList(list []Platform, writer io.Writer) error { return stream.Error } -// writePlatformList writes a list of value of the 'platform' type to +// WritePlatformList writes a list of value of the 'platform' type to // the given stream. -func writePlatformList(list []Platform, stream *jsoniter.Stream) { +func WritePlatformList(list []Platform, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalPlatformList(source interface{}) (items []Platform, err error) { if err != nil { return } - items = readPlatformList(iterator) + items = ReadPlatformList(iterator) err = iterator.Error return } -// readPlatformList reads list of values of the ”platform' type from +// ReadPlatformList reads list of values of the ”platform' type from // the given iterator. -func readPlatformList(iterator *jsoniter.Iterator) []Platform { +func ReadPlatformList(iterator *jsoniter.Iterator) []Platform { list := []Platform{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/private_link_cluster_configuration_list_type_json.go b/clustersmgmt/v1/private_link_cluster_configuration_list_type_json.go index 64bf98444..8d626e0d0 100644 --- a/clustersmgmt/v1/private_link_cluster_configuration_list_type_json.go +++ b/clustersmgmt/v1/private_link_cluster_configuration_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalPrivateLinkClusterConfigurationList(list []*PrivateLinkClusterConfiguration, writer io.Writer) error { stream := helpers.NewStream(writer) - writePrivateLinkClusterConfigurationList(list, stream) + WritePrivateLinkClusterConfigurationList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalPrivateLinkClusterConfigurationList(list []*PrivateLinkClusterConfig return stream.Error } -// writePrivateLinkClusterConfigurationList writes a list of value of the 'private_link_cluster_configuration' type to +// WritePrivateLinkClusterConfigurationList writes a list of value of the 'private_link_cluster_configuration' type to // the given stream. -func writePrivateLinkClusterConfigurationList(list []*PrivateLinkClusterConfiguration, stream *jsoniter.Stream) { +func WritePrivateLinkClusterConfigurationList(list []*PrivateLinkClusterConfiguration, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writePrivateLinkClusterConfiguration(value, stream) + WritePrivateLinkClusterConfiguration(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalPrivateLinkClusterConfigurationList(source interface{}) (items []* if err != nil { return } - items = readPrivateLinkClusterConfigurationList(iterator) + items = ReadPrivateLinkClusterConfigurationList(iterator) err = iterator.Error return } -// readPrivateLinkClusterConfigurationList reads list of values of the ”private_link_cluster_configuration' type from +// ReadPrivateLinkClusterConfigurationList reads list of values of the ”private_link_cluster_configuration' type from // the given iterator. -func readPrivateLinkClusterConfigurationList(iterator *jsoniter.Iterator) []*PrivateLinkClusterConfiguration { +func ReadPrivateLinkClusterConfigurationList(iterator *jsoniter.Iterator) []*PrivateLinkClusterConfiguration { list := []*PrivateLinkClusterConfiguration{} for iterator.ReadArray() { - item := readPrivateLinkClusterConfiguration(iterator) + item := ReadPrivateLinkClusterConfiguration(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/private_link_cluster_configuration_type.go b/clustersmgmt/v1/private_link_cluster_configuration_type.go index 613f2bb71..e82f6c5dd 100644 --- a/clustersmgmt/v1/private_link_cluster_configuration_type.go +++ b/clustersmgmt/v1/private_link_cluster_configuration_type.go @@ -82,6 +82,29 @@ func (l *PrivateLinkClusterConfigurationList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *PrivateLinkClusterConfigurationList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *PrivateLinkClusterConfigurationList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *PrivateLinkClusterConfigurationList) SetItems(items []*PrivateLinkClusterConfiguration) { + l.items = items +} + +// Items returns the items of the list. +func (l *PrivateLinkClusterConfigurationList) Items() []*PrivateLinkClusterConfiguration { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *PrivateLinkClusterConfigurationList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/private_link_cluster_configuration_type_json.go b/clustersmgmt/v1/private_link_cluster_configuration_type_json.go index 74d282a58..ec3a99845 100644 --- a/clustersmgmt/v1/private_link_cluster_configuration_type_json.go +++ b/clustersmgmt/v1/private_link_cluster_configuration_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalPrivateLinkClusterConfiguration writes a value of the 'private_link_cluster_configuration' type to the given writer. func MarshalPrivateLinkClusterConfiguration(object *PrivateLinkClusterConfiguration, writer io.Writer) error { stream := helpers.NewStream(writer) - writePrivateLinkClusterConfiguration(object, stream) + WritePrivateLinkClusterConfiguration(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalPrivateLinkClusterConfiguration(object *PrivateLinkClusterConfigurat return stream.Error } -// writePrivateLinkClusterConfiguration writes a value of the 'private_link_cluster_configuration' type to the given stream. -func writePrivateLinkClusterConfiguration(object *PrivateLinkClusterConfiguration, stream *jsoniter.Stream) { +// WritePrivateLinkClusterConfiguration writes a value of the 'private_link_cluster_configuration' type to the given stream. +func WritePrivateLinkClusterConfiguration(object *PrivateLinkClusterConfiguration, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writePrivateLinkClusterConfiguration(object *PrivateLinkClusterConfiguratio stream.WriteMore() } stream.WriteObjectField("principals") - writePrivateLinkPrincipalList(object.principals, stream) + WritePrivateLinkPrincipalList(object.principals, stream) } stream.WriteObjectEnd() } @@ -60,13 +60,13 @@ func UnmarshalPrivateLinkClusterConfiguration(source interface{}) (object *Priva if err != nil { return } - object = readPrivateLinkClusterConfiguration(iterator) + object = ReadPrivateLinkClusterConfiguration(iterator) err = iterator.Error return } -// readPrivateLinkClusterConfiguration reads a value of the 'private_link_cluster_configuration' type from the given iterator. -func readPrivateLinkClusterConfiguration(iterator *jsoniter.Iterator) *PrivateLinkClusterConfiguration { +// ReadPrivateLinkClusterConfiguration reads a value of the 'private_link_cluster_configuration' type from the given iterator. +func ReadPrivateLinkClusterConfiguration(iterator *jsoniter.Iterator) *PrivateLinkClusterConfiguration { object := &PrivateLinkClusterConfiguration{} for { field := iterator.ReadObject() @@ -75,7 +75,7 @@ func readPrivateLinkClusterConfiguration(iterator *jsoniter.Iterator) *PrivateLi } switch field { case "principals": - value := readPrivateLinkPrincipalList(iterator) + value := ReadPrivateLinkPrincipalList(iterator) object.principals = value object.bitmap_ |= 1 default: diff --git a/clustersmgmt/v1/private_link_configuration_list_type_json.go b/clustersmgmt/v1/private_link_configuration_list_type_json.go index 4c7afd152..0d3267e90 100644 --- a/clustersmgmt/v1/private_link_configuration_list_type_json.go +++ b/clustersmgmt/v1/private_link_configuration_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalPrivateLinkConfigurationList(list []*PrivateLinkConfiguration, writer io.Writer) error { stream := helpers.NewStream(writer) - writePrivateLinkConfigurationList(list, stream) + WritePrivateLinkConfigurationList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalPrivateLinkConfigurationList(list []*PrivateLinkConfiguration, write return stream.Error } -// writePrivateLinkConfigurationList writes a list of value of the 'private_link_configuration' type to +// WritePrivateLinkConfigurationList writes a list of value of the 'private_link_configuration' type to // the given stream. -func writePrivateLinkConfigurationList(list []*PrivateLinkConfiguration, stream *jsoniter.Stream) { +func WritePrivateLinkConfigurationList(list []*PrivateLinkConfiguration, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writePrivateLinkConfiguration(value, stream) + WritePrivateLinkConfiguration(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalPrivateLinkConfigurationList(source interface{}) (items []*Private if err != nil { return } - items = readPrivateLinkConfigurationList(iterator) + items = ReadPrivateLinkConfigurationList(iterator) err = iterator.Error return } -// readPrivateLinkConfigurationList reads list of values of the ”private_link_configuration' type from +// ReadPrivateLinkConfigurationList reads list of values of the ”private_link_configuration' type from // the given iterator. -func readPrivateLinkConfigurationList(iterator *jsoniter.Iterator) []*PrivateLinkConfiguration { +func ReadPrivateLinkConfigurationList(iterator *jsoniter.Iterator) []*PrivateLinkConfiguration { list := []*PrivateLinkConfiguration{} for iterator.ReadArray() { - item := readPrivateLinkConfiguration(iterator) + item := ReadPrivateLinkConfiguration(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/private_link_configuration_type.go b/clustersmgmt/v1/private_link_configuration_type.go index fc8bf03e7..f0ca9ecd3 100644 --- a/clustersmgmt/v1/private_link_configuration_type.go +++ b/clustersmgmt/v1/private_link_configuration_type.go @@ -82,6 +82,29 @@ func (l *PrivateLinkConfigurationList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *PrivateLinkConfigurationList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *PrivateLinkConfigurationList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *PrivateLinkConfigurationList) SetItems(items []*PrivateLinkConfiguration) { + l.items = items +} + +// Items returns the items of the list. +func (l *PrivateLinkConfigurationList) Items() []*PrivateLinkConfiguration { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *PrivateLinkConfigurationList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/private_link_configuration_type_json.go b/clustersmgmt/v1/private_link_configuration_type_json.go index 45773cc8a..3760925dd 100644 --- a/clustersmgmt/v1/private_link_configuration_type_json.go +++ b/clustersmgmt/v1/private_link_configuration_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalPrivateLinkConfiguration writes a value of the 'private_link_configuration' type to the given writer. func MarshalPrivateLinkConfiguration(object *PrivateLinkConfiguration, writer io.Writer) error { stream := helpers.NewStream(writer) - writePrivateLinkConfiguration(object, stream) + WritePrivateLinkConfiguration(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalPrivateLinkConfiguration(object *PrivateLinkConfiguration, writer io return stream.Error } -// writePrivateLinkConfiguration writes a value of the 'private_link_configuration' type to the given stream. -func writePrivateLinkConfiguration(object *PrivateLinkConfiguration, stream *jsoniter.Stream) { +// WritePrivateLinkConfiguration writes a value of the 'private_link_configuration' type to the given stream. +func WritePrivateLinkConfiguration(object *PrivateLinkConfiguration, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writePrivateLinkConfiguration(object *PrivateLinkConfiguration, stream *jso stream.WriteMore() } stream.WriteObjectField("principals") - writePrivateLinkPrincipals(object.principals, stream) + WritePrivateLinkPrincipals(object.principals, stream) } stream.WriteObjectEnd() } @@ -60,13 +60,13 @@ func UnmarshalPrivateLinkConfiguration(source interface{}) (object *PrivateLinkC if err != nil { return } - object = readPrivateLinkConfiguration(iterator) + object = ReadPrivateLinkConfiguration(iterator) err = iterator.Error return } -// readPrivateLinkConfiguration reads a value of the 'private_link_configuration' type from the given iterator. -func readPrivateLinkConfiguration(iterator *jsoniter.Iterator) *PrivateLinkConfiguration { +// ReadPrivateLinkConfiguration reads a value of the 'private_link_configuration' type from the given iterator. +func ReadPrivateLinkConfiguration(iterator *jsoniter.Iterator) *PrivateLinkConfiguration { object := &PrivateLinkConfiguration{} for { field := iterator.ReadObject() @@ -75,7 +75,7 @@ func readPrivateLinkConfiguration(iterator *jsoniter.Iterator) *PrivateLinkConfi } switch field { case "principals": - value := readPrivateLinkPrincipals(iterator) + value := ReadPrivateLinkPrincipals(iterator) object.principals = value object.bitmap_ |= 1 default: diff --git a/clustersmgmt/v1/private_link_principal_list_type_json.go b/clustersmgmt/v1/private_link_principal_list_type_json.go index 260df3d8b..b6699fcc4 100644 --- a/clustersmgmt/v1/private_link_principal_list_type_json.go +++ b/clustersmgmt/v1/private_link_principal_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalPrivateLinkPrincipalList(list []*PrivateLinkPrincipal, writer io.Writer) error { stream := helpers.NewStream(writer) - writePrivateLinkPrincipalList(list, stream) + WritePrivateLinkPrincipalList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalPrivateLinkPrincipalList(list []*PrivateLinkPrincipal, writer io.Wri return stream.Error } -// writePrivateLinkPrincipalList writes a list of value of the 'private_link_principal' type to +// WritePrivateLinkPrincipalList writes a list of value of the 'private_link_principal' type to // the given stream. -func writePrivateLinkPrincipalList(list []*PrivateLinkPrincipal, stream *jsoniter.Stream) { +func WritePrivateLinkPrincipalList(list []*PrivateLinkPrincipal, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writePrivateLinkPrincipal(value, stream) + WritePrivateLinkPrincipal(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalPrivateLinkPrincipalList(source interface{}) (items []*PrivateLink if err != nil { return } - items = readPrivateLinkPrincipalList(iterator) + items = ReadPrivateLinkPrincipalList(iterator) err = iterator.Error return } -// readPrivateLinkPrincipalList reads list of values of the ”private_link_principal' type from +// ReadPrivateLinkPrincipalList reads list of values of the ”private_link_principal' type from // the given iterator. -func readPrivateLinkPrincipalList(iterator *jsoniter.Iterator) []*PrivateLinkPrincipal { +func ReadPrivateLinkPrincipalList(iterator *jsoniter.Iterator) []*PrivateLinkPrincipal { list := []*PrivateLinkPrincipal{} for iterator.ReadArray() { - item := readPrivateLinkPrincipal(iterator) + item := ReadPrivateLinkPrincipal(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/private_link_principal_type.go b/clustersmgmt/v1/private_link_principal_type.go index 1d84ea5aa..471b71037 100644 --- a/clustersmgmt/v1/private_link_principal_type.go +++ b/clustersmgmt/v1/private_link_principal_type.go @@ -50,7 +50,7 @@ func (o *PrivateLinkPrincipal) Kind() string { return PrivateLinkPrincipalKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *PrivateLinkPrincipal) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -180,6 +180,29 @@ func (l *PrivateLinkPrincipalList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *PrivateLinkPrincipalList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *PrivateLinkPrincipalList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *PrivateLinkPrincipalList) SetItems(items []*PrivateLinkPrincipal) { + l.items = items +} + +// Items returns the items of the list. +func (l *PrivateLinkPrincipalList) Items() []*PrivateLinkPrincipal { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *PrivateLinkPrincipalList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/private_link_principal_type_json.go b/clustersmgmt/v1/private_link_principal_type_json.go index 9eed0b5b6..9f8cff871 100644 --- a/clustersmgmt/v1/private_link_principal_type_json.go +++ b/clustersmgmt/v1/private_link_principal_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalPrivateLinkPrincipal writes a value of the 'private_link_principal' type to the given writer. func MarshalPrivateLinkPrincipal(object *PrivateLinkPrincipal, writer io.Writer) error { stream := helpers.NewStream(writer) - writePrivateLinkPrincipal(object, stream) + WritePrivateLinkPrincipal(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalPrivateLinkPrincipal(object *PrivateLinkPrincipal, writer io.Writer) return stream.Error } -// writePrivateLinkPrincipal writes a value of the 'private_link_principal' type to the given stream. -func writePrivateLinkPrincipal(object *PrivateLinkPrincipal, stream *jsoniter.Stream) { +// WritePrivateLinkPrincipal writes a value of the 'private_link_principal' type to the given stream. +func WritePrivateLinkPrincipal(object *PrivateLinkPrincipal, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -83,13 +83,13 @@ func UnmarshalPrivateLinkPrincipal(source interface{}) (object *PrivateLinkPrinc if err != nil { return } - object = readPrivateLinkPrincipal(iterator) + object = ReadPrivateLinkPrincipal(iterator) err = iterator.Error return } -// readPrivateLinkPrincipal reads a value of the 'private_link_principal' type from the given iterator. -func readPrivateLinkPrincipal(iterator *jsoniter.Iterator) *PrivateLinkPrincipal { +// ReadPrivateLinkPrincipal reads a value of the 'private_link_principal' type from the given iterator. +func ReadPrivateLinkPrincipal(iterator *jsoniter.Iterator) *PrivateLinkPrincipal { object := &PrivateLinkPrincipal{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/private_link_principals_list_type_json.go b/clustersmgmt/v1/private_link_principals_list_type_json.go index 27c901db5..56beb07bb 100644 --- a/clustersmgmt/v1/private_link_principals_list_type_json.go +++ b/clustersmgmt/v1/private_link_principals_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalPrivateLinkPrincipalsList(list []*PrivateLinkPrincipals, writer io.Writer) error { stream := helpers.NewStream(writer) - writePrivateLinkPrincipalsList(list, stream) + WritePrivateLinkPrincipalsList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalPrivateLinkPrincipalsList(list []*PrivateLinkPrincipals, writer io.W return stream.Error } -// writePrivateLinkPrincipalsList writes a list of value of the 'private_link_principals' type to +// WritePrivateLinkPrincipalsList writes a list of value of the 'private_link_principals' type to // the given stream. -func writePrivateLinkPrincipalsList(list []*PrivateLinkPrincipals, stream *jsoniter.Stream) { +func WritePrivateLinkPrincipalsList(list []*PrivateLinkPrincipals, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writePrivateLinkPrincipals(value, stream) + WritePrivateLinkPrincipals(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalPrivateLinkPrincipalsList(source interface{}) (items []*PrivateLin if err != nil { return } - items = readPrivateLinkPrincipalsList(iterator) + items = ReadPrivateLinkPrincipalsList(iterator) err = iterator.Error return } -// readPrivateLinkPrincipalsList reads list of values of the ”private_link_principals' type from +// ReadPrivateLinkPrincipalsList reads list of values of the ”private_link_principals' type from // the given iterator. -func readPrivateLinkPrincipalsList(iterator *jsoniter.Iterator) []*PrivateLinkPrincipals { +func ReadPrivateLinkPrincipalsList(iterator *jsoniter.Iterator) []*PrivateLinkPrincipals { list := []*PrivateLinkPrincipals{} for iterator.ReadArray() { - item := readPrivateLinkPrincipals(iterator) + item := ReadPrivateLinkPrincipals(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/private_link_principals_resource_json.go b/clustersmgmt/v1/private_link_principals_resource_json.go index d6b5b29ed..c770e9780 100644 --- a/clustersmgmt/v1/private_link_principals_resource_json.go +++ b/clustersmgmt/v1/private_link_principals_resource_json.go @@ -57,7 +57,7 @@ func readPrivateLinkPrincipalsListResponse(response *PrivateLinkPrincipalsListRe value := iterator.ReadInt() response.total = &value case "items": - items := readPrivateLinkPrincipalList(iterator) + items := ReadPrivateLinkPrincipalList(iterator) response.items = &PrivateLinkPrincipalList{ items: items, } diff --git a/clustersmgmt/v1/private_link_principals_type.go b/clustersmgmt/v1/private_link_principals_type.go index f34f09b68..83c725eed 100644 --- a/clustersmgmt/v1/private_link_principals_type.go +++ b/clustersmgmt/v1/private_link_principals_type.go @@ -52,7 +52,7 @@ func (o *PrivateLinkPrincipals) Kind() string { return PrivateLinkPrincipalsKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *PrivateLinkPrincipals) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -182,6 +182,29 @@ func (l *PrivateLinkPrincipalsList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *PrivateLinkPrincipalsList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *PrivateLinkPrincipalsList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *PrivateLinkPrincipalsList) SetItems(items []*PrivateLinkPrincipals) { + l.items = items +} + +// Items returns the items of the list. +func (l *PrivateLinkPrincipalsList) Items() []*PrivateLinkPrincipals { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *PrivateLinkPrincipalsList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/private_link_principals_type_json.go b/clustersmgmt/v1/private_link_principals_type_json.go index 14742579e..164ef79d4 100644 --- a/clustersmgmt/v1/private_link_principals_type_json.go +++ b/clustersmgmt/v1/private_link_principals_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalPrivateLinkPrincipals writes a value of the 'private_link_principals' type to the given writer. func MarshalPrivateLinkPrincipals(object *PrivateLinkPrincipals, writer io.Writer) error { stream := helpers.NewStream(writer) - writePrivateLinkPrincipals(object, stream) + WritePrivateLinkPrincipals(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalPrivateLinkPrincipals(object *PrivateLinkPrincipals, writer io.Write return stream.Error } -// writePrivateLinkPrincipals writes a value of the 'private_link_principals' type to the given stream. -func writePrivateLinkPrincipals(object *PrivateLinkPrincipals, stream *jsoniter.Stream) { +// WritePrivateLinkPrincipals writes a value of the 'private_link_principals' type to the given stream. +func WritePrivateLinkPrincipals(object *PrivateLinkPrincipals, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -71,7 +71,7 @@ func writePrivateLinkPrincipals(object *PrivateLinkPrincipals, stream *jsoniter. stream.WriteMore() } stream.WriteObjectField("principals") - writePrivateLinkPrincipalList(object.principals, stream) + WritePrivateLinkPrincipalList(object.principals, stream) } stream.WriteObjectEnd() } @@ -83,13 +83,13 @@ func UnmarshalPrivateLinkPrincipals(source interface{}) (object *PrivateLinkPrin if err != nil { return } - object = readPrivateLinkPrincipals(iterator) + object = ReadPrivateLinkPrincipals(iterator) err = iterator.Error return } -// readPrivateLinkPrincipals reads a value of the 'private_link_principals' type from the given iterator. -func readPrivateLinkPrincipals(iterator *jsoniter.Iterator) *PrivateLinkPrincipals { +// ReadPrivateLinkPrincipals reads a value of the 'private_link_principals' type from the given iterator. +func ReadPrivateLinkPrincipals(iterator *jsoniter.Iterator) *PrivateLinkPrincipals { object := &PrivateLinkPrincipals{} for { field := iterator.ReadObject() @@ -109,7 +109,7 @@ func readPrivateLinkPrincipals(iterator *jsoniter.Iterator) *PrivateLinkPrincipa object.href = iterator.ReadString() object.bitmap_ |= 4 case "principals": - value := readPrivateLinkPrincipalList(iterator) + value := ReadPrivateLinkPrincipalList(iterator) object.principals = value object.bitmap_ |= 8 default: diff --git a/clustersmgmt/v1/processor_type_list_type_json.go b/clustersmgmt/v1/processor_type_list_type_json.go index 470035622..5e8e71608 100644 --- a/clustersmgmt/v1/processor_type_list_type_json.go +++ b/clustersmgmt/v1/processor_type_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalProcessorTypeList(list []ProcessorType, writer io.Writer) error { stream := helpers.NewStream(writer) - writeProcessorTypeList(list, stream) + WriteProcessorTypeList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalProcessorTypeList(list []ProcessorType, writer io.Writer) error { return stream.Error } -// writeProcessorTypeList writes a list of value of the 'processor_type' type to +// WriteProcessorTypeList writes a list of value of the 'processor_type' type to // the given stream. -func writeProcessorTypeList(list []ProcessorType, stream *jsoniter.Stream) { +func WriteProcessorTypeList(list []ProcessorType, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalProcessorTypeList(source interface{}) (items []ProcessorType, err if err != nil { return } - items = readProcessorTypeList(iterator) + items = ReadProcessorTypeList(iterator) err = iterator.Error return } -// readProcessorTypeList reads list of values of the ”processor_type' type from +// ReadProcessorTypeList reads list of values of the ”processor_type' type from // the given iterator. -func readProcessorTypeList(iterator *jsoniter.Iterator) []ProcessorType { +func ReadProcessorTypeList(iterator *jsoniter.Iterator) []ProcessorType { list := []ProcessorType{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/product_list_type_json.go b/clustersmgmt/v1/product_list_type_json.go index ea2f35e13..52fd1714f 100644 --- a/clustersmgmt/v1/product_list_type_json.go +++ b/clustersmgmt/v1/product_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalProductList(list []*Product, writer io.Writer) error { stream := helpers.NewStream(writer) - writeProductList(list, stream) + WriteProductList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalProductList(list []*Product, writer io.Writer) error { return stream.Error } -// writeProductList writes a list of value of the 'product' type to +// WriteProductList writes a list of value of the 'product' type to // the given stream. -func writeProductList(list []*Product, stream *jsoniter.Stream) { +func WriteProductList(list []*Product, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeProduct(value, stream) + WriteProduct(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalProductList(source interface{}) (items []*Product, err error) { if err != nil { return } - items = readProductList(iterator) + items = ReadProductList(iterator) err = iterator.Error return } -// readProductList reads list of values of the ”product' type from +// ReadProductList reads list of values of the ”product' type from // the given iterator. -func readProductList(iterator *jsoniter.Iterator) []*Product { +func ReadProductList(iterator *jsoniter.Iterator) []*Product { list := []*Product{} for iterator.ReadArray() { - item := readProduct(iterator) + item := ReadProduct(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/product_minimal_version_list_type_json.go b/clustersmgmt/v1/product_minimal_version_list_type_json.go index 3cf6adee8..0f90ef6a7 100644 --- a/clustersmgmt/v1/product_minimal_version_list_type_json.go +++ b/clustersmgmt/v1/product_minimal_version_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalProductMinimalVersionList(list []*ProductMinimalVersion, writer io.Writer) error { stream := helpers.NewStream(writer) - writeProductMinimalVersionList(list, stream) + WriteProductMinimalVersionList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalProductMinimalVersionList(list []*ProductMinimalVersion, writer io.W return stream.Error } -// writeProductMinimalVersionList writes a list of value of the 'product_minimal_version' type to +// WriteProductMinimalVersionList writes a list of value of the 'product_minimal_version' type to // the given stream. -func writeProductMinimalVersionList(list []*ProductMinimalVersion, stream *jsoniter.Stream) { +func WriteProductMinimalVersionList(list []*ProductMinimalVersion, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeProductMinimalVersion(value, stream) + WriteProductMinimalVersion(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalProductMinimalVersionList(source interface{}) (items []*ProductMin if err != nil { return } - items = readProductMinimalVersionList(iterator) + items = ReadProductMinimalVersionList(iterator) err = iterator.Error return } -// readProductMinimalVersionList reads list of values of the ”product_minimal_version' type from +// ReadProductMinimalVersionList reads list of values of the ”product_minimal_version' type from // the given iterator. -func readProductMinimalVersionList(iterator *jsoniter.Iterator) []*ProductMinimalVersion { +func ReadProductMinimalVersionList(iterator *jsoniter.Iterator) []*ProductMinimalVersion { list := []*ProductMinimalVersion{} for iterator.ReadArray() { - item := readProductMinimalVersion(iterator) + item := ReadProductMinimalVersion(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/product_minimal_version_type.go b/clustersmgmt/v1/product_minimal_version_type.go index 4ec799c3d..d2377e6b5 100644 --- a/clustersmgmt/v1/product_minimal_version_type.go +++ b/clustersmgmt/v1/product_minimal_version_type.go @@ -57,7 +57,7 @@ func (o *ProductMinimalVersion) Kind() string { return ProductMinimalVersionKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *ProductMinimalVersion) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -210,6 +210,29 @@ func (l *ProductMinimalVersionList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ProductMinimalVersionList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ProductMinimalVersionList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ProductMinimalVersionList) SetItems(items []*ProductMinimalVersion) { + l.items = items +} + +// Items returns the items of the list. +func (l *ProductMinimalVersionList) Items() []*ProductMinimalVersion { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ProductMinimalVersionList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/product_minimal_version_type_json.go b/clustersmgmt/v1/product_minimal_version_type_json.go index 308d59c98..a08197218 100644 --- a/clustersmgmt/v1/product_minimal_version_type_json.go +++ b/clustersmgmt/v1/product_minimal_version_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalProductMinimalVersion writes a value of the 'product_minimal_version' type to the given writer. func MarshalProductMinimalVersion(object *ProductMinimalVersion, writer io.Writer) error { stream := helpers.NewStream(writer) - writeProductMinimalVersion(object, stream) + WriteProductMinimalVersion(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalProductMinimalVersion(object *ProductMinimalVersion, writer io.Write return stream.Error } -// writeProductMinimalVersion writes a value of the 'product_minimal_version' type to the given stream. -func writeProductMinimalVersion(object *ProductMinimalVersion, stream *jsoniter.Stream) { +// WriteProductMinimalVersion writes a value of the 'product_minimal_version' type to the given stream. +func WriteProductMinimalVersion(object *ProductMinimalVersion, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -93,13 +93,13 @@ func UnmarshalProductMinimalVersion(source interface{}) (object *ProductMinimalV if err != nil { return } - object = readProductMinimalVersion(iterator) + object = ReadProductMinimalVersion(iterator) err = iterator.Error return } -// readProductMinimalVersion reads a value of the 'product_minimal_version' type from the given iterator. -func readProductMinimalVersion(iterator *jsoniter.Iterator) *ProductMinimalVersion { +// ReadProductMinimalVersion reads a value of the 'product_minimal_version' type from the given iterator. +func ReadProductMinimalVersion(iterator *jsoniter.Iterator) *ProductMinimalVersion { object := &ProductMinimalVersion{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/product_minimal_versions_resource_json.go b/clustersmgmt/v1/product_minimal_versions_resource_json.go index a477aa4f0..efbdb75f4 100644 --- a/clustersmgmt/v1/product_minimal_versions_resource_json.go +++ b/clustersmgmt/v1/product_minimal_versions_resource_json.go @@ -49,7 +49,7 @@ func readProductMinimalVersionsListResponse(response *ProductMinimalVersionsList value := iterator.ReadInt() response.total = &value case "items": - items := readProductMinimalVersionList(iterator) + items := ReadProductMinimalVersionList(iterator) response.items = &ProductMinimalVersionList{ items: items, } diff --git a/clustersmgmt/v1/product_technology_preview_list_type_json.go b/clustersmgmt/v1/product_technology_preview_list_type_json.go index 45b01172b..ed0fac731 100644 --- a/clustersmgmt/v1/product_technology_preview_list_type_json.go +++ b/clustersmgmt/v1/product_technology_preview_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalProductTechnologyPreviewList(list []*ProductTechnologyPreview, writer io.Writer) error { stream := helpers.NewStream(writer) - writeProductTechnologyPreviewList(list, stream) + WriteProductTechnologyPreviewList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalProductTechnologyPreviewList(list []*ProductTechnologyPreview, write return stream.Error } -// writeProductTechnologyPreviewList writes a list of value of the 'product_technology_preview' type to +// WriteProductTechnologyPreviewList writes a list of value of the 'product_technology_preview' type to // the given stream. -func writeProductTechnologyPreviewList(list []*ProductTechnologyPreview, stream *jsoniter.Stream) { +func WriteProductTechnologyPreviewList(list []*ProductTechnologyPreview, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeProductTechnologyPreview(value, stream) + WriteProductTechnologyPreview(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalProductTechnologyPreviewList(source interface{}) (items []*Product if err != nil { return } - items = readProductTechnologyPreviewList(iterator) + items = ReadProductTechnologyPreviewList(iterator) err = iterator.Error return } -// readProductTechnologyPreviewList reads list of values of the ”product_technology_preview' type from +// ReadProductTechnologyPreviewList reads list of values of the ”product_technology_preview' type from // the given iterator. -func readProductTechnologyPreviewList(iterator *jsoniter.Iterator) []*ProductTechnologyPreview { +func ReadProductTechnologyPreviewList(iterator *jsoniter.Iterator) []*ProductTechnologyPreview { list := []*ProductTechnologyPreview{} for iterator.ReadArray() { - item := readProductTechnologyPreview(iterator) + item := ReadProductTechnologyPreview(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/product_technology_preview_type.go b/clustersmgmt/v1/product_technology_preview_type.go index 0b3eaf3aa..2c6b6e5c2 100644 --- a/clustersmgmt/v1/product_technology_preview_type.go +++ b/clustersmgmt/v1/product_technology_preview_type.go @@ -58,7 +58,7 @@ func (o *ProductTechnologyPreview) Kind() string { return ProductTechnologyPreviewKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *ProductTechnologyPreview) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -234,6 +234,29 @@ func (l *ProductTechnologyPreviewList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ProductTechnologyPreviewList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ProductTechnologyPreviewList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ProductTechnologyPreviewList) SetItems(items []*ProductTechnologyPreview) { + l.items = items +} + +// Items returns the items of the list. +func (l *ProductTechnologyPreviewList) Items() []*ProductTechnologyPreview { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ProductTechnologyPreviewList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/product_technology_preview_type_json.go b/clustersmgmt/v1/product_technology_preview_type_json.go index 24d969252..628c808df 100644 --- a/clustersmgmt/v1/product_technology_preview_type_json.go +++ b/clustersmgmt/v1/product_technology_preview_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalProductTechnologyPreview writes a value of the 'product_technology_preview' type to the given writer. func MarshalProductTechnologyPreview(object *ProductTechnologyPreview, writer io.Writer) error { stream := helpers.NewStream(writer) - writeProductTechnologyPreview(object, stream) + WriteProductTechnologyPreview(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalProductTechnologyPreview(object *ProductTechnologyPreview, writer io return stream.Error } -// writeProductTechnologyPreview writes a value of the 'product_technology_preview' type to the given stream. -func writeProductTechnologyPreview(object *ProductTechnologyPreview, stream *jsoniter.Stream) { +// WriteProductTechnologyPreview writes a value of the 'product_technology_preview' type to the given stream. +func WriteProductTechnologyPreview(object *ProductTechnologyPreview, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -102,13 +102,13 @@ func UnmarshalProductTechnologyPreview(source interface{}) (object *ProductTechn if err != nil { return } - object = readProductTechnologyPreview(iterator) + object = ReadProductTechnologyPreview(iterator) err = iterator.Error return } -// readProductTechnologyPreview reads a value of the 'product_technology_preview' type from the given iterator. -func readProductTechnologyPreview(iterator *jsoniter.Iterator) *ProductTechnologyPreview { +// ReadProductTechnologyPreview reads a value of the 'product_technology_preview' type from the given iterator. +func ReadProductTechnologyPreview(iterator *jsoniter.Iterator) *ProductTechnologyPreview { object := &ProductTechnologyPreview{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/product_technology_previews_resource_json.go b/clustersmgmt/v1/product_technology_previews_resource_json.go index e9ed1c21e..d01dfc812 100644 --- a/clustersmgmt/v1/product_technology_previews_resource_json.go +++ b/clustersmgmt/v1/product_technology_previews_resource_json.go @@ -49,7 +49,7 @@ func readProductTechnologyPreviewsListResponse(response *ProductTechnologyPrevie value := iterator.ReadInt() response.total = &value case "items": - items := readProductTechnologyPreviewList(iterator) + items := ReadProductTechnologyPreviewList(iterator) response.items = &ProductTechnologyPreviewList{ items: items, } diff --git a/clustersmgmt/v1/product_type.go b/clustersmgmt/v1/product_type.go index 5d05f026f..1f5305934 100644 --- a/clustersmgmt/v1/product_type.go +++ b/clustersmgmt/v1/product_type.go @@ -52,7 +52,7 @@ func (o *Product) Kind() string { return ProductKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Product) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -182,6 +182,29 @@ func (l *ProductList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ProductList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ProductList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ProductList) SetItems(items []*Product) { + l.items = items +} + +// Items returns the items of the list. +func (l *ProductList) Items() []*Product { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ProductList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/product_type_json.go b/clustersmgmt/v1/product_type_json.go index d0dbc3f5d..cf2535981 100644 --- a/clustersmgmt/v1/product_type_json.go +++ b/clustersmgmt/v1/product_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalProduct writes a value of the 'product' type to the given writer. func MarshalProduct(object *Product, writer io.Writer) error { stream := helpers.NewStream(writer) - writeProduct(object, stream) + WriteProduct(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalProduct(object *Product, writer io.Writer) error { return stream.Error } -// writeProduct writes a value of the 'product' type to the given stream. -func writeProduct(object *Product, stream *jsoniter.Stream) { +// WriteProduct writes a value of the 'product' type to the given stream. +func WriteProduct(object *Product, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -83,13 +83,13 @@ func UnmarshalProduct(source interface{}) (object *Product, err error) { if err != nil { return } - object = readProduct(iterator) + object = ReadProduct(iterator) err = iterator.Error return } -// readProduct reads a value of the 'product' type from the given iterator. -func readProduct(iterator *jsoniter.Iterator) *Product { +// ReadProduct reads a value of the 'product' type from the given iterator. +func ReadProduct(iterator *jsoniter.Iterator) *Product { object := &Product{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/products_resource_json.go b/clustersmgmt/v1/products_resource_json.go index 9f931cf57..a9e4dbd5d 100644 --- a/clustersmgmt/v1/products_resource_json.go +++ b/clustersmgmt/v1/products_resource_json.go @@ -49,7 +49,7 @@ func readProductsListResponse(response *ProductsListResponse, reader io.Reader) value := iterator.ReadInt() response.total = &value case "items": - items := readProductList(iterator) + items := ReadProductList(iterator) response.items = &ProductList{ items: items, } diff --git a/clustersmgmt/v1/provision_shard_list_type_json.go b/clustersmgmt/v1/provision_shard_list_type_json.go index 79d417ce3..4a9f19f1a 100644 --- a/clustersmgmt/v1/provision_shard_list_type_json.go +++ b/clustersmgmt/v1/provision_shard_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalProvisionShardList(list []*ProvisionShard, writer io.Writer) error { stream := helpers.NewStream(writer) - writeProvisionShardList(list, stream) + WriteProvisionShardList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalProvisionShardList(list []*ProvisionShard, writer io.Writer) error { return stream.Error } -// writeProvisionShardList writes a list of value of the 'provision_shard' type to +// WriteProvisionShardList writes a list of value of the 'provision_shard' type to // the given stream. -func writeProvisionShardList(list []*ProvisionShard, stream *jsoniter.Stream) { +func WriteProvisionShardList(list []*ProvisionShard, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeProvisionShard(value, stream) + WriteProvisionShard(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalProvisionShardList(source interface{}) (items []*ProvisionShard, e if err != nil { return } - items = readProvisionShardList(iterator) + items = ReadProvisionShardList(iterator) err = iterator.Error return } -// readProvisionShardList reads list of values of the ”provision_shard' type from +// ReadProvisionShardList reads list of values of the ”provision_shard' type from // the given iterator. -func readProvisionShardList(iterator *jsoniter.Iterator) []*ProvisionShard { +func ReadProvisionShardList(iterator *jsoniter.Iterator) []*ProvisionShard { list := []*ProvisionShard{} for iterator.ReadArray() { - item := readProvisionShard(iterator) + item := ReadProvisionShard(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/provision_shard_topology_list_type_json.go b/clustersmgmt/v1/provision_shard_topology_list_type_json.go index 5b2fdf38c..819b5985f 100644 --- a/clustersmgmt/v1/provision_shard_topology_list_type_json.go +++ b/clustersmgmt/v1/provision_shard_topology_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalProvisionShardTopologyList(list []ProvisionShardTopology, writer io.Writer) error { stream := helpers.NewStream(writer) - writeProvisionShardTopologyList(list, stream) + WriteProvisionShardTopologyList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalProvisionShardTopologyList(list []ProvisionShardTopology, writer io. return stream.Error } -// writeProvisionShardTopologyList writes a list of value of the 'provision_shard_topology' type to +// WriteProvisionShardTopologyList writes a list of value of the 'provision_shard_topology' type to // the given stream. -func writeProvisionShardTopologyList(list []ProvisionShardTopology, stream *jsoniter.Stream) { +func WriteProvisionShardTopologyList(list []ProvisionShardTopology, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalProvisionShardTopologyList(source interface{}) (items []ProvisionS if err != nil { return } - items = readProvisionShardTopologyList(iterator) + items = ReadProvisionShardTopologyList(iterator) err = iterator.Error return } -// readProvisionShardTopologyList reads list of values of the ”provision_shard_topology' type from +// ReadProvisionShardTopologyList reads list of values of the ”provision_shard_topology' type from // the given iterator. -func readProvisionShardTopologyList(iterator *jsoniter.Iterator) []ProvisionShardTopology { +func ReadProvisionShardTopologyList(iterator *jsoniter.Iterator) []ProvisionShardTopology { list := []ProvisionShardTopology{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/provision_shard_type.go b/clustersmgmt/v1/provision_shard_type.go index 450bff761..4e333a2cd 100644 --- a/clustersmgmt/v1/provision_shard_type.go +++ b/clustersmgmt/v1/provision_shard_type.go @@ -67,7 +67,7 @@ func (o *ProvisionShard) Kind() string { return ProvisionShardKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *ProvisionShard) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -456,6 +456,29 @@ func (l *ProvisionShardList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ProvisionShardList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ProvisionShardList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ProvisionShardList) SetItems(items []*ProvisionShard) { + l.items = items +} + +// Items returns the items of the list. +func (l *ProvisionShardList) Items() []*ProvisionShard { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ProvisionShardList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/provision_shard_type_json.go b/clustersmgmt/v1/provision_shard_type_json.go index 215f2b915..37aadff40 100644 --- a/clustersmgmt/v1/provision_shard_type_json.go +++ b/clustersmgmt/v1/provision_shard_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalProvisionShard writes a value of the 'provision_shard' type to the given writer. func MarshalProvisionShard(object *ProvisionShard, writer io.Writer) error { stream := helpers.NewStream(writer) - writeProvisionShard(object, stream) + WriteProvisionShard(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalProvisionShard(object *ProvisionShard, writer io.Writer) error { return stream.Error } -// writeProvisionShard writes a value of the 'provision_shard' type to the given stream. -func writeProvisionShard(object *ProvisionShard, stream *jsoniter.Stream) { +// WriteProvisionShard writes a value of the 'provision_shard' type to the given stream. +func WriteProvisionShard(object *ProvisionShard, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -72,7 +72,7 @@ func writeProvisionShard(object *ProvisionShard, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("aws_account_operator_config") - writeServerConfig(object.awsAccountOperatorConfig, stream) + WriteServerConfig(object.awsAccountOperatorConfig, stream) count++ } present_ = object.bitmap_&16 != 0 @@ -99,7 +99,7 @@ func writeProvisionShard(object *ProvisionShard, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("gcp_project_operator") - writeServerConfig(object.gcpProjectOperator, stream) + WriteServerConfig(object.gcpProjectOperator, stream) count++ } present_ = object.bitmap_&128 != 0 && object.cloudProvider != nil @@ -108,7 +108,7 @@ func writeProvisionShard(object *ProvisionShard, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("cloud_provider") - writeCloudProvider(object.cloudProvider, stream) + WriteCloudProvider(object.cloudProvider, stream) count++ } present_ = object.bitmap_&256 != 0 @@ -126,7 +126,7 @@ func writeProvisionShard(object *ProvisionShard, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("hive_config") - writeServerConfig(object.hiveConfig, stream) + WriteServerConfig(object.hiveConfig, stream) count++ } present_ = object.bitmap_&1024 != 0 && object.hypershiftConfig != nil @@ -135,7 +135,7 @@ func writeProvisionShard(object *ProvisionShard, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("hypershift_config") - writeServerConfig(object.hypershiftConfig, stream) + WriteServerConfig(object.hypershiftConfig, stream) count++ } present_ = object.bitmap_&2048 != 0 @@ -162,7 +162,7 @@ func writeProvisionShard(object *ProvisionShard, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("region") - writeCloudRegion(object.region, stream) + WriteCloudRegion(object.region, stream) count++ } present_ = object.bitmap_&16384 != 0 @@ -183,13 +183,13 @@ func UnmarshalProvisionShard(source interface{}) (object *ProvisionShard, err er if err != nil { return } - object = readProvisionShard(iterator) + object = ReadProvisionShard(iterator) err = iterator.Error return } -// readProvisionShard reads a value of the 'provision_shard' type from the given iterator. -func readProvisionShard(iterator *jsoniter.Iterator) *ProvisionShard { +// ReadProvisionShard reads a value of the 'provision_shard' type from the given iterator. +func ReadProvisionShard(iterator *jsoniter.Iterator) *ProvisionShard { object := &ProvisionShard{} for { field := iterator.ReadObject() @@ -209,7 +209,7 @@ func readProvisionShard(iterator *jsoniter.Iterator) *ProvisionShard { object.href = iterator.ReadString() object.bitmap_ |= 4 case "aws_account_operator_config": - value := readServerConfig(iterator) + value := ReadServerConfig(iterator) object.awsAccountOperatorConfig = value object.bitmap_ |= 8 case "aws_base_domain": @@ -221,11 +221,11 @@ func readProvisionShard(iterator *jsoniter.Iterator) *ProvisionShard { object.gcpBaseDomain = value object.bitmap_ |= 32 case "gcp_project_operator": - value := readServerConfig(iterator) + value := ReadServerConfig(iterator) object.gcpProjectOperator = value object.bitmap_ |= 64 case "cloud_provider": - value := readCloudProvider(iterator) + value := ReadCloudProvider(iterator) object.cloudProvider = value object.bitmap_ |= 128 case "creation_timestamp": @@ -237,11 +237,11 @@ func readProvisionShard(iterator *jsoniter.Iterator) *ProvisionShard { object.creationTimestamp = value object.bitmap_ |= 256 case "hive_config": - value := readServerConfig(iterator) + value := ReadServerConfig(iterator) object.hiveConfig = value object.bitmap_ |= 512 case "hypershift_config": - value := readServerConfig(iterator) + value := ReadServerConfig(iterator) object.hypershiftConfig = value object.bitmap_ |= 1024 case "last_update_timestamp": @@ -257,7 +257,7 @@ func readProvisionShard(iterator *jsoniter.Iterator) *ProvisionShard { object.managementCluster = value object.bitmap_ |= 4096 case "region": - value := readCloudRegion(iterator) + value := ReadCloudRegion(iterator) object.region = value object.bitmap_ |= 8192 case "status": diff --git a/clustersmgmt/v1/provision_shards_resource_json.go b/clustersmgmt/v1/provision_shards_resource_json.go index 55504daf5..46f9244f9 100644 --- a/clustersmgmt/v1/provision_shards_resource_json.go +++ b/clustersmgmt/v1/provision_shards_resource_json.go @@ -57,7 +57,7 @@ func readProvisionShardsListResponse(response *ProvisionShardsListResponse, read value := iterator.ReadInt() response.total = &value case "items": - items := readProvisionShardList(iterator) + items := ReadProvisionShardList(iterator) response.items = &ProvisionShardList{ items: items, } diff --git a/clustersmgmt/v1/proxy_list_type_json.go b/clustersmgmt/v1/proxy_list_type_json.go index 2c4d9e9bc..300c8e1f7 100644 --- a/clustersmgmt/v1/proxy_list_type_json.go +++ b/clustersmgmt/v1/proxy_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalProxyList(list []*Proxy, writer io.Writer) error { stream := helpers.NewStream(writer) - writeProxyList(list, stream) + WriteProxyList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalProxyList(list []*Proxy, writer io.Writer) error { return stream.Error } -// writeProxyList writes a list of value of the 'proxy' type to +// WriteProxyList writes a list of value of the 'proxy' type to // the given stream. -func writeProxyList(list []*Proxy, stream *jsoniter.Stream) { +func WriteProxyList(list []*Proxy, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeProxy(value, stream) + WriteProxy(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalProxyList(source interface{}) (items []*Proxy, err error) { if err != nil { return } - items = readProxyList(iterator) + items = ReadProxyList(iterator) err = iterator.Error return } -// readProxyList reads list of values of the ”proxy' type from +// ReadProxyList reads list of values of the ”proxy' type from // the given iterator. -func readProxyList(iterator *jsoniter.Iterator) []*Proxy { +func ReadProxyList(iterator *jsoniter.Iterator) []*Proxy { list := []*Proxy{} for iterator.ReadArray() { - item := readProxy(iterator) + item := ReadProxy(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/proxy_type.go b/clustersmgmt/v1/proxy_type.go index 130354e46..03a1dc1f3 100644 --- a/clustersmgmt/v1/proxy_type.go +++ b/clustersmgmt/v1/proxy_type.go @@ -132,6 +132,29 @@ func (l *ProxyList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ProxyList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ProxyList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ProxyList) SetItems(items []*Proxy) { + l.items = items +} + +// Items returns the items of the list. +func (l *ProxyList) Items() []*Proxy { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ProxyList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/proxy_type_json.go b/clustersmgmt/v1/proxy_type_json.go index c4ef35bcd..f706af0b9 100644 --- a/clustersmgmt/v1/proxy_type_json.go +++ b/clustersmgmt/v1/proxy_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalProxy writes a value of the 'proxy' type to the given writer. func MarshalProxy(object *Proxy, writer io.Writer) error { stream := helpers.NewStream(writer) - writeProxy(object, stream) + WriteProxy(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalProxy(object *Proxy, writer io.Writer) error { return stream.Error } -// writeProxy writes a value of the 'proxy' type to the given stream. -func writeProxy(object *Proxy, stream *jsoniter.Stream) { +// WriteProxy writes a value of the 'proxy' type to the given stream. +func WriteProxy(object *Proxy, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -78,13 +78,13 @@ func UnmarshalProxy(source interface{}) (object *Proxy, err error) { if err != nil { return } - object = readProxy(iterator) + object = ReadProxy(iterator) err = iterator.Error return } -// readProxy reads a value of the 'proxy' type from the given iterator. -func readProxy(iterator *jsoniter.Iterator) *Proxy { +// ReadProxy reads a value of the 'proxy' type from the given iterator. +func ReadProxy(iterator *jsoniter.Iterator) *Proxy { object := &Proxy{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/registry_allowlist_list_type_json.go b/clustersmgmt/v1/registry_allowlist_list_type_json.go index 096adc096..391370e19 100644 --- a/clustersmgmt/v1/registry_allowlist_list_type_json.go +++ b/clustersmgmt/v1/registry_allowlist_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalRegistryAllowlistList(list []*RegistryAllowlist, writer io.Writer) error { stream := helpers.NewStream(writer) - writeRegistryAllowlistList(list, stream) + WriteRegistryAllowlistList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalRegistryAllowlistList(list []*RegistryAllowlist, writer io.Writer) e return stream.Error } -// writeRegistryAllowlistList writes a list of value of the 'registry_allowlist' type to +// WriteRegistryAllowlistList writes a list of value of the 'registry_allowlist' type to // the given stream. -func writeRegistryAllowlistList(list []*RegistryAllowlist, stream *jsoniter.Stream) { +func WriteRegistryAllowlistList(list []*RegistryAllowlist, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeRegistryAllowlist(value, stream) + WriteRegistryAllowlist(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalRegistryAllowlistList(source interface{}) (items []*RegistryAllowl if err != nil { return } - items = readRegistryAllowlistList(iterator) + items = ReadRegistryAllowlistList(iterator) err = iterator.Error return } -// readRegistryAllowlistList reads list of values of the ”registry_allowlist' type from +// ReadRegistryAllowlistList reads list of values of the ”registry_allowlist' type from // the given iterator. -func readRegistryAllowlistList(iterator *jsoniter.Iterator) []*RegistryAllowlist { +func ReadRegistryAllowlistList(iterator *jsoniter.Iterator) []*RegistryAllowlist { list := []*RegistryAllowlist{} for iterator.ReadArray() { - item := readRegistryAllowlist(iterator) + item := ReadRegistryAllowlist(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/registry_allowlist_type.go b/clustersmgmt/v1/registry_allowlist_type.go index 99abea0d3..fa4d77686 100644 --- a/clustersmgmt/v1/registry_allowlist_type.go +++ b/clustersmgmt/v1/registry_allowlist_type.go @@ -58,7 +58,7 @@ func (o *RegistryAllowlist) Kind() string { return RegistryAllowlistKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *RegistryAllowlist) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -234,6 +234,29 @@ func (l *RegistryAllowlistList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *RegistryAllowlistList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *RegistryAllowlistList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *RegistryAllowlistList) SetItems(items []*RegistryAllowlist) { + l.items = items +} + +// Items returns the items of the list. +func (l *RegistryAllowlistList) Items() []*RegistryAllowlist { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *RegistryAllowlistList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/registry_allowlist_type_json.go b/clustersmgmt/v1/registry_allowlist_type_json.go index 4653d64fa..a08477a2b 100644 --- a/clustersmgmt/v1/registry_allowlist_type_json.go +++ b/clustersmgmt/v1/registry_allowlist_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalRegistryAllowlist writes a value of the 'registry_allowlist' type to the given writer. func MarshalRegistryAllowlist(object *RegistryAllowlist, writer io.Writer) error { stream := helpers.NewStream(writer) - writeRegistryAllowlist(object, stream) + WriteRegistryAllowlist(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalRegistryAllowlist(object *RegistryAllowlist, writer io.Writer) error return stream.Error } -// writeRegistryAllowlist writes a value of the 'registry_allowlist' type to the given stream. -func writeRegistryAllowlist(object *RegistryAllowlist, stream *jsoniter.Stream) { +// WriteRegistryAllowlist writes a value of the 'registry_allowlist' type to the given stream. +func WriteRegistryAllowlist(object *RegistryAllowlist, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -72,7 +72,7 @@ func writeRegistryAllowlist(object *RegistryAllowlist, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("cloud_provider") - writeCloudProvider(object.cloudProvider, stream) + WriteCloudProvider(object.cloudProvider, stream) count++ } present_ = object.bitmap_&16 != 0 @@ -90,7 +90,7 @@ func writeRegistryAllowlist(object *RegistryAllowlist, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("registries") - writeStringList(object.registries, stream) + WriteStringList(object.registries, stream) } stream.WriteObjectEnd() } @@ -102,13 +102,13 @@ func UnmarshalRegistryAllowlist(source interface{}) (object *RegistryAllowlist, if err != nil { return } - object = readRegistryAllowlist(iterator) + object = ReadRegistryAllowlist(iterator) err = iterator.Error return } -// readRegistryAllowlist reads a value of the 'registry_allowlist' type from the given iterator. -func readRegistryAllowlist(iterator *jsoniter.Iterator) *RegistryAllowlist { +// ReadRegistryAllowlist reads a value of the 'registry_allowlist' type from the given iterator. +func ReadRegistryAllowlist(iterator *jsoniter.Iterator) *RegistryAllowlist { object := &RegistryAllowlist{} for { field := iterator.ReadObject() @@ -128,7 +128,7 @@ func readRegistryAllowlist(iterator *jsoniter.Iterator) *RegistryAllowlist { object.href = iterator.ReadString() object.bitmap_ |= 4 case "cloud_provider": - value := readCloudProvider(iterator) + value := ReadCloudProvider(iterator) object.cloudProvider = value object.bitmap_ |= 8 case "creation_timestamp": @@ -140,7 +140,7 @@ func readRegistryAllowlist(iterator *jsoniter.Iterator) *RegistryAllowlist { object.creationTimestamp = value object.bitmap_ |= 16 case "registries": - value := readStringList(iterator) + value := ReadStringList(iterator) object.registries = value object.bitmap_ |= 32 default: diff --git a/clustersmgmt/v1/registry_allowlists_resource_json.go b/clustersmgmt/v1/registry_allowlists_resource_json.go index 77d88786f..f9fe026e6 100644 --- a/clustersmgmt/v1/registry_allowlists_resource_json.go +++ b/clustersmgmt/v1/registry_allowlists_resource_json.go @@ -57,7 +57,7 @@ func readRegistryAllowlistsListResponse(response *RegistryAllowlistsListResponse value := iterator.ReadInt() response.total = &value case "items": - items := readRegistryAllowlistList(iterator) + items := ReadRegistryAllowlistList(iterator) response.items = &RegistryAllowlistList{ items: items, } diff --git a/clustersmgmt/v1/registry_location_list_type_json.go b/clustersmgmt/v1/registry_location_list_type_json.go index 843045bb5..cbed99716 100644 --- a/clustersmgmt/v1/registry_location_list_type_json.go +++ b/clustersmgmt/v1/registry_location_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalRegistryLocationList(list []*RegistryLocation, writer io.Writer) error { stream := helpers.NewStream(writer) - writeRegistryLocationList(list, stream) + WriteRegistryLocationList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalRegistryLocationList(list []*RegistryLocation, writer io.Writer) err return stream.Error } -// writeRegistryLocationList writes a list of value of the 'registry_location' type to +// WriteRegistryLocationList writes a list of value of the 'registry_location' type to // the given stream. -func writeRegistryLocationList(list []*RegistryLocation, stream *jsoniter.Stream) { +func WriteRegistryLocationList(list []*RegistryLocation, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeRegistryLocation(value, stream) + WriteRegistryLocation(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalRegistryLocationList(source interface{}) (items []*RegistryLocatio if err != nil { return } - items = readRegistryLocationList(iterator) + items = ReadRegistryLocationList(iterator) err = iterator.Error return } -// readRegistryLocationList reads list of values of the ”registry_location' type from +// ReadRegistryLocationList reads list of values of the ”registry_location' type from // the given iterator. -func readRegistryLocationList(iterator *jsoniter.Iterator) []*RegistryLocation { +func ReadRegistryLocationList(iterator *jsoniter.Iterator) []*RegistryLocation { list := []*RegistryLocation{} for iterator.ReadArray() { - item := readRegistryLocation(iterator) + item := ReadRegistryLocation(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/registry_location_type.go b/clustersmgmt/v1/registry_location_type.go index 8bb87b7bd..08fffc179 100644 --- a/clustersmgmt/v1/registry_location_type.go +++ b/clustersmgmt/v1/registry_location_type.go @@ -113,6 +113,29 @@ func (l *RegistryLocationList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *RegistryLocationList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *RegistryLocationList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *RegistryLocationList) SetItems(items []*RegistryLocation) { + l.items = items +} + +// Items returns the items of the list. +func (l *RegistryLocationList) Items() []*RegistryLocation { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *RegistryLocationList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/registry_location_type_json.go b/clustersmgmt/v1/registry_location_type_json.go index 24a0a4751..c85803abd 100644 --- a/clustersmgmt/v1/registry_location_type_json.go +++ b/clustersmgmt/v1/registry_location_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalRegistryLocation writes a value of the 'registry_location' type to the given writer. func MarshalRegistryLocation(object *RegistryLocation, writer io.Writer) error { stream := helpers.NewStream(writer) - writeRegistryLocation(object, stream) + WriteRegistryLocation(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalRegistryLocation(object *RegistryLocation, writer io.Writer) error { return stream.Error } -// writeRegistryLocation writes a value of the 'registry_location' type to the given stream. -func writeRegistryLocation(object *RegistryLocation, stream *jsoniter.Stream) { +// WriteRegistryLocation writes a value of the 'registry_location' type to the given stream. +func WriteRegistryLocation(object *RegistryLocation, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalRegistryLocation(source interface{}) (object *RegistryLocation, er if err != nil { return } - object = readRegistryLocation(iterator) + object = ReadRegistryLocation(iterator) err = iterator.Error return } -// readRegistryLocation reads a value of the 'registry_location' type from the given iterator. -func readRegistryLocation(iterator *jsoniter.Iterator) *RegistryLocation { +// ReadRegistryLocation reads a value of the 'registry_location' type from the given iterator. +func ReadRegistryLocation(iterator *jsoniter.Iterator) *RegistryLocation { object := &RegistryLocation{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/registry_sources_list_type_json.go b/clustersmgmt/v1/registry_sources_list_type_json.go index ccf0dc6e5..8064847ad 100644 --- a/clustersmgmt/v1/registry_sources_list_type_json.go +++ b/clustersmgmt/v1/registry_sources_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalRegistrySourcesList(list []*RegistrySources, writer io.Writer) error { stream := helpers.NewStream(writer) - writeRegistrySourcesList(list, stream) + WriteRegistrySourcesList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalRegistrySourcesList(list []*RegistrySources, writer io.Writer) error return stream.Error } -// writeRegistrySourcesList writes a list of value of the 'registry_sources' type to +// WriteRegistrySourcesList writes a list of value of the 'registry_sources' type to // the given stream. -func writeRegistrySourcesList(list []*RegistrySources, stream *jsoniter.Stream) { +func WriteRegistrySourcesList(list []*RegistrySources, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeRegistrySources(value, stream) + WriteRegistrySources(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalRegistrySourcesList(source interface{}) (items []*RegistrySources, if err != nil { return } - items = readRegistrySourcesList(iterator) + items = ReadRegistrySourcesList(iterator) err = iterator.Error return } -// readRegistrySourcesList reads list of values of the ”registry_sources' type from +// ReadRegistrySourcesList reads list of values of the ”registry_sources' type from // the given iterator. -func readRegistrySourcesList(iterator *jsoniter.Iterator) []*RegistrySources { +func ReadRegistrySourcesList(iterator *jsoniter.Iterator) []*RegistrySources { list := []*RegistrySources{} for iterator.ReadArray() { - item := readRegistrySources(iterator) + item := ReadRegistrySources(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/registry_sources_type.go b/clustersmgmt/v1/registry_sources_type.go index 929acf6f2..13c26ee60 100644 --- a/clustersmgmt/v1/registry_sources_type.go +++ b/clustersmgmt/v1/registry_sources_type.go @@ -154,6 +154,29 @@ func (l *RegistrySourcesList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *RegistrySourcesList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *RegistrySourcesList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *RegistrySourcesList) SetItems(items []*RegistrySources) { + l.items = items +} + +// Items returns the items of the list. +func (l *RegistrySourcesList) Items() []*RegistrySources { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *RegistrySourcesList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/registry_sources_type_json.go b/clustersmgmt/v1/registry_sources_type_json.go index 3e4c14114..93b328e2c 100644 --- a/clustersmgmt/v1/registry_sources_type_json.go +++ b/clustersmgmt/v1/registry_sources_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalRegistrySources writes a value of the 'registry_sources' type to the given writer. func MarshalRegistrySources(object *RegistrySources, writer io.Writer) error { stream := helpers.NewStream(writer) - writeRegistrySources(object, stream) + WriteRegistrySources(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalRegistrySources(object *RegistrySources, writer io.Writer) error { return stream.Error } -// writeRegistrySources writes a value of the 'registry_sources' type to the given stream. -func writeRegistrySources(object *RegistrySources, stream *jsoniter.Stream) { +// WriteRegistrySources writes a value of the 'registry_sources' type to the given stream. +func WriteRegistrySources(object *RegistrySources, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeRegistrySources(object *RegistrySources, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("allowed_registries") - writeStringList(object.allowedRegistries, stream) + WriteStringList(object.allowedRegistries, stream) count++ } present_ = object.bitmap_&2 != 0 && object.blockedRegistries != nil @@ -57,7 +57,7 @@ func writeRegistrySources(object *RegistrySources, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("blocked_registries") - writeStringList(object.blockedRegistries, stream) + WriteStringList(object.blockedRegistries, stream) count++ } present_ = object.bitmap_&4 != 0 && object.insecureRegistries != nil @@ -66,7 +66,7 @@ func writeRegistrySources(object *RegistrySources, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("insecure_registries") - writeStringList(object.insecureRegistries, stream) + WriteStringList(object.insecureRegistries, stream) } stream.WriteObjectEnd() } @@ -78,13 +78,13 @@ func UnmarshalRegistrySources(source interface{}) (object *RegistrySources, err if err != nil { return } - object = readRegistrySources(iterator) + object = ReadRegistrySources(iterator) err = iterator.Error return } -// readRegistrySources reads a value of the 'registry_sources' type from the given iterator. -func readRegistrySources(iterator *jsoniter.Iterator) *RegistrySources { +// ReadRegistrySources reads a value of the 'registry_sources' type from the given iterator. +func ReadRegistrySources(iterator *jsoniter.Iterator) *RegistrySources { object := &RegistrySources{} for { field := iterator.ReadObject() @@ -93,15 +93,15 @@ func readRegistrySources(iterator *jsoniter.Iterator) *RegistrySources { } switch field { case "allowed_registries": - value := readStringList(iterator) + value := ReadStringList(iterator) object.allowedRegistries = value object.bitmap_ |= 1 case "blocked_registries": - value := readStringList(iterator) + value := ReadStringList(iterator) object.blockedRegistries = value object.bitmap_ |= 2 case "insecure_registries": - value := readStringList(iterator) + value := ReadStringList(iterator) object.insecureRegistries = value object.bitmap_ |= 4 default: diff --git a/clustersmgmt/v1/release_image_details_list_type_json.go b/clustersmgmt/v1/release_image_details_list_type_json.go index 232e04ce6..bfc146f1f 100644 --- a/clustersmgmt/v1/release_image_details_list_type_json.go +++ b/clustersmgmt/v1/release_image_details_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalReleaseImageDetailsList(list []*ReleaseImageDetails, writer io.Writer) error { stream := helpers.NewStream(writer) - writeReleaseImageDetailsList(list, stream) + WriteReleaseImageDetailsList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalReleaseImageDetailsList(list []*ReleaseImageDetails, writer io.Write return stream.Error } -// writeReleaseImageDetailsList writes a list of value of the 'release_image_details' type to +// WriteReleaseImageDetailsList writes a list of value of the 'release_image_details' type to // the given stream. -func writeReleaseImageDetailsList(list []*ReleaseImageDetails, stream *jsoniter.Stream) { +func WriteReleaseImageDetailsList(list []*ReleaseImageDetails, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeReleaseImageDetails(value, stream) + WriteReleaseImageDetails(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalReleaseImageDetailsList(source interface{}) (items []*ReleaseImage if err != nil { return } - items = readReleaseImageDetailsList(iterator) + items = ReadReleaseImageDetailsList(iterator) err = iterator.Error return } -// readReleaseImageDetailsList reads list of values of the ”release_image_details' type from +// ReadReleaseImageDetailsList reads list of values of the ”release_image_details' type from // the given iterator. -func readReleaseImageDetailsList(iterator *jsoniter.Iterator) []*ReleaseImageDetails { +func ReadReleaseImageDetailsList(iterator *jsoniter.Iterator) []*ReleaseImageDetails { list := []*ReleaseImageDetails{} for iterator.ReadArray() { - item := readReleaseImageDetails(iterator) + item := ReadReleaseImageDetails(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/release_image_details_type.go b/clustersmgmt/v1/release_image_details_type.go index 42f502053..c9a8b7308 100644 --- a/clustersmgmt/v1/release_image_details_type.go +++ b/clustersmgmt/v1/release_image_details_type.go @@ -104,6 +104,29 @@ func (l *ReleaseImageDetailsList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ReleaseImageDetailsList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ReleaseImageDetailsList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ReleaseImageDetailsList) SetItems(items []*ReleaseImageDetails) { + l.items = items +} + +// Items returns the items of the list. +func (l *ReleaseImageDetailsList) Items() []*ReleaseImageDetails { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ReleaseImageDetailsList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/release_image_details_type_json.go b/clustersmgmt/v1/release_image_details_type_json.go index 1aea5f45b..537e1ecc5 100644 --- a/clustersmgmt/v1/release_image_details_type_json.go +++ b/clustersmgmt/v1/release_image_details_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalReleaseImageDetails writes a value of the 'release_image_details' type to the given writer. func MarshalReleaseImageDetails(object *ReleaseImageDetails, writer io.Writer) error { stream := helpers.NewStream(writer) - writeReleaseImageDetails(object, stream) + WriteReleaseImageDetails(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalReleaseImageDetails(object *ReleaseImageDetails, writer io.Writer) e return stream.Error } -// writeReleaseImageDetails writes a value of the 'release_image_details' type to the given stream. -func writeReleaseImageDetails(object *ReleaseImageDetails, stream *jsoniter.Stream) { +// WriteReleaseImageDetails writes a value of the 'release_image_details' type to the given stream. +func WriteReleaseImageDetails(object *ReleaseImageDetails, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeReleaseImageDetails(object *ReleaseImageDetails, stream *jsoniter.Stre stream.WriteMore() } stream.WriteObjectField("available_upgrades") - writeStringList(object.availableUpgrades, stream) + WriteStringList(object.availableUpgrades, stream) count++ } present_ = object.bitmap_&2 != 0 @@ -69,13 +69,13 @@ func UnmarshalReleaseImageDetails(source interface{}) (object *ReleaseImageDetai if err != nil { return } - object = readReleaseImageDetails(iterator) + object = ReadReleaseImageDetails(iterator) err = iterator.Error return } -// readReleaseImageDetails reads a value of the 'release_image_details' type from the given iterator. -func readReleaseImageDetails(iterator *jsoniter.Iterator) *ReleaseImageDetails { +// ReadReleaseImageDetails reads a value of the 'release_image_details' type from the given iterator. +func ReadReleaseImageDetails(iterator *jsoniter.Iterator) *ReleaseImageDetails { object := &ReleaseImageDetails{} for { field := iterator.ReadObject() @@ -84,7 +84,7 @@ func readReleaseImageDetails(iterator *jsoniter.Iterator) *ReleaseImageDetails { } switch field { case "available_upgrades": - value := readStringList(iterator) + value := ReadStringList(iterator) object.availableUpgrades = value object.bitmap_ |= 1 case "release_image": diff --git a/clustersmgmt/v1/release_images_list_type_json.go b/clustersmgmt/v1/release_images_list_type_json.go index 6060a85d2..d7415c1cd 100644 --- a/clustersmgmt/v1/release_images_list_type_json.go +++ b/clustersmgmt/v1/release_images_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalReleaseImagesList(list []*ReleaseImages, writer io.Writer) error { stream := helpers.NewStream(writer) - writeReleaseImagesList(list, stream) + WriteReleaseImagesList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalReleaseImagesList(list []*ReleaseImages, writer io.Writer) error { return stream.Error } -// writeReleaseImagesList writes a list of value of the 'release_images' type to +// WriteReleaseImagesList writes a list of value of the 'release_images' type to // the given stream. -func writeReleaseImagesList(list []*ReleaseImages, stream *jsoniter.Stream) { +func WriteReleaseImagesList(list []*ReleaseImages, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeReleaseImages(value, stream) + WriteReleaseImages(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalReleaseImagesList(source interface{}) (items []*ReleaseImages, err if err != nil { return } - items = readReleaseImagesList(iterator) + items = ReadReleaseImagesList(iterator) err = iterator.Error return } -// readReleaseImagesList reads list of values of the ”release_images' type from +// ReadReleaseImagesList reads list of values of the ”release_images' type from // the given iterator. -func readReleaseImagesList(iterator *jsoniter.Iterator) []*ReleaseImages { +func ReadReleaseImagesList(iterator *jsoniter.Iterator) []*ReleaseImages { list := []*ReleaseImages{} for iterator.ReadArray() { - item := readReleaseImages(iterator) + item := ReadReleaseImages(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/release_images_type.go b/clustersmgmt/v1/release_images_type.go index 1c4576e61..2f27e68a9 100644 --- a/clustersmgmt/v1/release_images_type.go +++ b/clustersmgmt/v1/release_images_type.go @@ -104,6 +104,29 @@ func (l *ReleaseImagesList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ReleaseImagesList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ReleaseImagesList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ReleaseImagesList) SetItems(items []*ReleaseImages) { + l.items = items +} + +// Items returns the items of the list. +func (l *ReleaseImagesList) Items() []*ReleaseImages { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ReleaseImagesList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/release_images_type_json.go b/clustersmgmt/v1/release_images_type_json.go index 0ec71a60d..6cfb5f60e 100644 --- a/clustersmgmt/v1/release_images_type_json.go +++ b/clustersmgmt/v1/release_images_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalReleaseImages writes a value of the 'release_images' type to the given writer. func MarshalReleaseImages(object *ReleaseImages, writer io.Writer) error { stream := helpers.NewStream(writer) - writeReleaseImages(object, stream) + WriteReleaseImages(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalReleaseImages(object *ReleaseImages, writer io.Writer) error { return stream.Error } -// writeReleaseImages writes a value of the 'release_images' type to the given stream. -func writeReleaseImages(object *ReleaseImages, stream *jsoniter.Stream) { +// WriteReleaseImages writes a value of the 'release_images' type to the given stream. +func WriteReleaseImages(object *ReleaseImages, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeReleaseImages(object *ReleaseImages, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("arm64") - writeReleaseImageDetails(object.arm64, stream) + WriteReleaseImageDetails(object.arm64, stream) count++ } present_ = object.bitmap_&2 != 0 && object.multi != nil @@ -57,7 +57,7 @@ func writeReleaseImages(object *ReleaseImages, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("multi") - writeReleaseImageDetails(object.multi, stream) + WriteReleaseImageDetails(object.multi, stream) } stream.WriteObjectEnd() } @@ -69,13 +69,13 @@ func UnmarshalReleaseImages(source interface{}) (object *ReleaseImages, err erro if err != nil { return } - object = readReleaseImages(iterator) + object = ReadReleaseImages(iterator) err = iterator.Error return } -// readReleaseImages reads a value of the 'release_images' type from the given iterator. -func readReleaseImages(iterator *jsoniter.Iterator) *ReleaseImages { +// ReadReleaseImages reads a value of the 'release_images' type from the given iterator. +func ReadReleaseImages(iterator *jsoniter.Iterator) *ReleaseImages { object := &ReleaseImages{} for { field := iterator.ReadObject() @@ -84,11 +84,11 @@ func readReleaseImages(iterator *jsoniter.Iterator) *ReleaseImages { } switch field { case "arm64": - value := readReleaseImageDetails(iterator) + value := ReadReleaseImageDetails(iterator) object.arm64 = value object.bitmap_ |= 1 case "multi": - value := readReleaseImageDetails(iterator) + value := ReadReleaseImageDetails(iterator) object.multi = value object.bitmap_ |= 2 default: diff --git a/clustersmgmt/v1/resource_range_list_type_json.go b/clustersmgmt/v1/resource_range_list_type_json.go index 3fb2bb77f..abef81ad6 100644 --- a/clustersmgmt/v1/resource_range_list_type_json.go +++ b/clustersmgmt/v1/resource_range_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalResourceRangeList(list []*ResourceRange, writer io.Writer) error { stream := helpers.NewStream(writer) - writeResourceRangeList(list, stream) + WriteResourceRangeList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalResourceRangeList(list []*ResourceRange, writer io.Writer) error { return stream.Error } -// writeResourceRangeList writes a list of value of the 'resource_range' type to +// WriteResourceRangeList writes a list of value of the 'resource_range' type to // the given stream. -func writeResourceRangeList(list []*ResourceRange, stream *jsoniter.Stream) { +func WriteResourceRangeList(list []*ResourceRange, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeResourceRange(value, stream) + WriteResourceRange(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalResourceRangeList(source interface{}) (items []*ResourceRange, err if err != nil { return } - items = readResourceRangeList(iterator) + items = ReadResourceRangeList(iterator) err = iterator.Error return } -// readResourceRangeList reads list of values of the ”resource_range' type from +// ReadResourceRangeList reads list of values of the ”resource_range' type from // the given iterator. -func readResourceRangeList(iterator *jsoniter.Iterator) []*ResourceRange { +func ReadResourceRangeList(iterator *jsoniter.Iterator) []*ResourceRange { list := []*ResourceRange{} for iterator.ReadArray() { - item := readResourceRange(iterator) + item := ReadResourceRange(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/resource_range_type.go b/clustersmgmt/v1/resource_range_type.go index 537a4e645..d84676316 100644 --- a/clustersmgmt/v1/resource_range_type.go +++ b/clustersmgmt/v1/resource_range_type.go @@ -96,6 +96,29 @@ func (l *ResourceRangeList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ResourceRangeList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ResourceRangeList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ResourceRangeList) SetItems(items []*ResourceRange) { + l.items = items +} + +// Items returns the items of the list. +func (l *ResourceRangeList) Items() []*ResourceRange { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ResourceRangeList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/resource_range_type_json.go b/clustersmgmt/v1/resource_range_type_json.go index 03b6fdfe2..26520d5a1 100644 --- a/clustersmgmt/v1/resource_range_type_json.go +++ b/clustersmgmt/v1/resource_range_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalResourceRange writes a value of the 'resource_range' type to the given writer. func MarshalResourceRange(object *ResourceRange, writer io.Writer) error { stream := helpers.NewStream(writer) - writeResourceRange(object, stream) + WriteResourceRange(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalResourceRange(object *ResourceRange, writer io.Writer) error { return stream.Error } -// writeResourceRange writes a value of the 'resource_range' type to the given stream. -func writeResourceRange(object *ResourceRange, stream *jsoniter.Stream) { +// WriteResourceRange writes a value of the 'resource_range' type to the given stream. +func WriteResourceRange(object *ResourceRange, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalResourceRange(source interface{}) (object *ResourceRange, err erro if err != nil { return } - object = readResourceRange(iterator) + object = ReadResourceRange(iterator) err = iterator.Error return } -// readResourceRange reads a value of the 'resource_range' type from the given iterator. -func readResourceRange(iterator *jsoniter.Iterator) *ResourceRange { +// ReadResourceRange reads a value of the 'resource_range' type from the given iterator. +func ReadResourceRange(iterator *jsoniter.Iterator) *ResourceRange { object := &ResourceRange{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/role_policy_binding_list_type_json.go b/clustersmgmt/v1/role_policy_binding_list_type_json.go index 25046d734..6a92bfac7 100644 --- a/clustersmgmt/v1/role_policy_binding_list_type_json.go +++ b/clustersmgmt/v1/role_policy_binding_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalRolePolicyBindingList(list []*RolePolicyBinding, writer io.Writer) error { stream := helpers.NewStream(writer) - writeRolePolicyBindingList(list, stream) + WriteRolePolicyBindingList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalRolePolicyBindingList(list []*RolePolicyBinding, writer io.Writer) e return stream.Error } -// writeRolePolicyBindingList writes a list of value of the 'role_policy_binding' type to +// WriteRolePolicyBindingList writes a list of value of the 'role_policy_binding' type to // the given stream. -func writeRolePolicyBindingList(list []*RolePolicyBinding, stream *jsoniter.Stream) { +func WriteRolePolicyBindingList(list []*RolePolicyBinding, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeRolePolicyBinding(value, stream) + WriteRolePolicyBinding(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalRolePolicyBindingList(source interface{}) (items []*RolePolicyBind if err != nil { return } - items = readRolePolicyBindingList(iterator) + items = ReadRolePolicyBindingList(iterator) err = iterator.Error return } -// readRolePolicyBindingList reads list of values of the ”role_policy_binding' type from +// ReadRolePolicyBindingList reads list of values of the ”role_policy_binding' type from // the given iterator. -func readRolePolicyBindingList(iterator *jsoniter.Iterator) []*RolePolicyBinding { +func ReadRolePolicyBindingList(iterator *jsoniter.Iterator) []*RolePolicyBinding { list := []*RolePolicyBinding{} for iterator.ReadArray() { - item := readRolePolicyBinding(iterator) + item := ReadRolePolicyBinding(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/role_policy_binding_status_list_type_json.go b/clustersmgmt/v1/role_policy_binding_status_list_type_json.go index 00686e6d4..267b676a4 100644 --- a/clustersmgmt/v1/role_policy_binding_status_list_type_json.go +++ b/clustersmgmt/v1/role_policy_binding_status_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalRolePolicyBindingStatusList(list []*RolePolicyBindingStatus, writer io.Writer) error { stream := helpers.NewStream(writer) - writeRolePolicyBindingStatusList(list, stream) + WriteRolePolicyBindingStatusList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalRolePolicyBindingStatusList(list []*RolePolicyBindingStatus, writer return stream.Error } -// writeRolePolicyBindingStatusList writes a list of value of the 'role_policy_binding_status' type to +// WriteRolePolicyBindingStatusList writes a list of value of the 'role_policy_binding_status' type to // the given stream. -func writeRolePolicyBindingStatusList(list []*RolePolicyBindingStatus, stream *jsoniter.Stream) { +func WriteRolePolicyBindingStatusList(list []*RolePolicyBindingStatus, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeRolePolicyBindingStatus(value, stream) + WriteRolePolicyBindingStatus(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalRolePolicyBindingStatusList(source interface{}) (items []*RolePoli if err != nil { return } - items = readRolePolicyBindingStatusList(iterator) + items = ReadRolePolicyBindingStatusList(iterator) err = iterator.Error return } -// readRolePolicyBindingStatusList reads list of values of the ”role_policy_binding_status' type from +// ReadRolePolicyBindingStatusList reads list of values of the ”role_policy_binding_status' type from // the given iterator. -func readRolePolicyBindingStatusList(iterator *jsoniter.Iterator) []*RolePolicyBindingStatus { +func ReadRolePolicyBindingStatusList(iterator *jsoniter.Iterator) []*RolePolicyBindingStatus { list := []*RolePolicyBindingStatus{} for iterator.ReadArray() { - item := readRolePolicyBindingStatus(iterator) + item := ReadRolePolicyBindingStatus(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/role_policy_binding_status_type.go b/clustersmgmt/v1/role_policy_binding_status_type.go index a5c67d839..71d2e465c 100644 --- a/clustersmgmt/v1/role_policy_binding_status_type.go +++ b/clustersmgmt/v1/role_policy_binding_status_type.go @@ -96,6 +96,29 @@ func (l *RolePolicyBindingStatusList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *RolePolicyBindingStatusList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *RolePolicyBindingStatusList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *RolePolicyBindingStatusList) SetItems(items []*RolePolicyBindingStatus) { + l.items = items +} + +// Items returns the items of the list. +func (l *RolePolicyBindingStatusList) Items() []*RolePolicyBindingStatus { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *RolePolicyBindingStatusList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/role_policy_binding_status_type_json.go b/clustersmgmt/v1/role_policy_binding_status_type_json.go index 3c07634a6..e8b251803 100644 --- a/clustersmgmt/v1/role_policy_binding_status_type_json.go +++ b/clustersmgmt/v1/role_policy_binding_status_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalRolePolicyBindingStatus writes a value of the 'role_policy_binding_status' type to the given writer. func MarshalRolePolicyBindingStatus(object *RolePolicyBindingStatus, writer io.Writer) error { stream := helpers.NewStream(writer) - writeRolePolicyBindingStatus(object, stream) + WriteRolePolicyBindingStatus(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalRolePolicyBindingStatus(object *RolePolicyBindingStatus, writer io.W return stream.Error } -// writeRolePolicyBindingStatus writes a value of the 'role_policy_binding_status' type to the given stream. -func writeRolePolicyBindingStatus(object *RolePolicyBindingStatus, stream *jsoniter.Stream) { +// WriteRolePolicyBindingStatus writes a value of the 'role_policy_binding_status' type to the given stream. +func WriteRolePolicyBindingStatus(object *RolePolicyBindingStatus, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalRolePolicyBindingStatus(source interface{}) (object *RolePolicyBin if err != nil { return } - object = readRolePolicyBindingStatus(iterator) + object = ReadRolePolicyBindingStatus(iterator) err = iterator.Error return } -// readRolePolicyBindingStatus reads a value of the 'role_policy_binding_status' type from the given iterator. -func readRolePolicyBindingStatus(iterator *jsoniter.Iterator) *RolePolicyBindingStatus { +// ReadRolePolicyBindingStatus reads a value of the 'role_policy_binding_status' type from the given iterator. +func ReadRolePolicyBindingStatus(iterator *jsoniter.Iterator) *RolePolicyBindingStatus { object := &RolePolicyBindingStatus{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/role_policy_binding_type.go b/clustersmgmt/v1/role_policy_binding_type.go index 86c69e52d..0171c4889 100644 --- a/clustersmgmt/v1/role_policy_binding_type.go +++ b/clustersmgmt/v1/role_policy_binding_type.go @@ -200,6 +200,29 @@ func (l *RolePolicyBindingList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *RolePolicyBindingList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *RolePolicyBindingList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *RolePolicyBindingList) SetItems(items []*RolePolicyBinding) { + l.items = items +} + +// Items returns the items of the list. +func (l *RolePolicyBindingList) Items() []*RolePolicyBinding { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *RolePolicyBindingList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/role_policy_binding_type_json.go b/clustersmgmt/v1/role_policy_binding_type_json.go index 9d58bb381..99ffdee9c 100644 --- a/clustersmgmt/v1/role_policy_binding_type_json.go +++ b/clustersmgmt/v1/role_policy_binding_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalRolePolicyBinding writes a value of the 'role_policy_binding' type to the given writer. func MarshalRolePolicyBinding(object *RolePolicyBinding, writer io.Writer) error { stream := helpers.NewStream(writer) - writeRolePolicyBinding(object, stream) + WriteRolePolicyBinding(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalRolePolicyBinding(object *RolePolicyBinding, writer io.Writer) error return stream.Error } -// writeRolePolicyBinding writes a value of the 'role_policy_binding' type to the given stream. -func writeRolePolicyBinding(object *RolePolicyBinding, stream *jsoniter.Stream) { +// WriteRolePolicyBinding writes a value of the 'role_policy_binding' type to the given stream. +func WriteRolePolicyBinding(object *RolePolicyBinding, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -85,7 +85,7 @@ func writeRolePolicyBinding(object *RolePolicyBinding, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("policies") - writeRolePolicyList(object.policies, stream) + WriteRolePolicyList(object.policies, stream) count++ } present_ = object.bitmap_&32 != 0 && object.status != nil @@ -94,7 +94,7 @@ func writeRolePolicyBinding(object *RolePolicyBinding, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("status") - writeRolePolicyBindingStatus(object.status, stream) + WriteRolePolicyBindingStatus(object.status, stream) count++ } present_ = object.bitmap_&64 != 0 @@ -115,13 +115,13 @@ func UnmarshalRolePolicyBinding(source interface{}) (object *RolePolicyBinding, if err != nil { return } - object = readRolePolicyBinding(iterator) + object = ReadRolePolicyBinding(iterator) err = iterator.Error return } -// readRolePolicyBinding reads a value of the 'role_policy_binding' type from the given iterator. -func readRolePolicyBinding(iterator *jsoniter.Iterator) *RolePolicyBinding { +// ReadRolePolicyBinding reads a value of the 'role_policy_binding' type from the given iterator. +func ReadRolePolicyBinding(iterator *jsoniter.Iterator) *RolePolicyBinding { object := &RolePolicyBinding{} for { field := iterator.ReadObject() @@ -154,11 +154,11 @@ func readRolePolicyBinding(iterator *jsoniter.Iterator) *RolePolicyBinding { object.name = value object.bitmap_ |= 8 case "policies": - value := readRolePolicyList(iterator) + value := ReadRolePolicyList(iterator) object.policies = value object.bitmap_ |= 16 case "status": - value := readRolePolicyBindingStatus(iterator) + value := ReadRolePolicyBindingStatus(iterator) object.status = value object.bitmap_ |= 32 case "type": diff --git a/clustersmgmt/v1/role_policy_bindings_resource_json.go b/clustersmgmt/v1/role_policy_bindings_resource_json.go index c0b1065e7..95fc7a236 100644 --- a/clustersmgmt/v1/role_policy_bindings_resource_json.go +++ b/clustersmgmt/v1/role_policy_bindings_resource_json.go @@ -49,7 +49,7 @@ func readRolePolicyBindingsListResponse(response *RolePolicyBindingsListResponse value := iterator.ReadInt() response.total = &value case "items": - items := readRolePolicyBindingList(iterator) + items := ReadRolePolicyBindingList(iterator) response.items = &RolePolicyBindingList{ items: items, } diff --git a/clustersmgmt/v1/role_policy_list_type_json.go b/clustersmgmt/v1/role_policy_list_type_json.go index 26154c463..fb9f16980 100644 --- a/clustersmgmt/v1/role_policy_list_type_json.go +++ b/clustersmgmt/v1/role_policy_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalRolePolicyList(list []*RolePolicy, writer io.Writer) error { stream := helpers.NewStream(writer) - writeRolePolicyList(list, stream) + WriteRolePolicyList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalRolePolicyList(list []*RolePolicy, writer io.Writer) error { return stream.Error } -// writeRolePolicyList writes a list of value of the 'role_policy' type to +// WriteRolePolicyList writes a list of value of the 'role_policy' type to // the given stream. -func writeRolePolicyList(list []*RolePolicy, stream *jsoniter.Stream) { +func WriteRolePolicyList(list []*RolePolicy, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeRolePolicy(value, stream) + WriteRolePolicy(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalRolePolicyList(source interface{}) (items []*RolePolicy, err error if err != nil { return } - items = readRolePolicyList(iterator) + items = ReadRolePolicyList(iterator) err = iterator.Error return } -// readRolePolicyList reads list of values of the ”role_policy' type from +// ReadRolePolicyList reads list of values of the ”role_policy' type from // the given iterator. -func readRolePolicyList(iterator *jsoniter.Iterator) []*RolePolicy { +func ReadRolePolicyList(iterator *jsoniter.Iterator) []*RolePolicy { list := []*RolePolicy{} for iterator.ReadArray() { - item := readRolePolicy(iterator) + item := ReadRolePolicy(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/role_policy_type.go b/clustersmgmt/v1/role_policy_type.go index c18132495..f26a45ce2 100644 --- a/clustersmgmt/v1/role_policy_type.go +++ b/clustersmgmt/v1/role_policy_type.go @@ -116,6 +116,29 @@ func (l *RolePolicyList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *RolePolicyList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *RolePolicyList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *RolePolicyList) SetItems(items []*RolePolicy) { + l.items = items +} + +// Items returns the items of the list. +func (l *RolePolicyList) Items() []*RolePolicy { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *RolePolicyList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/role_policy_type_json.go b/clustersmgmt/v1/role_policy_type_json.go index 2fa840944..f4ca5e77f 100644 --- a/clustersmgmt/v1/role_policy_type_json.go +++ b/clustersmgmt/v1/role_policy_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalRolePolicy writes a value of the 'role_policy' type to the given writer. func MarshalRolePolicy(object *RolePolicy, writer io.Writer) error { stream := helpers.NewStream(writer) - writeRolePolicy(object, stream) + WriteRolePolicy(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalRolePolicy(object *RolePolicy, writer io.Writer) error { return stream.Error } -// writeRolePolicy writes a value of the 'role_policy' type to the given stream. -func writeRolePolicy(object *RolePolicy, stream *jsoniter.Stream) { +// WriteRolePolicy writes a value of the 'role_policy' type to the given stream. +func WriteRolePolicy(object *RolePolicy, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -78,13 +78,13 @@ func UnmarshalRolePolicy(source interface{}) (object *RolePolicy, err error) { if err != nil { return } - object = readRolePolicy(iterator) + object = ReadRolePolicy(iterator) err = iterator.Error return } -// readRolePolicy reads a value of the 'role_policy' type from the given iterator. -func readRolePolicy(iterator *jsoniter.Iterator) *RolePolicy { +// ReadRolePolicy reads a value of the 'role_policy' type from the given iterator. +func ReadRolePolicy(iterator *jsoniter.Iterator) *RolePolicy { object := &RolePolicy{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/root_volume_list_type_json.go b/clustersmgmt/v1/root_volume_list_type_json.go index 907c68661..c94083635 100644 --- a/clustersmgmt/v1/root_volume_list_type_json.go +++ b/clustersmgmt/v1/root_volume_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalRootVolumeList(list []*RootVolume, writer io.Writer) error { stream := helpers.NewStream(writer) - writeRootVolumeList(list, stream) + WriteRootVolumeList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalRootVolumeList(list []*RootVolume, writer io.Writer) error { return stream.Error } -// writeRootVolumeList writes a list of value of the 'root_volume' type to +// WriteRootVolumeList writes a list of value of the 'root_volume' type to // the given stream. -func writeRootVolumeList(list []*RootVolume, stream *jsoniter.Stream) { +func WriteRootVolumeList(list []*RootVolume, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeRootVolume(value, stream) + WriteRootVolume(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalRootVolumeList(source interface{}) (items []*RootVolume, err error if err != nil { return } - items = readRootVolumeList(iterator) + items = ReadRootVolumeList(iterator) err = iterator.Error return } -// readRootVolumeList reads list of values of the ”root_volume' type from +// ReadRootVolumeList reads list of values of the ”root_volume' type from // the given iterator. -func readRootVolumeList(iterator *jsoniter.Iterator) []*RootVolume { +func ReadRootVolumeList(iterator *jsoniter.Iterator) []*RootVolume { list := []*RootVolume{} for iterator.ReadArray() { - item := readRootVolume(iterator) + item := ReadRootVolume(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/root_volume_type.go b/clustersmgmt/v1/root_volume_type.go index 909030f1d..7595c7fef 100644 --- a/clustersmgmt/v1/root_volume_type.go +++ b/clustersmgmt/v1/root_volume_type.go @@ -106,6 +106,29 @@ func (l *RootVolumeList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *RootVolumeList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *RootVolumeList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *RootVolumeList) SetItems(items []*RootVolume) { + l.items = items +} + +// Items returns the items of the list. +func (l *RootVolumeList) Items() []*RootVolume { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *RootVolumeList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/root_volume_type_json.go b/clustersmgmt/v1/root_volume_type_json.go index 11cd83d6c..08f06495c 100644 --- a/clustersmgmt/v1/root_volume_type_json.go +++ b/clustersmgmt/v1/root_volume_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalRootVolume writes a value of the 'root_volume' type to the given writer. func MarshalRootVolume(object *RootVolume, writer io.Writer) error { stream := helpers.NewStream(writer) - writeRootVolume(object, stream) + WriteRootVolume(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalRootVolume(object *RootVolume, writer io.Writer) error { return stream.Error } -// writeRootVolume writes a value of the 'root_volume' type to the given stream. -func writeRootVolume(object *RootVolume, stream *jsoniter.Stream) { +// WriteRootVolume writes a value of the 'root_volume' type to the given stream. +func WriteRootVolume(object *RootVolume, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeRootVolume(object *RootVolume, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("aws") - writeAWSVolume(object.aws, stream) + WriteAWSVolume(object.aws, stream) count++ } present_ = object.bitmap_&2 != 0 && object.gcp != nil @@ -57,7 +57,7 @@ func writeRootVolume(object *RootVolume, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("gcp") - writeGCPVolume(object.gcp, stream) + WriteGCPVolume(object.gcp, stream) } stream.WriteObjectEnd() } @@ -69,13 +69,13 @@ func UnmarshalRootVolume(source interface{}) (object *RootVolume, err error) { if err != nil { return } - object = readRootVolume(iterator) + object = ReadRootVolume(iterator) err = iterator.Error return } -// readRootVolume reads a value of the 'root_volume' type from the given iterator. -func readRootVolume(iterator *jsoniter.Iterator) *RootVolume { +// ReadRootVolume reads a value of the 'root_volume' type from the given iterator. +func ReadRootVolume(iterator *jsoniter.Iterator) *RootVolume { object := &RootVolume{} for { field := iterator.ReadObject() @@ -84,11 +84,11 @@ func readRootVolume(iterator *jsoniter.Iterator) *RootVolume { } switch field { case "aws": - value := readAWSVolume(iterator) + value := ReadAWSVolume(iterator) object.aws = value object.bitmap_ |= 1 case "gcp": - value := readGCPVolume(iterator) + value := ReadGCPVolume(iterator) object.gcp = value object.bitmap_ |= 2 default: diff --git a/clustersmgmt/v1/schedule_type_list_type_json.go b/clustersmgmt/v1/schedule_type_list_type_json.go index 9c2089774..d21ce59c4 100644 --- a/clustersmgmt/v1/schedule_type_list_type_json.go +++ b/clustersmgmt/v1/schedule_type_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalScheduleTypeList(list []ScheduleType, writer io.Writer) error { stream := helpers.NewStream(writer) - writeScheduleTypeList(list, stream) + WriteScheduleTypeList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalScheduleTypeList(list []ScheduleType, writer io.Writer) error { return stream.Error } -// writeScheduleTypeList writes a list of value of the 'schedule_type' type to +// WriteScheduleTypeList writes a list of value of the 'schedule_type' type to // the given stream. -func writeScheduleTypeList(list []ScheduleType, stream *jsoniter.Stream) { +func WriteScheduleTypeList(list []ScheduleType, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalScheduleTypeList(source interface{}) (items []ScheduleType, err er if err != nil { return } - items = readScheduleTypeList(iterator) + items = ReadScheduleTypeList(iterator) err = iterator.Error return } -// readScheduleTypeList reads list of values of the ”schedule_type' type from +// ReadScheduleTypeList reads list of values of the ”schedule_type' type from // the given iterator. -func readScheduleTypeList(iterator *jsoniter.Iterator) []ScheduleType { +func ReadScheduleTypeList(iterator *jsoniter.Iterator) []ScheduleType { list := []ScheduleType{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/security_group_list_type_json.go b/clustersmgmt/v1/security_group_list_type_json.go index 3f188c6c2..13d0bdff6 100644 --- a/clustersmgmt/v1/security_group_list_type_json.go +++ b/clustersmgmt/v1/security_group_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSecurityGroupList(list []*SecurityGroup, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSecurityGroupList(list, stream) + WriteSecurityGroupList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalSecurityGroupList(list []*SecurityGroup, writer io.Writer) error { return stream.Error } -// writeSecurityGroupList writes a list of value of the 'security_group' type to +// WriteSecurityGroupList writes a list of value of the 'security_group' type to // the given stream. -func writeSecurityGroupList(list []*SecurityGroup, stream *jsoniter.Stream) { +func WriteSecurityGroupList(list []*SecurityGroup, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeSecurityGroup(value, stream) + WriteSecurityGroup(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalSecurityGroupList(source interface{}) (items []*SecurityGroup, err if err != nil { return } - items = readSecurityGroupList(iterator) + items = ReadSecurityGroupList(iterator) err = iterator.Error return } -// readSecurityGroupList reads list of values of the ”security_group' type from +// ReadSecurityGroupList reads list of values of the ”security_group' type from // the given iterator. -func readSecurityGroupList(iterator *jsoniter.Iterator) []*SecurityGroup { +func ReadSecurityGroupList(iterator *jsoniter.Iterator) []*SecurityGroup { list := []*SecurityGroup{} for iterator.ReadArray() { - item := readSecurityGroup(iterator) + item := ReadSecurityGroup(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/security_group_type.go b/clustersmgmt/v1/security_group_type.go index 63d33c961..c853594a4 100644 --- a/clustersmgmt/v1/security_group_type.go +++ b/clustersmgmt/v1/security_group_type.go @@ -130,6 +130,29 @@ func (l *SecurityGroupList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *SecurityGroupList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *SecurityGroupList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *SecurityGroupList) SetItems(items []*SecurityGroup) { + l.items = items +} + +// Items returns the items of the list. +func (l *SecurityGroupList) Items() []*SecurityGroup { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *SecurityGroupList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/security_group_type_json.go b/clustersmgmt/v1/security_group_type_json.go index 6da3ba027..4fefe1f1c 100644 --- a/clustersmgmt/v1/security_group_type_json.go +++ b/clustersmgmt/v1/security_group_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalSecurityGroup writes a value of the 'security_group' type to the given writer. func MarshalSecurityGroup(object *SecurityGroup, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSecurityGroup(object, stream) + WriteSecurityGroup(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalSecurityGroup(object *SecurityGroup, writer io.Writer) error { return stream.Error } -// writeSecurityGroup writes a value of the 'security_group' type to the given stream. -func writeSecurityGroup(object *SecurityGroup, stream *jsoniter.Stream) { +// WriteSecurityGroup writes a value of the 'security_group' type to the given stream. +func WriteSecurityGroup(object *SecurityGroup, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -78,13 +78,13 @@ func UnmarshalSecurityGroup(source interface{}) (object *SecurityGroup, err erro if err != nil { return } - object = readSecurityGroup(iterator) + object = ReadSecurityGroup(iterator) err = iterator.Error return } -// readSecurityGroup reads a value of the 'security_group' type from the given iterator. -func readSecurityGroup(iterator *jsoniter.Iterator) *SecurityGroup { +// ReadSecurityGroup reads a value of the 'security_group' type from the given iterator. +func ReadSecurityGroup(iterator *jsoniter.Iterator) *SecurityGroup { object := &SecurityGroup{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/server_config_list_type_json.go b/clustersmgmt/v1/server_config_list_type_json.go index 5c937d484..2bf9d1125 100644 --- a/clustersmgmt/v1/server_config_list_type_json.go +++ b/clustersmgmt/v1/server_config_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalServerConfigList(list []*ServerConfig, writer io.Writer) error { stream := helpers.NewStream(writer) - writeServerConfigList(list, stream) + WriteServerConfigList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalServerConfigList(list []*ServerConfig, writer io.Writer) error { return stream.Error } -// writeServerConfigList writes a list of value of the 'server_config' type to +// WriteServerConfigList writes a list of value of the 'server_config' type to // the given stream. -func writeServerConfigList(list []*ServerConfig, stream *jsoniter.Stream) { +func WriteServerConfigList(list []*ServerConfig, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeServerConfig(value, stream) + WriteServerConfig(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalServerConfigList(source interface{}) (items []*ServerConfig, err e if err != nil { return } - items = readServerConfigList(iterator) + items = ReadServerConfigList(iterator) err = iterator.Error return } -// readServerConfigList reads list of values of the ”server_config' type from +// ReadServerConfigList reads list of values of the ”server_config' type from // the given iterator. -func readServerConfigList(iterator *jsoniter.Iterator) []*ServerConfig { +func ReadServerConfigList(iterator *jsoniter.Iterator) []*ServerConfig { list := []*ServerConfig{} for iterator.ReadArray() { - item := readServerConfig(iterator) + item := ReadServerConfig(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/server_config_type.go b/clustersmgmt/v1/server_config_type.go index e42918177..ebf4f70ea 100644 --- a/clustersmgmt/v1/server_config_type.go +++ b/clustersmgmt/v1/server_config_type.go @@ -55,7 +55,7 @@ func (o *ServerConfig) Kind() string { return ServerConfigKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *ServerConfig) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -254,6 +254,29 @@ func (l *ServerConfigList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ServerConfigList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ServerConfigList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ServerConfigList) SetItems(items []*ServerConfig) { + l.items = items +} + +// Items returns the items of the list. +func (l *ServerConfigList) Items() []*ServerConfig { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ServerConfigList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/server_config_type_json.go b/clustersmgmt/v1/server_config_type_json.go index 6282d3ad9..70fadc0cf 100644 --- a/clustersmgmt/v1/server_config_type_json.go +++ b/clustersmgmt/v1/server_config_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalServerConfig writes a value of the 'server_config' type to the given writer. func MarshalServerConfig(object *ServerConfig, writer io.Writer) error { stream := helpers.NewStream(writer) - writeServerConfig(object, stream) + WriteServerConfig(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalServerConfig(object *ServerConfig, writer io.Writer) error { return stream.Error } -// writeServerConfig writes a value of the 'server_config' type to the given stream. -func writeServerConfig(object *ServerConfig, stream *jsoniter.Stream) { +// WriteServerConfig writes a value of the 'server_config' type to the given stream. +func WriteServerConfig(object *ServerConfig, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -71,7 +71,7 @@ func writeServerConfig(object *ServerConfig, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("aws_shard") - writeAWSShard(object.awsShard, stream) + WriteAWSShard(object.awsShard, stream) count++ } present_ = object.bitmap_&16 != 0 @@ -110,13 +110,13 @@ func UnmarshalServerConfig(source interface{}) (object *ServerConfig, err error) if err != nil { return } - object = readServerConfig(iterator) + object = ReadServerConfig(iterator) err = iterator.Error return } -// readServerConfig reads a value of the 'server_config' type from the given iterator. -func readServerConfig(iterator *jsoniter.Iterator) *ServerConfig { +// ReadServerConfig reads a value of the 'server_config' type from the given iterator. +func ReadServerConfig(iterator *jsoniter.Iterator) *ServerConfig { object := &ServerConfig{} for { field := iterator.ReadObject() @@ -136,7 +136,7 @@ func readServerConfig(iterator *jsoniter.Iterator) *ServerConfig { object.href = iterator.ReadString() object.bitmap_ |= 4 case "aws_shard": - value := readAWSShard(iterator) + value := ReadAWSShard(iterator) object.awsShard = value object.bitmap_ |= 8 case "kubeconfig": diff --git a/clustersmgmt/v1/socket_total_node_role_os_metric_node_list_type_json.go b/clustersmgmt/v1/socket_total_node_role_os_metric_node_list_type_json.go index 5c3fb092c..e9426ee63 100644 --- a/clustersmgmt/v1/socket_total_node_role_os_metric_node_list_type_json.go +++ b/clustersmgmt/v1/socket_total_node_role_os_metric_node_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSocketTotalNodeRoleOSMetricNodeList(list []*SocketTotalNodeRoleOSMetricNode, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSocketTotalNodeRoleOSMetricNodeList(list, stream) + WriteSocketTotalNodeRoleOSMetricNodeList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalSocketTotalNodeRoleOSMetricNodeList(list []*SocketTotalNodeRoleOSMet return stream.Error } -// writeSocketTotalNodeRoleOSMetricNodeList writes a list of value of the 'socket_total_node_role_OS_metric_node' type to +// WriteSocketTotalNodeRoleOSMetricNodeList writes a list of value of the 'socket_total_node_role_OS_metric_node' type to // the given stream. -func writeSocketTotalNodeRoleOSMetricNodeList(list []*SocketTotalNodeRoleOSMetricNode, stream *jsoniter.Stream) { +func WriteSocketTotalNodeRoleOSMetricNodeList(list []*SocketTotalNodeRoleOSMetricNode, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeSocketTotalNodeRoleOSMetricNode(value, stream) + WriteSocketTotalNodeRoleOSMetricNode(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalSocketTotalNodeRoleOSMetricNodeList(source interface{}) (items []* if err != nil { return } - items = readSocketTotalNodeRoleOSMetricNodeList(iterator) + items = ReadSocketTotalNodeRoleOSMetricNodeList(iterator) err = iterator.Error return } -// readSocketTotalNodeRoleOSMetricNodeList reads list of values of the ”socket_total_node_role_OS_metric_node' type from +// ReadSocketTotalNodeRoleOSMetricNodeList reads list of values of the ”socket_total_node_role_OS_metric_node' type from // the given iterator. -func readSocketTotalNodeRoleOSMetricNodeList(iterator *jsoniter.Iterator) []*SocketTotalNodeRoleOSMetricNode { +func ReadSocketTotalNodeRoleOSMetricNodeList(iterator *jsoniter.Iterator) []*SocketTotalNodeRoleOSMetricNode { list := []*SocketTotalNodeRoleOSMetricNode{} for iterator.ReadArray() { - item := readSocketTotalNodeRoleOSMetricNode(iterator) + item := ReadSocketTotalNodeRoleOSMetricNode(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/socket_total_node_role_os_metric_node_type.go b/clustersmgmt/v1/socket_total_node_role_os_metric_node_type.go index 0d868aa74..efb417fe1 100644 --- a/clustersmgmt/v1/socket_total_node_role_os_metric_node_type.go +++ b/clustersmgmt/v1/socket_total_node_role_os_metric_node_type.go @@ -155,6 +155,29 @@ func (l *SocketTotalNodeRoleOSMetricNodeList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *SocketTotalNodeRoleOSMetricNodeList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *SocketTotalNodeRoleOSMetricNodeList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *SocketTotalNodeRoleOSMetricNodeList) SetItems(items []*SocketTotalNodeRoleOSMetricNode) { + l.items = items +} + +// Items returns the items of the list. +func (l *SocketTotalNodeRoleOSMetricNodeList) Items() []*SocketTotalNodeRoleOSMetricNode { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *SocketTotalNodeRoleOSMetricNodeList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/socket_total_node_role_os_metric_node_type_json.go b/clustersmgmt/v1/socket_total_node_role_os_metric_node_type_json.go index b6266a5f9..e5dee48ee 100644 --- a/clustersmgmt/v1/socket_total_node_role_os_metric_node_type_json.go +++ b/clustersmgmt/v1/socket_total_node_role_os_metric_node_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalSocketTotalNodeRoleOSMetricNode writes a value of the 'socket_total_node_role_OS_metric_node' type to the given writer. func MarshalSocketTotalNodeRoleOSMetricNode(object *SocketTotalNodeRoleOSMetricNode, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSocketTotalNodeRoleOSMetricNode(object, stream) + WriteSocketTotalNodeRoleOSMetricNode(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalSocketTotalNodeRoleOSMetricNode(object *SocketTotalNodeRoleOSMetricN return stream.Error } -// writeSocketTotalNodeRoleOSMetricNode writes a value of the 'socket_total_node_role_OS_metric_node' type to the given stream. -func writeSocketTotalNodeRoleOSMetricNode(object *SocketTotalNodeRoleOSMetricNode, stream *jsoniter.Stream) { +// WriteSocketTotalNodeRoleOSMetricNode writes a value of the 'socket_total_node_role_OS_metric_node' type to the given stream. +func WriteSocketTotalNodeRoleOSMetricNode(object *SocketTotalNodeRoleOSMetricNode, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -49,7 +49,7 @@ func writeSocketTotalNodeRoleOSMetricNode(object *SocketTotalNodeRoleOSMetricNod stream.WriteMore() } stream.WriteObjectField("node_roles") - writeStringList(object.nodeRoles, stream) + WriteStringList(object.nodeRoles, stream) count++ } present_ = object.bitmap_&2 != 0 @@ -88,13 +88,13 @@ func UnmarshalSocketTotalNodeRoleOSMetricNode(source interface{}) (object *Socke if err != nil { return } - object = readSocketTotalNodeRoleOSMetricNode(iterator) + object = ReadSocketTotalNodeRoleOSMetricNode(iterator) err = iterator.Error return } -// readSocketTotalNodeRoleOSMetricNode reads a value of the 'socket_total_node_role_OS_metric_node' type from the given iterator. -func readSocketTotalNodeRoleOSMetricNode(iterator *jsoniter.Iterator) *SocketTotalNodeRoleOSMetricNode { +// ReadSocketTotalNodeRoleOSMetricNode reads a value of the 'socket_total_node_role_OS_metric_node' type from the given iterator. +func ReadSocketTotalNodeRoleOSMetricNode(iterator *jsoniter.Iterator) *SocketTotalNodeRoleOSMetricNode { object := &SocketTotalNodeRoleOSMetricNode{} for { field := iterator.ReadObject() @@ -103,7 +103,7 @@ func readSocketTotalNodeRoleOSMetricNode(iterator *jsoniter.Iterator) *SocketTot } switch field { case "node_roles": - value := readStringList(iterator) + value := ReadStringList(iterator) object.nodeRoles = value object.bitmap_ |= 1 case "operating_system": diff --git a/clustersmgmt/v1/socket_totals_node_role_os_metric_node_list_type_json.go b/clustersmgmt/v1/socket_totals_node_role_os_metric_node_list_type_json.go index 8ab919799..b5d18e7eb 100644 --- a/clustersmgmt/v1/socket_totals_node_role_os_metric_node_list_type_json.go +++ b/clustersmgmt/v1/socket_totals_node_role_os_metric_node_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSocketTotalsNodeRoleOSMetricNodeList(list []*SocketTotalsNodeRoleOSMetricNode, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSocketTotalsNodeRoleOSMetricNodeList(list, stream) + WriteSocketTotalsNodeRoleOSMetricNodeList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalSocketTotalsNodeRoleOSMetricNodeList(list []*SocketTotalsNodeRoleOSM return stream.Error } -// writeSocketTotalsNodeRoleOSMetricNodeList writes a list of value of the 'socket_totals_node_role_OS_metric_node' type to +// WriteSocketTotalsNodeRoleOSMetricNodeList writes a list of value of the 'socket_totals_node_role_OS_metric_node' type to // the given stream. -func writeSocketTotalsNodeRoleOSMetricNodeList(list []*SocketTotalsNodeRoleOSMetricNode, stream *jsoniter.Stream) { +func WriteSocketTotalsNodeRoleOSMetricNodeList(list []*SocketTotalsNodeRoleOSMetricNode, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeSocketTotalsNodeRoleOSMetricNode(value, stream) + WriteSocketTotalsNodeRoleOSMetricNode(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalSocketTotalsNodeRoleOSMetricNodeList(source interface{}) (items [] if err != nil { return } - items = readSocketTotalsNodeRoleOSMetricNodeList(iterator) + items = ReadSocketTotalsNodeRoleOSMetricNodeList(iterator) err = iterator.Error return } -// readSocketTotalsNodeRoleOSMetricNodeList reads list of values of the ”socket_totals_node_role_OS_metric_node' type from +// ReadSocketTotalsNodeRoleOSMetricNodeList reads list of values of the ”socket_totals_node_role_OS_metric_node' type from // the given iterator. -func readSocketTotalsNodeRoleOSMetricNodeList(iterator *jsoniter.Iterator) []*SocketTotalsNodeRoleOSMetricNode { +func ReadSocketTotalsNodeRoleOSMetricNodeList(iterator *jsoniter.Iterator) []*SocketTotalsNodeRoleOSMetricNode { list := []*SocketTotalsNodeRoleOSMetricNode{} for iterator.ReadArray() { - item := readSocketTotalsNodeRoleOSMetricNode(iterator) + item := ReadSocketTotalsNodeRoleOSMetricNode(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/socket_totals_node_role_os_metric_node_type.go b/clustersmgmt/v1/socket_totals_node_role_os_metric_node_type.go index 96b83207d..9cc6df48a 100644 --- a/clustersmgmt/v1/socket_totals_node_role_os_metric_node_type.go +++ b/clustersmgmt/v1/socket_totals_node_role_os_metric_node_type.go @@ -79,6 +79,29 @@ func (l *SocketTotalsNodeRoleOSMetricNodeList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *SocketTotalsNodeRoleOSMetricNodeList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *SocketTotalsNodeRoleOSMetricNodeList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *SocketTotalsNodeRoleOSMetricNodeList) SetItems(items []*SocketTotalsNodeRoleOSMetricNode) { + l.items = items +} + +// Items returns the items of the list. +func (l *SocketTotalsNodeRoleOSMetricNodeList) Items() []*SocketTotalsNodeRoleOSMetricNode { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *SocketTotalsNodeRoleOSMetricNodeList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/socket_totals_node_role_os_metric_node_type_json.go b/clustersmgmt/v1/socket_totals_node_role_os_metric_node_type_json.go index 8c242d454..496908db0 100644 --- a/clustersmgmt/v1/socket_totals_node_role_os_metric_node_type_json.go +++ b/clustersmgmt/v1/socket_totals_node_role_os_metric_node_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalSocketTotalsNodeRoleOSMetricNode writes a value of the 'socket_totals_node_role_OS_metric_node' type to the given writer. func MarshalSocketTotalsNodeRoleOSMetricNode(object *SocketTotalsNodeRoleOSMetricNode, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSocketTotalsNodeRoleOSMetricNode(object, stream) + WriteSocketTotalsNodeRoleOSMetricNode(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalSocketTotalsNodeRoleOSMetricNode(object *SocketTotalsNodeRoleOSMetri return stream.Error } -// writeSocketTotalsNodeRoleOSMetricNode writes a value of the 'socket_totals_node_role_OS_metric_node' type to the given stream. -func writeSocketTotalsNodeRoleOSMetricNode(object *SocketTotalsNodeRoleOSMetricNode, stream *jsoniter.Stream) { +// WriteSocketTotalsNodeRoleOSMetricNode writes a value of the 'socket_totals_node_role_OS_metric_node' type to the given stream. +func WriteSocketTotalsNodeRoleOSMetricNode(object *SocketTotalsNodeRoleOSMetricNode, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeSocketTotalsNodeRoleOSMetricNode(object *SocketTotalsNodeRoleOSMetricN stream.WriteMore() } stream.WriteObjectField("socket_totals") - writeSocketTotalNodeRoleOSMetricNodeList(object.socketTotals, stream) + WriteSocketTotalNodeRoleOSMetricNodeList(object.socketTotals, stream) } stream.WriteObjectEnd() } @@ -60,13 +60,13 @@ func UnmarshalSocketTotalsNodeRoleOSMetricNode(source interface{}) (object *Sock if err != nil { return } - object = readSocketTotalsNodeRoleOSMetricNode(iterator) + object = ReadSocketTotalsNodeRoleOSMetricNode(iterator) err = iterator.Error return } -// readSocketTotalsNodeRoleOSMetricNode reads a value of the 'socket_totals_node_role_OS_metric_node' type from the given iterator. -func readSocketTotalsNodeRoleOSMetricNode(iterator *jsoniter.Iterator) *SocketTotalsNodeRoleOSMetricNode { +// ReadSocketTotalsNodeRoleOSMetricNode reads a value of the 'socket_totals_node_role_OS_metric_node' type from the given iterator. +func ReadSocketTotalsNodeRoleOSMetricNode(iterator *jsoniter.Iterator) *SocketTotalsNodeRoleOSMetricNode { object := &SocketTotalsNodeRoleOSMetricNode{} for { field := iterator.ReadObject() @@ -75,7 +75,7 @@ func readSocketTotalsNodeRoleOSMetricNode(iterator *jsoniter.Iterator) *SocketTo } switch field { case "socket_totals": - value := readSocketTotalNodeRoleOSMetricNodeList(iterator) + value := ReadSocketTotalNodeRoleOSMetricNodeList(iterator) object.socketTotals = value object.bitmap_ |= 1 default: diff --git a/clustersmgmt/v1/storage_quota_list_type_json.go b/clustersmgmt/v1/storage_quota_list_type_json.go index d24adbdb2..5cbe46fb5 100644 --- a/clustersmgmt/v1/storage_quota_list_type_json.go +++ b/clustersmgmt/v1/storage_quota_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalStorageQuotaList(list []*StorageQuota, writer io.Writer) error { stream := helpers.NewStream(writer) - writeStorageQuotaList(list, stream) + WriteStorageQuotaList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalStorageQuotaList(list []*StorageQuota, writer io.Writer) error { return stream.Error } -// writeStorageQuotaList writes a list of value of the 'storage_quota' type to +// WriteStorageQuotaList writes a list of value of the 'storage_quota' type to // the given stream. -func writeStorageQuotaList(list []*StorageQuota, stream *jsoniter.Stream) { +func WriteStorageQuotaList(list []*StorageQuota, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeStorageQuota(value, stream) + WriteStorageQuota(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalStorageQuotaList(source interface{}) (items []*StorageQuota, err e if err != nil { return } - items = readStorageQuotaList(iterator) + items = ReadStorageQuotaList(iterator) err = iterator.Error return } -// readStorageQuotaList reads list of values of the ”storage_quota' type from +// ReadStorageQuotaList reads list of values of the ”storage_quota' type from // the given iterator. -func readStorageQuotaList(iterator *jsoniter.Iterator) []*StorageQuota { +func ReadStorageQuotaList(iterator *jsoniter.Iterator) []*StorageQuota { list := []*StorageQuota{} for iterator.ReadArray() { - item := readStorageQuota(iterator) + item := ReadStorageQuota(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/storage_quota_type.go b/clustersmgmt/v1/storage_quota_type.go index cb89a7d04..b55852b1c 100644 --- a/clustersmgmt/v1/storage_quota_type.go +++ b/clustersmgmt/v1/storage_quota_type.go @@ -106,6 +106,29 @@ func (l *StorageQuotaList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *StorageQuotaList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *StorageQuotaList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *StorageQuotaList) SetItems(items []*StorageQuota) { + l.items = items +} + +// Items returns the items of the list. +func (l *StorageQuotaList) Items() []*StorageQuota { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *StorageQuotaList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/storage_quota_type_json.go b/clustersmgmt/v1/storage_quota_type_json.go index 2996a5218..a98539db9 100644 --- a/clustersmgmt/v1/storage_quota_type_json.go +++ b/clustersmgmt/v1/storage_quota_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalStorageQuota writes a value of the 'storage_quota' type to the given writer. func MarshalStorageQuota(object *StorageQuota, writer io.Writer) error { stream := helpers.NewStream(writer) - writeStorageQuota(object, stream) + WriteStorageQuota(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalStorageQuota(object *StorageQuota, writer io.Writer) error { return stream.Error } -// writeStorageQuota writes a value of the 'storage_quota' type to the given stream. -func writeStorageQuota(object *StorageQuota, stream *jsoniter.Stream) { +// WriteStorageQuota writes a value of the 'storage_quota' type to the given stream. +func WriteStorageQuota(object *StorageQuota, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalStorageQuota(source interface{}) (object *StorageQuota, err error) if err != nil { return } - object = readStorageQuota(iterator) + object = ReadStorageQuota(iterator) err = iterator.Error return } -// readStorageQuota reads a value of the 'storage_quota' type from the given iterator. -func readStorageQuota(iterator *jsoniter.Iterator) *StorageQuota { +// ReadStorageQuota reads a value of the 'storage_quota' type from the given iterator. +func ReadStorageQuota(iterator *jsoniter.Iterator) *StorageQuota { object := &StorageQuota{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/storage_quota_values_resource_json.go b/clustersmgmt/v1/storage_quota_values_resource_json.go index 1f73d33fd..6fbc98012 100644 --- a/clustersmgmt/v1/storage_quota_values_resource_json.go +++ b/clustersmgmt/v1/storage_quota_values_resource_json.go @@ -49,7 +49,7 @@ func readStorageQuotaValuesListResponse(response *StorageQuotaValuesListResponse value := iterator.ReadInt() response.total = &value case "items": - items := readStorageQuotaList(iterator) + items := ReadStorageQuotaList(iterator) response.items = &StorageQuotaList{ items: items, } diff --git a/clustersmgmt/v1/string_list_type_json.go b/clustersmgmt/v1/string_list_type_json.go index 249b91034..a842b7592 100644 --- a/clustersmgmt/v1/string_list_type_json.go +++ b/clustersmgmt/v1/string_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalStringList(list []string, writer io.Writer) error { stream := helpers.NewStream(writer) - writeStringList(list, stream) + WriteStringList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalStringList(list []string, writer io.Writer) error { return stream.Error } -// writeStringList writes a list of value of the 'string' type to +// WriteStringList writes a list of value of the 'string' type to // the given stream. -func writeStringList(list []string, stream *jsoniter.Stream) { +func WriteStringList(list []string, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalStringList(source interface{}) (items []string, err error) { if err != nil { return } - items = readStringList(iterator) + items = ReadStringList(iterator) err = iterator.Error return } -// readStringList reads list of values of the ”string' type from +// ReadStringList reads list of values of the ”string' type from // the given iterator. -func readStringList(iterator *jsoniter.Iterator) []string { +func ReadStringList(iterator *jsoniter.Iterator) []string { list := []string{} for iterator.ReadArray() { item := iterator.ReadString() diff --git a/clustersmgmt/v1/sts_credential_request_list_type_json.go b/clustersmgmt/v1/sts_credential_request_list_type_json.go index a40d5eccd..6794f31a4 100644 --- a/clustersmgmt/v1/sts_credential_request_list_type_json.go +++ b/clustersmgmt/v1/sts_credential_request_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSTSCredentialRequestList(list []*STSCredentialRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSTSCredentialRequestList(list, stream) + WriteSTSCredentialRequestList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalSTSCredentialRequestList(list []*STSCredentialRequest, writer io.Wri return stream.Error } -// writeSTSCredentialRequestList writes a list of value of the 'STS_credential_request' type to +// WriteSTSCredentialRequestList writes a list of value of the 'STS_credential_request' type to // the given stream. -func writeSTSCredentialRequestList(list []*STSCredentialRequest, stream *jsoniter.Stream) { +func WriteSTSCredentialRequestList(list []*STSCredentialRequest, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeSTSCredentialRequest(value, stream) + WriteSTSCredentialRequest(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalSTSCredentialRequestList(source interface{}) (items []*STSCredenti if err != nil { return } - items = readSTSCredentialRequestList(iterator) + items = ReadSTSCredentialRequestList(iterator) err = iterator.Error return } -// readSTSCredentialRequestList reads list of values of the ”STS_credential_request' type from +// ReadSTSCredentialRequestList reads list of values of the ”STS_credential_request' type from // the given iterator. -func readSTSCredentialRequestList(iterator *jsoniter.Iterator) []*STSCredentialRequest { +func ReadSTSCredentialRequestList(iterator *jsoniter.Iterator) []*STSCredentialRequest { list := []*STSCredentialRequest{} for iterator.ReadArray() { - item := readSTSCredentialRequest(iterator) + item := ReadSTSCredentialRequest(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/sts_credential_request_type.go b/clustersmgmt/v1/sts_credential_request_type.go index f39a99413..127552742 100644 --- a/clustersmgmt/v1/sts_credential_request_type.go +++ b/clustersmgmt/v1/sts_credential_request_type.go @@ -106,6 +106,29 @@ func (l *STSCredentialRequestList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *STSCredentialRequestList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *STSCredentialRequestList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *STSCredentialRequestList) SetItems(items []*STSCredentialRequest) { + l.items = items +} + +// Items returns the items of the list. +func (l *STSCredentialRequestList) Items() []*STSCredentialRequest { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *STSCredentialRequestList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/sts_credential_request_type_json.go b/clustersmgmt/v1/sts_credential_request_type_json.go index 1286aeebd..5f30fc02f 100644 --- a/clustersmgmt/v1/sts_credential_request_type_json.go +++ b/clustersmgmt/v1/sts_credential_request_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalSTSCredentialRequest writes a value of the 'STS_credential_request' type to the given writer. func MarshalSTSCredentialRequest(object *STSCredentialRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSTSCredentialRequest(object, stream) + WriteSTSCredentialRequest(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalSTSCredentialRequest(object *STSCredentialRequest, writer io.Writer) return stream.Error } -// writeSTSCredentialRequest writes a value of the 'STS_credential_request' type to the given stream. -func writeSTSCredentialRequest(object *STSCredentialRequest, stream *jsoniter.Stream) { +// WriteSTSCredentialRequest writes a value of the 'STS_credential_request' type to the given stream. +func WriteSTSCredentialRequest(object *STSCredentialRequest, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -57,7 +57,7 @@ func writeSTSCredentialRequest(object *STSCredentialRequest, stream *jsoniter.St stream.WriteMore() } stream.WriteObjectField("operator") - writeSTSOperator(object.operator, stream) + WriteSTSOperator(object.operator, stream) } stream.WriteObjectEnd() } @@ -69,13 +69,13 @@ func UnmarshalSTSCredentialRequest(source interface{}) (object *STSCredentialReq if err != nil { return } - object = readSTSCredentialRequest(iterator) + object = ReadSTSCredentialRequest(iterator) err = iterator.Error return } -// readSTSCredentialRequest reads a value of the 'STS_credential_request' type from the given iterator. -func readSTSCredentialRequest(iterator *jsoniter.Iterator) *STSCredentialRequest { +// ReadSTSCredentialRequest reads a value of the 'STS_credential_request' type from the given iterator. +func ReadSTSCredentialRequest(iterator *jsoniter.Iterator) *STSCredentialRequest { object := &STSCredentialRequest{} for { field := iterator.ReadObject() @@ -88,7 +88,7 @@ func readSTSCredentialRequest(iterator *jsoniter.Iterator) *STSCredentialRequest object.name = value object.bitmap_ |= 1 case "operator": - value := readSTSOperator(iterator) + value := ReadSTSOperator(iterator) object.operator = value object.bitmap_ |= 2 default: diff --git a/clustersmgmt/v1/sts_credential_requests_inquiry_resource_json.go b/clustersmgmt/v1/sts_credential_requests_inquiry_resource_json.go index 2b36333e4..8d13e59b1 100644 --- a/clustersmgmt/v1/sts_credential_requests_inquiry_resource_json.go +++ b/clustersmgmt/v1/sts_credential_requests_inquiry_resource_json.go @@ -49,7 +49,7 @@ func readSTSCredentialRequestsInquiryListResponse(response *STSCredentialRequest value := iterator.ReadInt() response.total = &value case "items": - items := readSTSCredentialRequestList(iterator) + items := ReadSTSCredentialRequestList(iterator) response.items = &STSCredentialRequestList{ items: items, } diff --git a/clustersmgmt/v1/sts_list_type_json.go b/clustersmgmt/v1/sts_list_type_json.go index 8b69f4789..14452ee54 100644 --- a/clustersmgmt/v1/sts_list_type_json.go +++ b/clustersmgmt/v1/sts_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSTSList(list []*STS, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSTSList(list, stream) + WriteSTSList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalSTSList(list []*STS, writer io.Writer) error { return stream.Error } -// writeSTSList writes a list of value of the 'STS' type to +// WriteSTSList writes a list of value of the 'STS' type to // the given stream. -func writeSTSList(list []*STS, stream *jsoniter.Stream) { +func WriteSTSList(list []*STS, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeSTS(value, stream) + WriteSTS(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalSTSList(source interface{}) (items []*STS, err error) { if err != nil { return } - items = readSTSList(iterator) + items = ReadSTSList(iterator) err = iterator.Error return } -// readSTSList reads list of values of the ”STS' type from +// ReadSTSList reads list of values of the ”STS' type from // the given iterator. -func readSTSList(iterator *jsoniter.Iterator) []*STS { +func ReadSTSList(iterator *jsoniter.Iterator) []*STS { list := []*STS{} for iterator.ReadArray() { - item := readSTS(iterator) + item := ReadSTS(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/sts_operator_list_type_json.go b/clustersmgmt/v1/sts_operator_list_type_json.go index 85572d34b..129f6fae6 100644 --- a/clustersmgmt/v1/sts_operator_list_type_json.go +++ b/clustersmgmt/v1/sts_operator_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSTSOperatorList(list []*STSOperator, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSTSOperatorList(list, stream) + WriteSTSOperatorList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalSTSOperatorList(list []*STSOperator, writer io.Writer) error { return stream.Error } -// writeSTSOperatorList writes a list of value of the 'STS_operator' type to +// WriteSTSOperatorList writes a list of value of the 'STS_operator' type to // the given stream. -func writeSTSOperatorList(list []*STSOperator, stream *jsoniter.Stream) { +func WriteSTSOperatorList(list []*STSOperator, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeSTSOperator(value, stream) + WriteSTSOperator(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalSTSOperatorList(source interface{}) (items []*STSOperator, err err if err != nil { return } - items = readSTSOperatorList(iterator) + items = ReadSTSOperatorList(iterator) err = iterator.Error return } -// readSTSOperatorList reads list of values of the ”STS_operator' type from +// ReadSTSOperatorList reads list of values of the ”STS_operator' type from // the given iterator. -func readSTSOperatorList(iterator *jsoniter.Iterator) []*STSOperator { +func ReadSTSOperatorList(iterator *jsoniter.Iterator) []*STSOperator { list := []*STSOperator{} for iterator.ReadArray() { - item := readSTSOperator(iterator) + item := ReadSTSOperator(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/sts_operator_type.go b/clustersmgmt/v1/sts_operator_type.go index 3bfeede2f..81b4efb7e 100644 --- a/clustersmgmt/v1/sts_operator_type.go +++ b/clustersmgmt/v1/sts_operator_type.go @@ -178,6 +178,29 @@ func (l *STSOperatorList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *STSOperatorList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *STSOperatorList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *STSOperatorList) SetItems(items []*STSOperator) { + l.items = items +} + +// Items returns the items of the list. +func (l *STSOperatorList) Items() []*STSOperator { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *STSOperatorList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/sts_operator_type_json.go b/clustersmgmt/v1/sts_operator_type_json.go index e049a9b48..b289f3ee6 100644 --- a/clustersmgmt/v1/sts_operator_type_json.go +++ b/clustersmgmt/v1/sts_operator_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalSTSOperator writes a value of the 'STS_operator' type to the given writer. func MarshalSTSOperator(object *STSOperator, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSTSOperator(object, stream) + WriteSTSOperator(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalSTSOperator(object *STSOperator, writer io.Writer) error { return stream.Error } -// writeSTSOperator writes a value of the 'STS_operator' type to the given stream. -func writeSTSOperator(object *STSOperator, stream *jsoniter.Stream) { +// WriteSTSOperator writes a value of the 'STS_operator' type to the given stream. +func WriteSTSOperator(object *STSOperator, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -84,7 +84,7 @@ func writeSTSOperator(object *STSOperator, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("service_accounts") - writeStringList(object.serviceAccounts, stream) + WriteStringList(object.serviceAccounts, stream) } stream.WriteObjectEnd() } @@ -96,13 +96,13 @@ func UnmarshalSTSOperator(source interface{}) (object *STSOperator, err error) { if err != nil { return } - object = readSTSOperator(iterator) + object = ReadSTSOperator(iterator) err = iterator.Error return } -// readSTSOperator reads a value of the 'STS_operator' type from the given iterator. -func readSTSOperator(iterator *jsoniter.Iterator) *STSOperator { +// ReadSTSOperator reads a value of the 'STS_operator' type from the given iterator. +func ReadSTSOperator(iterator *jsoniter.Iterator) *STSOperator { object := &STSOperator{} for { field := iterator.ReadObject() @@ -127,7 +127,7 @@ func readSTSOperator(iterator *jsoniter.Iterator) *STSOperator { object.namespace = value object.bitmap_ |= 8 case "service_accounts": - value := readStringList(iterator) + value := ReadStringList(iterator) object.serviceAccounts = value object.bitmap_ |= 16 default: diff --git a/clustersmgmt/v1/sts_support_jump_role_list_type_json.go b/clustersmgmt/v1/sts_support_jump_role_list_type_json.go index 7e9a476ce..fe6ec5ee3 100644 --- a/clustersmgmt/v1/sts_support_jump_role_list_type_json.go +++ b/clustersmgmt/v1/sts_support_jump_role_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalStsSupportJumpRoleList(list []*StsSupportJumpRole, writer io.Writer) error { stream := helpers.NewStream(writer) - writeStsSupportJumpRoleList(list, stream) + WriteStsSupportJumpRoleList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalStsSupportJumpRoleList(list []*StsSupportJumpRole, writer io.Writer) return stream.Error } -// writeStsSupportJumpRoleList writes a list of value of the 'sts_support_jump_role' type to +// WriteStsSupportJumpRoleList writes a list of value of the 'sts_support_jump_role' type to // the given stream. -func writeStsSupportJumpRoleList(list []*StsSupportJumpRole, stream *jsoniter.Stream) { +func WriteStsSupportJumpRoleList(list []*StsSupportJumpRole, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeStsSupportJumpRole(value, stream) + WriteStsSupportJumpRole(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalStsSupportJumpRoleList(source interface{}) (items []*StsSupportJum if err != nil { return } - items = readStsSupportJumpRoleList(iterator) + items = ReadStsSupportJumpRoleList(iterator) err = iterator.Error return } -// readStsSupportJumpRoleList reads list of values of the ”sts_support_jump_role' type from +// ReadStsSupportJumpRoleList reads list of values of the ”sts_support_jump_role' type from // the given iterator. -func readStsSupportJumpRoleList(iterator *jsoniter.Iterator) []*StsSupportJumpRole { +func ReadStsSupportJumpRoleList(iterator *jsoniter.Iterator) []*StsSupportJumpRole { list := []*StsSupportJumpRole{} for iterator.ReadArray() { - item := readStsSupportJumpRole(iterator) + item := ReadStsSupportJumpRole(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/sts_support_jump_role_type.go b/clustersmgmt/v1/sts_support_jump_role_type.go index 6b5f0f130..9391b3ce3 100644 --- a/clustersmgmt/v1/sts_support_jump_role_type.go +++ b/clustersmgmt/v1/sts_support_jump_role_type.go @@ -82,6 +82,29 @@ func (l *StsSupportJumpRoleList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *StsSupportJumpRoleList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *StsSupportJumpRoleList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *StsSupportJumpRoleList) SetItems(items []*StsSupportJumpRole) { + l.items = items +} + +// Items returns the items of the list. +func (l *StsSupportJumpRoleList) Items() []*StsSupportJumpRole { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *StsSupportJumpRoleList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/sts_support_jump_role_type_json.go b/clustersmgmt/v1/sts_support_jump_role_type_json.go index 33f0a8f32..f27952a97 100644 --- a/clustersmgmt/v1/sts_support_jump_role_type_json.go +++ b/clustersmgmt/v1/sts_support_jump_role_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalStsSupportJumpRole writes a value of the 'sts_support_jump_role' type to the given writer. func MarshalStsSupportJumpRole(object *StsSupportJumpRole, writer io.Writer) error { stream := helpers.NewStream(writer) - writeStsSupportJumpRole(object, stream) + WriteStsSupportJumpRole(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalStsSupportJumpRole(object *StsSupportJumpRole, writer io.Writer) err return stream.Error } -// writeStsSupportJumpRole writes a value of the 'sts_support_jump_role' type to the given stream. -func writeStsSupportJumpRole(object *StsSupportJumpRole, stream *jsoniter.Stream) { +// WriteStsSupportJumpRole writes a value of the 'sts_support_jump_role' type to the given stream. +func WriteStsSupportJumpRole(object *StsSupportJumpRole, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalStsSupportJumpRole(source interface{}) (object *StsSupportJumpRole if err != nil { return } - object = readStsSupportJumpRole(iterator) + object = ReadStsSupportJumpRole(iterator) err = iterator.Error return } -// readStsSupportJumpRole reads a value of the 'sts_support_jump_role' type from the given iterator. -func readStsSupportJumpRole(iterator *jsoniter.Iterator) *StsSupportJumpRole { +// ReadStsSupportJumpRole reads a value of the 'sts_support_jump_role' type from the given iterator. +func ReadStsSupportJumpRole(iterator *jsoniter.Iterator) *StsSupportJumpRole { object := &StsSupportJumpRole{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/sts_type.go b/clustersmgmt/v1/sts_type.go index b74c0d8a7..b7b93f81e 100644 --- a/clustersmgmt/v1/sts_type.go +++ b/clustersmgmt/v1/sts_type.go @@ -346,6 +346,29 @@ func (l *STSList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *STSList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *STSList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *STSList) SetItems(items []*STS) { + l.items = items +} + +// Items returns the items of the list. +func (l *STSList) Items() []*STS { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *STSList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/sts_type_json.go b/clustersmgmt/v1/sts_type_json.go index 4dcba430f..0c766bba0 100644 --- a/clustersmgmt/v1/sts_type_json.go +++ b/clustersmgmt/v1/sts_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalSTS writes a value of the 'STS' type to the given writer. func MarshalSTS(object *STS, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSTS(object, stream) + WriteSTS(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalSTS(object *STS, writer io.Writer) error { return stream.Error } -// writeSTS writes a value of the 'STS' type to the given stream. -func writeSTS(object *STS, stream *jsoniter.Stream) { +// WriteSTS writes a value of the 'STS' type to the given stream. +func WriteSTS(object *STS, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -84,7 +84,7 @@ func writeSTS(object *STS, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("instance_iam_roles") - writeInstanceIAMRoles(object.instanceIAMRoles, stream) + WriteInstanceIAMRoles(object.instanceIAMRoles, stream) count++ } present_ = object.bitmap_&32 != 0 @@ -102,7 +102,7 @@ func writeSTS(object *STS, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("oidc_config") - writeOidcConfig(object.oidcConfig, stream) + WriteOidcConfig(object.oidcConfig, stream) count++ } present_ = object.bitmap_&128 != 0 && object.operatorIAMRoles != nil @@ -111,7 +111,7 @@ func writeSTS(object *STS, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("operator_iam_roles") - writeOperatorIAMRoleList(object.operatorIAMRoles, stream) + WriteOperatorIAMRoleList(object.operatorIAMRoles, stream) count++ } present_ = object.bitmap_&256 != 0 @@ -159,13 +159,13 @@ func UnmarshalSTS(source interface{}) (object *STS, err error) { if err != nil { return } - object = readSTS(iterator) + object = ReadSTS(iterator) err = iterator.Error return } -// readSTS reads a value of the 'STS' type from the given iterator. -func readSTS(iterator *jsoniter.Iterator) *STS { +// ReadSTS reads a value of the 'STS' type from the given iterator. +func ReadSTS(iterator *jsoniter.Iterator) *STS { object := &STS{} for { field := iterator.ReadObject() @@ -190,7 +190,7 @@ func readSTS(iterator *jsoniter.Iterator) *STS { object.externalID = value object.bitmap_ |= 8 case "instance_iam_roles": - value := readInstanceIAMRoles(iterator) + value := ReadInstanceIAMRoles(iterator) object.instanceIAMRoles = value object.bitmap_ |= 16 case "managed_policies": @@ -198,11 +198,11 @@ func readSTS(iterator *jsoniter.Iterator) *STS { object.managedPolicies = value object.bitmap_ |= 32 case "oidc_config": - value := readOidcConfig(iterator) + value := ReadOidcConfig(iterator) object.oidcConfig = value object.bitmap_ |= 64 case "operator_iam_roles": - value := readOperatorIAMRoleList(iterator) + value := ReadOperatorIAMRoleList(iterator) object.operatorIAMRoles = value object.bitmap_ |= 128 case "operator_role_prefix": diff --git a/clustersmgmt/v1/subnet_network_verification_list_type_json.go b/clustersmgmt/v1/subnet_network_verification_list_type_json.go index cf89fc249..c22d9b5b8 100644 --- a/clustersmgmt/v1/subnet_network_verification_list_type_json.go +++ b/clustersmgmt/v1/subnet_network_verification_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSubnetNetworkVerificationList(list []*SubnetNetworkVerification, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSubnetNetworkVerificationList(list, stream) + WriteSubnetNetworkVerificationList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalSubnetNetworkVerificationList(list []*SubnetNetworkVerification, wri return stream.Error } -// writeSubnetNetworkVerificationList writes a list of value of the 'subnet_network_verification' type to +// WriteSubnetNetworkVerificationList writes a list of value of the 'subnet_network_verification' type to // the given stream. -func writeSubnetNetworkVerificationList(list []*SubnetNetworkVerification, stream *jsoniter.Stream) { +func WriteSubnetNetworkVerificationList(list []*SubnetNetworkVerification, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeSubnetNetworkVerification(value, stream) + WriteSubnetNetworkVerification(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalSubnetNetworkVerificationList(source interface{}) (items []*Subnet if err != nil { return } - items = readSubnetNetworkVerificationList(iterator) + items = ReadSubnetNetworkVerificationList(iterator) err = iterator.Error return } -// readSubnetNetworkVerificationList reads list of values of the ”subnet_network_verification' type from +// ReadSubnetNetworkVerificationList reads list of values of the ”subnet_network_verification' type from // the given iterator. -func readSubnetNetworkVerificationList(iterator *jsoniter.Iterator) []*SubnetNetworkVerification { +func ReadSubnetNetworkVerificationList(iterator *jsoniter.Iterator) []*SubnetNetworkVerification { list := []*SubnetNetworkVerification{} for iterator.ReadArray() { - item := readSubnetNetworkVerification(iterator) + item := ReadSubnetNetworkVerification(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/subnet_network_verification_type.go b/clustersmgmt/v1/subnet_network_verification_type.go index f193e5463..e20957db5 100644 --- a/clustersmgmt/v1/subnet_network_verification_type.go +++ b/clustersmgmt/v1/subnet_network_verification_type.go @@ -53,7 +53,7 @@ func (o *SubnetNetworkVerification) Kind() string { return SubnetNetworkVerificationKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *SubnetNetworkVerification) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -252,6 +252,29 @@ func (l *SubnetNetworkVerificationList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *SubnetNetworkVerificationList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *SubnetNetworkVerificationList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *SubnetNetworkVerificationList) SetItems(items []*SubnetNetworkVerification) { + l.items = items +} + +// Items returns the items of the list. +func (l *SubnetNetworkVerificationList) Items() []*SubnetNetworkVerification { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *SubnetNetworkVerificationList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/subnet_network_verification_type_json.go b/clustersmgmt/v1/subnet_network_verification_type_json.go index ffb0975d7..c81a0f705 100644 --- a/clustersmgmt/v1/subnet_network_verification_type_json.go +++ b/clustersmgmt/v1/subnet_network_verification_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalSubnetNetworkVerification writes a value of the 'subnet_network_verification' type to the given writer. func MarshalSubnetNetworkVerification(object *SubnetNetworkVerification, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSubnetNetworkVerification(object, stream) + WriteSubnetNetworkVerification(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalSubnetNetworkVerification(object *SubnetNetworkVerification, writer return stream.Error } -// writeSubnetNetworkVerification writes a value of the 'subnet_network_verification' type to the given stream. -func writeSubnetNetworkVerification(object *SubnetNetworkVerification, stream *jsoniter.Stream) { +// WriteSubnetNetworkVerification writes a value of the 'subnet_network_verification' type to the given stream. +func WriteSubnetNetworkVerification(object *SubnetNetworkVerification, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -72,7 +72,7 @@ func writeSubnetNetworkVerification(object *SubnetNetworkVerification, stream *j stream.WriteMore() } stream.WriteObjectField("details") - writeStringList(object.details, stream) + WriteStringList(object.details, stream) count++ } present_ = object.bitmap_&16 != 0 @@ -131,13 +131,13 @@ func UnmarshalSubnetNetworkVerification(source interface{}) (object *SubnetNetwo if err != nil { return } - object = readSubnetNetworkVerification(iterator) + object = ReadSubnetNetworkVerification(iterator) err = iterator.Error return } -// readSubnetNetworkVerification reads a value of the 'subnet_network_verification' type from the given iterator. -func readSubnetNetworkVerification(iterator *jsoniter.Iterator) *SubnetNetworkVerification { +// ReadSubnetNetworkVerification reads a value of the 'subnet_network_verification' type from the given iterator. +func ReadSubnetNetworkVerification(iterator *jsoniter.Iterator) *SubnetNetworkVerification { object := &SubnetNetworkVerification{} for { field := iterator.ReadObject() @@ -157,7 +157,7 @@ func readSubnetNetworkVerification(iterator *jsoniter.Iterator) *SubnetNetworkVe object.href = iterator.ReadString() object.bitmap_ |= 4 case "details": - value := readStringList(iterator) + value := ReadStringList(iterator) object.details = value object.bitmap_ |= 8 case "platform": diff --git a/clustersmgmt/v1/subnetwork_list_type_json.go b/clustersmgmt/v1/subnetwork_list_type_json.go index 7a27ae8fd..76f2b2373 100644 --- a/clustersmgmt/v1/subnetwork_list_type_json.go +++ b/clustersmgmt/v1/subnetwork_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSubnetworkList(list []*Subnetwork, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSubnetworkList(list, stream) + WriteSubnetworkList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalSubnetworkList(list []*Subnetwork, writer io.Writer) error { return stream.Error } -// writeSubnetworkList writes a list of value of the 'subnetwork' type to +// WriteSubnetworkList writes a list of value of the 'subnetwork' type to // the given stream. -func writeSubnetworkList(list []*Subnetwork, stream *jsoniter.Stream) { +func WriteSubnetworkList(list []*Subnetwork, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeSubnetwork(value, stream) + WriteSubnetwork(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalSubnetworkList(source interface{}) (items []*Subnetwork, err error if err != nil { return } - items = readSubnetworkList(iterator) + items = ReadSubnetworkList(iterator) err = iterator.Error return } -// readSubnetworkList reads list of values of the ”subnetwork' type from +// ReadSubnetworkList reads list of values of the ”subnetwork' type from // the given iterator. -func readSubnetworkList(iterator *jsoniter.Iterator) []*Subnetwork { +func ReadSubnetworkList(iterator *jsoniter.Iterator) []*Subnetwork { list := []*Subnetwork{} for iterator.ReadArray() { - item := readSubnetwork(iterator) + item := ReadSubnetwork(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/subnetwork_type.go b/clustersmgmt/v1/subnetwork_type.go index 116211fe9..740b50fd8 100644 --- a/clustersmgmt/v1/subnetwork_type.go +++ b/clustersmgmt/v1/subnetwork_type.go @@ -202,6 +202,29 @@ func (l *SubnetworkList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *SubnetworkList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *SubnetworkList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *SubnetworkList) SetItems(items []*Subnetwork) { + l.items = items +} + +// Items returns the items of the list. +func (l *SubnetworkList) Items() []*Subnetwork { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *SubnetworkList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/subnetwork_type_json.go b/clustersmgmt/v1/subnetwork_type_json.go index 04c6a69e7..fbc22a790 100644 --- a/clustersmgmt/v1/subnetwork_type_json.go +++ b/clustersmgmt/v1/subnetwork_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalSubnetwork writes a value of the 'subnetwork' type to the given writer. func MarshalSubnetwork(object *Subnetwork, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSubnetwork(object, stream) + WriteSubnetwork(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalSubnetwork(object *Subnetwork, writer io.Writer) error { return stream.Error } -// writeSubnetwork writes a value of the 'subnetwork' type to the given stream. -func writeSubnetwork(object *Subnetwork, stream *jsoniter.Stream) { +// WriteSubnetwork writes a value of the 'subnetwork' type to the given stream. +func WriteSubnetwork(object *Subnetwork, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -105,13 +105,13 @@ func UnmarshalSubnetwork(source interface{}) (object *Subnetwork, err error) { if err != nil { return } - object = readSubnetwork(iterator) + object = ReadSubnetwork(iterator) err = iterator.Error return } -// readSubnetwork reads a value of the 'subnetwork' type from the given iterator. -func readSubnetwork(iterator *jsoniter.Iterator) *Subnetwork { +// ReadSubnetwork reads a value of the 'subnetwork' type from the given iterator. +func ReadSubnetwork(iterator *jsoniter.Iterator) *Subnetwork { object := &Subnetwork{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/subscription_list_type_json.go b/clustersmgmt/v1/subscription_list_type_json.go index 817f99ae9..9c9cc173d 100644 --- a/clustersmgmt/v1/subscription_list_type_json.go +++ b/clustersmgmt/v1/subscription_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSubscriptionList(list []*Subscription, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSubscriptionList(list, stream) + WriteSubscriptionList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalSubscriptionList(list []*Subscription, writer io.Writer) error { return stream.Error } -// writeSubscriptionList writes a list of value of the 'subscription' type to +// WriteSubscriptionList writes a list of value of the 'subscription' type to // the given stream. -func writeSubscriptionList(list []*Subscription, stream *jsoniter.Stream) { +func WriteSubscriptionList(list []*Subscription, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeSubscription(value, stream) + WriteSubscription(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalSubscriptionList(source interface{}) (items []*Subscription, err e if err != nil { return } - items = readSubscriptionList(iterator) + items = ReadSubscriptionList(iterator) err = iterator.Error return } -// readSubscriptionList reads list of values of the ”subscription' type from +// ReadSubscriptionList reads list of values of the ”subscription' type from // the given iterator. -func readSubscriptionList(iterator *jsoniter.Iterator) []*Subscription { +func ReadSubscriptionList(iterator *jsoniter.Iterator) []*Subscription { list := []*Subscription{} for iterator.ReadArray() { - item := readSubscription(iterator) + item := ReadSubscription(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/subscription_type.go b/clustersmgmt/v1/subscription_type.go index 59e8b1a97..14f46b8ff 100644 --- a/clustersmgmt/v1/subscription_type.go +++ b/clustersmgmt/v1/subscription_type.go @@ -51,7 +51,7 @@ func (o *Subscription) Kind() string { return SubscriptionKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Subscription) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -158,6 +158,29 @@ func (l *SubscriptionList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *SubscriptionList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *SubscriptionList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *SubscriptionList) SetItems(items []*Subscription) { + l.items = items +} + +// Items returns the items of the list. +func (l *SubscriptionList) Items() []*Subscription { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *SubscriptionList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/subscription_type_json.go b/clustersmgmt/v1/subscription_type_json.go index 37eacdaa2..954c98ee8 100644 --- a/clustersmgmt/v1/subscription_type_json.go +++ b/clustersmgmt/v1/subscription_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalSubscription writes a value of the 'subscription' type to the given writer. func MarshalSubscription(object *Subscription, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSubscription(object, stream) + WriteSubscription(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalSubscription(object *Subscription, writer io.Writer) error { return stream.Error } -// writeSubscription writes a value of the 'subscription' type to the given stream. -func writeSubscription(object *Subscription, stream *jsoniter.Stream) { +// WriteSubscription writes a value of the 'subscription' type to the given stream. +func WriteSubscription(object *Subscription, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -73,13 +73,13 @@ func UnmarshalSubscription(source interface{}) (object *Subscription, err error) if err != nil { return } - object = readSubscription(iterator) + object = ReadSubscription(iterator) err = iterator.Error return } -// readSubscription reads a value of the 'subscription' type from the given iterator. -func readSubscription(iterator *jsoniter.Iterator) *Subscription { +// ReadSubscription reads a value of the 'subscription' type from the given iterator. +func ReadSubscription(iterator *jsoniter.Iterator) *Subscription { object := &Subscription{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/syncset_list_type_json.go b/clustersmgmt/v1/syncset_list_type_json.go index aa0ebe87c..70a215663 100644 --- a/clustersmgmt/v1/syncset_list_type_json.go +++ b/clustersmgmt/v1/syncset_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSyncsetList(list []*Syncset, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSyncsetList(list, stream) + WriteSyncsetList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalSyncsetList(list []*Syncset, writer io.Writer) error { return stream.Error } -// writeSyncsetList writes a list of value of the 'syncset' type to +// WriteSyncsetList writes a list of value of the 'syncset' type to // the given stream. -func writeSyncsetList(list []*Syncset, stream *jsoniter.Stream) { +func WriteSyncsetList(list []*Syncset, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeSyncset(value, stream) + WriteSyncset(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalSyncsetList(source interface{}) (items []*Syncset, err error) { if err != nil { return } - items = readSyncsetList(iterator) + items = ReadSyncsetList(iterator) err = iterator.Error return } -// readSyncsetList reads list of values of the ”syncset' type from +// ReadSyncsetList reads list of values of the ”syncset' type from // the given iterator. -func readSyncsetList(iterator *jsoniter.Iterator) []*Syncset { +func ReadSyncsetList(iterator *jsoniter.Iterator) []*Syncset { list := []*Syncset{} for iterator.ReadArray() { - item := readSyncset(iterator) + item := ReadSyncset(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/syncset_type.go b/clustersmgmt/v1/syncset_type.go index 2ac5a4670..6e417461e 100644 --- a/clustersmgmt/v1/syncset_type.go +++ b/clustersmgmt/v1/syncset_type.go @@ -52,7 +52,7 @@ func (o *Syncset) Kind() string { return SyncsetKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Syncset) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -182,6 +182,29 @@ func (l *SyncsetList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *SyncsetList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *SyncsetList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *SyncsetList) SetItems(items []*Syncset) { + l.items = items +} + +// Items returns the items of the list. +func (l *SyncsetList) Items() []*Syncset { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *SyncsetList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/syncset_type_json.go b/clustersmgmt/v1/syncset_type_json.go index a33c93c6d..6795cb294 100644 --- a/clustersmgmt/v1/syncset_type_json.go +++ b/clustersmgmt/v1/syncset_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalSyncset writes a value of the 'syncset' type to the given writer. func MarshalSyncset(object *Syncset, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSyncset(object, stream) + WriteSyncset(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalSyncset(object *Syncset, writer io.Writer) error { return stream.Error } -// writeSyncset writes a value of the 'syncset' type to the given stream. -func writeSyncset(object *Syncset, stream *jsoniter.Stream) { +// WriteSyncset writes a value of the 'syncset' type to the given stream. +func WriteSyncset(object *Syncset, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -71,7 +71,7 @@ func writeSyncset(object *Syncset, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("resources") - writeInterfaceList(object.resources, stream) + WriteInterfaceList(object.resources, stream) } stream.WriteObjectEnd() } @@ -83,13 +83,13 @@ func UnmarshalSyncset(source interface{}) (object *Syncset, err error) { if err != nil { return } - object = readSyncset(iterator) + object = ReadSyncset(iterator) err = iterator.Error return } -// readSyncset reads a value of the 'syncset' type from the given iterator. -func readSyncset(iterator *jsoniter.Iterator) *Syncset { +// ReadSyncset reads a value of the 'syncset' type from the given iterator. +func ReadSyncset(iterator *jsoniter.Iterator) *Syncset { object := &Syncset{} for { field := iterator.ReadObject() @@ -109,7 +109,7 @@ func readSyncset(iterator *jsoniter.Iterator) *Syncset { object.href = iterator.ReadString() object.bitmap_ |= 4 case "resources": - value := readInterfaceList(iterator) + value := ReadInterfaceList(iterator) object.resources = value object.bitmap_ |= 8 default: diff --git a/clustersmgmt/v1/syncsets_resource_json.go b/clustersmgmt/v1/syncsets_resource_json.go index 4af97d6f1..194438fc2 100644 --- a/clustersmgmt/v1/syncsets_resource_json.go +++ b/clustersmgmt/v1/syncsets_resource_json.go @@ -57,7 +57,7 @@ func readSyncsetsListResponse(response *SyncsetsListResponse, reader io.Reader) value := iterator.ReadInt() response.total = &value case "items": - items := readSyncsetList(iterator) + items := ReadSyncsetList(iterator) response.items = &SyncsetList{ items: items, } diff --git a/clustersmgmt/v1/taint_list_type_json.go b/clustersmgmt/v1/taint_list_type_json.go index 2f9f1d5c5..e42052ac5 100644 --- a/clustersmgmt/v1/taint_list_type_json.go +++ b/clustersmgmt/v1/taint_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalTaintList(list []*Taint, writer io.Writer) error { stream := helpers.NewStream(writer) - writeTaintList(list, stream) + WriteTaintList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalTaintList(list []*Taint, writer io.Writer) error { return stream.Error } -// writeTaintList writes a list of value of the 'taint' type to +// WriteTaintList writes a list of value of the 'taint' type to // the given stream. -func writeTaintList(list []*Taint, stream *jsoniter.Stream) { +func WriteTaintList(list []*Taint, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeTaint(value, stream) + WriteTaint(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalTaintList(source interface{}) (items []*Taint, err error) { if err != nil { return } - items = readTaintList(iterator) + items = ReadTaintList(iterator) err = iterator.Error return } -// readTaintList reads list of values of the ”taint' type from +// ReadTaintList reads list of values of the ”taint' type from // the given iterator. -func readTaintList(iterator *jsoniter.Iterator) []*Taint { +func ReadTaintList(iterator *jsoniter.Iterator) []*Taint { list := []*Taint{} for iterator.ReadArray() { - item := readTaint(iterator) + item := ReadTaint(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/taint_type.go b/clustersmgmt/v1/taint_type.go index 3b9f61093..576b6453a 100644 --- a/clustersmgmt/v1/taint_type.go +++ b/clustersmgmt/v1/taint_type.go @@ -130,6 +130,29 @@ func (l *TaintList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *TaintList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *TaintList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *TaintList) SetItems(items []*Taint) { + l.items = items +} + +// Items returns the items of the list. +func (l *TaintList) Items() []*Taint { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *TaintList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/taint_type_json.go b/clustersmgmt/v1/taint_type_json.go index 751d063ea..50bff2273 100644 --- a/clustersmgmt/v1/taint_type_json.go +++ b/clustersmgmt/v1/taint_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalTaint writes a value of the 'taint' type to the given writer. func MarshalTaint(object *Taint, writer io.Writer) error { stream := helpers.NewStream(writer) - writeTaint(object, stream) + WriteTaint(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalTaint(object *Taint, writer io.Writer) error { return stream.Error } -// writeTaint writes a value of the 'taint' type to the given stream. -func writeTaint(object *Taint, stream *jsoniter.Stream) { +// WriteTaint writes a value of the 'taint' type to the given stream. +func WriteTaint(object *Taint, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -78,13 +78,13 @@ func UnmarshalTaint(source interface{}) (object *Taint, err error) { if err != nil { return } - object = readTaint(iterator) + object = ReadTaint(iterator) err = iterator.Error return } -// readTaint reads a value of the 'taint' type from the given iterator. -func readTaint(iterator *jsoniter.Iterator) *Taint { +// ReadTaint reads a value of the 'taint' type from the given iterator. +func ReadTaint(iterator *jsoniter.Iterator) *Taint { object := &Taint{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/token_claim_mappings_list_type_json.go b/clustersmgmt/v1/token_claim_mappings_list_type_json.go index ec7c1305d..39f023913 100644 --- a/clustersmgmt/v1/token_claim_mappings_list_type_json.go +++ b/clustersmgmt/v1/token_claim_mappings_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalTokenClaimMappingsList(list []*TokenClaimMappings, writer io.Writer) error { stream := helpers.NewStream(writer) - writeTokenClaimMappingsList(list, stream) + WriteTokenClaimMappingsList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalTokenClaimMappingsList(list []*TokenClaimMappings, writer io.Writer) return stream.Error } -// writeTokenClaimMappingsList writes a list of value of the 'token_claim_mappings' type to +// WriteTokenClaimMappingsList writes a list of value of the 'token_claim_mappings' type to // the given stream. -func writeTokenClaimMappingsList(list []*TokenClaimMappings, stream *jsoniter.Stream) { +func WriteTokenClaimMappingsList(list []*TokenClaimMappings, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeTokenClaimMappings(value, stream) + WriteTokenClaimMappings(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalTokenClaimMappingsList(source interface{}) (items []*TokenClaimMap if err != nil { return } - items = readTokenClaimMappingsList(iterator) + items = ReadTokenClaimMappingsList(iterator) err = iterator.Error return } -// readTokenClaimMappingsList reads list of values of the ”token_claim_mappings' type from +// ReadTokenClaimMappingsList reads list of values of the ”token_claim_mappings' type from // the given iterator. -func readTokenClaimMappingsList(iterator *jsoniter.Iterator) []*TokenClaimMappings { +func ReadTokenClaimMappingsList(iterator *jsoniter.Iterator) []*TokenClaimMappings { list := []*TokenClaimMappings{} for iterator.ReadArray() { - item := readTokenClaimMappings(iterator) + item := ReadTokenClaimMappings(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/token_claim_mappings_type.go b/clustersmgmt/v1/token_claim_mappings_type.go index 4949f903f..116e72fee 100644 --- a/clustersmgmt/v1/token_claim_mappings_type.go +++ b/clustersmgmt/v1/token_claim_mappings_type.go @@ -106,6 +106,29 @@ func (l *TokenClaimMappingsList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *TokenClaimMappingsList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *TokenClaimMappingsList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *TokenClaimMappingsList) SetItems(items []*TokenClaimMappings) { + l.items = items +} + +// Items returns the items of the list. +func (l *TokenClaimMappingsList) Items() []*TokenClaimMappings { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *TokenClaimMappingsList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/token_claim_mappings_type_json.go b/clustersmgmt/v1/token_claim_mappings_type_json.go index 9c0ca2016..0c54dcd9c 100644 --- a/clustersmgmt/v1/token_claim_mappings_type_json.go +++ b/clustersmgmt/v1/token_claim_mappings_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalTokenClaimMappings writes a value of the 'token_claim_mappings' type to the given writer. func MarshalTokenClaimMappings(object *TokenClaimMappings, writer io.Writer) error { stream := helpers.NewStream(writer) - writeTokenClaimMappings(object, stream) + WriteTokenClaimMappings(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalTokenClaimMappings(object *TokenClaimMappings, writer io.Writer) err return stream.Error } -// writeTokenClaimMappings writes a value of the 'token_claim_mappings' type to the given stream. -func writeTokenClaimMappings(object *TokenClaimMappings, stream *jsoniter.Stream) { +// WriteTokenClaimMappings writes a value of the 'token_claim_mappings' type to the given stream. +func WriteTokenClaimMappings(object *TokenClaimMappings, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeTokenClaimMappings(object *TokenClaimMappings, stream *jsoniter.Stream stream.WriteMore() } stream.WriteObjectField("groups") - writeGroupsClaim(object.groups, stream) + WriteGroupsClaim(object.groups, stream) count++ } present_ = object.bitmap_&2 != 0 && object.userName != nil @@ -57,7 +57,7 @@ func writeTokenClaimMappings(object *TokenClaimMappings, stream *jsoniter.Stream stream.WriteMore() } stream.WriteObjectField("username") - writeUsernameClaim(object.userName, stream) + WriteUsernameClaim(object.userName, stream) } stream.WriteObjectEnd() } @@ -69,13 +69,13 @@ func UnmarshalTokenClaimMappings(source interface{}) (object *TokenClaimMappings if err != nil { return } - object = readTokenClaimMappings(iterator) + object = ReadTokenClaimMappings(iterator) err = iterator.Error return } -// readTokenClaimMappings reads a value of the 'token_claim_mappings' type from the given iterator. -func readTokenClaimMappings(iterator *jsoniter.Iterator) *TokenClaimMappings { +// ReadTokenClaimMappings reads a value of the 'token_claim_mappings' type from the given iterator. +func ReadTokenClaimMappings(iterator *jsoniter.Iterator) *TokenClaimMappings { object := &TokenClaimMappings{} for { field := iterator.ReadObject() @@ -84,11 +84,11 @@ func readTokenClaimMappings(iterator *jsoniter.Iterator) *TokenClaimMappings { } switch field { case "groups": - value := readGroupsClaim(iterator) + value := ReadGroupsClaim(iterator) object.groups = value object.bitmap_ |= 1 case "username": - value := readUsernameClaim(iterator) + value := ReadUsernameClaim(iterator) object.userName = value object.bitmap_ |= 2 default: diff --git a/clustersmgmt/v1/token_claim_validation_rule_list_type_json.go b/clustersmgmt/v1/token_claim_validation_rule_list_type_json.go index 04765ceb0..cb7fffd04 100644 --- a/clustersmgmt/v1/token_claim_validation_rule_list_type_json.go +++ b/clustersmgmt/v1/token_claim_validation_rule_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalTokenClaimValidationRuleList(list []*TokenClaimValidationRule, writer io.Writer) error { stream := helpers.NewStream(writer) - writeTokenClaimValidationRuleList(list, stream) + WriteTokenClaimValidationRuleList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalTokenClaimValidationRuleList(list []*TokenClaimValidationRule, write return stream.Error } -// writeTokenClaimValidationRuleList writes a list of value of the 'token_claim_validation_rule' type to +// WriteTokenClaimValidationRuleList writes a list of value of the 'token_claim_validation_rule' type to // the given stream. -func writeTokenClaimValidationRuleList(list []*TokenClaimValidationRule, stream *jsoniter.Stream) { +func WriteTokenClaimValidationRuleList(list []*TokenClaimValidationRule, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeTokenClaimValidationRule(value, stream) + WriteTokenClaimValidationRule(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalTokenClaimValidationRuleList(source interface{}) (items []*TokenCl if err != nil { return } - items = readTokenClaimValidationRuleList(iterator) + items = ReadTokenClaimValidationRuleList(iterator) err = iterator.Error return } -// readTokenClaimValidationRuleList reads list of values of the ”token_claim_validation_rule' type from +// ReadTokenClaimValidationRuleList reads list of values of the ”token_claim_validation_rule' type from // the given iterator. -func readTokenClaimValidationRuleList(iterator *jsoniter.Iterator) []*TokenClaimValidationRule { +func ReadTokenClaimValidationRuleList(iterator *jsoniter.Iterator) []*TokenClaimValidationRule { list := []*TokenClaimValidationRule{} for iterator.ReadArray() { - item := readTokenClaimValidationRule(iterator) + item := ReadTokenClaimValidationRule(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/token_claim_validation_rule_type.go b/clustersmgmt/v1/token_claim_validation_rule_type.go index 66b8cfca3..c7dea7a5e 100644 --- a/clustersmgmt/v1/token_claim_validation_rule_type.go +++ b/clustersmgmt/v1/token_claim_validation_rule_type.go @@ -106,6 +106,29 @@ func (l *TokenClaimValidationRuleList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *TokenClaimValidationRuleList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *TokenClaimValidationRuleList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *TokenClaimValidationRuleList) SetItems(items []*TokenClaimValidationRule) { + l.items = items +} + +// Items returns the items of the list. +func (l *TokenClaimValidationRuleList) Items() []*TokenClaimValidationRule { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *TokenClaimValidationRuleList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/token_claim_validation_rule_type_json.go b/clustersmgmt/v1/token_claim_validation_rule_type_json.go index 67579a20e..6b250c45a 100644 --- a/clustersmgmt/v1/token_claim_validation_rule_type_json.go +++ b/clustersmgmt/v1/token_claim_validation_rule_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalTokenClaimValidationRule writes a value of the 'token_claim_validation_rule' type to the given writer. func MarshalTokenClaimValidationRule(object *TokenClaimValidationRule, writer io.Writer) error { stream := helpers.NewStream(writer) - writeTokenClaimValidationRule(object, stream) + WriteTokenClaimValidationRule(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalTokenClaimValidationRule(object *TokenClaimValidationRule, writer io return stream.Error } -// writeTokenClaimValidationRule writes a value of the 'token_claim_validation_rule' type to the given stream. -func writeTokenClaimValidationRule(object *TokenClaimValidationRule, stream *jsoniter.Stream) { +// WriteTokenClaimValidationRule writes a value of the 'token_claim_validation_rule' type to the given stream. +func WriteTokenClaimValidationRule(object *TokenClaimValidationRule, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalTokenClaimValidationRule(source interface{}) (object *TokenClaimVa if err != nil { return } - object = readTokenClaimValidationRule(iterator) + object = ReadTokenClaimValidationRule(iterator) err = iterator.Error return } -// readTokenClaimValidationRule reads a value of the 'token_claim_validation_rule' type from the given iterator. -func readTokenClaimValidationRule(iterator *jsoniter.Iterator) *TokenClaimValidationRule { +// ReadTokenClaimValidationRule reads a value of the 'token_claim_validation_rule' type from the given iterator. +func ReadTokenClaimValidationRule(iterator *jsoniter.Iterator) *TokenClaimValidationRule { object := &TokenClaimValidationRule{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/token_issuer_list_type_json.go b/clustersmgmt/v1/token_issuer_list_type_json.go index 61292e07e..d10c40c8b 100644 --- a/clustersmgmt/v1/token_issuer_list_type_json.go +++ b/clustersmgmt/v1/token_issuer_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalTokenIssuerList(list []*TokenIssuer, writer io.Writer) error { stream := helpers.NewStream(writer) - writeTokenIssuerList(list, stream) + WriteTokenIssuerList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalTokenIssuerList(list []*TokenIssuer, writer io.Writer) error { return stream.Error } -// writeTokenIssuerList writes a list of value of the 'token_issuer' type to +// WriteTokenIssuerList writes a list of value of the 'token_issuer' type to // the given stream. -func writeTokenIssuerList(list []*TokenIssuer, stream *jsoniter.Stream) { +func WriteTokenIssuerList(list []*TokenIssuer, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeTokenIssuer(value, stream) + WriteTokenIssuer(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalTokenIssuerList(source interface{}) (items []*TokenIssuer, err err if err != nil { return } - items = readTokenIssuerList(iterator) + items = ReadTokenIssuerList(iterator) err = iterator.Error return } -// readTokenIssuerList reads list of values of the ”token_issuer' type from +// ReadTokenIssuerList reads list of values of the ”token_issuer' type from // the given iterator. -func readTokenIssuerList(iterator *jsoniter.Iterator) []*TokenIssuer { +func ReadTokenIssuerList(iterator *jsoniter.Iterator) []*TokenIssuer { list := []*TokenIssuer{} for iterator.ReadArray() { - item := readTokenIssuer(iterator) + item := ReadTokenIssuer(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/token_issuer_type.go b/clustersmgmt/v1/token_issuer_type.go index b7295d20c..c29e1e711 100644 --- a/clustersmgmt/v1/token_issuer_type.go +++ b/clustersmgmt/v1/token_issuer_type.go @@ -136,6 +136,29 @@ func (l *TokenIssuerList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *TokenIssuerList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *TokenIssuerList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *TokenIssuerList) SetItems(items []*TokenIssuer) { + l.items = items +} + +// Items returns the items of the list. +func (l *TokenIssuerList) Items() []*TokenIssuer { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *TokenIssuerList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/token_issuer_type_json.go b/clustersmgmt/v1/token_issuer_type_json.go index a674dac2d..80d17d273 100644 --- a/clustersmgmt/v1/token_issuer_type_json.go +++ b/clustersmgmt/v1/token_issuer_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalTokenIssuer writes a value of the 'token_issuer' type to the given writer. func MarshalTokenIssuer(object *TokenIssuer, writer io.Writer) error { stream := helpers.NewStream(writer) - writeTokenIssuer(object, stream) + WriteTokenIssuer(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalTokenIssuer(object *TokenIssuer, writer io.Writer) error { return stream.Error } -// writeTokenIssuer writes a value of the 'token_issuer' type to the given stream. -func writeTokenIssuer(object *TokenIssuer, stream *jsoniter.Stream) { +// WriteTokenIssuer writes a value of the 'token_issuer' type to the given stream. +func WriteTokenIssuer(object *TokenIssuer, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -66,7 +66,7 @@ func writeTokenIssuer(object *TokenIssuer, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("audiences") - writeStringList(object.audiences, stream) + WriteStringList(object.audiences, stream) } stream.WriteObjectEnd() } @@ -78,13 +78,13 @@ func UnmarshalTokenIssuer(source interface{}) (object *TokenIssuer, err error) { if err != nil { return } - object = readTokenIssuer(iterator) + object = ReadTokenIssuer(iterator) err = iterator.Error return } -// readTokenIssuer reads a value of the 'token_issuer' type from the given iterator. -func readTokenIssuer(iterator *jsoniter.Iterator) *TokenIssuer { +// ReadTokenIssuer reads a value of the 'token_issuer' type from the given iterator. +func ReadTokenIssuer(iterator *jsoniter.Iterator) *TokenIssuer { object := &TokenIssuer{} for { field := iterator.ReadObject() @@ -101,7 +101,7 @@ func readTokenIssuer(iterator *jsoniter.Iterator) *TokenIssuer { object.url = value object.bitmap_ |= 2 case "audiences": - value := readStringList(iterator) + value := ReadStringList(iterator) object.audiences = value object.bitmap_ |= 4 default: diff --git a/clustersmgmt/v1/trusted_ip_list_type_json.go b/clustersmgmt/v1/trusted_ip_list_type_json.go index 5ebd77e91..eb93add1d 100644 --- a/clustersmgmt/v1/trusted_ip_list_type_json.go +++ b/clustersmgmt/v1/trusted_ip_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalTrustedIpList(list []*TrustedIp, writer io.Writer) error { stream := helpers.NewStream(writer) - writeTrustedIpList(list, stream) + WriteTrustedIpList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalTrustedIpList(list []*TrustedIp, writer io.Writer) error { return stream.Error } -// writeTrustedIpList writes a list of value of the 'trusted_ip' type to +// WriteTrustedIpList writes a list of value of the 'trusted_ip' type to // the given stream. -func writeTrustedIpList(list []*TrustedIp, stream *jsoniter.Stream) { +func WriteTrustedIpList(list []*TrustedIp, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeTrustedIp(value, stream) + WriteTrustedIp(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalTrustedIpList(source interface{}) (items []*TrustedIp, err error) if err != nil { return } - items = readTrustedIpList(iterator) + items = ReadTrustedIpList(iterator) err = iterator.Error return } -// readTrustedIpList reads list of values of the ”trusted_ip' type from +// ReadTrustedIpList reads list of values of the ”trusted_ip' type from // the given iterator. -func readTrustedIpList(iterator *jsoniter.Iterator) []*TrustedIp { +func ReadTrustedIpList(iterator *jsoniter.Iterator) []*TrustedIp { list := []*TrustedIp{} for iterator.ReadArray() { - item := readTrustedIp(iterator) + item := ReadTrustedIp(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/trusted_ip_type.go b/clustersmgmt/v1/trusted_ip_type.go index f96d5214a..d94740e32 100644 --- a/clustersmgmt/v1/trusted_ip_type.go +++ b/clustersmgmt/v1/trusted_ip_type.go @@ -52,7 +52,7 @@ func (o *TrustedIp) Kind() string { return TrustedIpKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *TrustedIp) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -182,6 +182,29 @@ func (l *TrustedIpList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *TrustedIpList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *TrustedIpList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *TrustedIpList) SetItems(items []*TrustedIp) { + l.items = items +} + +// Items returns the items of the list. +func (l *TrustedIpList) Items() []*TrustedIp { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *TrustedIpList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/trusted_ip_type_json.go b/clustersmgmt/v1/trusted_ip_type_json.go index 063e0aae9..02e67f41f 100644 --- a/clustersmgmt/v1/trusted_ip_type_json.go +++ b/clustersmgmt/v1/trusted_ip_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalTrustedIp writes a value of the 'trusted_ip' type to the given writer. func MarshalTrustedIp(object *TrustedIp, writer io.Writer) error { stream := helpers.NewStream(writer) - writeTrustedIp(object, stream) + WriteTrustedIp(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalTrustedIp(object *TrustedIp, writer io.Writer) error { return stream.Error } -// writeTrustedIp writes a value of the 'trusted_ip' type to the given stream. -func writeTrustedIp(object *TrustedIp, stream *jsoniter.Stream) { +// WriteTrustedIp writes a value of the 'trusted_ip' type to the given stream. +func WriteTrustedIp(object *TrustedIp, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -83,13 +83,13 @@ func UnmarshalTrustedIp(source interface{}) (object *TrustedIp, err error) { if err != nil { return } - object = readTrustedIp(iterator) + object = ReadTrustedIp(iterator) err = iterator.Error return } -// readTrustedIp reads a value of the 'trusted_ip' type from the given iterator. -func readTrustedIp(iterator *jsoniter.Iterator) *TrustedIp { +// ReadTrustedIp reads a value of the 'trusted_ip' type from the given iterator. +func ReadTrustedIp(iterator *jsoniter.Iterator) *TrustedIp { object := &TrustedIp{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/trusted_ips_resource_json.go b/clustersmgmt/v1/trusted_ips_resource_json.go index e0c9caf33..8298059ef 100644 --- a/clustersmgmt/v1/trusted_ips_resource_json.go +++ b/clustersmgmt/v1/trusted_ips_resource_json.go @@ -49,7 +49,7 @@ func readTrustedIpsListResponse(response *TrustedIpsListResponse, reader io.Read value := iterator.ReadInt() response.total = &value case "items": - items := readTrustedIpList(iterator) + items := ReadTrustedIpList(iterator) response.items = &TrustedIpList{ items: items, } diff --git a/clustersmgmt/v1/tuning_config_list_type_json.go b/clustersmgmt/v1/tuning_config_list_type_json.go index fe945baf4..9d3258d0b 100644 --- a/clustersmgmt/v1/tuning_config_list_type_json.go +++ b/clustersmgmt/v1/tuning_config_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalTuningConfigList(list []*TuningConfig, writer io.Writer) error { stream := helpers.NewStream(writer) - writeTuningConfigList(list, stream) + WriteTuningConfigList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalTuningConfigList(list []*TuningConfig, writer io.Writer) error { return stream.Error } -// writeTuningConfigList writes a list of value of the 'tuning_config' type to +// WriteTuningConfigList writes a list of value of the 'tuning_config' type to // the given stream. -func writeTuningConfigList(list []*TuningConfig, stream *jsoniter.Stream) { +func WriteTuningConfigList(list []*TuningConfig, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeTuningConfig(value, stream) + WriteTuningConfig(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalTuningConfigList(source interface{}) (items []*TuningConfig, err e if err != nil { return } - items = readTuningConfigList(iterator) + items = ReadTuningConfigList(iterator) err = iterator.Error return } -// readTuningConfigList reads list of values of the ”tuning_config' type from +// ReadTuningConfigList reads list of values of the ”tuning_config' type from // the given iterator. -func readTuningConfigList(iterator *jsoniter.Iterator) []*TuningConfig { +func ReadTuningConfigList(iterator *jsoniter.Iterator) []*TuningConfig { list := []*TuningConfig{} for iterator.ReadArray() { - item := readTuningConfig(iterator) + item := ReadTuningConfig(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/tuning_config_type.go b/clustersmgmt/v1/tuning_config_type.go index f85d7b030..32128972e 100644 --- a/clustersmgmt/v1/tuning_config_type.go +++ b/clustersmgmt/v1/tuning_config_type.go @@ -53,7 +53,7 @@ func (o *TuningConfig) Kind() string { return TuningConfigKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *TuningConfig) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -206,6 +206,29 @@ func (l *TuningConfigList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *TuningConfigList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *TuningConfigList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *TuningConfigList) SetItems(items []*TuningConfig) { + l.items = items +} + +// Items returns the items of the list. +func (l *TuningConfigList) Items() []*TuningConfig { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *TuningConfigList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/tuning_config_type_json.go b/clustersmgmt/v1/tuning_config_type_json.go index 758cea45d..358f95342 100644 --- a/clustersmgmt/v1/tuning_config_type_json.go +++ b/clustersmgmt/v1/tuning_config_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalTuningConfig writes a value of the 'tuning_config' type to the given writer. func MarshalTuningConfig(object *TuningConfig, writer io.Writer) error { stream := helpers.NewStream(writer) - writeTuningConfig(object, stream) + WriteTuningConfig(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalTuningConfig(object *TuningConfig, writer io.Writer) error { return stream.Error } -// writeTuningConfig writes a value of the 'tuning_config' type to the given stream. -func writeTuningConfig(object *TuningConfig, stream *jsoniter.Stream) { +// WriteTuningConfig writes a value of the 'tuning_config' type to the given stream. +func WriteTuningConfig(object *TuningConfig, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -92,13 +92,13 @@ func UnmarshalTuningConfig(source interface{}) (object *TuningConfig, err error) if err != nil { return } - object = readTuningConfig(iterator) + object = ReadTuningConfig(iterator) err = iterator.Error return } -// readTuningConfig reads a value of the 'tuning_config' type from the given iterator. -func readTuningConfig(iterator *jsoniter.Iterator) *TuningConfig { +// ReadTuningConfig reads a value of the 'tuning_config' type from the given iterator. +func ReadTuningConfig(iterator *jsoniter.Iterator) *TuningConfig { object := &TuningConfig{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/tuning_configs_resource_json.go b/clustersmgmt/v1/tuning_configs_resource_json.go index ac67e9448..49734478c 100644 --- a/clustersmgmt/v1/tuning_configs_resource_json.go +++ b/clustersmgmt/v1/tuning_configs_resource_json.go @@ -57,7 +57,7 @@ func readTuningConfigsListResponse(response *TuningConfigsListResponse, reader i value := iterator.ReadInt() response.total = &value case "items": - items := readTuningConfigList(iterator) + items := ReadTuningConfigList(iterator) response.items = &TuningConfigList{ items: items, } diff --git a/clustersmgmt/v1/upgrade_policies_resource_json.go b/clustersmgmt/v1/upgrade_policies_resource_json.go index 0b0c5a2ae..6dcb1fb2a 100644 --- a/clustersmgmt/v1/upgrade_policies_resource_json.go +++ b/clustersmgmt/v1/upgrade_policies_resource_json.go @@ -57,7 +57,7 @@ func readUpgradePoliciesListResponse(response *UpgradePoliciesListResponse, read value := iterator.ReadInt() response.total = &value case "items": - items := readUpgradePolicyList(iterator) + items := ReadUpgradePolicyList(iterator) response.items = &UpgradePolicyList{ items: items, } diff --git a/clustersmgmt/v1/upgrade_policy_list_type_json.go b/clustersmgmt/v1/upgrade_policy_list_type_json.go index b0b8e1ac3..b5704ff11 100644 --- a/clustersmgmt/v1/upgrade_policy_list_type_json.go +++ b/clustersmgmt/v1/upgrade_policy_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalUpgradePolicyList(list []*UpgradePolicy, writer io.Writer) error { stream := helpers.NewStream(writer) - writeUpgradePolicyList(list, stream) + WriteUpgradePolicyList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalUpgradePolicyList(list []*UpgradePolicy, writer io.Writer) error { return stream.Error } -// writeUpgradePolicyList writes a list of value of the 'upgrade_policy' type to +// WriteUpgradePolicyList writes a list of value of the 'upgrade_policy' type to // the given stream. -func writeUpgradePolicyList(list []*UpgradePolicy, stream *jsoniter.Stream) { +func WriteUpgradePolicyList(list []*UpgradePolicy, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeUpgradePolicy(value, stream) + WriteUpgradePolicy(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalUpgradePolicyList(source interface{}) (items []*UpgradePolicy, err if err != nil { return } - items = readUpgradePolicyList(iterator) + items = ReadUpgradePolicyList(iterator) err = iterator.Error return } -// readUpgradePolicyList reads list of values of the ”upgrade_policy' type from +// ReadUpgradePolicyList reads list of values of the ”upgrade_policy' type from // the given iterator. -func readUpgradePolicyList(iterator *jsoniter.Iterator) []*UpgradePolicy { +func ReadUpgradePolicyList(iterator *jsoniter.Iterator) []*UpgradePolicy { list := []*UpgradePolicy{} for iterator.ReadArray() { - item := readUpgradePolicy(iterator) + item := ReadUpgradePolicy(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/upgrade_policy_state_list_type_json.go b/clustersmgmt/v1/upgrade_policy_state_list_type_json.go index cd13e87e4..0a9ce065b 100644 --- a/clustersmgmt/v1/upgrade_policy_state_list_type_json.go +++ b/clustersmgmt/v1/upgrade_policy_state_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalUpgradePolicyStateList(list []*UpgradePolicyState, writer io.Writer) error { stream := helpers.NewStream(writer) - writeUpgradePolicyStateList(list, stream) + WriteUpgradePolicyStateList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalUpgradePolicyStateList(list []*UpgradePolicyState, writer io.Writer) return stream.Error } -// writeUpgradePolicyStateList writes a list of value of the 'upgrade_policy_state' type to +// WriteUpgradePolicyStateList writes a list of value of the 'upgrade_policy_state' type to // the given stream. -func writeUpgradePolicyStateList(list []*UpgradePolicyState, stream *jsoniter.Stream) { +func WriteUpgradePolicyStateList(list []*UpgradePolicyState, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeUpgradePolicyState(value, stream) + WriteUpgradePolicyState(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalUpgradePolicyStateList(source interface{}) (items []*UpgradePolicy if err != nil { return } - items = readUpgradePolicyStateList(iterator) + items = ReadUpgradePolicyStateList(iterator) err = iterator.Error return } -// readUpgradePolicyStateList reads list of values of the ”upgrade_policy_state' type from +// ReadUpgradePolicyStateList reads list of values of the ”upgrade_policy_state' type from // the given iterator. -func readUpgradePolicyStateList(iterator *jsoniter.Iterator) []*UpgradePolicyState { +func ReadUpgradePolicyStateList(iterator *jsoniter.Iterator) []*UpgradePolicyState { list := []*UpgradePolicyState{} for iterator.ReadArray() { - item := readUpgradePolicyState(iterator) + item := ReadUpgradePolicyState(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/upgrade_policy_state_type.go b/clustersmgmt/v1/upgrade_policy_state_type.go index 287548c6a..95edbe3b9 100644 --- a/clustersmgmt/v1/upgrade_policy_state_type.go +++ b/clustersmgmt/v1/upgrade_policy_state_type.go @@ -53,7 +53,7 @@ func (o *UpgradePolicyState) Kind() string { return UpgradePolicyStateKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *UpgradePolicyState) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -208,6 +208,29 @@ func (l *UpgradePolicyStateList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *UpgradePolicyStateList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *UpgradePolicyStateList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *UpgradePolicyStateList) SetItems(items []*UpgradePolicyState) { + l.items = items +} + +// Items returns the items of the list. +func (l *UpgradePolicyStateList) Items() []*UpgradePolicyState { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *UpgradePolicyStateList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/upgrade_policy_state_type_json.go b/clustersmgmt/v1/upgrade_policy_state_type_json.go index 760f0322c..842337294 100644 --- a/clustersmgmt/v1/upgrade_policy_state_type_json.go +++ b/clustersmgmt/v1/upgrade_policy_state_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalUpgradePolicyState writes a value of the 'upgrade_policy_state' type to the given writer. func MarshalUpgradePolicyState(object *UpgradePolicyState, writer io.Writer) error { stream := helpers.NewStream(writer) - writeUpgradePolicyState(object, stream) + WriteUpgradePolicyState(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalUpgradePolicyState(object *UpgradePolicyState, writer io.Writer) err return stream.Error } -// writeUpgradePolicyState writes a value of the 'upgrade_policy_state' type to the given stream. -func writeUpgradePolicyState(object *UpgradePolicyState, stream *jsoniter.Stream) { +// WriteUpgradePolicyState writes a value of the 'upgrade_policy_state' type to the given stream. +func WriteUpgradePolicyState(object *UpgradePolicyState, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -92,13 +92,13 @@ func UnmarshalUpgradePolicyState(source interface{}) (object *UpgradePolicyState if err != nil { return } - object = readUpgradePolicyState(iterator) + object = ReadUpgradePolicyState(iterator) err = iterator.Error return } -// readUpgradePolicyState reads a value of the 'upgrade_policy_state' type from the given iterator. -func readUpgradePolicyState(iterator *jsoniter.Iterator) *UpgradePolicyState { +// ReadUpgradePolicyState reads a value of the 'upgrade_policy_state' type from the given iterator. +func ReadUpgradePolicyState(iterator *jsoniter.Iterator) *UpgradePolicyState { object := &UpgradePolicyState{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/upgrade_policy_state_value_list_type_json.go b/clustersmgmt/v1/upgrade_policy_state_value_list_type_json.go index 4d9b96998..f260a3a12 100644 --- a/clustersmgmt/v1/upgrade_policy_state_value_list_type_json.go +++ b/clustersmgmt/v1/upgrade_policy_state_value_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalUpgradePolicyStateValueList(list []UpgradePolicyStateValue, writer io.Writer) error { stream := helpers.NewStream(writer) - writeUpgradePolicyStateValueList(list, stream) + WriteUpgradePolicyStateValueList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalUpgradePolicyStateValueList(list []UpgradePolicyStateValue, writer i return stream.Error } -// writeUpgradePolicyStateValueList writes a list of value of the 'upgrade_policy_state_value' type to +// WriteUpgradePolicyStateValueList writes a list of value of the 'upgrade_policy_state_value' type to // the given stream. -func writeUpgradePolicyStateValueList(list []UpgradePolicyStateValue, stream *jsoniter.Stream) { +func WriteUpgradePolicyStateValueList(list []UpgradePolicyStateValue, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalUpgradePolicyStateValueList(source interface{}) (items []UpgradePo if err != nil { return } - items = readUpgradePolicyStateValueList(iterator) + items = ReadUpgradePolicyStateValueList(iterator) err = iterator.Error return } -// readUpgradePolicyStateValueList reads list of values of the ”upgrade_policy_state_value' type from +// ReadUpgradePolicyStateValueList reads list of values of the ”upgrade_policy_state_value' type from // the given iterator. -func readUpgradePolicyStateValueList(iterator *jsoniter.Iterator) []UpgradePolicyStateValue { +func ReadUpgradePolicyStateValueList(iterator *jsoniter.Iterator) []UpgradePolicyStateValue { list := []UpgradePolicyStateValue{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/upgrade_policy_type.go b/clustersmgmt/v1/upgrade_policy_type.go index 4b02f657a..52d887d49 100644 --- a/clustersmgmt/v1/upgrade_policy_type.go +++ b/clustersmgmt/v1/upgrade_policy_type.go @@ -62,7 +62,7 @@ func (o *UpgradePolicy) Kind() string { return UpgradePolicyKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *UpgradePolicy) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -330,6 +330,29 @@ func (l *UpgradePolicyList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *UpgradePolicyList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *UpgradePolicyList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *UpgradePolicyList) SetItems(items []*UpgradePolicy) { + l.items = items +} + +// Items returns the items of the list. +func (l *UpgradePolicyList) Items() []*UpgradePolicy { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *UpgradePolicyList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/upgrade_policy_type_json.go b/clustersmgmt/v1/upgrade_policy_type_json.go index 2449132a9..5bea0b5c0 100644 --- a/clustersmgmt/v1/upgrade_policy_type_json.go +++ b/clustersmgmt/v1/upgrade_policy_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalUpgradePolicy writes a value of the 'upgrade_policy' type to the given writer. func MarshalUpgradePolicy(object *UpgradePolicy, writer io.Writer) error { stream := helpers.NewStream(writer) - writeUpgradePolicy(object, stream) + WriteUpgradePolicy(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalUpgradePolicy(object *UpgradePolicy, writer io.Writer) error { return stream.Error } -// writeUpgradePolicy writes a value of the 'upgrade_policy' type to the given stream. -func writeUpgradePolicy(object *UpgradePolicy, stream *jsoniter.Stream) { +// WriteUpgradePolicy writes a value of the 'upgrade_policy' type to the given stream. +func WriteUpgradePolicy(object *UpgradePolicy, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -138,13 +138,13 @@ func UnmarshalUpgradePolicy(source interface{}) (object *UpgradePolicy, err erro if err != nil { return } - object = readUpgradePolicy(iterator) + object = ReadUpgradePolicy(iterator) err = iterator.Error return } -// readUpgradePolicy reads a value of the 'upgrade_policy' type from the given iterator. -func readUpgradePolicy(iterator *jsoniter.Iterator) *UpgradePolicy { +// ReadUpgradePolicy reads a value of the 'upgrade_policy' type from the given iterator. +func ReadUpgradePolicy(iterator *jsoniter.Iterator) *UpgradePolicy { object := &UpgradePolicy{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/upgrade_type_list_type_json.go b/clustersmgmt/v1/upgrade_type_list_type_json.go index ced99def7..b27bde03b 100644 --- a/clustersmgmt/v1/upgrade_type_list_type_json.go +++ b/clustersmgmt/v1/upgrade_type_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalUpgradeTypeList(list []UpgradeType, writer io.Writer) error { stream := helpers.NewStream(writer) - writeUpgradeTypeList(list, stream) + WriteUpgradeTypeList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalUpgradeTypeList(list []UpgradeType, writer io.Writer) error { return stream.Error } -// writeUpgradeTypeList writes a list of value of the 'upgrade_type' type to +// WriteUpgradeTypeList writes a list of value of the 'upgrade_type' type to // the given stream. -func writeUpgradeTypeList(list []UpgradeType, stream *jsoniter.Stream) { +func WriteUpgradeTypeList(list []UpgradeType, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalUpgradeTypeList(source interface{}) (items []UpgradeType, err erro if err != nil { return } - items = readUpgradeTypeList(iterator) + items = ReadUpgradeTypeList(iterator) err = iterator.Error return } -// readUpgradeTypeList reads list of values of the ”upgrade_type' type from +// ReadUpgradeTypeList reads list of values of the ”upgrade_type' type from // the given iterator. -func readUpgradeTypeList(iterator *jsoniter.Iterator) []UpgradeType { +func ReadUpgradeTypeList(iterator *jsoniter.Iterator) []UpgradeType { list := []UpgradeType{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/user_list_type_json.go b/clustersmgmt/v1/user_list_type_json.go index 30f68c383..b453b38b2 100644 --- a/clustersmgmt/v1/user_list_type_json.go +++ b/clustersmgmt/v1/user_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalUserList(list []*User, writer io.Writer) error { stream := helpers.NewStream(writer) - writeUserList(list, stream) + WriteUserList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalUserList(list []*User, writer io.Writer) error { return stream.Error } -// writeUserList writes a list of value of the 'user' type to +// WriteUserList writes a list of value of the 'user' type to // the given stream. -func writeUserList(list []*User, stream *jsoniter.Stream) { +func WriteUserList(list []*User, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeUser(value, stream) + WriteUser(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalUserList(source interface{}) (items []*User, err error) { if err != nil { return } - items = readUserList(iterator) + items = ReadUserList(iterator) err = iterator.Error return } -// readUserList reads list of values of the ”user' type from +// ReadUserList reads list of values of the ”user' type from // the given iterator. -func readUserList(iterator *jsoniter.Iterator) []*User { +func ReadUserList(iterator *jsoniter.Iterator) []*User { list := []*User{} for iterator.ReadArray() { - item := readUser(iterator) + item := ReadUser(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/user_type.go b/clustersmgmt/v1/user_type.go index 271a537af..ab9eb2bc8 100644 --- a/clustersmgmt/v1/user_type.go +++ b/clustersmgmt/v1/user_type.go @@ -51,7 +51,7 @@ func (o *User) Kind() string { return UserKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *User) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -158,6 +158,29 @@ func (l *UserList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *UserList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *UserList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *UserList) SetItems(items []*User) { + l.items = items +} + +// Items returns the items of the list. +func (l *UserList) Items() []*User { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *UserList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/user_type_json.go b/clustersmgmt/v1/user_type_json.go index ee7c2c158..e17737931 100644 --- a/clustersmgmt/v1/user_type_json.go +++ b/clustersmgmt/v1/user_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalUser writes a value of the 'user' type to the given writer. func MarshalUser(object *User, writer io.Writer) error { stream := helpers.NewStream(writer) - writeUser(object, stream) + WriteUser(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalUser(object *User, writer io.Writer) error { return stream.Error } -// writeUser writes a value of the 'user' type to the given stream. -func writeUser(object *User, stream *jsoniter.Stream) { +// WriteUser writes a value of the 'user' type to the given stream. +func WriteUser(object *User, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -73,13 +73,13 @@ func UnmarshalUser(source interface{}) (object *User, err error) { if err != nil { return } - object = readUser(iterator) + object = ReadUser(iterator) err = iterator.Error return } -// readUser reads a value of the 'user' type from the given iterator. -func readUser(iterator *jsoniter.Iterator) *User { +// ReadUser reads a value of the 'user' type from the given iterator. +func ReadUser(iterator *jsoniter.Iterator) *User { object := &User{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/username_claim_list_type_json.go b/clustersmgmt/v1/username_claim_list_type_json.go index d49273610..5f208e673 100644 --- a/clustersmgmt/v1/username_claim_list_type_json.go +++ b/clustersmgmt/v1/username_claim_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalUsernameClaimList(list []*UsernameClaim, writer io.Writer) error { stream := helpers.NewStream(writer) - writeUsernameClaimList(list, stream) + WriteUsernameClaimList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalUsernameClaimList(list []*UsernameClaim, writer io.Writer) error { return stream.Error } -// writeUsernameClaimList writes a list of value of the 'username_claim' type to +// WriteUsernameClaimList writes a list of value of the 'username_claim' type to // the given stream. -func writeUsernameClaimList(list []*UsernameClaim, stream *jsoniter.Stream) { +func WriteUsernameClaimList(list []*UsernameClaim, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeUsernameClaim(value, stream) + WriteUsernameClaim(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalUsernameClaimList(source interface{}) (items []*UsernameClaim, err if err != nil { return } - items = readUsernameClaimList(iterator) + items = ReadUsernameClaimList(iterator) err = iterator.Error return } -// readUsernameClaimList reads list of values of the ”username_claim' type from +// ReadUsernameClaimList reads list of values of the ”username_claim' type from // the given iterator. -func readUsernameClaimList(iterator *jsoniter.Iterator) []*UsernameClaim { +func ReadUsernameClaimList(iterator *jsoniter.Iterator) []*UsernameClaim { list := []*UsernameClaim{} for iterator.ReadArray() { - item := readUsernameClaim(iterator) + item := ReadUsernameClaim(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/username_claim_type.go b/clustersmgmt/v1/username_claim_type.go index 5a352acb5..b646e8238 100644 --- a/clustersmgmt/v1/username_claim_type.go +++ b/clustersmgmt/v1/username_claim_type.go @@ -140,6 +140,29 @@ func (l *UsernameClaimList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *UsernameClaimList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *UsernameClaimList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *UsernameClaimList) SetItems(items []*UsernameClaim) { + l.items = items +} + +// Items returns the items of the list. +func (l *UsernameClaimList) Items() []*UsernameClaim { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *UsernameClaimList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/username_claim_type_json.go b/clustersmgmt/v1/username_claim_type_json.go index 42fbef096..230e79495 100644 --- a/clustersmgmt/v1/username_claim_type_json.go +++ b/clustersmgmt/v1/username_claim_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalUsernameClaim writes a value of the 'username_claim' type to the given writer. func MarshalUsernameClaim(object *UsernameClaim, writer io.Writer) error { stream := helpers.NewStream(writer) - writeUsernameClaim(object, stream) + WriteUsernameClaim(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalUsernameClaim(object *UsernameClaim, writer io.Writer) error { return stream.Error } -// writeUsernameClaim writes a value of the 'username_claim' type to the given stream. -func writeUsernameClaim(object *UsernameClaim, stream *jsoniter.Stream) { +// WriteUsernameClaim writes a value of the 'username_claim' type to the given stream. +func WriteUsernameClaim(object *UsernameClaim, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -78,13 +78,13 @@ func UnmarshalUsernameClaim(source interface{}) (object *UsernameClaim, err erro if err != nil { return } - object = readUsernameClaim(iterator) + object = ReadUsernameClaim(iterator) err = iterator.Error return } -// readUsernameClaim reads a value of the 'username_claim' type from the given iterator. -func readUsernameClaim(iterator *jsoniter.Iterator) *UsernameClaim { +// ReadUsernameClaim reads a value of the 'username_claim' type from the given iterator. +func ReadUsernameClaim(iterator *jsoniter.Iterator) *UsernameClaim { object := &UsernameClaim{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/users_resource_json.go b/clustersmgmt/v1/users_resource_json.go index d7060a07d..b764141c7 100644 --- a/clustersmgmt/v1/users_resource_json.go +++ b/clustersmgmt/v1/users_resource_json.go @@ -57,7 +57,7 @@ func readUsersListResponse(response *UsersListResponse, reader io.Reader) error value := iterator.ReadInt() response.total = &value case "items": - items := readUserList(iterator) + items := ReadUserList(iterator) response.items = &UserList{ items: items, } diff --git a/clustersmgmt/v1/value_list_type_json.go b/clustersmgmt/v1/value_list_type_json.go index 3eb4336ab..c5e26f8d0 100644 --- a/clustersmgmt/v1/value_list_type_json.go +++ b/clustersmgmt/v1/value_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalValueList(list []*Value, writer io.Writer) error { stream := helpers.NewStream(writer) - writeValueList(list, stream) + WriteValueList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalValueList(list []*Value, writer io.Writer) error { return stream.Error } -// writeValueList writes a list of value of the 'value' type to +// WriteValueList writes a list of value of the 'value' type to // the given stream. -func writeValueList(list []*Value, stream *jsoniter.Stream) { +func WriteValueList(list []*Value, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeValue(value, stream) + WriteValue(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalValueList(source interface{}) (items []*Value, err error) { if err != nil { return } - items = readValueList(iterator) + items = ReadValueList(iterator) err = iterator.Error return } -// readValueList reads list of values of the ”value' type from +// ReadValueList reads list of values of the ”value' type from // the given iterator. -func readValueList(iterator *jsoniter.Iterator) []*Value { +func ReadValueList(iterator *jsoniter.Iterator) []*Value { list := []*Value{} for iterator.ReadArray() { - item := readValue(iterator) + item := ReadValue(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/value_type.go b/clustersmgmt/v1/value_type.go index d6804a36f..53c106ff6 100644 --- a/clustersmgmt/v1/value_type.go +++ b/clustersmgmt/v1/value_type.go @@ -123,6 +123,29 @@ func (l *ValueList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ValueList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ValueList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ValueList) SetItems(items []*Value) { + l.items = items +} + +// Items returns the items of the list. +func (l *ValueList) Items() []*Value { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ValueList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/value_type_json.go b/clustersmgmt/v1/value_type_json.go index 9c2cfeaa9..202e39e7f 100644 --- a/clustersmgmt/v1/value_type_json.go +++ b/clustersmgmt/v1/value_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalValue writes a value of the 'value' type to the given writer. func MarshalValue(object *Value, writer io.Writer) error { stream := helpers.NewStream(writer) - writeValue(object, stream) + WriteValue(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalValue(object *Value, writer io.Writer) error { return stream.Error } -// writeValue writes a value of the 'value' type to the given stream. -func writeValue(object *Value, stream *jsoniter.Stream) { +// WriteValue writes a value of the 'value' type to the given stream. +func WriteValue(object *Value, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalValue(source interface{}) (object *Value, err error) { if err != nil { return } - object = readValue(iterator) + object = ReadValue(iterator) err = iterator.Error return } -// readValue reads a value of the 'value' type from the given iterator. -func readValue(iterator *jsoniter.Iterator) *Value { +// ReadValue reads a value of the 'value' type from the given iterator. +func ReadValue(iterator *jsoniter.Iterator) *Value { object := &Value{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/version_gate_agreement_list_type_json.go b/clustersmgmt/v1/version_gate_agreement_list_type_json.go index f3b24748f..7aaf47c71 100644 --- a/clustersmgmt/v1/version_gate_agreement_list_type_json.go +++ b/clustersmgmt/v1/version_gate_agreement_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalVersionGateAgreementList(list []*VersionGateAgreement, writer io.Writer) error { stream := helpers.NewStream(writer) - writeVersionGateAgreementList(list, stream) + WriteVersionGateAgreementList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalVersionGateAgreementList(list []*VersionGateAgreement, writer io.Wri return stream.Error } -// writeVersionGateAgreementList writes a list of value of the 'version_gate_agreement' type to +// WriteVersionGateAgreementList writes a list of value of the 'version_gate_agreement' type to // the given stream. -func writeVersionGateAgreementList(list []*VersionGateAgreement, stream *jsoniter.Stream) { +func WriteVersionGateAgreementList(list []*VersionGateAgreement, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeVersionGateAgreement(value, stream) + WriteVersionGateAgreement(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalVersionGateAgreementList(source interface{}) (items []*VersionGate if err != nil { return } - items = readVersionGateAgreementList(iterator) + items = ReadVersionGateAgreementList(iterator) err = iterator.Error return } -// readVersionGateAgreementList reads list of values of the ”version_gate_agreement' type from +// ReadVersionGateAgreementList reads list of values of the ”version_gate_agreement' type from // the given iterator. -func readVersionGateAgreementList(iterator *jsoniter.Iterator) []*VersionGateAgreement { +func ReadVersionGateAgreementList(iterator *jsoniter.Iterator) []*VersionGateAgreement { list := []*VersionGateAgreement{} for iterator.ReadArray() { - item := readVersionGateAgreement(iterator) + item := ReadVersionGateAgreement(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/version_gate_agreement_type.go b/clustersmgmt/v1/version_gate_agreement_type.go index d999fae48..3c7a94055 100644 --- a/clustersmgmt/v1/version_gate_agreement_type.go +++ b/clustersmgmt/v1/version_gate_agreement_type.go @@ -57,7 +57,7 @@ func (o *VersionGateAgreement) Kind() string { return VersionGateAgreementKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *VersionGateAgreement) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -210,6 +210,29 @@ func (l *VersionGateAgreementList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *VersionGateAgreementList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *VersionGateAgreementList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *VersionGateAgreementList) SetItems(items []*VersionGateAgreement) { + l.items = items +} + +// Items returns the items of the list. +func (l *VersionGateAgreementList) Items() []*VersionGateAgreement { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *VersionGateAgreementList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/version_gate_agreement_type_json.go b/clustersmgmt/v1/version_gate_agreement_type_json.go index 9fd272d4b..3531cef0c 100644 --- a/clustersmgmt/v1/version_gate_agreement_type_json.go +++ b/clustersmgmt/v1/version_gate_agreement_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalVersionGateAgreement writes a value of the 'version_gate_agreement' type to the given writer. func MarshalVersionGateAgreement(object *VersionGateAgreement, writer io.Writer) error { stream := helpers.NewStream(writer) - writeVersionGateAgreement(object, stream) + WriteVersionGateAgreement(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalVersionGateAgreement(object *VersionGateAgreement, writer io.Writer) return stream.Error } -// writeVersionGateAgreement writes a value of the 'version_gate_agreement' type to the given stream. -func writeVersionGateAgreement(object *VersionGateAgreement, stream *jsoniter.Stream) { +// WriteVersionGateAgreement writes a value of the 'version_gate_agreement' type to the given stream. +func WriteVersionGateAgreement(object *VersionGateAgreement, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -81,7 +81,7 @@ func writeVersionGateAgreement(object *VersionGateAgreement, stream *jsoniter.St stream.WriteMore() } stream.WriteObjectField("version_gate") - writeVersionGate(object.versionGate, stream) + WriteVersionGate(object.versionGate, stream) } stream.WriteObjectEnd() } @@ -93,13 +93,13 @@ func UnmarshalVersionGateAgreement(source interface{}) (object *VersionGateAgree if err != nil { return } - object = readVersionGateAgreement(iterator) + object = ReadVersionGateAgreement(iterator) err = iterator.Error return } -// readVersionGateAgreement reads a value of the 'version_gate_agreement' type from the given iterator. -func readVersionGateAgreement(iterator *jsoniter.Iterator) *VersionGateAgreement { +// ReadVersionGateAgreement reads a value of the 'version_gate_agreement' type from the given iterator. +func ReadVersionGateAgreement(iterator *jsoniter.Iterator) *VersionGateAgreement { object := &VersionGateAgreement{} for { field := iterator.ReadObject() @@ -127,7 +127,7 @@ func readVersionGateAgreement(iterator *jsoniter.Iterator) *VersionGateAgreement object.agreedTimestamp = value object.bitmap_ |= 8 case "version_gate": - value := readVersionGate(iterator) + value := ReadVersionGate(iterator) object.versionGate = value object.bitmap_ |= 16 default: diff --git a/clustersmgmt/v1/version_gate_agreements_resource_json.go b/clustersmgmt/v1/version_gate_agreements_resource_json.go index 5e6cd376c..61cebe7e5 100644 --- a/clustersmgmt/v1/version_gate_agreements_resource_json.go +++ b/clustersmgmt/v1/version_gate_agreements_resource_json.go @@ -57,7 +57,7 @@ func readVersionGateAgreementsListResponse(response *VersionGateAgreementsListRe value := iterator.ReadInt() response.total = &value case "items": - items := readVersionGateAgreementList(iterator) + items := ReadVersionGateAgreementList(iterator) response.items = &VersionGateAgreementList{ items: items, } diff --git a/clustersmgmt/v1/version_gate_list_type_json.go b/clustersmgmt/v1/version_gate_list_type_json.go index d99f21374..c8db694b7 100644 --- a/clustersmgmt/v1/version_gate_list_type_json.go +++ b/clustersmgmt/v1/version_gate_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalVersionGateList(list []*VersionGate, writer io.Writer) error { stream := helpers.NewStream(writer) - writeVersionGateList(list, stream) + WriteVersionGateList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalVersionGateList(list []*VersionGate, writer io.Writer) error { return stream.Error } -// writeVersionGateList writes a list of value of the 'version_gate' type to +// WriteVersionGateList writes a list of value of the 'version_gate' type to // the given stream. -func writeVersionGateList(list []*VersionGate, stream *jsoniter.Stream) { +func WriteVersionGateList(list []*VersionGate, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeVersionGate(value, stream) + WriteVersionGate(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalVersionGateList(source interface{}) (items []*VersionGate, err err if err != nil { return } - items = readVersionGateList(iterator) + items = ReadVersionGateList(iterator) err = iterator.Error return } -// readVersionGateList reads list of values of the ”version_gate' type from +// ReadVersionGateList reads list of values of the ”version_gate' type from // the given iterator. -func readVersionGateList(iterator *jsoniter.Iterator) []*VersionGate { +func ReadVersionGateList(iterator *jsoniter.Iterator) []*VersionGate { list := []*VersionGate{} for iterator.ReadArray() { - item := readVersionGate(iterator) + item := ReadVersionGate(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/version_gate_type.go b/clustersmgmt/v1/version_gate_type.go index 687d35f6f..3597487c2 100644 --- a/clustersmgmt/v1/version_gate_type.go +++ b/clustersmgmt/v1/version_gate_type.go @@ -63,7 +63,7 @@ func (o *VersionGate) Kind() string { return VersionGateKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *VersionGate) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -356,6 +356,29 @@ func (l *VersionGateList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *VersionGateList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *VersionGateList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *VersionGateList) SetItems(items []*VersionGate) { + l.items = items +} + +// Items returns the items of the list. +func (l *VersionGateList) Items() []*VersionGate { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *VersionGateList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/version_gate_type_json.go b/clustersmgmt/v1/version_gate_type_json.go index 189f303a8..183146d1a 100644 --- a/clustersmgmt/v1/version_gate_type_json.go +++ b/clustersmgmt/v1/version_gate_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalVersionGate writes a value of the 'version_gate' type to the given writer. func MarshalVersionGate(object *VersionGate, writer io.Writer) error { stream := helpers.NewStream(writer) - writeVersionGate(object, stream) + WriteVersionGate(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalVersionGate(object *VersionGate, writer io.Writer) error { return stream.Error } -// writeVersionGate writes a value of the 'version_gate' type to the given stream. -func writeVersionGate(object *VersionGate, stream *jsoniter.Stream) { +// WriteVersionGate writes a value of the 'version_gate' type to the given stream. +func WriteVersionGate(object *VersionGate, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -147,13 +147,13 @@ func UnmarshalVersionGate(source interface{}) (object *VersionGate, err error) { if err != nil { return } - object = readVersionGate(iterator) + object = ReadVersionGate(iterator) err = iterator.Error return } -// readVersionGate reads a value of the 'version_gate' type from the given iterator. -func readVersionGate(iterator *jsoniter.Iterator) *VersionGate { +// ReadVersionGate reads a value of the 'version_gate' type from the given iterator. +func ReadVersionGate(iterator *jsoniter.Iterator) *VersionGate { object := &VersionGate{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/version_gates_resource_json.go b/clustersmgmt/v1/version_gates_resource_json.go index 50c78b52d..e00e24f99 100644 --- a/clustersmgmt/v1/version_gates_resource_json.go +++ b/clustersmgmt/v1/version_gates_resource_json.go @@ -57,7 +57,7 @@ func readVersionGatesListResponse(response *VersionGatesListResponse, reader io. value := iterator.ReadInt() response.total = &value case "items": - items := readVersionGateList(iterator) + items := ReadVersionGateList(iterator) response.items = &VersionGateList{ items: items, } diff --git a/clustersmgmt/v1/version_list_type_json.go b/clustersmgmt/v1/version_list_type_json.go index 3b2daf317..11de3446e 100644 --- a/clustersmgmt/v1/version_list_type_json.go +++ b/clustersmgmt/v1/version_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalVersionList(list []*Version, writer io.Writer) error { stream := helpers.NewStream(writer) - writeVersionList(list, stream) + WriteVersionList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalVersionList(list []*Version, writer io.Writer) error { return stream.Error } -// writeVersionList writes a list of value of the 'version' type to +// WriteVersionList writes a list of value of the 'version' type to // the given stream. -func writeVersionList(list []*Version, stream *jsoniter.Stream) { +func WriteVersionList(list []*Version, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeVersion(value, stream) + WriteVersion(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalVersionList(source interface{}) (items []*Version, err error) { if err != nil { return } - items = readVersionList(iterator) + items = ReadVersionList(iterator) err = iterator.Error return } -// readVersionList reads list of values of the ”version' type from +// ReadVersionList reads list of values of the ”version' type from // the given iterator. -func readVersionList(iterator *jsoniter.Iterator) []*Version { +func ReadVersionList(iterator *jsoniter.Iterator) []*Version { list := []*Version{} for iterator.ReadArray() { - item := readVersion(iterator) + item := ReadVersion(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/version_type.go b/clustersmgmt/v1/version_type.go index 4b8ecb0dd..29cf1887f 100644 --- a/clustersmgmt/v1/version_type.go +++ b/clustersmgmt/v1/version_type.go @@ -69,7 +69,7 @@ func (o *Version) Kind() string { return VersionKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Version) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -508,6 +508,29 @@ func (l *VersionList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *VersionList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *VersionList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *VersionList) SetItems(items []*Version) { + l.items = items +} + +// Items returns the items of the list. +func (l *VersionList) Items() []*Version { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *VersionList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/version_type_json.go b/clustersmgmt/v1/version_type_json.go index fc9c9dfa0..2a84df740 100644 --- a/clustersmgmt/v1/version_type_json.go +++ b/clustersmgmt/v1/version_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalVersion writes a value of the 'version' type to the given writer. func MarshalVersion(object *Version, writer io.Writer) error { stream := helpers.NewStream(writer) - writeVersion(object, stream) + WriteVersion(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalVersion(object *Version, writer io.Writer) error { return stream.Error } -// writeVersion writes a value of the 'version' type to the given stream. -func writeVersion(object *Version, stream *jsoniter.Stream) { +// WriteVersion writes a value of the 'version' type to the given stream. +func WriteVersion(object *Version, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -90,7 +90,7 @@ func writeVersion(object *Version, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("available_upgrades") - writeStringList(object.availableUpgrades, stream) + WriteStringList(object.availableUpgrades, stream) count++ } present_ = object.bitmap_&64 != 0 @@ -153,7 +153,7 @@ func writeVersion(object *Version, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("image_overrides") - writeImageOverrides(object.imageOverrides, stream) + WriteImageOverrides(object.imageOverrides, stream) count++ } present_ = object.bitmap_&8192 != 0 @@ -180,7 +180,7 @@ func writeVersion(object *Version, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("release_images") - writeReleaseImages(object.releaseImages, stream) + WriteReleaseImages(object.releaseImages, stream) count++ } present_ = object.bitmap_&65536 != 0 @@ -201,13 +201,13 @@ func UnmarshalVersion(source interface{}) (object *Version, err error) { if err != nil { return } - object = readVersion(iterator) + object = ReadVersion(iterator) err = iterator.Error return } -// readVersion reads a value of the 'version' type from the given iterator. -func readVersion(iterator *jsoniter.Iterator) *Version { +// ReadVersion reads a value of the 'version' type from the given iterator. +func ReadVersion(iterator *jsoniter.Iterator) *Version { object := &Version{} for { field := iterator.ReadObject() @@ -235,7 +235,7 @@ func readVersion(iterator *jsoniter.Iterator) *Version { object.rosaEnabled = value object.bitmap_ |= 16 case "available_upgrades": - value := readStringList(iterator) + value := ReadStringList(iterator) object.availableUpgrades = value object.bitmap_ |= 32 case "channel_group": @@ -267,7 +267,7 @@ func readVersion(iterator *jsoniter.Iterator) *Version { object.hostedControlPlaneEnabled = value object.bitmap_ |= 2048 case "image_overrides": - value := readImageOverrides(iterator) + value := ReadImageOverrides(iterator) object.imageOverrides = value object.bitmap_ |= 4096 case "raw_id": @@ -279,7 +279,7 @@ func readVersion(iterator *jsoniter.Iterator) *Version { object.releaseImage = value object.bitmap_ |= 16384 case "release_images": - value := readReleaseImages(iterator) + value := ReadReleaseImages(iterator) object.releaseImages = value object.bitmap_ |= 32768 case "wif_enabled": diff --git a/clustersmgmt/v1/versions_resource_json.go b/clustersmgmt/v1/versions_resource_json.go index f0071dc28..3fcc95f33 100644 --- a/clustersmgmt/v1/versions_resource_json.go +++ b/clustersmgmt/v1/versions_resource_json.go @@ -49,7 +49,7 @@ func readVersionsListResponse(response *VersionsListResponse, reader io.Reader) value := iterator.ReadInt() response.total = &value case "items": - items := readVersionList(iterator) + items := ReadVersionList(iterator) response.items = &VersionList{ items: items, } diff --git a/clustersmgmt/v1/vpcs_inquiry_resource_json.go b/clustersmgmt/v1/vpcs_inquiry_resource_json.go index f7c59aafa..5511f2aa5 100644 --- a/clustersmgmt/v1/vpcs_inquiry_resource_json.go +++ b/clustersmgmt/v1/vpcs_inquiry_resource_json.go @@ -49,7 +49,7 @@ func readVpcsInquirySearchResponse(response *VpcsInquirySearchResponse, reader i value := iterator.ReadInt() response.total = &value case "items": - items := readCloudVPCList(iterator) + items := ReadCloudVPCList(iterator) response.items = &CloudVPCList{ items: items, } diff --git a/clustersmgmt/v1/wif_access_method_list_type_json.go b/clustersmgmt/v1/wif_access_method_list_type_json.go index 4a3e34f58..d2bae9f2c 100644 --- a/clustersmgmt/v1/wif_access_method_list_type_json.go +++ b/clustersmgmt/v1/wif_access_method_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalWifAccessMethodList(list []WifAccessMethod, writer io.Writer) error { stream := helpers.NewStream(writer) - writeWifAccessMethodList(list, stream) + WriteWifAccessMethodList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalWifAccessMethodList(list []WifAccessMethod, writer io.Writer) error return stream.Error } -// writeWifAccessMethodList writes a list of value of the 'wif_access_method' type to +// WriteWifAccessMethodList writes a list of value of the 'wif_access_method' type to // the given stream. -func writeWifAccessMethodList(list []WifAccessMethod, stream *jsoniter.Stream) { +func WriteWifAccessMethodList(list []WifAccessMethod, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalWifAccessMethodList(source interface{}) (items []WifAccessMethod, if err != nil { return } - items = readWifAccessMethodList(iterator) + items = ReadWifAccessMethodList(iterator) err = iterator.Error return } -// readWifAccessMethodList reads list of values of the ”wif_access_method' type from +// ReadWifAccessMethodList reads list of values of the ”wif_access_method' type from // the given iterator. -func readWifAccessMethodList(iterator *jsoniter.Iterator) []WifAccessMethod { +func ReadWifAccessMethodList(iterator *jsoniter.Iterator) []WifAccessMethod { list := []WifAccessMethod{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/clustersmgmt/v1/wif_config_list_type_json.go b/clustersmgmt/v1/wif_config_list_type_json.go index 8beb5cc49..a32a7eece 100644 --- a/clustersmgmt/v1/wif_config_list_type_json.go +++ b/clustersmgmt/v1/wif_config_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalWifConfigList(list []*WifConfig, writer io.Writer) error { stream := helpers.NewStream(writer) - writeWifConfigList(list, stream) + WriteWifConfigList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalWifConfigList(list []*WifConfig, writer io.Writer) error { return stream.Error } -// writeWifConfigList writes a list of value of the 'wif_config' type to +// WriteWifConfigList writes a list of value of the 'wif_config' type to // the given stream. -func writeWifConfigList(list []*WifConfig, stream *jsoniter.Stream) { +func WriteWifConfigList(list []*WifConfig, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeWifConfig(value, stream) + WriteWifConfig(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalWifConfigList(source interface{}) (items []*WifConfig, err error) if err != nil { return } - items = readWifConfigList(iterator) + items = ReadWifConfigList(iterator) err = iterator.Error return } -// readWifConfigList reads list of values of the ”wif_config' type from +// ReadWifConfigList reads list of values of the ”wif_config' type from // the given iterator. -func readWifConfigList(iterator *jsoniter.Iterator) []*WifConfig { +func ReadWifConfigList(iterator *jsoniter.Iterator) []*WifConfig { list := []*WifConfig{} for iterator.ReadArray() { - item := readWifConfig(iterator) + item := ReadWifConfig(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/wif_config_status_list_type_json.go b/clustersmgmt/v1/wif_config_status_list_type_json.go index defdb0e57..47f030760 100644 --- a/clustersmgmt/v1/wif_config_status_list_type_json.go +++ b/clustersmgmt/v1/wif_config_status_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalWifConfigStatusList(list []*WifConfigStatus, writer io.Writer) error { stream := helpers.NewStream(writer) - writeWifConfigStatusList(list, stream) + WriteWifConfigStatusList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalWifConfigStatusList(list []*WifConfigStatus, writer io.Writer) error return stream.Error } -// writeWifConfigStatusList writes a list of value of the 'wif_config_status' type to +// WriteWifConfigStatusList writes a list of value of the 'wif_config_status' type to // the given stream. -func writeWifConfigStatusList(list []*WifConfigStatus, stream *jsoniter.Stream) { +func WriteWifConfigStatusList(list []*WifConfigStatus, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeWifConfigStatus(value, stream) + WriteWifConfigStatus(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalWifConfigStatusList(source interface{}) (items []*WifConfigStatus, if err != nil { return } - items = readWifConfigStatusList(iterator) + items = ReadWifConfigStatusList(iterator) err = iterator.Error return } -// readWifConfigStatusList reads list of values of the ”wif_config_status' type from +// ReadWifConfigStatusList reads list of values of the ”wif_config_status' type from // the given iterator. -func readWifConfigStatusList(iterator *jsoniter.Iterator) []*WifConfigStatus { +func ReadWifConfigStatusList(iterator *jsoniter.Iterator) []*WifConfigStatus { list := []*WifConfigStatus{} for iterator.ReadArray() { - item := readWifConfigStatus(iterator) + item := ReadWifConfigStatus(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/wif_config_status_type.go b/clustersmgmt/v1/wif_config_status_type.go index 61ec3dbc8..52ec344a8 100644 --- a/clustersmgmt/v1/wif_config_status_type.go +++ b/clustersmgmt/v1/wif_config_status_type.go @@ -114,6 +114,29 @@ func (l *WifConfigStatusList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *WifConfigStatusList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *WifConfigStatusList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *WifConfigStatusList) SetItems(items []*WifConfigStatus) { + l.items = items +} + +// Items returns the items of the list. +func (l *WifConfigStatusList) Items() []*WifConfigStatus { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *WifConfigStatusList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/wif_config_status_type_json.go b/clustersmgmt/v1/wif_config_status_type_json.go index 47e88f653..341857e91 100644 --- a/clustersmgmt/v1/wif_config_status_type_json.go +++ b/clustersmgmt/v1/wif_config_status_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalWifConfigStatus writes a value of the 'wif_config_status' type to the given writer. func MarshalWifConfigStatus(object *WifConfigStatus, writer io.Writer) error { stream := helpers.NewStream(writer) - writeWifConfigStatus(object, stream) + WriteWifConfigStatus(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalWifConfigStatus(object *WifConfigStatus, writer io.Writer) error { return stream.Error } -// writeWifConfigStatus writes a value of the 'wif_config_status' type to the given stream. -func writeWifConfigStatus(object *WifConfigStatus, stream *jsoniter.Stream) { +// WriteWifConfigStatus writes a value of the 'wif_config_status' type to the given stream. +func WriteWifConfigStatus(object *WifConfigStatus, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalWifConfigStatus(source interface{}) (object *WifConfigStatus, err if err != nil { return } - object = readWifConfigStatus(iterator) + object = ReadWifConfigStatus(iterator) err = iterator.Error return } -// readWifConfigStatus reads a value of the 'wif_config_status' type from the given iterator. -func readWifConfigStatus(iterator *jsoniter.Iterator) *WifConfigStatus { +// ReadWifConfigStatus reads a value of the 'wif_config_status' type from the given iterator. +func ReadWifConfigStatus(iterator *jsoniter.Iterator) *WifConfigStatus { object := &WifConfigStatus{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/wif_config_type.go b/clustersmgmt/v1/wif_config_type.go index 8d09394d5..0914328e2 100644 --- a/clustersmgmt/v1/wif_config_type.go +++ b/clustersmgmt/v1/wif_config_type.go @@ -55,7 +55,7 @@ func (o *WifConfig) Kind() string { return WifConfigKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *WifConfig) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -254,6 +254,29 @@ func (l *WifConfigList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *WifConfigList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *WifConfigList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *WifConfigList) SetItems(items []*WifConfig) { + l.items = items +} + +// Items returns the items of the list. +func (l *WifConfigList) Items() []*WifConfig { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *WifConfigList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/wif_config_type_json.go b/clustersmgmt/v1/wif_config_type_json.go index a272d58ce..1291cdc60 100644 --- a/clustersmgmt/v1/wif_config_type_json.go +++ b/clustersmgmt/v1/wif_config_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalWifConfig writes a value of the 'wif_config' type to the given writer. func MarshalWifConfig(object *WifConfig, writer io.Writer) error { stream := helpers.NewStream(writer) - writeWifConfig(object, stream) + WriteWifConfig(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalWifConfig(object *WifConfig, writer io.Writer) error { return stream.Error } -// writeWifConfig writes a value of the 'wif_config' type to the given stream. -func writeWifConfig(object *WifConfig, stream *jsoniter.Stream) { +// WriteWifConfig writes a value of the 'wif_config' type to the given stream. +func WriteWifConfig(object *WifConfig, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -80,7 +80,7 @@ func writeWifConfig(object *WifConfig, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("gcp") - writeWifGcp(object.gcp, stream) + WriteWifGcp(object.gcp, stream) count++ } present_ = object.bitmap_&32 != 0 && object.organization != nil @@ -89,7 +89,7 @@ func writeWifConfig(object *WifConfig, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("organization") - writeOrganizationLink(object.organization, stream) + WriteOrganizationLink(object.organization, stream) count++ } present_ = object.bitmap_&64 != 0 && object.wifTemplates != nil @@ -98,7 +98,7 @@ func writeWifConfig(object *WifConfig, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("wif_templates") - writeStringList(object.wifTemplates, stream) + WriteStringList(object.wifTemplates, stream) } stream.WriteObjectEnd() } @@ -110,13 +110,13 @@ func UnmarshalWifConfig(source interface{}) (object *WifConfig, err error) { if err != nil { return } - object = readWifConfig(iterator) + object = ReadWifConfig(iterator) err = iterator.Error return } -// readWifConfig reads a value of the 'wif_config' type from the given iterator. -func readWifConfig(iterator *jsoniter.Iterator) *WifConfig { +// ReadWifConfig reads a value of the 'wif_config' type from the given iterator. +func ReadWifConfig(iterator *jsoniter.Iterator) *WifConfig { object := &WifConfig{} for { field := iterator.ReadObject() @@ -140,15 +140,15 @@ func readWifConfig(iterator *jsoniter.Iterator) *WifConfig { object.displayName = value object.bitmap_ |= 8 case "gcp": - value := readWifGcp(iterator) + value := ReadWifGcp(iterator) object.gcp = value object.bitmap_ |= 16 case "organization": - value := readOrganizationLink(iterator) + value := ReadOrganizationLink(iterator) object.organization = value object.bitmap_ |= 32 case "wif_templates": - value := readStringList(iterator) + value := ReadStringList(iterator) object.wifTemplates = value object.bitmap_ |= 64 default: diff --git a/clustersmgmt/v1/wif_configs_resource_json.go b/clustersmgmt/v1/wif_configs_resource_json.go index 5a83e75cb..9a6d2f0c7 100644 --- a/clustersmgmt/v1/wif_configs_resource_json.go +++ b/clustersmgmt/v1/wif_configs_resource_json.go @@ -57,7 +57,7 @@ func readWifConfigsListResponse(response *WifConfigsListResponse, reader io.Read value := iterator.ReadInt() response.total = &value case "items": - items := readWifConfigList(iterator) + items := ReadWifConfigList(iterator) response.items = &WifConfigList{ items: items, } diff --git a/clustersmgmt/v1/wif_credential_request_list_type_json.go b/clustersmgmt/v1/wif_credential_request_list_type_json.go index efc10d19b..888121c55 100644 --- a/clustersmgmt/v1/wif_credential_request_list_type_json.go +++ b/clustersmgmt/v1/wif_credential_request_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalWifCredentialRequestList(list []*WifCredentialRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeWifCredentialRequestList(list, stream) + WriteWifCredentialRequestList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalWifCredentialRequestList(list []*WifCredentialRequest, writer io.Wri return stream.Error } -// writeWifCredentialRequestList writes a list of value of the 'wif_credential_request' type to +// WriteWifCredentialRequestList writes a list of value of the 'wif_credential_request' type to // the given stream. -func writeWifCredentialRequestList(list []*WifCredentialRequest, stream *jsoniter.Stream) { +func WriteWifCredentialRequestList(list []*WifCredentialRequest, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeWifCredentialRequest(value, stream) + WriteWifCredentialRequest(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalWifCredentialRequestList(source interface{}) (items []*WifCredenti if err != nil { return } - items = readWifCredentialRequestList(iterator) + items = ReadWifCredentialRequestList(iterator) err = iterator.Error return } -// readWifCredentialRequestList reads list of values of the ”wif_credential_request' type from +// ReadWifCredentialRequestList reads list of values of the ”wif_credential_request' type from // the given iterator. -func readWifCredentialRequestList(iterator *jsoniter.Iterator) []*WifCredentialRequest { +func ReadWifCredentialRequestList(iterator *jsoniter.Iterator) []*WifCredentialRequest { list := []*WifCredentialRequest{} for iterator.ReadArray() { - item := readWifCredentialRequest(iterator) + item := ReadWifCredentialRequest(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/wif_credential_request_type.go b/clustersmgmt/v1/wif_credential_request_type.go index 9a46e4c5f..77e4e37bd 100644 --- a/clustersmgmt/v1/wif_credential_request_type.go +++ b/clustersmgmt/v1/wif_credential_request_type.go @@ -96,6 +96,29 @@ func (l *WifCredentialRequestList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *WifCredentialRequestList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *WifCredentialRequestList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *WifCredentialRequestList) SetItems(items []*WifCredentialRequest) { + l.items = items +} + +// Items returns the items of the list. +func (l *WifCredentialRequestList) Items() []*WifCredentialRequest { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *WifCredentialRequestList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/wif_credential_request_type_json.go b/clustersmgmt/v1/wif_credential_request_type_json.go index af1a4fec3..93b9a96f1 100644 --- a/clustersmgmt/v1/wif_credential_request_type_json.go +++ b/clustersmgmt/v1/wif_credential_request_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalWifCredentialRequest writes a value of the 'wif_credential_request' type to the given writer. func MarshalWifCredentialRequest(object *WifCredentialRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeWifCredentialRequest(object, stream) + WriteWifCredentialRequest(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalWifCredentialRequest(object *WifCredentialRequest, writer io.Writer) return stream.Error } -// writeWifCredentialRequest writes a value of the 'wif_credential_request' type to the given stream. -func writeWifCredentialRequest(object *WifCredentialRequest, stream *jsoniter.Stream) { +// WriteWifCredentialRequest writes a value of the 'wif_credential_request' type to the given stream. +func WriteWifCredentialRequest(object *WifCredentialRequest, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeWifCredentialRequest(object *WifCredentialRequest, stream *jsoniter.St stream.WriteMore() } stream.WriteObjectField("secret_ref") - writeWifSecretRef(object.secretRef, stream) + WriteWifSecretRef(object.secretRef, stream) count++ } present_ = object.bitmap_&2 != 0 && object.serviceAccountNames != nil @@ -57,7 +57,7 @@ func writeWifCredentialRequest(object *WifCredentialRequest, stream *jsoniter.St stream.WriteMore() } stream.WriteObjectField("service_account_names") - writeStringList(object.serviceAccountNames, stream) + WriteStringList(object.serviceAccountNames, stream) } stream.WriteObjectEnd() } @@ -69,13 +69,13 @@ func UnmarshalWifCredentialRequest(source interface{}) (object *WifCredentialReq if err != nil { return } - object = readWifCredentialRequest(iterator) + object = ReadWifCredentialRequest(iterator) err = iterator.Error return } -// readWifCredentialRequest reads a value of the 'wif_credential_request' type from the given iterator. -func readWifCredentialRequest(iterator *jsoniter.Iterator) *WifCredentialRequest { +// ReadWifCredentialRequest reads a value of the 'wif_credential_request' type from the given iterator. +func ReadWifCredentialRequest(iterator *jsoniter.Iterator) *WifCredentialRequest { object := &WifCredentialRequest{} for { field := iterator.ReadObject() @@ -84,11 +84,11 @@ func readWifCredentialRequest(iterator *jsoniter.Iterator) *WifCredentialRequest } switch field { case "secret_ref": - value := readWifSecretRef(iterator) + value := ReadWifSecretRef(iterator) object.secretRef = value object.bitmap_ |= 1 case "service_account_names": - value := readStringList(iterator) + value := ReadStringList(iterator) object.serviceAccountNames = value object.bitmap_ |= 2 default: diff --git a/clustersmgmt/v1/wif_gcp_list_type_json.go b/clustersmgmt/v1/wif_gcp_list_type_json.go index a1291b03f..5778ab6f6 100644 --- a/clustersmgmt/v1/wif_gcp_list_type_json.go +++ b/clustersmgmt/v1/wif_gcp_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalWifGcpList(list []*WifGcp, writer io.Writer) error { stream := helpers.NewStream(writer) - writeWifGcpList(list, stream) + WriteWifGcpList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalWifGcpList(list []*WifGcp, writer io.Writer) error { return stream.Error } -// writeWifGcpList writes a list of value of the 'wif_gcp' type to +// WriteWifGcpList writes a list of value of the 'wif_gcp' type to // the given stream. -func writeWifGcpList(list []*WifGcp, stream *jsoniter.Stream) { +func WriteWifGcpList(list []*WifGcp, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeWifGcp(value, stream) + WriteWifGcp(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalWifGcpList(source interface{}) (items []*WifGcp, err error) { if err != nil { return } - items = readWifGcpList(iterator) + items = ReadWifGcpList(iterator) err = iterator.Error return } -// readWifGcpList reads list of values of the ”wif_gcp' type from +// ReadWifGcpList reads list of values of the ”wif_gcp' type from // the given iterator. -func readWifGcpList(iterator *jsoniter.Iterator) []*WifGcp { +func ReadWifGcpList(iterator *jsoniter.Iterator) []*WifGcp { list := []*WifGcp{} for iterator.ReadArray() { - item := readWifGcp(iterator) + item := ReadWifGcp(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/wif_gcp_type.go b/clustersmgmt/v1/wif_gcp_type.go index 7db9d05e9..6eea3ac8e 100644 --- a/clustersmgmt/v1/wif_gcp_type.go +++ b/clustersmgmt/v1/wif_gcp_type.go @@ -228,6 +228,29 @@ func (l *WifGcpList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *WifGcpList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *WifGcpList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *WifGcpList) SetItems(items []*WifGcp) { + l.items = items +} + +// Items returns the items of the list. +func (l *WifGcpList) Items() []*WifGcp { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *WifGcpList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/wif_gcp_type_json.go b/clustersmgmt/v1/wif_gcp_type_json.go index 20e83054d..80f893be6 100644 --- a/clustersmgmt/v1/wif_gcp_type_json.go +++ b/clustersmgmt/v1/wif_gcp_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalWifGcp writes a value of the 'wif_gcp' type to the given writer. func MarshalWifGcp(object *WifGcp, writer io.Writer) error { stream := helpers.NewStream(writer) - writeWifGcp(object, stream) + WriteWifGcp(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalWifGcp(object *WifGcp, writer io.Writer) error { return stream.Error } -// writeWifGcp writes a value of the 'wif_gcp' type to the given stream. -func writeWifGcp(object *WifGcp, stream *jsoniter.Stream) { +// WriteWifGcp writes a value of the 'wif_gcp' type to the given stream. +func WriteWifGcp(object *WifGcp, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -84,7 +84,7 @@ func writeWifGcp(object *WifGcp, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("service_accounts") - writeWifServiceAccountList(object.serviceAccounts, stream) + WriteWifServiceAccountList(object.serviceAccounts, stream) count++ } present_ = object.bitmap_&32 != 0 && object.support != nil @@ -93,7 +93,7 @@ func writeWifGcp(object *WifGcp, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("support") - writeWifSupport(object.support, stream) + WriteWifSupport(object.support, stream) count++ } present_ = object.bitmap_&64 != 0 && object.workloadIdentityPool != nil @@ -102,7 +102,7 @@ func writeWifGcp(object *WifGcp, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("workload_identity_pool") - writeWifPool(object.workloadIdentityPool, stream) + WriteWifPool(object.workloadIdentityPool, stream) } stream.WriteObjectEnd() } @@ -114,13 +114,13 @@ func UnmarshalWifGcp(source interface{}) (object *WifGcp, err error) { if err != nil { return } - object = readWifGcp(iterator) + object = ReadWifGcp(iterator) err = iterator.Error return } -// readWifGcp reads a value of the 'wif_gcp' type from the given iterator. -func readWifGcp(iterator *jsoniter.Iterator) *WifGcp { +// ReadWifGcp reads a value of the 'wif_gcp' type from the given iterator. +func ReadWifGcp(iterator *jsoniter.Iterator) *WifGcp { object := &WifGcp{} for { field := iterator.ReadObject() @@ -145,15 +145,15 @@ func readWifGcp(iterator *jsoniter.Iterator) *WifGcp { object.rolePrefix = value object.bitmap_ |= 8 case "service_accounts": - value := readWifServiceAccountList(iterator) + value := ReadWifServiceAccountList(iterator) object.serviceAccounts = value object.bitmap_ |= 16 case "support": - value := readWifSupport(iterator) + value := ReadWifSupport(iterator) object.support = value object.bitmap_ |= 32 case "workload_identity_pool": - value := readWifPool(iterator) + value := ReadWifPool(iterator) object.workloadIdentityPool = value object.bitmap_ |= 64 default: diff --git a/clustersmgmt/v1/wif_identity_provider_list_type_json.go b/clustersmgmt/v1/wif_identity_provider_list_type_json.go index 5bd041529..8a9e8ab78 100644 --- a/clustersmgmt/v1/wif_identity_provider_list_type_json.go +++ b/clustersmgmt/v1/wif_identity_provider_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalWifIdentityProviderList(list []*WifIdentityProvider, writer io.Writer) error { stream := helpers.NewStream(writer) - writeWifIdentityProviderList(list, stream) + WriteWifIdentityProviderList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalWifIdentityProviderList(list []*WifIdentityProvider, writer io.Write return stream.Error } -// writeWifIdentityProviderList writes a list of value of the 'wif_identity_provider' type to +// WriteWifIdentityProviderList writes a list of value of the 'wif_identity_provider' type to // the given stream. -func writeWifIdentityProviderList(list []*WifIdentityProvider, stream *jsoniter.Stream) { +func WriteWifIdentityProviderList(list []*WifIdentityProvider, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeWifIdentityProvider(value, stream) + WriteWifIdentityProvider(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalWifIdentityProviderList(source interface{}) (items []*WifIdentityP if err != nil { return } - items = readWifIdentityProviderList(iterator) + items = ReadWifIdentityProviderList(iterator) err = iterator.Error return } -// readWifIdentityProviderList reads list of values of the ”wif_identity_provider' type from +// ReadWifIdentityProviderList reads list of values of the ”wif_identity_provider' type from // the given iterator. -func readWifIdentityProviderList(iterator *jsoniter.Iterator) []*WifIdentityProvider { +func ReadWifIdentityProviderList(iterator *jsoniter.Iterator) []*WifIdentityProvider { list := []*WifIdentityProvider{} for iterator.ReadArray() { - item := readWifIdentityProvider(iterator) + item := ReadWifIdentityProvider(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/wif_identity_provider_type.go b/clustersmgmt/v1/wif_identity_provider_type.go index 33af7c5e6..71979ecc5 100644 --- a/clustersmgmt/v1/wif_identity_provider_type.go +++ b/clustersmgmt/v1/wif_identity_provider_type.go @@ -136,6 +136,29 @@ func (l *WifIdentityProviderList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *WifIdentityProviderList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *WifIdentityProviderList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *WifIdentityProviderList) SetItems(items []*WifIdentityProvider) { + l.items = items +} + +// Items returns the items of the list. +func (l *WifIdentityProviderList) Items() []*WifIdentityProvider { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *WifIdentityProviderList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/wif_identity_provider_type_json.go b/clustersmgmt/v1/wif_identity_provider_type_json.go index 396a8f94c..05776cc9b 100644 --- a/clustersmgmt/v1/wif_identity_provider_type_json.go +++ b/clustersmgmt/v1/wif_identity_provider_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalWifIdentityProvider writes a value of the 'wif_identity_provider' type to the given writer. func MarshalWifIdentityProvider(object *WifIdentityProvider, writer io.Writer) error { stream := helpers.NewStream(writer) - writeWifIdentityProvider(object, stream) + WriteWifIdentityProvider(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalWifIdentityProvider(object *WifIdentityProvider, writer io.Writer) e return stream.Error } -// writeWifIdentityProvider writes a value of the 'wif_identity_provider' type to the given stream. -func writeWifIdentityProvider(object *WifIdentityProvider, stream *jsoniter.Stream) { +// WriteWifIdentityProvider writes a value of the 'wif_identity_provider' type to the given stream. +func WriteWifIdentityProvider(object *WifIdentityProvider, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeWifIdentityProvider(object *WifIdentityProvider, stream *jsoniter.Stre stream.WriteMore() } stream.WriteObjectField("allowed_audiences") - writeStringList(object.allowedAudiences, stream) + WriteStringList(object.allowedAudiences, stream) count++ } present_ = object.bitmap_&2 != 0 @@ -87,13 +87,13 @@ func UnmarshalWifIdentityProvider(source interface{}) (object *WifIdentityProvid if err != nil { return } - object = readWifIdentityProvider(iterator) + object = ReadWifIdentityProvider(iterator) err = iterator.Error return } -// readWifIdentityProvider reads a value of the 'wif_identity_provider' type from the given iterator. -func readWifIdentityProvider(iterator *jsoniter.Iterator) *WifIdentityProvider { +// ReadWifIdentityProvider reads a value of the 'wif_identity_provider' type from the given iterator. +func ReadWifIdentityProvider(iterator *jsoniter.Iterator) *WifIdentityProvider { object := &WifIdentityProvider{} for { field := iterator.ReadObject() @@ -102,7 +102,7 @@ func readWifIdentityProvider(iterator *jsoniter.Iterator) *WifIdentityProvider { } switch field { case "allowed_audiences": - value := readStringList(iterator) + value := ReadStringList(iterator) object.allowedAudiences = value object.bitmap_ |= 1 case "identity_provider_id": diff --git a/clustersmgmt/v1/wif_pool_list_type_json.go b/clustersmgmt/v1/wif_pool_list_type_json.go index 94b6cbb42..4a1fe0c72 100644 --- a/clustersmgmt/v1/wif_pool_list_type_json.go +++ b/clustersmgmt/v1/wif_pool_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalWifPoolList(list []*WifPool, writer io.Writer) error { stream := helpers.NewStream(writer) - writeWifPoolList(list, stream) + WriteWifPoolList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalWifPoolList(list []*WifPool, writer io.Writer) error { return stream.Error } -// writeWifPoolList writes a list of value of the 'wif_pool' type to +// WriteWifPoolList writes a list of value of the 'wif_pool' type to // the given stream. -func writeWifPoolList(list []*WifPool, stream *jsoniter.Stream) { +func WriteWifPoolList(list []*WifPool, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeWifPool(value, stream) + WriteWifPool(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalWifPoolList(source interface{}) (items []*WifPool, err error) { if err != nil { return } - items = readWifPoolList(iterator) + items = ReadWifPoolList(iterator) err = iterator.Error return } -// readWifPoolList reads list of values of the ”wif_pool' type from +// ReadWifPoolList reads list of values of the ”wif_pool' type from // the given iterator. -func readWifPoolList(iterator *jsoniter.Iterator) []*WifPool { +func ReadWifPoolList(iterator *jsoniter.Iterator) []*WifPool { list := []*WifPool{} for iterator.ReadArray() { - item := readWifPool(iterator) + item := ReadWifPool(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/wif_pool_type.go b/clustersmgmt/v1/wif_pool_type.go index a1398ccd8..ef7b89770 100644 --- a/clustersmgmt/v1/wif_pool_type.go +++ b/clustersmgmt/v1/wif_pool_type.go @@ -130,6 +130,29 @@ func (l *WifPoolList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *WifPoolList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *WifPoolList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *WifPoolList) SetItems(items []*WifPool) { + l.items = items +} + +// Items returns the items of the list. +func (l *WifPoolList) Items() []*WifPool { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *WifPoolList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/wif_pool_type_json.go b/clustersmgmt/v1/wif_pool_type_json.go index 06fd444ba..8e4ca9bcd 100644 --- a/clustersmgmt/v1/wif_pool_type_json.go +++ b/clustersmgmt/v1/wif_pool_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalWifPool writes a value of the 'wif_pool' type to the given writer. func MarshalWifPool(object *WifPool, writer io.Writer) error { stream := helpers.NewStream(writer) - writeWifPool(object, stream) + WriteWifPool(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalWifPool(object *WifPool, writer io.Writer) error { return stream.Error } -// writeWifPool writes a value of the 'wif_pool' type to the given stream. -func writeWifPool(object *WifPool, stream *jsoniter.Stream) { +// WriteWifPool writes a value of the 'wif_pool' type to the given stream. +func WriteWifPool(object *WifPool, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeWifPool(object *WifPool, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("identity_provider") - writeWifIdentityProvider(object.identityProvider, stream) + WriteWifIdentityProvider(object.identityProvider, stream) count++ } present_ = object.bitmap_&2 != 0 @@ -78,13 +78,13 @@ func UnmarshalWifPool(source interface{}) (object *WifPool, err error) { if err != nil { return } - object = readWifPool(iterator) + object = ReadWifPool(iterator) err = iterator.Error return } -// readWifPool reads a value of the 'wif_pool' type from the given iterator. -func readWifPool(iterator *jsoniter.Iterator) *WifPool { +// ReadWifPool reads a value of the 'wif_pool' type from the given iterator. +func ReadWifPool(iterator *jsoniter.Iterator) *WifPool { object := &WifPool{} for { field := iterator.ReadObject() @@ -93,7 +93,7 @@ func readWifPool(iterator *jsoniter.Iterator) *WifPool { } switch field { case "identity_provider": - value := readWifIdentityProvider(iterator) + value := ReadWifIdentityProvider(iterator) object.identityProvider = value object.bitmap_ |= 1 case "pool_id": diff --git a/clustersmgmt/v1/wif_role_list_type_json.go b/clustersmgmt/v1/wif_role_list_type_json.go index 9c8fdb5a4..06a70500e 100644 --- a/clustersmgmt/v1/wif_role_list_type_json.go +++ b/clustersmgmt/v1/wif_role_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalWifRoleList(list []*WifRole, writer io.Writer) error { stream := helpers.NewStream(writer) - writeWifRoleList(list, stream) + WriteWifRoleList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalWifRoleList(list []*WifRole, writer io.Writer) error { return stream.Error } -// writeWifRoleList writes a list of value of the 'wif_role' type to +// WriteWifRoleList writes a list of value of the 'wif_role' type to // the given stream. -func writeWifRoleList(list []*WifRole, stream *jsoniter.Stream) { +func WriteWifRoleList(list []*WifRole, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeWifRole(value, stream) + WriteWifRole(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalWifRoleList(source interface{}) (items []*WifRole, err error) { if err != nil { return } - items = readWifRoleList(iterator) + items = ReadWifRoleList(iterator) err = iterator.Error return } -// readWifRoleList reads list of values of the ”wif_role' type from +// ReadWifRoleList reads list of values of the ”wif_role' type from // the given iterator. -func readWifRoleList(iterator *jsoniter.Iterator) []*WifRole { +func ReadWifRoleList(iterator *jsoniter.Iterator) []*WifRole { list := []*WifRole{} for iterator.ReadArray() { - item := readWifRole(iterator) + item := ReadWifRole(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/wif_role_type.go b/clustersmgmt/v1/wif_role_type.go index a4384b370..31f307a22 100644 --- a/clustersmgmt/v1/wif_role_type.go +++ b/clustersmgmt/v1/wif_role_type.go @@ -116,6 +116,29 @@ func (l *WifRoleList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *WifRoleList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *WifRoleList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *WifRoleList) SetItems(items []*WifRole) { + l.items = items +} + +// Items returns the items of the list. +func (l *WifRoleList) Items() []*WifRole { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *WifRoleList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/wif_role_type_json.go b/clustersmgmt/v1/wif_role_type_json.go index 1d4dc3d79..6c516d751 100644 --- a/clustersmgmt/v1/wif_role_type_json.go +++ b/clustersmgmt/v1/wif_role_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalWifRole writes a value of the 'wif_role' type to the given writer. func MarshalWifRole(object *WifRole, writer io.Writer) error { stream := helpers.NewStream(writer) - writeWifRole(object, stream) + WriteWifRole(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalWifRole(object *WifRole, writer io.Writer) error { return stream.Error } -// writeWifRole writes a value of the 'wif_role' type to the given stream. -func writeWifRole(object *WifRole, stream *jsoniter.Stream) { +// WriteWifRole writes a value of the 'wif_role' type to the given stream. +func WriteWifRole(object *WifRole, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeWifRole(object *WifRole, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("permissions") - writeStringList(object.permissions, stream) + WriteStringList(object.permissions, stream) count++ } present_ = object.bitmap_&2 != 0 @@ -78,13 +78,13 @@ func UnmarshalWifRole(source interface{}) (object *WifRole, err error) { if err != nil { return } - object = readWifRole(iterator) + object = ReadWifRole(iterator) err = iterator.Error return } -// readWifRole reads a value of the 'wif_role' type from the given iterator. -func readWifRole(iterator *jsoniter.Iterator) *WifRole { +// ReadWifRole reads a value of the 'wif_role' type from the given iterator. +func ReadWifRole(iterator *jsoniter.Iterator) *WifRole { object := &WifRole{} for { field := iterator.ReadObject() @@ -93,7 +93,7 @@ func readWifRole(iterator *jsoniter.Iterator) *WifRole { } switch field { case "permissions": - value := readStringList(iterator) + value := ReadStringList(iterator) object.permissions = value object.bitmap_ |= 1 case "predefined": diff --git a/clustersmgmt/v1/wif_secret_ref_list_type_json.go b/clustersmgmt/v1/wif_secret_ref_list_type_json.go index 95c8e788f..50e6dac0c 100644 --- a/clustersmgmt/v1/wif_secret_ref_list_type_json.go +++ b/clustersmgmt/v1/wif_secret_ref_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalWifSecretRefList(list []*WifSecretRef, writer io.Writer) error { stream := helpers.NewStream(writer) - writeWifSecretRefList(list, stream) + WriteWifSecretRefList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalWifSecretRefList(list []*WifSecretRef, writer io.Writer) error { return stream.Error } -// writeWifSecretRefList writes a list of value of the 'wif_secret_ref' type to +// WriteWifSecretRefList writes a list of value of the 'wif_secret_ref' type to // the given stream. -func writeWifSecretRefList(list []*WifSecretRef, stream *jsoniter.Stream) { +func WriteWifSecretRefList(list []*WifSecretRef, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeWifSecretRef(value, stream) + WriteWifSecretRef(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalWifSecretRefList(source interface{}) (items []*WifSecretRef, err e if err != nil { return } - items = readWifSecretRefList(iterator) + items = ReadWifSecretRefList(iterator) err = iterator.Error return } -// readWifSecretRefList reads list of values of the ”wif_secret_ref' type from +// ReadWifSecretRefList reads list of values of the ”wif_secret_ref' type from // the given iterator. -func readWifSecretRefList(iterator *jsoniter.Iterator) []*WifSecretRef { +func ReadWifSecretRefList(iterator *jsoniter.Iterator) []*WifSecretRef { list := []*WifSecretRef{} for iterator.ReadArray() { - item := readWifSecretRef(iterator) + item := ReadWifSecretRef(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/wif_secret_ref_type.go b/clustersmgmt/v1/wif_secret_ref_type.go index fbf1f9702..3cd265775 100644 --- a/clustersmgmt/v1/wif_secret_ref_type.go +++ b/clustersmgmt/v1/wif_secret_ref_type.go @@ -96,6 +96,29 @@ func (l *WifSecretRefList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *WifSecretRefList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *WifSecretRefList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *WifSecretRefList) SetItems(items []*WifSecretRef) { + l.items = items +} + +// Items returns the items of the list. +func (l *WifSecretRefList) Items() []*WifSecretRef { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *WifSecretRefList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/wif_secret_ref_type_json.go b/clustersmgmt/v1/wif_secret_ref_type_json.go index f19c3bd92..4ba1255bd 100644 --- a/clustersmgmt/v1/wif_secret_ref_type_json.go +++ b/clustersmgmt/v1/wif_secret_ref_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalWifSecretRef writes a value of the 'wif_secret_ref' type to the given writer. func MarshalWifSecretRef(object *WifSecretRef, writer io.Writer) error { stream := helpers.NewStream(writer) - writeWifSecretRef(object, stream) + WriteWifSecretRef(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalWifSecretRef(object *WifSecretRef, writer io.Writer) error { return stream.Error } -// writeWifSecretRef writes a value of the 'wif_secret_ref' type to the given stream. -func writeWifSecretRef(object *WifSecretRef, stream *jsoniter.Stream) { +// WriteWifSecretRef writes a value of the 'wif_secret_ref' type to the given stream. +func WriteWifSecretRef(object *WifSecretRef, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalWifSecretRef(source interface{}) (object *WifSecretRef, err error) if err != nil { return } - object = readWifSecretRef(iterator) + object = ReadWifSecretRef(iterator) err = iterator.Error return } -// readWifSecretRef reads a value of the 'wif_secret_ref' type from the given iterator. -func readWifSecretRef(iterator *jsoniter.Iterator) *WifSecretRef { +// ReadWifSecretRef reads a value of the 'wif_secret_ref' type from the given iterator. +func ReadWifSecretRef(iterator *jsoniter.Iterator) *WifSecretRef { object := &WifSecretRef{} for { field := iterator.ReadObject() diff --git a/clustersmgmt/v1/wif_service_account_list_type_json.go b/clustersmgmt/v1/wif_service_account_list_type_json.go index 233fd27df..e48b6d187 100644 --- a/clustersmgmt/v1/wif_service_account_list_type_json.go +++ b/clustersmgmt/v1/wif_service_account_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalWifServiceAccountList(list []*WifServiceAccount, writer io.Writer) error { stream := helpers.NewStream(writer) - writeWifServiceAccountList(list, stream) + WriteWifServiceAccountList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalWifServiceAccountList(list []*WifServiceAccount, writer io.Writer) e return stream.Error } -// writeWifServiceAccountList writes a list of value of the 'wif_service_account' type to +// WriteWifServiceAccountList writes a list of value of the 'wif_service_account' type to // the given stream. -func writeWifServiceAccountList(list []*WifServiceAccount, stream *jsoniter.Stream) { +func WriteWifServiceAccountList(list []*WifServiceAccount, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeWifServiceAccount(value, stream) + WriteWifServiceAccount(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalWifServiceAccountList(source interface{}) (items []*WifServiceAcco if err != nil { return } - items = readWifServiceAccountList(iterator) + items = ReadWifServiceAccountList(iterator) err = iterator.Error return } -// readWifServiceAccountList reads list of values of the ”wif_service_account' type from +// ReadWifServiceAccountList reads list of values of the ”wif_service_account' type from // the given iterator. -func readWifServiceAccountList(iterator *jsoniter.Iterator) []*WifServiceAccount { +func ReadWifServiceAccountList(iterator *jsoniter.Iterator) []*WifServiceAccount { list := []*WifServiceAccount{} for iterator.ReadArray() { - item := readWifServiceAccount(iterator) + item := ReadWifServiceAccount(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/wif_service_account_type.go b/clustersmgmt/v1/wif_service_account_type.go index 2da02cbf7..a71528de5 100644 --- a/clustersmgmt/v1/wif_service_account_type.go +++ b/clustersmgmt/v1/wif_service_account_type.go @@ -156,6 +156,29 @@ func (l *WifServiceAccountList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *WifServiceAccountList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *WifServiceAccountList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *WifServiceAccountList) SetItems(items []*WifServiceAccount) { + l.items = items +} + +// Items returns the items of the list. +func (l *WifServiceAccountList) Items() []*WifServiceAccount { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *WifServiceAccountList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/wif_service_account_type_json.go b/clustersmgmt/v1/wif_service_account_type_json.go index c6d8070d9..619579589 100644 --- a/clustersmgmt/v1/wif_service_account_type_json.go +++ b/clustersmgmt/v1/wif_service_account_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalWifServiceAccount writes a value of the 'wif_service_account' type to the given writer. func MarshalWifServiceAccount(object *WifServiceAccount, writer io.Writer) error { stream := helpers.NewStream(writer) - writeWifServiceAccount(object, stream) + WriteWifServiceAccount(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalWifServiceAccount(object *WifServiceAccount, writer io.Writer) error return stream.Error } -// writeWifServiceAccount writes a value of the 'wif_service_account' type to the given stream. -func writeWifServiceAccount(object *WifServiceAccount, stream *jsoniter.Stream) { +// WriteWifServiceAccount writes a value of the 'wif_service_account' type to the given stream. +func WriteWifServiceAccount(object *WifServiceAccount, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -57,7 +57,7 @@ func writeWifServiceAccount(object *WifServiceAccount, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("credential_request") - writeWifCredentialRequest(object.credentialRequest, stream) + WriteWifCredentialRequest(object.credentialRequest, stream) count++ } present_ = object.bitmap_&4 != 0 @@ -75,7 +75,7 @@ func writeWifServiceAccount(object *WifServiceAccount, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("roles") - writeWifRoleList(object.roles, stream) + WriteWifRoleList(object.roles, stream) count++ } present_ = object.bitmap_&16 != 0 @@ -96,13 +96,13 @@ func UnmarshalWifServiceAccount(source interface{}) (object *WifServiceAccount, if err != nil { return } - object = readWifServiceAccount(iterator) + object = ReadWifServiceAccount(iterator) err = iterator.Error return } -// readWifServiceAccount reads a value of the 'wif_service_account' type from the given iterator. -func readWifServiceAccount(iterator *jsoniter.Iterator) *WifServiceAccount { +// ReadWifServiceAccount reads a value of the 'wif_service_account' type from the given iterator. +func ReadWifServiceAccount(iterator *jsoniter.Iterator) *WifServiceAccount { object := &WifServiceAccount{} for { field := iterator.ReadObject() @@ -116,7 +116,7 @@ func readWifServiceAccount(iterator *jsoniter.Iterator) *WifServiceAccount { object.accessMethod = value object.bitmap_ |= 1 case "credential_request": - value := readWifCredentialRequest(iterator) + value := ReadWifCredentialRequest(iterator) object.credentialRequest = value object.bitmap_ |= 2 case "osd_role": @@ -124,7 +124,7 @@ func readWifServiceAccount(iterator *jsoniter.Iterator) *WifServiceAccount { object.osdRole = value object.bitmap_ |= 4 case "roles": - value := readWifRoleList(iterator) + value := ReadWifRoleList(iterator) object.roles = value object.bitmap_ |= 8 case "service_account_id": diff --git a/clustersmgmt/v1/wif_support_list_type_json.go b/clustersmgmt/v1/wif_support_list_type_json.go index 9c245e2dd..676f39d35 100644 --- a/clustersmgmt/v1/wif_support_list_type_json.go +++ b/clustersmgmt/v1/wif_support_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalWifSupportList(list []*WifSupport, writer io.Writer) error { stream := helpers.NewStream(writer) - writeWifSupportList(list, stream) + WriteWifSupportList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalWifSupportList(list []*WifSupport, writer io.Writer) error { return stream.Error } -// writeWifSupportList writes a list of value of the 'wif_support' type to +// WriteWifSupportList writes a list of value of the 'wif_support' type to // the given stream. -func writeWifSupportList(list []*WifSupport, stream *jsoniter.Stream) { +func WriteWifSupportList(list []*WifSupport, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeWifSupport(value, stream) + WriteWifSupport(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalWifSupportList(source interface{}) (items []*WifSupport, err error if err != nil { return } - items = readWifSupportList(iterator) + items = ReadWifSupportList(iterator) err = iterator.Error return } -// readWifSupportList reads list of values of the ”wif_support' type from +// ReadWifSupportList reads list of values of the ”wif_support' type from // the given iterator. -func readWifSupportList(iterator *jsoniter.Iterator) []*WifSupport { +func ReadWifSupportList(iterator *jsoniter.Iterator) []*WifSupport { list := []*WifSupport{} for iterator.ReadArray() { - item := readWifSupport(iterator) + item := ReadWifSupport(iterator) list = append(list, item) } return list diff --git a/clustersmgmt/v1/wif_support_type.go b/clustersmgmt/v1/wif_support_type.go index afea142bb..e647e703b 100644 --- a/clustersmgmt/v1/wif_support_type.go +++ b/clustersmgmt/v1/wif_support_type.go @@ -96,6 +96,29 @@ func (l *WifSupportList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *WifSupportList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *WifSupportList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *WifSupportList) SetItems(items []*WifSupport) { + l.items = items +} + +// Items returns the items of the list. +func (l *WifSupportList) Items() []*WifSupport { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *WifSupportList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/clustersmgmt/v1/wif_support_type_json.go b/clustersmgmt/v1/wif_support_type_json.go index f08029661..6af7b236f 100644 --- a/clustersmgmt/v1/wif_support_type_json.go +++ b/clustersmgmt/v1/wif_support_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalWifSupport writes a value of the 'wif_support' type to the given writer. func MarshalWifSupport(object *WifSupport, writer io.Writer) error { stream := helpers.NewStream(writer) - writeWifSupport(object, stream) + WriteWifSupport(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalWifSupport(object *WifSupport, writer io.Writer) error { return stream.Error } -// writeWifSupport writes a value of the 'wif_support' type to the given stream. -func writeWifSupport(object *WifSupport, stream *jsoniter.Stream) { +// WriteWifSupport writes a value of the 'wif_support' type to the given stream. +func WriteWifSupport(object *WifSupport, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -57,7 +57,7 @@ func writeWifSupport(object *WifSupport, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("roles") - writeWifRoleList(object.roles, stream) + WriteWifRoleList(object.roles, stream) } stream.WriteObjectEnd() } @@ -69,13 +69,13 @@ func UnmarshalWifSupport(source interface{}) (object *WifSupport, err error) { if err != nil { return } - object = readWifSupport(iterator) + object = ReadWifSupport(iterator) err = iterator.Error return } -// readWifSupport reads a value of the 'wif_support' type from the given iterator. -func readWifSupport(iterator *jsoniter.Iterator) *WifSupport { +// ReadWifSupport reads a value of the 'wif_support' type from the given iterator. +func ReadWifSupport(iterator *jsoniter.Iterator) *WifSupport { object := &WifSupport{} for { field := iterator.ReadObject() @@ -88,7 +88,7 @@ func readWifSupport(iterator *jsoniter.Iterator) *WifSupport { object.principal = value object.bitmap_ |= 1 case "roles": - value := readWifRoleList(iterator) + value := ReadWifRoleList(iterator) object.roles = value object.bitmap_ |= 2 default: diff --git a/clustersmgmt/v1/wildcard_policy_list_type_json.go b/clustersmgmt/v1/wildcard_policy_list_type_json.go index e9b0068da..cad3c5d2b 100644 --- a/clustersmgmt/v1/wildcard_policy_list_type_json.go +++ b/clustersmgmt/v1/wildcard_policy_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalWildcardPolicyList(list []WildcardPolicy, writer io.Writer) error { stream := helpers.NewStream(writer) - writeWildcardPolicyList(list, stream) + WriteWildcardPolicyList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalWildcardPolicyList(list []WildcardPolicy, writer io.Writer) error { return stream.Error } -// writeWildcardPolicyList writes a list of value of the 'wildcard_policy' type to +// WriteWildcardPolicyList writes a list of value of the 'wildcard_policy' type to // the given stream. -func writeWildcardPolicyList(list []WildcardPolicy, stream *jsoniter.Stream) { +func WriteWildcardPolicyList(list []WildcardPolicy, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalWildcardPolicyList(source interface{}) (items []WildcardPolicy, er if err != nil { return } - items = readWildcardPolicyList(iterator) + items = ReadWildcardPolicyList(iterator) err = iterator.Error return } -// readWildcardPolicyList reads list of values of the ”wildcard_policy' type from +// ReadWildcardPolicyList reads list of values of the ”wildcard_policy' type from // the given iterator. -func readWildcardPolicyList(iterator *jsoniter.Iterator) []WildcardPolicy { +func ReadWildcardPolicyList(iterator *jsoniter.Iterator) []WildcardPolicy { list := []WildcardPolicy{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/connection.go b/connection.go index 8f9c09eb3..043ee60e9 100644 --- a/connection.go +++ b/connection.go @@ -33,6 +33,7 @@ import ( "github.com/openshift-online/ocm-sdk-go/accesstransparency" "github.com/openshift-online/ocm-sdk-go/accountsmgmt" "github.com/openshift-online/ocm-sdk-go/addonsmgmt" + "github.com/openshift-online/ocm-sdk-go/arohcp" "github.com/openshift-online/ocm-sdk-go/authentication" "github.com/openshift-online/ocm-sdk-go/authorizations" "github.com/openshift-online/ocm-sdk-go/clustersmgmt" @@ -1018,6 +1019,11 @@ func (c *Connection) ClustersMgmt() *clustersmgmt.Client { return clustersmgmt.NewClient(c, "/api/clusters_mgmt") } +// AroHCP returns the client for the ARO-HCP clusters management service. +func (c *Connection) AroHCP() *arohcp.Client { + return arohcp.NewClient(c, "/api/aro_hcp") +} + // OSDFleetMgmt returns the client for the OSD management service. func (c *Connection) OSDFleetMgmt() *osdfleetmgmt.Client { diff --git a/jobqueue/v1/boolean_list_type_json.go b/jobqueue/v1/boolean_list_type_json.go index f382e85fa..c31abccdd 100644 --- a/jobqueue/v1/boolean_list_type_json.go +++ b/jobqueue/v1/boolean_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalBooleanList(list []bool, writer io.Writer) error { stream := helpers.NewStream(writer) - writeBooleanList(list, stream) + WriteBooleanList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalBooleanList(list []bool, writer io.Writer) error { return stream.Error } -// writeBooleanList writes a list of value of the 'boolean' type to +// WriteBooleanList writes a list of value of the 'boolean' type to // the given stream. -func writeBooleanList(list []bool, stream *jsoniter.Stream) { +func WriteBooleanList(list []bool, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalBooleanList(source interface{}) (items []bool, err error) { if err != nil { return } - items = readBooleanList(iterator) + items = ReadBooleanList(iterator) err = iterator.Error return } -// readBooleanList reads list of values of the ”boolean' type from +// ReadBooleanList reads list of values of the ”boolean' type from // the given iterator. -func readBooleanList(iterator *jsoniter.Iterator) []bool { +func ReadBooleanList(iterator *jsoniter.Iterator) []bool { list := []bool{} for iterator.ReadArray() { item := iterator.ReadBool() diff --git a/jobqueue/v1/date_list_type_json.go b/jobqueue/v1/date_list_type_json.go index 74bf7a5e2..294c26df3 100644 --- a/jobqueue/v1/date_list_type_json.go +++ b/jobqueue/v1/date_list_type_json.go @@ -31,7 +31,7 @@ import ( // the given writer. func MarshalDateList(list []time.Time, writer io.Writer) error { stream := helpers.NewStream(writer) - writeDateList(list, stream) + WriteDateList(list, stream) err := stream.Flush() if err != nil { return err @@ -39,9 +39,9 @@ func MarshalDateList(list []time.Time, writer io.Writer) error { return stream.Error } -// writeDateList writes a list of value of the 'date' type to +// WriteDateList writes a list of value of the 'date' type to // the given stream. -func writeDateList(list []time.Time, stream *jsoniter.Stream) { +func WriteDateList(list []time.Time, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -59,14 +59,14 @@ func UnmarshalDateList(source interface{}) (items []time.Time, err error) { if err != nil { return } - items = readDateList(iterator) + items = ReadDateList(iterator) err = iterator.Error return } -// readDateList reads list of values of the ”date' type from +// ReadDateList reads list of values of the ”date' type from // the given iterator. -func readDateList(iterator *jsoniter.Iterator) []time.Time { +func ReadDateList(iterator *jsoniter.Iterator) []time.Time { list := []time.Time{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/jobqueue/v1/float_list_type_json.go b/jobqueue/v1/float_list_type_json.go index e57147544..a8f2c74ba 100644 --- a/jobqueue/v1/float_list_type_json.go +++ b/jobqueue/v1/float_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalFloatList(list []float64, writer io.Writer) error { stream := helpers.NewStream(writer) - writeFloatList(list, stream) + WriteFloatList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalFloatList(list []float64, writer io.Writer) error { return stream.Error } -// writeFloatList writes a list of value of the 'float' type to +// WriteFloatList writes a list of value of the 'float' type to // the given stream. -func writeFloatList(list []float64, stream *jsoniter.Stream) { +func WriteFloatList(list []float64, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalFloatList(source interface{}) (items []float64, err error) { if err != nil { return } - items = readFloatList(iterator) + items = ReadFloatList(iterator) err = iterator.Error return } -// readFloatList reads list of values of the ”float' type from +// ReadFloatList reads list of values of the ”float' type from // the given iterator. -func readFloatList(iterator *jsoniter.Iterator) []float64 { +func ReadFloatList(iterator *jsoniter.Iterator) []float64 { list := []float64{} for iterator.ReadArray() { item := iterator.ReadFloat64() diff --git a/jobqueue/v1/integer_list_type_json.go b/jobqueue/v1/integer_list_type_json.go index 426676449..12d4cce82 100644 --- a/jobqueue/v1/integer_list_type_json.go +++ b/jobqueue/v1/integer_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalIntegerList(list []int, writer io.Writer) error { stream := helpers.NewStream(writer) - writeIntegerList(list, stream) + WriteIntegerList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalIntegerList(list []int, writer io.Writer) error { return stream.Error } -// writeIntegerList writes a list of value of the 'integer' type to +// WriteIntegerList writes a list of value of the 'integer' type to // the given stream. -func writeIntegerList(list []int, stream *jsoniter.Stream) { +func WriteIntegerList(list []int, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalIntegerList(source interface{}) (items []int, err error) { if err != nil { return } - items = readIntegerList(iterator) + items = ReadIntegerList(iterator) err = iterator.Error return } -// readIntegerList reads list of values of the ”integer' type from +// ReadIntegerList reads list of values of the ”integer' type from // the given iterator. -func readIntegerList(iterator *jsoniter.Iterator) []int { +func ReadIntegerList(iterator *jsoniter.Iterator) []int { list := []int{} for iterator.ReadArray() { item := iterator.ReadInt() diff --git a/jobqueue/v1/interface_list_type_json.go b/jobqueue/v1/interface_list_type_json.go index c3ce8151a..4874a0ccd 100644 --- a/jobqueue/v1/interface_list_type_json.go +++ b/jobqueue/v1/interface_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalInterfaceList(list []interface{}, writer io.Writer) error { stream := helpers.NewStream(writer) - writeInterfaceList(list, stream) + WriteInterfaceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalInterfaceList(list []interface{}, writer io.Writer) error { return stream.Error } -// writeInterfaceList writes a list of value of the 'interface' type to +// WriteInterfaceList writes a list of value of the 'interface' type to // the given stream. -func writeInterfaceList(list []interface{}, stream *jsoniter.Stream) { +func WriteInterfaceList(list []interface{}, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalInterfaceList(source interface{}) (items []interface{}, err error) if err != nil { return } - items = readInterfaceList(iterator) + items = ReadInterfaceList(iterator) err = iterator.Error return } -// readInterfaceList reads list of values of the ”interface' type from +// ReadInterfaceList reads list of values of the ”interface' type from // the given iterator. -func readInterfaceList(iterator *jsoniter.Iterator) []interface{} { +func ReadInterfaceList(iterator *jsoniter.Iterator) []interface{} { list := []interface{}{} for iterator.ReadArray() { var item interface{} diff --git a/jobqueue/v1/job_list_type_json.go b/jobqueue/v1/job_list_type_json.go index e69c4b4e6..a56e94697 100644 --- a/jobqueue/v1/job_list_type_json.go +++ b/jobqueue/v1/job_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalJobList(list []*Job, writer io.Writer) error { stream := helpers.NewStream(writer) - writeJobList(list, stream) + WriteJobList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalJobList(list []*Job, writer io.Writer) error { return stream.Error } -// writeJobList writes a list of value of the 'job' type to +// WriteJobList writes a list of value of the 'job' type to // the given stream. -func writeJobList(list []*Job, stream *jsoniter.Stream) { +func WriteJobList(list []*Job, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeJob(value, stream) + WriteJob(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalJobList(source interface{}) (items []*Job, err error) { if err != nil { return } - items = readJobList(iterator) + items = ReadJobList(iterator) err = iterator.Error return } -// readJobList reads list of values of the ”job' type from +// ReadJobList reads list of values of the ”job' type from // the given iterator. -func readJobList(iterator *jsoniter.Iterator) []*Job { +func ReadJobList(iterator *jsoniter.Iterator) []*Job { list := []*Job{} for iterator.ReadArray() { - item := readJob(iterator) + item := ReadJob(iterator) list = append(list, item) } return list diff --git a/jobqueue/v1/job_type.go b/jobqueue/v1/job_type.go index 9b3e20a2a..9a80f4ccf 100644 --- a/jobqueue/v1/job_type.go +++ b/jobqueue/v1/job_type.go @@ -61,7 +61,7 @@ func (o *Job) Kind() string { return JobKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Job) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -298,6 +298,29 @@ func (l *JobList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *JobList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *JobList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *JobList) SetItems(items []*Job) { + l.items = items +} + +// Items returns the items of the list. +func (l *JobList) Items() []*Job { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *JobList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/jobqueue/v1/job_type_json.go b/jobqueue/v1/job_type_json.go index 52db13c1b..8c16f4fe1 100644 --- a/jobqueue/v1/job_type_json.go +++ b/jobqueue/v1/job_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalJob writes a value of the 'job' type to the given writer. func MarshalJob(object *Job, writer io.Writer) error { stream := helpers.NewStream(writer) - writeJob(object, stream) + WriteJob(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalJob(object *Job, writer io.Writer) error { return stream.Error } -// writeJob writes a value of the 'job' type to the given stream. -func writeJob(object *Job, stream *jsoniter.Stream) { +// WriteJob writes a value of the 'job' type to the given stream. +func WriteJob(object *Job, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -129,13 +129,13 @@ func UnmarshalJob(source interface{}) (object *Job, err error) { if err != nil { return } - object = readJob(iterator) + object = ReadJob(iterator) err = iterator.Error return } -// readJob reads a value of the 'job' type from the given iterator. -func readJob(iterator *jsoniter.Iterator) *Job { +// ReadJob reads a value of the 'job' type from the given iterator. +func ReadJob(iterator *jsoniter.Iterator) *Job { object := &Job{} for { field := iterator.ReadObject() diff --git a/jobqueue/v1/long_list_type_json.go b/jobqueue/v1/long_list_type_json.go index 9eaeb2a3d..e931b29eb 100644 --- a/jobqueue/v1/long_list_type_json.go +++ b/jobqueue/v1/long_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalLongList(list []int64, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLongList(list, stream) + WriteLongList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalLongList(list []int64, writer io.Writer) error { return stream.Error } -// writeLongList writes a list of value of the 'long' type to +// WriteLongList writes a list of value of the 'long' type to // the given stream. -func writeLongList(list []int64, stream *jsoniter.Stream) { +func WriteLongList(list []int64, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalLongList(source interface{}) (items []int64, err error) { if err != nil { return } - items = readLongList(iterator) + items = ReadLongList(iterator) err = iterator.Error return } -// readLongList reads list of values of the ”long' type from +// ReadLongList reads list of values of the ”long' type from // the given iterator. -func readLongList(iterator *jsoniter.Iterator) []int64 { +func ReadLongList(iterator *jsoniter.Iterator) []int64 { list := []int64{} for iterator.ReadArray() { item := iterator.ReadInt64() diff --git a/jobqueue/v1/queue_list_type_json.go b/jobqueue/v1/queue_list_type_json.go index 75bb2466e..985d76f1d 100644 --- a/jobqueue/v1/queue_list_type_json.go +++ b/jobqueue/v1/queue_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalQueueList(list []*Queue, writer io.Writer) error { stream := helpers.NewStream(writer) - writeQueueList(list, stream) + WriteQueueList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalQueueList(list []*Queue, writer io.Writer) error { return stream.Error } -// writeQueueList writes a list of value of the 'queue' type to +// WriteQueueList writes a list of value of the 'queue' type to // the given stream. -func writeQueueList(list []*Queue, stream *jsoniter.Stream) { +func WriteQueueList(list []*Queue, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeQueue(value, stream) + WriteQueue(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalQueueList(source interface{}) (items []*Queue, err error) { if err != nil { return } - items = readQueueList(iterator) + items = ReadQueueList(iterator) err = iterator.Error return } -// readQueueList reads list of values of the ”queue' type from +// ReadQueueList reads list of values of the ”queue' type from // the given iterator. -func readQueueList(iterator *jsoniter.Iterator) []*Queue { +func ReadQueueList(iterator *jsoniter.Iterator) []*Queue { list := []*Queue{} for iterator.ReadArray() { - item := readQueue(iterator) + item := ReadQueue(iterator) list = append(list, item) } return list diff --git a/jobqueue/v1/queue_type.go b/jobqueue/v1/queue_type.go index 3c85bc598..7cc083049 100644 --- a/jobqueue/v1/queue_type.go +++ b/jobqueue/v1/queue_type.go @@ -58,7 +58,7 @@ func (o *Queue) Kind() string { return QueueKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Queue) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -264,6 +264,29 @@ func (l *QueueList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *QueueList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *QueueList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *QueueList) SetItems(items []*Queue) { + l.items = items +} + +// Items returns the items of the list. +func (l *QueueList) Items() []*Queue { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *QueueList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/jobqueue/v1/queue_type_json.go b/jobqueue/v1/queue_type_json.go index 40876c149..1a5422d73 100644 --- a/jobqueue/v1/queue_type_json.go +++ b/jobqueue/v1/queue_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalQueue writes a value of the 'queue' type to the given writer. func MarshalQueue(object *Queue, writer io.Writer) error { stream := helpers.NewStream(writer) - writeQueue(object, stream) + WriteQueue(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalQueue(object *Queue, writer io.Writer) error { return stream.Error } -// writeQueue writes a value of the 'queue' type to the given stream. -func writeQueue(object *Queue, stream *jsoniter.Stream) { +// WriteQueue writes a value of the 'queue' type to the given stream. +func WriteQueue(object *Queue, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -120,13 +120,13 @@ func UnmarshalQueue(source interface{}) (object *Queue, err error) { if err != nil { return } - object = readQueue(iterator) + object = ReadQueue(iterator) err = iterator.Error return } -// readQueue reads a value of the 'queue' type from the given iterator. -func readQueue(iterator *jsoniter.Iterator) *Queue { +// ReadQueue reads a value of the 'queue' type from the given iterator. +func ReadQueue(iterator *jsoniter.Iterator) *Queue { object := &Queue{} for { field := iterator.ReadObject() diff --git a/jobqueue/v1/queues_resource_json.go b/jobqueue/v1/queues_resource_json.go index 26ff5dbe0..7dfcf1fd5 100644 --- a/jobqueue/v1/queues_resource_json.go +++ b/jobqueue/v1/queues_resource_json.go @@ -49,7 +49,7 @@ func readQueuesListResponse(response *QueuesListResponse, reader io.Reader) erro value := iterator.ReadInt() response.total = &value case "items": - items := readQueueList(iterator) + items := ReadQueueList(iterator) response.items = &QueueList{ items: items, } diff --git a/jobqueue/v1/string_list_type_json.go b/jobqueue/v1/string_list_type_json.go index 74fbb020a..6c243f765 100644 --- a/jobqueue/v1/string_list_type_json.go +++ b/jobqueue/v1/string_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalStringList(list []string, writer io.Writer) error { stream := helpers.NewStream(writer) - writeStringList(list, stream) + WriteStringList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalStringList(list []string, writer io.Writer) error { return stream.Error } -// writeStringList writes a list of value of the 'string' type to +// WriteStringList writes a list of value of the 'string' type to // the given stream. -func writeStringList(list []string, stream *jsoniter.Stream) { +func WriteStringList(list []string, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalStringList(source interface{}) (items []string, err error) { if err != nil { return } - items = readStringList(iterator) + items = ReadStringList(iterator) err = iterator.Error return } -// readStringList reads list of values of the ”string' type from +// ReadStringList reads list of values of the ”string' type from // the given iterator. -func readStringList(iterator *jsoniter.Iterator) []string { +func ReadStringList(iterator *jsoniter.Iterator) []string { list := []string{} for iterator.ReadArray() { item := iterator.ReadString() diff --git a/metrics/path_tree_data.go b/metrics/path_tree_data.go index 8526066f9..8f37e2092 100644 --- a/metrics/path_tree_data.go +++ b/metrics/path_tree_data.go @@ -151,6 +151,13 @@ var pathTreeData = `{ } } }, + "aro_hcp": { + "v1alpha1": { + "clusters": { + "-": null + } + } + }, "authorizations": { "v1": { "access_review": null, diff --git a/openapi/aro_hcp/v1alpha1/openapi.json b/openapi/aro_hcp/v1alpha1/openapi.json new file mode 100644 index 000000000..6b698353e --- /dev/null +++ b/openapi/aro_hcp/v1alpha1/openapi.json @@ -0,0 +1,2087 @@ +{ + "openapi": "3.0.0", + "info": { + "version": "v1alpha1", + "title": "aro_hcp", + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0" + }, + "contact": { + "name": "OCM Feedback", + "email": "ocm-feedback@redhat.com" + } + }, + "servers": [ + { + "description": "Production", + "url": "https://api.openshift.com" + }, + { + "description": "Stage", + "url": "https://api.stage.openshift.com" + } + ], + "paths": { + "/api/aro_hcp/v1alpha1": { + "get": { + "description": "Retrieves the version metadata.", + "responses": { + "200": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Metadata" + } + } + } + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } + }, + "/api/aro_hcp/v1alpha1/clusters": { + "post": { + "description": "Provision a new cluster and add it to the collection of clusters.\n\nSee the `register_cluster` method for adding an existing cluster.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Cluster" + } + } + } + }, + "responses": { + "201": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Cluster" + } + } + } + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + }, + "get": { + "description": "Retrieves the list of clusters.", + "parameters": [ + { + "name": "order", + "description": "Order criteria.\n\nThe syntax of this parameter is similar to the syntax of the _order by_ clause of\na SQL statement, but using the names of the attributes of the cluster instead of\nthe names of the columns of a table. For example, in order to sort the clusters\ndescending by region identifier the value should be:\n\n```sql\nregion.id desc\n```\n\nIf the parameter isn't provided, or if the value is empty, then the order of the\nresults is undefined.", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "page", + "description": "Index of the requested page, where one corresponds to the first page.", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "search", + "description": "Search criteria.\n\nThe syntax of this parameter is similar to the syntax of the _where_ clause of a\nSQL statement, but using the names of the attributes of the cluster instead of\nthe names of the columns of a table. For example, in order to retrieve all the\nclusters with a name starting with `my` in the `us-east-1` region the value\nshould be:\n\n```sql\nname like 'my%' and region.id = 'us-east-1'\n```\n\nIf the parameter isn't provided, or if the value is empty, then all the\nclusters that the user has permission to see will be returned.", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "size", + "description": "Maximum number of items that will be contained in the returned page.", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "description": "Retrieved list of clusters.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Cluster" + } + }, + "page": { + "description": "Index of the requested page, where one corresponds to the first page.", + "type": "integer", + "format": "int32" + }, + "size": { + "description": "Maximum number of items that will be contained in the returned page.", + "type": "integer", + "format": "int32" + }, + "total": { + "description": "Total number of items of the collection that match the search criteria,\nregardless of the size of the page.", + "type": "integer", + "format": "int32" + } + } + } + } + } + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } + }, + "/api/aro_hcp/v1alpha1/clusters/{cluster_id}": { + "delete": { + "description": "Deletes the cluster.", + "parameters": [ + { + "name": "cluster_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + }, + { + "name": "best_effort", + "description": "BestEffort flag is used to check if the cluster deletion should be best-effort mode or not.", + "in": "query", + "schema": { + "type": "boolean" + } + }, + { + "name": "dry_run", + "description": "Dry run flag is used to check if the operation can be completed, but won't delete.", + "in": "query", + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "204": { + "description": "Success." + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + }, + "get": { + "description": "Retrieves the details of the cluster.", + "parameters": [ + { + "name": "cluster_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + } + ], + "responses": { + "200": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Cluster" + } + } + } + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + }, + "patch": { + "description": "Updates the cluster.", + "parameters": [ + { + "name": "cluster_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Cluster" + } + } + } + }, + "responses": { + "200": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Cluster" + } + } + } + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "Metadata": { + "description": "Version metadata.", + "properties": { + "server_version": { + "description": "Version of the server.", + "type": "string" + } + } + }, + "AWS": { + "description": "_Amazon Web Services_ specific settings of a cluster.", + "properties": { + "kms_key_arn": { + "description": "Customer Managed Key to encrypt EBS Volume", + "type": "string" + }, + "sts": { + "description": "Contains the necessary attributes to support role-based authentication on AWS.", + "$ref": "#/components/schemas/STS" + }, + "access_key_id": { + "description": "AWS access key identifier.", + "type": "string" + }, + "account_id": { + "description": "AWS account identifier.", + "type": "string" + }, + "additional_allowed_principals": { + "description": "Additional allowed principal ARNs to be added to the hosted control plane's VPC Endpoint Service.", + "type": "array", + "items": { + "type": "string" + } + }, + "additional_compute_security_group_ids": { + "description": "Additional AWS Security Groups to be added to default worker (compute) machine pool.", + "type": "array", + "items": { + "type": "string" + } + }, + "additional_control_plane_security_group_ids": { + "description": "Additional AWS Security Groups to be added to default control plane machine pool.", + "type": "array", + "items": { + "type": "string" + } + }, + "additional_infra_security_group_ids": { + "description": "Additional AWS Security Groups to be added to default infra machine pool.", + "type": "array", + "items": { + "type": "string" + } + }, + "audit_log": { + "description": "Audit log forwarding configuration", + "$ref": "#/components/schemas/AuditLog" + }, + "billing_account_id": { + "description": "BillingAccountID is the account used for billing subscriptions purchased via the marketplace", + "type": "string" + }, + "ec2_metadata_http_tokens": { + "description": "Which Ec2MetadataHttpTokens to use for metadata service interaction options for EC2 instances", + "$ref": "#/components/schemas/Ec2MetadataHttpTokens" + }, + "etcd_encryption": { + "description": "Related etcd encryption configuration", + "$ref": "#/components/schemas/AwsEtcdEncryption" + }, + "hcp_internal_communication_hosted_zone_id": { + "description": "ID of local private hosted zone for hypershift internal communication.", + "type": "string" + }, + "private_hosted_zone_id": { + "description": "ID of private hosted zone.", + "type": "string" + }, + "private_hosted_zone_role_arn": { + "description": "Role ARN for private hosted zone.", + "type": "string" + }, + "private_link": { + "description": "Sets cluster to be inaccessible externally.", + "type": "boolean" + }, + "private_link_configuration": { + "description": "Manages additional configuration for Private Links.", + "$ref": "#/components/schemas/PrivateLinkClusterConfiguration" + }, + "secret_access_key": { + "description": "AWS secret access key.", + "type": "string" + }, + "subnet_ids": { + "description": "The subnet ids to be used when installing the cluster.", + "type": "array", + "items": { + "type": "string" + } + }, + "tags": { + "description": "Optional keys and values that the installer will add as tags to all AWS resources it creates", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "vpc_endpoint_role_arn": { + "description": "Role ARN for VPC Endpoint Service cross account role.", + "type": "string" + } + } + }, + "AWSShard": { + "description": "Config for AWS provision shards", + "properties": { + "ecr_repository_urls": { + "description": "ECR repository URLs of the provision shard", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "AWSVolume": { + "description": "Holds settings for an AWS storage volume.", + "properties": { + "iops": { + "description": "Volume provisioned IOPS.", + "type": "integer", + "format": "int32" + }, + "size": { + "description": "Volume size in Gib.", + "type": "integer", + "format": "int32" + } + } + }, + "CCS": { + "properties": { + "kind": { + "description": "Indicates the type of this object. Will be 'CCS' if this is a complete object or 'CCSLink' if it is just a link.", + "type": "string" + }, + "id": { + "description": "Unique identifier of the object.", + "type": "string" + }, + "href": { + "description": "Self link.", + "type": "string" + }, + "disable_scp_checks": { + "description": "Indicates if cloud permissions checks are disabled,\nwhen attempting installation of the cluster.", + "type": "boolean" + }, + "enabled": { + "description": "Indicates if Customer Cloud Subscription is enabled on the cluster.", + "type": "boolean" + } + } + }, + "DNS": { + "description": "DNS settings of the cluster.", + "properties": { + "base_domain": { + "description": "Base DNS domain of the cluster.\n\nDuring the installation of the cluster it is necessary to create multiple DNS records.\nThey will be created as sub-domains of this domain. For example, if the domain_prefix of the\ncluster is `mycluster` and the base domain is `example.com` then the following DNS\nrecords will be created:\n\n```\nmycluster-api.example.com\nmycluster-etcd-0.example.com\nmycluster-etcd-1.example.com\nmycluster-etcd-3.example.com\n```\n\nThe exact number, type and names of the created DNS record depends on the characteristics\nof the cluster, and may be different for different versions of _OpenShift_. Please don't\nrely on them. For example, to find what is the URL of the Kubernetes API server of the\ncluster don't assume that it will be `mycluster-api.example.com`. Instead of that use\nthis API to retrieve the description of the cluster, and get it from the `api.url`\nattribute. For example, if the identifier of the cluster is `123` send a request like\nthis:\n\n```http\nGET /api/clusters_mgmt/v1/clusters/123 HTTP/1.1\n```\n\nThat will return a response like this, including the `api.url` attribute:\n\n```json\n{\n \"kind\": \"Cluster\",\n \"id\": \"123\",\n \"href\": \"/api/clusters_mgmt/v1/clusters/123\",\n \"api\": {\n \"url\": \"https://mycluster-api.example.com:6443\"\n },\n ...\n}\n```\n\nWhen the cluster is created in Amazon Web Services it is necessary to create this base\nDNS domain in advance, using AWS Route53 (https://console.aws.amazon.com/route53).", + "type": "string" + } + } + }, + "GCP": { + "description": "Google cloud platform settings of a cluster.", + "properties": { + "auth_uri": { + "description": "GCP authentication uri", + "type": "string" + }, + "auth_provider_x509_cert_url": { + "description": "GCP Authentication provider x509 certificate url", + "type": "string" + }, + "authentication": { + "description": "GCP Authentication Method", + "$ref": "#/components/schemas/GcpAuthentication" + }, + "client_id": { + "description": "GCP client identifier", + "type": "string" + }, + "client_x509_cert_url": { + "description": "GCP client x509 certificate url", + "type": "string" + }, + "client_email": { + "description": "GCP client email", + "type": "string" + }, + "private_key": { + "description": "GCP private key", + "type": "string" + }, + "private_key_id": { + "description": "GCP private key identifier", + "type": "string" + }, + "private_service_connect": { + "description": "GCP PrivateServiceConnect configuration", + "$ref": "#/components/schemas/GcpPrivateServiceConnect" + }, + "project_id": { + "description": "GCP project identifier.", + "type": "string" + }, + "security": { + "description": "GCP Security Settings", + "$ref": "#/components/schemas/GcpSecurity" + }, + "token_uri": { + "description": "GCP token uri", + "type": "string" + }, + "type": { + "description": "GCP the type of the service the key belongs to", + "type": "string" + } + } + }, + "GCPEncryptionKey": { + "description": "GCP Encryption Key for CCS clusters.", + "properties": { + "kms_key_service_account": { + "description": "Service account used to access the KMS key", + "type": "string" + }, + "key_location": { + "description": "Location of the encryption key ring", + "type": "string" + }, + "key_name": { + "description": "Name of the encryption key", + "type": "string" + }, + "key_ring": { + "description": "Name of the key ring the encryption key is located on", + "type": "string" + } + } + }, + "GCPNetwork": { + "description": "GCP Network configuration of a cluster.", + "properties": { + "vpc_name": { + "description": "VPC mame used by the cluster.", + "type": "string" + }, + "vpc_project_id": { + "description": "The name of the host project where the shared VPC exists.", + "type": "string" + }, + "compute_subnet": { + "description": "Compute subnet used by the cluster.", + "type": "string" + }, + "control_plane_subnet": { + "description": "Control plane subnet used by the cluster.", + "type": "string" + } + } + }, + "GCPVolume": { + "description": "Holds settings for an GCP storage volume.", + "properties": { + "size": { + "description": "Volume size in Gib.", + "type": "integer", + "format": "int32" + } + } + }, + "HTPasswdIdentityProvider": { + "description": "Details for `htpasswd` identity providers.", + "properties": { + "password": { + "description": "Password to be used in the _HTPasswd_ data file.", + "type": "string" + }, + "username": { + "description": "Username to be used in the _HTPasswd_ data file.", + "type": "string" + }, + "users": { + "description": "Link to the collection of _HTPasswd_ users.", + "type": "array", + "items": { + "$ref": "#/components/schemas/HTPasswdUser" + } + } + } + }, + "STS": { + "description": "Contains the necessary attributes to support role-based authentication on AWS.", + "properties": { + "oidc_endpoint_url": { + "description": "URL of the location where OIDC configuration and keys are available", + "type": "string" + }, + "auto_mode": { + "description": "Auto creation mode for cluster - OCM will create the operator roles and OIDC provider. false by default.", + "type": "boolean" + }, + "enabled": { + "description": "If STS is enabled or disabled", + "type": "boolean" + }, + "external_id": { + "description": "Optional unique identifier when assuming role in another account", + "type": "string" + }, + "instance_iam_roles": { + "description": "Instance IAM roles to use for the instance profiles of the master and worker instances", + "$ref": "#/components/schemas/InstanceIAMRoles" + }, + "managed_policies": { + "description": "If true, cluster account and operator roles have managed policies attached.", + "type": "boolean" + }, + "oidc_config": { + "description": "Registered Oidc Config, if available holds information related to the oidc config.", + "$ref": "#/components/schemas/OidcConfig" + }, + "operator_iam_roles": { + "description": "List of roles necessary to access the AWS resources of the various operators used during installation", + "type": "array", + "items": { + "$ref": "#/components/schemas/OperatorIAMRole" + } + }, + "operator_role_prefix": { + "description": "Optional user provided prefix for operator roles.", + "type": "string" + }, + "permission_boundary": { + "description": "Optional user provided permission boundary.", + "type": "string" + }, + "role_arn": { + "description": "ARN of the AWS role to assume when installing the cluster", + "type": "string" + }, + "support_role_arn": { + "description": "ARN of the AWS role used by SREs to access the cluster AWS account in order to provide support", + "type": "string" + } + } + }, + "AuditLog": { + "description": "Contains the necessary attributes to support audit log forwarding", + "properties": { + "role_arn": { + "description": "ARN of the CloudWatch audit log forwarding role", + "type": "string" + } + } + }, + "AwsEtcdEncryption": { + "description": "Contains the necessary attributes to support etcd encryption for AWS based clusters.", + "properties": { + "kms_key_arn": { + "description": "ARN of the KMS to be used for the etcd encryption", + "type": "string" + } + } + }, + "Azure": { + "description": "Microsoft Azure settings of a cluster.", + "properties": { + "managed_resource_group_name": { + "description": "The desired name of the Azure Resource Group where the Azure Resources related\nto the cluster are created. It must not previously exist. The Azure Resource\nGroup is created with the given value, within the Azure Subscription\n`subscription_id` of the cluster.\n`managed_resource_group_name` cannot be equal to the value of `managed_resource_group`.\n`managed_resource_group_name` is located in the same Azure location as the\ncluster's region.\nNot to be confused with `resource_group_name`, which is the Azure Resource Group Name\nwhere the own Azure Resource associated to the cluster resides.\nRequired during creation.\nImmutable.", + "type": "string" + }, + "network_security_group_resource_id": { + "description": "The Azure Resource ID of a pre-existing Azure Network Security Group.\nThe Network Security Group specified in network_security_group_resource_id\nmust already be associated to the Azure Subnet `subnet_resource_id`.\nIt is the Azure Network Security Group associated to the cluster's subnet\nspecified in `subnet_resource_id`.\n`network_security_group_resource_id` must be located in the same Azure\nlocation as the cluster's region.\nThe Azure Subscription specified as part of\n`network_security_group_resource_id` must be located in the same Azure\nSubscription as `subscription_id`.\nThe Azure Resource Group Name specified as part of `network_security_group_resource_id`\nmust belong to the Azure Subscription `subscription_id`, and in the same\nAzure location as the cluster's region.\nThe Azure Resource Group Name specified as part of `network_security_group_resource_id`\nmust be a different Resource Group Name than the one specified in\n`managed_resource_group_name`.\nThe Azure Resource Group Name specified as part of `network_security_group_resource_id`\ncan be the same, or a different one than the one specified in\n`resource_group_name`.\nRequired during creation.\nImmutable.", + "type": "string" + }, + "nodes_outbound_connectivity": { + "description": "NodesOutboundConnectivity defines how the network outbound\nconfiguration of the Cluster's Node Pool's Nodes is performed.\nBy default this is configured as Azure Load Balancer. This value is immutable.", + "$ref": "#/components/schemas/AzureNodesOutboundConnectivity" + }, + "operators_authentication": { + "description": "Defines how the operators of the cluster authenticate to Azure.\nRequired during creation.\nImmutable.", + "$ref": "#/components/schemas/AzureOperatorsAuthentication" + }, + "resource_group_name": { + "description": "The Azure Resource Group Name of the cluster. It must be a pre-existing\nAzure Resource Group and it must exist within the Azure Subscription\n`subscription_id` of the cluster.\n`resource_group_name` is located in the same Azure location as the\ncluster's region.\nRequired during creation.\nImmutable.", + "type": "string" + }, + "resource_name": { + "description": "The Azure Resource Name of the cluster. It must be within the\nAzure Resource Group Name `resource_group_name`.\n`resource_name` is located in the same Azure location as the cluster's region.\nRequired during creation.\nImmutable.", + "type": "string" + }, + "subnet_resource_id": { + "description": "The Azure Resource ID of a pre-existing Azure Subnet. It is an Azure\nSubnet used for the Data Plane of the cluster. `subnet_resource_id`\nmust be located in the same Azure location as the cluster's region.\nThe Azure Subscription specified as part of the `subnet_resource_id`\nmust be located in the same Azure Subscription as `subscription_id`.\nThe Azure Resource Group Name specified as part of `subnet_resource_id`\nmust belong to the Azure Subscription `subscription_id`, and in the same\nAzure location as the cluster's region.\nThe Azure Resource Group Name specified as part of `subnet_resource_id`\nmust be a different Resource Group Name than the one specified in\n`managed_resource_group_name`.\nThe Azure Resource Group Name specified as part of the `subnet_resource_id`\ncan be the same, or a different one than the one specified in\n`resource_group_name`.\nRequired during creation.\nImmutable.", + "type": "string" + }, + "subscription_id": { + "description": "The Azure Subscription ID associated with the cluster. It must belong to\nthe Microsoft Entra Tenant ID `tenant_id`.\nRequired during creation.\nImmutable.", + "type": "string" + }, + "tenant_id": { + "description": "The Microsoft Entra Tenant ID where the cluster belongs.\nRequired during creation.\nImmutable.", + "type": "string" + } + } + }, + "AzureControlPlaneManagedIdentity": { + "description": "Represents the information associated to an Azure User-Assigned\nManaged Identity belonging to the Control Plane of the cluster.", + "properties": { + "client_id": { + "description": "The Client ID associated to the Azure User-Assigned Managed Identity.\nReadonly.", + "type": "string" + }, + "principal_id": { + "description": "The Principal ID associated to the Azure User-Assigned Identity.\nReadonly.", + "type": "string" + }, + "resource_id": { + "description": "The Azure Resource ID of the Azure User-Assigned Managed\nIdentity. The managed identity represented must exist before\ncreating the cluster.\nThe Azure Resource Group Name specified as part of the Resource ID\nmust belong to the Azure Subscription specified in `.azure.subscription_id`,\nand in the same Azure location as the cluster's region.\nThe Azure Resource Group Name specified as part of the Resource ID\nmust be a different Resource Group Name than the one specified in\n`.azure.managed_resource_group_name`.\nThe Azure Resource Group Name specified as part of the Resource ID\ncan be the same, or a different one than the one specified in\n`.azure.resource_group_name`.\nRequired during creation.\nImmutable.", + "type": "string" + } + } + }, + "AzureDataPlaneManagedIdentity": { + "description": "Represents the information associated to an Azure User-Assigned\nManaged Identity belonging to the Data Plane of the cluster.", + "properties": { + "resource_id": { + "description": "The Azure Resource ID of the Azure User-Assigned Managed\nIdentity. The managed identity represented must exist before\ncreating the cluster.\nThe Azure Resource Group Name specified as part of the Resource ID\nmust belong to the Azure Subscription specified in `.azure.subscription_id`,\nand in the same Azure location as the cluster's region.\nThe Azure Resource Group Name specified as part of the Resource ID\nmust be a different Resource Group Name than the one specified in\n`.azure.managed_resource_group_name`.\nThe Azure Resource Group Name specified as part of the Resource ID\ncan be the same, or a different one than the one specified in\n`.azure.resource_group_name`.\nRequired during creation.\nImmutable.", + "type": "string" + } + } + }, + "AzureNodesOutboundConnectivity": { + "description": "The configuration of the node outbound connectivity", + "properties": { + "outbound_type": { + "description": "OutboundType is the type of network outbound configuration.\nThe default and only accepted value is 'load_balancer'.\nThis value is immutable.", + "type": "string" + } + } + }, + "AzureOperatorsAuthentication": { + "description": "The configuration that the operators of the\ncluster have to authenticate to Azure.", + "properties": { + "managed_identities": { + "description": "The authentication configuration to authenticate\nto Azure using Azure User-Assigned Managed Identities.\nRequired during creation.", + "$ref": "#/components/schemas/AzureOperatorsAuthenticationManagedIdentities" + } + } + }, + "AzureOperatorsAuthenticationManagedIdentities": { + "description": "Represents the information related to Azure User-Assigned managed identities\nneeded to perform Operators authentication based on Azure User-Assigned\nManaged Identities", + "properties": { + "control_plane_operators_managed_identities": { + "description": "The set of Azure User-Assigned Managed Identities leveraged for the\nControl Plane operators of the cluster. The set of required managed\nidentities is dependent on the Cluster's OpenShift version.\nImmutable", + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/AzureControlPlaneManagedIdentity" + } + }, + "data_plane_operators_managed_identities": { + "description": "The set of Azure User-Assigned Managed Identities leveraged for the\nData Plane operators of the cluster. The set of required managed\nidentities is dependent on the Cluster's OpenShift version.\nImmutable.", + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/AzureDataPlaneManagedIdentity" + } + }, + "managed_identities_data_plane_identity_url": { + "description": "The Managed Identities Data Plane Identity URL associated with the\ncluster. It is the URL that will be used to communicate with the\nManaged Identities Resource Provider (MI RP).\nRequired during creation.\nImmutable.", + "type": "string" + }, + "service_managed_identity": { + "description": "The Azure User-Assigned Managed Identity used to perform service\nlevel actions. Specifically:\n- Add Federated Identity Credentials to the identities in\n `data_plane_operators_managed_identities` that belong to Data\n Plane Cluster Operators\n- Perform permissions validation for the BYOVNet related resources\n associated to the Cluster\nRequired during creation.\nImmutable.", + "$ref": "#/components/schemas/AzureServiceManagedIdentity" + } + } + }, + "AzureServiceManagedIdentity": { + "description": "Represents the information associated to an Azure User-Assigned\nManaged Identity whose purpose is to perform service level actions.", + "properties": { + "client_id": { + "description": "The Client ID associated to the Azure User-Assigned Managed Identity.\nReadonly.", + "type": "string" + }, + "principal_id": { + "description": "The Principal ID associated to the Azure User-Assigned Managed Identity.\nReadonly.", + "type": "string" + }, + "resource_id": { + "description": "The Azure Resource ID of the Azure User-Assigned Managed\nIdentity. The managed identity represented must exist before\ncreating the cluster.\nThe Azure Resource Group Name specified as part of the Resource ID\nmust belong to the Azure Subscription specified in `.azure.subscription_id`,\nand in the same Azure location as the cluster's region.\nThe Azure Resource Group Name specified as part of the Resource ID\nmust be a different Resource Group Name than the one specified in\n`.azure.managed_resource_group_name`.\nThe Azure Resource Group Name specified as part of the Resource ID\ncan be the same, or a different one than the one specified in\n`.azure.resource_group_name`.\nRequired during creation.\nImmutable.", + "type": "string" + } + } + }, + "BillingModel": { + "description": "Billing model for cluster resources.", + "type": "string", + "enum": [ + "marketplace", + "marketplace-aws", + "marketplace-gcp", + "marketplace-rhm", + "marketplace-azure", + "standard" + ] + }, + "ByoOidc": { + "description": "ByoOidc configuration.", + "properties": { + "enabled": { + "description": "Boolean flag indicating if the cluster should be creating using _ByoOidc_.\n\nBy default this is `false`.\n\nTo enable it the cluster needs to be ROSA cluster and the organization of the user needs\nto have the `byo-oidc` feature toggle enabled.", + "type": "boolean" + } + } + }, + "CloudProvider": { + "description": "Cloud provider.", + "properties": { + "kind": { + "description": "Indicates the type of this object. Will be 'CloudProvider' if this is a complete object or 'CloudProviderLink' if it is just a link.", + "type": "string" + }, + "id": { + "description": "Unique identifier of the object.", + "type": "string" + }, + "href": { + "description": "Self link.", + "type": "string" + }, + "display_name": { + "description": "Name of the cloud provider for display purposes. It can contain any characters,\nincluding spaces.", + "type": "string" + }, + "name": { + "description": "Human friendly identifier of the cloud provider, for example `aws`.", + "type": "string" + }, + "regions": { + "description": "(optional) Provider's regions - only included when listing providers with `fetchRegions=true`.", + "type": "array", + "items": { + "$ref": "#/components/schemas/CloudRegion" + } + } + } + }, + "CloudRegion": { + "description": "Description of a region of a cloud provider.", + "properties": { + "kind": { + "description": "Indicates the type of this object. Will be 'CloudRegion' if this is a complete object or 'CloudRegionLink' if it is just a link.", + "type": "string" + }, + "id": { + "description": "Unique identifier of the object.", + "type": "string" + }, + "href": { + "description": "Self link.", + "type": "string" + }, + "ccs_only": { + "description": "'true' if the region is supported only for CCS clusters, 'false' otherwise.", + "type": "boolean" + }, + "kms_location_id": { + "description": "(GCP only) Comma-separated list of KMS location IDs that can be used with this region.\nE.g. \"global,nam4,us\". Order is not guaranteed.", + "type": "string" + }, + "kms_location_name": { + "description": "(GCP only) Comma-separated list of display names corresponding to KMSLocationID.\nE.g. \"Global,nam4 (Iowa, South Carolina, and Oklahoma),US\". Order is not guaranteed but will match KMSLocationID.\nUnfortunately, this API doesn't allow robust splitting - Contact ocm-feedback@redhat.com if you want to rely on this.", + "type": "string" + }, + "cloud_provider": { + "description": "Link to the cloud provider that the region belongs to.", + "$ref": "#/components/schemas/CloudProvider" + }, + "display_name": { + "description": "Name of the region for display purposes, for example `N. Virginia`.", + "type": "string" + }, + "enabled": { + "description": "Whether the region is enabled for deploying a managed cluster.", + "type": "boolean" + }, + "govcloud": { + "description": "Whether the region is an AWS GovCloud region.", + "type": "boolean" + }, + "name": { + "description": "Human friendly identifier of the region, for example `us-east-1`.\n\nNOTE: Currently for all cloud providers and all regions `id` and `name` have exactly\nthe same values.", + "type": "string" + }, + "supports_hypershift": { + "description": "'true' if the region is supported for Hypershift deployments, 'false' otherwise.", + "type": "boolean" + }, + "supports_multi_az": { + "description": "Whether the region supports multiple availability zones.", + "type": "boolean" + } + } + }, + "Cluster": { + "description": "Definition of an _OpenShift_ cluster.\n\nThe `cloud_provider` attribute is a reference to the cloud provider. When a\ncluster is retrieved it will be a link to the cloud provider, containing only\nthe kind, id and href attributes:\n\n```json\n{\n \"cloud_provider\": {\n \"kind\": \"CloudProviderLink\",\n \"id\": \"123\",\n \"href\": \"/api/clusters_mgmt/v1/cloud_providers/123\"\n }\n}\n```\n\nWhen a cluster is created this is optional, and if used it should contain the\nidentifier of the cloud provider to use:\n\n```json\n{\n \"cloud_provider\": {\n \"id\": \"123\",\n }\n}\n```\n\nIf not included, then the cluster will be created using the default cloud\nprovider, which is currently Amazon Web Services.\n\nThe region attribute is mandatory when a cluster is created.\n\nThe `aws.access_key_id`, `aws.secret_access_key` and `dns.base_domain`\nattributes are mandatory when creation a cluster with your own Amazon Web\nServices account.", + "properties": { + "kind": { + "description": "Indicates the type of this object. Will be 'Cluster' if this is a complete object or 'ClusterLink' if it is just a link.", + "type": "string" + }, + "id": { + "description": "Unique identifier of the object.", + "type": "string" + }, + "href": { + "description": "Self link.", + "type": "string" + }, + "api": { + "description": "Information about the API of the cluster.", + "$ref": "#/components/schemas/ClusterAPI" + }, + "aws": { + "description": "Amazon Web Services settings of the cluster.", + "$ref": "#/components/schemas/AWS" + }, + "aws_infrastructure_access_role_grants": { + "description": "List of AWS infrastructure access role grants on this cluster.", + "type": "array", + "items": { + "$ref": "#/components/schemas/AWSInfrastructureAccessRoleGrant" + } + }, + "ccs": { + "description": "Contains configuration of a Customer Cloud Subscription cluster.", + "$ref": "#/components/schemas/CCS" + }, + "dns": { + "description": "DNS settings of the cluster.", + "$ref": "#/components/schemas/DNS" + }, + "fips": { + "description": "Create cluster that uses FIPS Validated / Modules in Process cryptographic libraries.", + "type": "boolean" + }, + "gcp": { + "description": "Google cloud platform settings of the cluster.", + "$ref": "#/components/schemas/GCP" + }, + "gcp_encryption_key": { + "description": "Key used for encryption of GCP cluster nodes.", + "$ref": "#/components/schemas/GCPEncryptionKey" + }, + "gcp_network": { + "description": "GCP Network.", + "$ref": "#/components/schemas/GCPNetwork" + }, + "additional_trust_bundle": { + "description": "Additional trust bundle.", + "type": "string" + }, + "addons": { + "description": "List of add-ons on this cluster.", + "type": "array", + "items": { + "$ref": "#/components/schemas/AddOnInstallation" + } + }, + "autoscaler": { + "description": "Link to an optional _ClusterAutoscaler_ that is coupled with the cluster.", + "$ref": "#/components/schemas/ClusterAutoscaler" + }, + "azure": { + "description": "Microsoft Azure settings of the cluster.", + "$ref": "#/components/schemas/Azure" + }, + "billing_model": { + "description": "Billing model for cluster resources.", + "$ref": "#/components/schemas/BillingModel" + }, + "byo_oidc": { + "description": "Contains information about BYO OIDC.", + "$ref": "#/components/schemas/ByoOidc" + }, + "cloud_provider": { + "description": "Link to the cloud provider where the cluster is installed.", + "$ref": "#/components/schemas/CloudProvider" + }, + "console": { + "description": "Information about the console of the cluster.", + "$ref": "#/components/schemas/ClusterConsole" + }, + "creation_timestamp": { + "description": "Date and time when the cluster was initially created, using the\nformat defined in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt).", + "type": "string", + "format": "date-time" + }, + "delete_protection": { + "description": "Delete protection", + "$ref": "#/components/schemas/DeleteProtection" + }, + "disable_user_workload_monitoring": { + "description": "Indicates whether the User workload monitoring is enabled or not\nIt is enabled by default", + "type": "boolean" + }, + "domain_prefix": { + "description": "DomainPrefix of the cluster. This prefix is optionally assigned by the user when the\ncluster is created. It will appear in the Cluster's domain when the cluster is provisioned.", + "type": "string" + }, + "etcd_encryption": { + "description": "Indicates whether that etcd is encrypted or not.\nThis is set only during cluster creation.", + "type": "boolean" + }, + "expiration_timestamp": { + "description": "Date and time when the cluster will be automatically deleted, using the format defined in\n[RFC3339](https://www.ietf.org/rfc/rfc3339.txt). If no timestamp is provided, the cluster\nwill never expire.\n\nThis option is unsupported.", + "type": "string", + "format": "date-time" + }, + "external_id": { + "description": "External identifier of the cluster, generated by the installer.", + "type": "string" + }, + "external_auth_config": { + "description": "External authentication configuration", + "$ref": "#/components/schemas/ExternalAuthConfig" + }, + "external_configuration": { + "description": "ExternalConfiguration shows external configuration on the cluster.", + "$ref": "#/components/schemas/ExternalConfiguration" + }, + "flavour": { + "description": "Link to the _flavour_ that was used to create the cluster.", + "$ref": "#/components/schemas/Flavour" + }, + "groups": { + "description": "Link to the collection of groups of user of the cluster.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Group" + } + }, + "health_state": { + "description": "HealthState indicates the overall health state of the cluster.", + "$ref": "#/components/schemas/ClusterHealthState" + }, + "htpasswd": { + "description": "Details for `htpasswd` identity provider.", + "$ref": "#/components/schemas/HTPasswdIdentityProvider" + }, + "hypershift": { + "description": "Hypershift configuration.", + "$ref": "#/components/schemas/Hypershift" + }, + "identity_providers": { + "description": "Link to the collection of identity providers of the cluster.", + "type": "array", + "items": { + "$ref": "#/components/schemas/IdentityProvider" + } + }, + "inflight_checks": { + "description": "List of inflight checks on this cluster.", + "type": "array", + "items": { + "$ref": "#/components/schemas/InflightCheck" + } + }, + "infra_id": { + "description": "InfraID is used for example to name the VPCs.", + "type": "string" + }, + "ingresses": { + "description": "List of ingresses on this cluster.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Ingress" + } + }, + "kubelet_config": { + "description": "Details of cluster-wide KubeletConfig", + "$ref": "#/components/schemas/KubeletConfig" + }, + "load_balancer_quota": { + "description": "Load Balancer quota to be assigned to the cluster.", + "type": "integer", + "format": "int32" + }, + "machine_pools": { + "description": "List of machine pools on this cluster.", + "type": "array", + "items": { + "$ref": "#/components/schemas/MachinePool" + } + }, + "managed": { + "description": "Flag indicating if the cluster is managed (by Red Hat) or\nself-managed by the user.", + "type": "boolean" + }, + "managed_service": { + "description": "Contains information about Managed Service", + "$ref": "#/components/schemas/ManagedService" + }, + "multi_az": { + "description": "Flag indicating if the cluster should be created with nodes in\ndifferent availability zones or all the nodes in a single one\nrandomly selected.", + "type": "boolean" + }, + "multi_arch_enabled": { + "description": "Indicate whether the cluster is enabled for multi arch workers", + "type": "boolean" + }, + "name": { + "description": "Name of the cluster. This name is assigned by the user when the\ncluster is created. This is used to uniquely identify the cluster", + "type": "string" + }, + "network": { + "description": "Network settings of the cluster.", + "$ref": "#/components/schemas/Network" + }, + "node_drain_grace_period": { + "description": "Node drain grace period.", + "$ref": "#/components/schemas/Value" + }, + "node_pools": { + "description": "List of node pools on this cluster.\nNodePool is a scalable set of worker nodes attached to a hosted cluster.", + "type": "array", + "items": { + "$ref": "#/components/schemas/NodePool" + } + }, + "nodes": { + "description": "Information about the nodes of the cluster.", + "$ref": "#/components/schemas/ClusterNodes" + }, + "openshift_version": { + "description": "Version of _OpenShift_ installed in the cluster, for example `4.0.0-0.2`.\n\nWhen retrieving a cluster this will always be reported.\n\nWhen provisioning a cluster this will be ignored, as the version to\ndeploy will be determined internally.", + "type": "string" + }, + "product": { + "description": "Link to the product type of this cluster.", + "$ref": "#/components/schemas/Product" + }, + "properties": { + "description": "User defined properties for tagging and querying.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "provision_shard": { + "description": "ProvisionShard contains the properties of the provision shard, including AWS and GCP related configurations", + "$ref": "#/components/schemas/ProvisionShard" + }, + "proxy": { + "description": "Proxy.", + "$ref": "#/components/schemas/Proxy" + }, + "region": { + "description": "Link to the cloud provider region where the cluster is installed.", + "$ref": "#/components/schemas/CloudRegion" + }, + "registry_config": { + "description": "Registry configuration for the cluster", + "$ref": "#/components/schemas/ClusterRegistryConfig" + }, + "state": { + "description": "Overall state of the cluster.", + "$ref": "#/components/schemas/ClusterState" + }, + "status": { + "description": "Status of cluster", + "$ref": "#/components/schemas/ClusterStatus" + }, + "storage_quota": { + "description": "Storage quota to be assigned to the cluster.", + "$ref": "#/components/schemas/Value" + }, + "subscription": { + "description": "Link to the subscription that comes from the account management service when the cluster\nis registered.", + "$ref": "#/components/schemas/Subscription" + }, + "version": { + "description": "Link to the version of _OpenShift_ that will be used to install the cluster.", + "$ref": "#/components/schemas/Version" + } + } + }, + "ClusterAPI": { + "description": "Information about the API of a cluster.", + "properties": { + "url": { + "description": "The URL of the API server of the cluster.", + "type": "string" + }, + "listening": { + "description": "The listening method of the API server.", + "$ref": "#/components/schemas/ListeningMethod" + } + } + }, + "ClusterConfigurationMode": { + "description": "Configuration mode of a cluster.", + "type": "string", + "enum": [ + "full", + "read_only" + ] + }, + "ClusterConsole": { + "description": "Information about the console of a cluster.", + "properties": { + "url": { + "description": "The URL of the console of the cluster.", + "type": "string" + } + } + }, + "ClusterHealthState": { + "description": "ClusterHealthState indicates the health of a cluster.", + "type": "string", + "enum": [ + "healthy", + "unhealthy", + "unknown" + ] + }, + "ClusterNodes": { + "description": "Counts of different classes of nodes inside a cluster.", + "properties": { + "autoscale_compute": { + "description": "Details for auto-scaling the compute machine pool.\nCompute and AutoscaleCompute cannot be used together.", + "$ref": "#/components/schemas/MachinePoolAutoscaling" + }, + "availability_zones": { + "description": "The availability zones upon which the nodes are created.", + "type": "array", + "items": { + "type": "string" + } + }, + "compute": { + "description": "Number of compute nodes of the cluster.\nCompute and AutoscaleCompute cannot be used together.", + "type": "integer", + "format": "int32" + }, + "compute_labels": { + "description": "The labels set on the \"default\" compute machine pool.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "compute_machine_type": { + "description": "The compute machine type to use, for example `r5.xlarge`.", + "$ref": "#/components/schemas/MachineType" + }, + "compute_root_volume": { + "description": "The compute machine root volume capabilities.", + "$ref": "#/components/schemas/RootVolume" + }, + "infra": { + "description": "Number of infrastructure nodes of the cluster.", + "type": "integer", + "format": "int32" + }, + "infra_machine_type": { + "description": "The infra machine type to use, for example `r5.xlarge` (Optional).", + "$ref": "#/components/schemas/MachineType" + }, + "master": { + "description": "Number of master nodes of the cluster.", + "type": "integer", + "format": "int32" + }, + "master_machine_type": { + "description": "The master machine type to use, for example `r5.xlarge` (Optional).", + "$ref": "#/components/schemas/MachineType" + }, + "security_group_filters": { + "description": "List of security groups to be applied to nodes (Optional).", + "type": "array", + "items": { + "$ref": "#/components/schemas/MachinePoolSecurityGroupFilter" + } + }, + "total": { + "description": "Total number of nodes of the cluster.", + "type": "integer", + "format": "int32" + } + } + }, + "ClusterRegistryConfig": { + "description": "ClusterRegistryConfig describes the configuration of registries for the cluster.\nIts format reflects the OpenShift Image Configuration, for which docs are available on\n[docs.openshift.com](https://docs.openshift.com/container-platform/4.16/openshift_images/image-configuration.html)\n```json\n{\n \"registry_config\": {\n \"registry_sources\": {\n \"blocked_registries\": [\n \"badregistry.io\",\n \"badregistry8.io\"\n ]\n }\n }\n}\n```\n", + "properties": { + "additional_trusted_ca": { + "description": "A map containing the registry hostname as the key, and the PEM-encoded certificate as the value,\nfor each additional registry CA to trust.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "allowed_registries_for_import": { + "description": "AllowedRegistriesForImport limits the container image registries that normal users may import\nimages from. Set this list to the registries that you trust to contain valid Docker\nimages and that you want applications to be able to import from. Users with\npermission to create Images or ImageStreamMappings via the API are not affected by\nthis policy - typically only administrators or system integrations will have those\npermissions.", + "type": "array", + "items": { + "$ref": "#/components/schemas/RegistryLocation" + } + }, + "platform_allowlist": { + "description": "PlatformAllowlist contains a reference to a RegistryAllowlist which is a list of internal registries\nwhich needs to be whitelisted for the platform to work. It can be omitted at creation and \nupdating and its lifecycle can be managed separately if needed.", + "$ref": "#/components/schemas/RegistryAllowlist" + }, + "registry_sources": { + "description": "RegistrySources contains configuration that determines how the container runtime\nshould treat individual registries when accessing images for builds+pods. (e.g.\nwhether or not to allow insecure access). It does not contain configuration for the\ninternal cluster registry.", + "$ref": "#/components/schemas/RegistrySources" + } + } + }, + "ClusterState": { + "description": "Overall state of a cluster.", + "type": "string", + "enum": [ + "error", + "hibernating", + "installing", + "pending", + "powering_down", + "ready", + "resuming", + "uninstalling", + "unknown", + "validating", + "waiting" + ] + }, + "ClusterStatus": { + "description": "Detailed status of a cluster.", + "properties": { + "kind": { + "description": "Indicates the type of this object. Will be 'ClusterStatus' if this is a complete object or 'ClusterStatusLink' if it is just a link.", + "type": "string" + }, + "id": { + "description": "Unique identifier of the object.", + "type": "string" + }, + "href": { + "description": "Self link.", + "type": "string" + }, + "dns_ready": { + "description": "DNSReady from Provisioner", + "type": "boolean" + }, + "oidc_ready": { + "description": "OIDCReady from user configuration.", + "type": "boolean" + }, + "configuration_mode": { + "description": "Configuration mode", + "$ref": "#/components/schemas/ClusterConfigurationMode" + }, + "current_compute": { + "description": "Current Replicas available for a Hosted Cluster", + "type": "integer", + "format": "int32" + }, + "description": { + "description": "Detailed description of the cluster status.", + "type": "string" + }, + "limited_support_reason_count": { + "description": "Limited Support Reason Count", + "type": "integer", + "format": "int32" + }, + "provision_error_code": { + "description": "Provisioning Error Code", + "type": "string" + }, + "provision_error_message": { + "description": "Provisioning Error Message", + "type": "string" + }, + "state": { + "description": "The overall state of the cluster.", + "$ref": "#/components/schemas/ClusterState" + } + } + }, + "DeleteProtection": { + "description": "DeleteProtection configuration.", + "properties": { + "enabled": { + "description": "Boolean flag indicating if the cluster should be be using _DeleteProtection_.\n\nBy default this is `false`.\n\nTo enable it a SREP needs to patch the value through OCM API", + "type": "boolean" + } + } + }, + "Ec2MetadataHttpTokens": { + "description": "Which Ec2MetadataHttpTokens to use for metadata service interaction options for EC2 instances", + "type": "string", + "enum": [ + "optional", + "required" + ] + }, + "ExternalAuthConfig": { + "description": "ExternalAuthConfig configuration", + "properties": { + "enabled": { + "description": "Boolean flag indicating if the cluster should use an external authentication configuration.\n\nBy default this is false.\n\nTo enable it the cluster needs to be ROSA HCP cluster and the organization of the user needs\nto have the `external-authentication` feature toggle enabled.", + "type": "boolean" + }, + "external_auths": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ExternalAuth" + } + } + } + }, + "ExternalConfiguration": { + "description": "Representation of cluster external configuration.", + "properties": { + "labels": { + "description": "list of labels externally configured on the clusterdeployment.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Label" + } + }, + "manifests": { + "description": "list of manifest externally configured for a hosted cluster.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Manifest" + } + }, + "syncsets": { + "description": "list of syncsets externally configured on the cluster.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Syncset" + } + } + } + }, + "GcpAuthentication": { + "description": "Google cloud platform authentication method of a cluster.", + "properties": { + "href": { + "description": "Self link", + "type": "string" + }, + "id": { + "description": "Unique identifier of the object", + "type": "string" + }, + "kind": { + "description": "Indicates the type of this object", + "type": "string" + } + } + }, + "GcpPrivateServiceConnect": { + "description": "Google cloud platform private service connect configuration of a cluster.", + "properties": { + "service_attachment_subnet": { + "description": "The name of the subnet where the PSC service attachment is created", + "type": "string" + } + } + }, + "GcpSecurity": { + "description": "Google cloud platform security settings of a cluster.", + "properties": { + "secure_boot": { + "description": "Determines if Shielded VM feature \"Secure Boot\" should be set for the nodes of the cluster.", + "type": "boolean" + } + } + }, + "Hypershift": { + "description": "Hypershift configuration.", + "properties": { + "enabled": { + "description": "Boolean flag indicating if the cluster should be creating using _Hypershift_.\n\nBy default this is `false`.\n\nTo enable it the cluster needs to be ROSA cluster and the organization of the user needs\nto have the `hypershift` capability enabled.", + "type": "boolean" + } + } + }, + "InstanceIAMRoles": { + "description": "Contains the necessary attributes to support role-based authentication on AWS.", + "properties": { + "master_role_arn": { + "description": "The IAM role ARN that will be attached to master instances", + "type": "string" + }, + "worker_role_arn": { + "description": "The IAM role ARN that will be attached to worker instances", + "type": "string" + } + } + }, + "KubeletConfig": { + "description": "OCM representation of KubeletConfig, exposing the fields of Kubernetes\nKubeletConfig that can be managed by users", + "properties": { + "kind": { + "description": "Indicates the type of this object. Will be 'KubeletConfig' if this is a complete object or 'KubeletConfigLink' if it is just a link.", + "type": "string" + }, + "id": { + "description": "Unique identifier of the object.", + "type": "string" + }, + "href": { + "description": "Self link.", + "type": "string" + }, + "name": { + "description": "Allows the user to specify the name to be used to identify this KubeletConfig.\nOptional. A name will be generated if not provided.", + "type": "string" + }, + "pod_pids_limit": { + "description": "Allows the user to specify the podPidsLimit to be applied via KubeletConfig.\nUseful if workloads have greater PIDs limit requirements than the OCP default.", + "type": "integer", + "format": "int32" + } + } + }, + "ListeningMethod": { + "description": "Cluster components listening method.", + "type": "string", + "enum": [ + "external", + "internal" + ] + }, + "MachinePoolAutoscaling": { + "description": "Representation of a autoscaling in a machine pool.", + "properties": { + "kind": { + "description": "Indicates the type of this object. Will be 'MachinePoolAutoscaling' if this is a complete object or 'MachinePoolAutoscalingLink' if it is just a link.", + "type": "string" + }, + "id": { + "description": "Unique identifier of the object.", + "type": "string" + }, + "href": { + "description": "Self link.", + "type": "string" + }, + "max_replicas": { + "description": "The maximum number of replicas for the machine pool.", + "type": "integer", + "format": "int32" + }, + "min_replicas": { + "description": "The minimum number of replicas for the machine pool.", + "type": "integer", + "format": "int32" + } + } + }, + "MachinePoolSecurityGroupFilter": { + "description": "Security Group Filter object, containing name of the filter tag and value of the filter tag", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "MachineType": { + "description": "Machine type.", + "properties": { + "kind": { + "description": "Indicates the type of this object. Will be 'MachineType' if this is a complete object or 'MachineTypeLink' if it is just a link.", + "type": "string" + }, + "id": { + "description": "Unique identifier of the object.", + "type": "string" + }, + "href": { + "description": "Self link.", + "type": "string" + }, + "ccs_only": { + "description": "'true' if the instance type is supported only for CCS clusters, 'false' otherwise.", + "type": "boolean" + }, + "cpu": { + "description": "The amount of cpu's of the machine type.", + "$ref": "#/components/schemas/Value" + }, + "architecture": { + "description": "The architecture of the machine type.", + "$ref": "#/components/schemas/ProcessorType" + }, + "category": { + "description": "The category which the machine type is suitable for.", + "$ref": "#/components/schemas/MachineTypeCategory" + }, + "cloud_provider": { + "description": "Link to the cloud provider that the machine type belongs to.", + "$ref": "#/components/schemas/CloudProvider" + }, + "generic_name": { + "description": "Generic name for quota purposes, for example `highmem-4`.\nCloud provider agnostic - many values are shared between \"similar\"\nmachine types on different providers.\nCorresponds to `resource_name` values in \"compute.node\" quota cost data.", + "type": "string" + }, + "memory": { + "description": "The amount of memory of the machine type.", + "$ref": "#/components/schemas/Value" + }, + "name": { + "description": "Human friendly identifier of the machine type, for example `r5.xlarge - Memory Optimized`.", + "type": "string" + }, + "size": { + "description": "The size of the machine type.", + "$ref": "#/components/schemas/MachineTypeSize" + } + } + }, + "MachineTypeCategory": { + "description": "Machine type category.", + "type": "string", + "enum": [ + "accelerated_computing", + "compute_optimized", + "general_purpose", + "memory_optimized" + ] + }, + "MachineTypeSize": { + "description": "Machine type size.", + "type": "string", + "enum": [ + "large", + "medium", + "small" + ] + }, + "ManagedService": { + "description": "Contains the necessary attributes to support role-based authentication on AWS.", + "properties": { + "enabled": { + "description": "Indicates whether the cluster belongs to a managed service\nThis should only be set by the \"Managed Service\" service.\nclusters with this set can only be modified by the \"Managed Service\" service.", + "type": "boolean" + } + } + }, + "Network": { + "description": "Network configuration of a cluster.", + "properties": { + "host_prefix": { + "description": "Network host prefix which is defaulted to `23` if not specified.", + "type": "integer", + "format": "int32" + }, + "machine_cidr": { + "description": "IP address block from which to assign machine IP addresses, for example `10.0.0.0/16`.", + "type": "string" + }, + "pod_cidr": { + "description": "IP address block from which to assign pod IP addresses, for example `10.128.0.0/14`.", + "type": "string" + }, + "service_cidr": { + "description": "IP address block from which to assign service IP addresses, for example `172.30.0.0/16`.", + "type": "string" + }, + "type": { + "description": "The main controller responsible for rendering the core networking components.", + "type": "string" + } + } + }, + "OidcConfig": { + "description": "Contains the necessary attributes to support oidc configuration hosting under Red Hat or registering a Customer's byo oidc config.", + "properties": { + "href": { + "description": "HREF for the oidc config, filled in response.", + "type": "string" + }, + "id": { + "description": "ID for the oidc config, filled in response.", + "type": "string" + }, + "creation_timestamp": { + "description": "Creation timestamp, filled in response.", + "type": "string", + "format": "date-time" + }, + "installer_role_arn": { + "description": "ARN of the AWS role to assume when installing the cluster as to reveal the secret, supplied in request. It is only to be used in Unmanaged Oidc Config.", + "type": "string" + }, + "issuer_url": { + "description": "Issuer URL, filled in response when Managed and supplied in Unmanaged.", + "type": "string" + }, + "last_update_timestamp": { + "description": "Last update timestamp, filled when patching a valid attribute of this oidc config.", + "type": "string", + "format": "date-time" + }, + "last_used_timestamp": { + "description": "Last used timestamp, filled by the latest cluster that used this oidc config.", + "type": "string", + "format": "date-time" + }, + "managed": { + "description": "Indicates whether it is Managed or Unmanaged (Customer hosted).", + "type": "boolean" + }, + "organization_id": { + "description": "Organization ID, filled in response respecting token provided.", + "type": "string" + }, + "reusable": { + "description": "Indicates whether the Oidc Config can be reused.", + "type": "boolean" + }, + "secret_arn": { + "description": "Secrets Manager ARN for the OIDC private key, supplied in request. It is only to be used in Unmanaged Oidc Config.", + "type": "string" + } + } + }, + "OperatorIAMRole": { + "description": "Contains the necessary attributes to allow each operator to access the necessary AWS resources", + "properties": { + "id": { + "description": "Randomly-generated ID to identify the operator role", + "type": "string" + }, + "name": { + "description": "Name of the credentials secret used to access cloud resources", + "type": "string" + }, + "namespace": { + "description": "Namespace where the credentials secret lives in the cluster", + "type": "string" + }, + "role_arn": { + "description": "Role to assume when accessing AWS resources", + "type": "string" + }, + "service_account": { + "description": "Service account name to use when authenticating", + "type": "string" + } + } + }, + "PrivateLinkClusterConfiguration": { + "description": "Manages the configuration for the Private Links.", + "properties": { + "principals": { + "description": "List of additional principals for the Private Link", + "type": "array", + "items": { + "$ref": "#/components/schemas/PrivateLinkPrincipal" + } + } + } + }, + "PrivateLinkPrincipal": { + "properties": { + "kind": { + "description": "Indicates the type of this object. Will be 'PrivateLinkPrincipal' if this is a complete object or 'PrivateLinkPrincipalLink' if it is just a link.", + "type": "string" + }, + "id": { + "description": "Unique identifier of the object.", + "type": "string" + }, + "href": { + "description": "Self link.", + "type": "string" + }, + "principal": { + "description": "ARN for a principal that is allowed for this Private Link.", + "type": "string" + } + } + }, + "ProcessorType": { + "description": "Processor type category.", + "type": "string", + "enum": [ + "amd64", + "arm64" + ] + }, + "ProvisionShard": { + "description": "Contains the properties of the provision shard, including AWS and GCP related configurations", + "properties": { + "kind": { + "description": "Indicates the type of this object. Will be 'ProvisionShard' if this is a complete object or 'ProvisionShardLink' if it is just a link.", + "type": "string" + }, + "id": { + "description": "Unique identifier of the object.", + "type": "string" + }, + "href": { + "description": "Self link.", + "type": "string" + }, + "aws_account_operator_config": { + "description": "Contains the configuration for the AWS account operator.", + "$ref": "#/components/schemas/ServerConfig" + }, + "aws_base_domain": { + "description": "Contains the AWS base domain.", + "type": "string" + }, + "gcp_base_domain": { + "description": "Contains the GCP base domain.", + "type": "string" + }, + "gcp_project_operator": { + "description": "Contains the configuration for the GCP project operator.", + "$ref": "#/components/schemas/ServerConfig" + }, + "cloud_provider": { + "description": "Contains the cloud provider name.", + "$ref": "#/components/schemas/CloudProvider" + }, + "creation_timestamp": { + "description": "Date and time when the provision shard was initially created, using the\nformat defined in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt).", + "type": "string", + "format": "date-time" + }, + "hive_config": { + "description": "Contains the configuration for Hive.", + "$ref": "#/components/schemas/ServerConfig" + }, + "hypershift_config": { + "description": "Contains the configuration for Hypershift.", + "$ref": "#/components/schemas/ServerConfig" + }, + "last_update_timestamp": { + "description": "Date and time when the provision shard was last updated, using the\nformat defined in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt).", + "type": "string", + "format": "date-time" + }, + "management_cluster": { + "description": "Contains the name of the management cluster for Hypershift clusters that are assigned to this shard.\nThis field is populated by OCM, and must not be overwritten via API.", + "type": "string" + }, + "region": { + "description": "Contains the cloud-provider region in which the provisioner spins up the cluster.", + "$ref": "#/components/schemas/CloudRegion" + }, + "status": { + "description": "Status of the provision shard. Possible values: active/maintenance/offline.", + "type": "string" + } + } + }, + "ProvisionShardTopology": { + "type": "string", + "enum": [ + "dedicated" + ] + }, + "Proxy": { + "description": "Proxy configuration of a cluster.", + "properties": { + "http_proxy": { + "description": "HTTPProxy is the URL of the proxy for HTTP requests.", + "type": "string" + }, + "https_proxy": { + "description": "HTTPSProxy is the URL of the proxy for HTTPS requests.", + "type": "string" + }, + "no_proxy": { + "description": "NoProxy is a comma-separated list of domains and CIDRs for which \nthe proxy should not be used", + "type": "string" + } + } + }, + "RegistryAllowlist": { + "description": "RegistryAllowlist represents a single registry allowlist.", + "properties": { + "kind": { + "description": "Indicates the type of this object. Will be 'RegistryAllowlist' if this is a complete object or 'RegistryAllowlistLink' if it is just a link.", + "type": "string" + }, + "id": { + "description": "Unique identifier of the object.", + "type": "string" + }, + "href": { + "description": "Self link.", + "type": "string" + }, + "cloud_provider": { + "description": "CloudProvider is the cloud provider for which this allowlist is valid.", + "$ref": "#/components/schemas/CloudProvider" + }, + "creation_timestamp": { + "description": "CreationTimestamp is the date and time when the allow list has been created.", + "type": "string", + "format": "date-time" + }, + "registries": { + "description": "Registries is the list of registries contained in this Allowlist.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "RegistryLocation": { + "description": "RegistryLocation contains a location of the registry specified by the registry domain\nname. The domain name might include wildcards, like '*' or '??'.", + "properties": { + "domain_name": { + "description": "domainName specifies a domain name for the registry\nIn case the registry use non-standard (80 or 443) port, the port should be included\nin the domain name as well.", + "type": "string" + }, + "insecure": { + "description": "insecure indicates whether the registry is secure (https) or insecure (http)\nBy default (if not specified) the registry is assumed as secure.", + "type": "boolean" + } + } + }, + "RegistrySources": { + "description": "RegistrySources contains configuration that determines how the container runtime should treat individual\nregistries when accessing images for builds and pods. For instance, whether or not to allow insecure access.\nIt does not contain configuration for the internal cluster registry.", + "properties": { + "allowed_registries": { + "description": "AllowedRegistries: registries for which image pull and push actions are allowed.\nTo specify all subdomains, add the asterisk (*) wildcard character as a prefix to the domain name.\nFor example, *.example.com. You can specify an individual repository within a registry.\nFor example: reg1.io/myrepo/myapp:latest. All other registries are blocked.\nMutually exclusive with `BlockedRegistries`", + "type": "array", + "items": { + "type": "string" + } + }, + "blocked_registries": { + "description": "BlockedRegistries: registries for which image pull and push actions are denied.\nTo specify all subdomains, add the asterisk (*) wildcard character as a prefix to the domain name.\nFor example, *.example.com. You can specify an individual repository within a registry.\nFor example: reg1.io/myrepo/myapp:latest. All other registries are allowed.\nMutually exclusive with `AllowedRegistries`", + "type": "array", + "items": { + "type": "string" + } + }, + "insecure_registries": { + "description": "InsecureRegistries are registries which do not have a valid TLS certificate or only support HTTP connections.\nTo specify all subdomains, add the asterisk (*) wildcard character as a prefix to the domain name.\nFor example, *.example.com. You can specify an individual repository within a registry.\nFor example: reg1.io/myrepo/myapp:latest.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "RootVolume": { + "description": "Root volume capabilities.", + "properties": { + "aws": { + "description": "AWS volume specification", + "$ref": "#/components/schemas/AWSVolume" + }, + "gcp": { + "description": "GCP Volume specification", + "$ref": "#/components/schemas/GCPVolume" + } + } + }, + "ServerConfig": { + "description": "Representation of a server config", + "properties": { + "kind": { + "description": "Indicates the type of this object. Will be 'ServerConfig' if this is a complete object or 'ServerConfigLink' if it is just a link.", + "type": "string" + }, + "id": { + "description": "Unique identifier of the object.", + "type": "string" + }, + "href": { + "description": "Self link.", + "type": "string" + }, + "aws_shard": { + "description": "Config for AWS provision shards", + "$ref": "#/components/schemas/AWSShard" + }, + "kubeconfig": { + "description": "The kubeconfig of the server.", + "type": "string" + }, + "server": { + "description": "The URL of the server.", + "type": "string" + }, + "topology": { + "description": "The topology of a provision shard (Optional).", + "$ref": "#/components/schemas/ProvisionShardTopology" + } + } + }, + "Value": { + "description": "Numeric value and the unit used to measure it.\n\nUnits are not mandatory, and they're not specified for some resources. For\nresources that use bytes, the accepted units are:\n\n- 1 B = 1 byte\n- 1 KB = 10^3 bytes\n- 1 MB = 10^6 bytes\n- 1 GB = 10^9 bytes\n- 1 TB = 10^12 bytes\n- 1 PB = 10^15 bytes\n\n- 1 B = 1 byte\n- 1 KiB = 2^10 bytes\n- 1 MiB = 2^20 bytes\n- 1 GiB = 2^30 bytes\n- 1 TiB = 2^40 bytes\n- 1 PiB = 2^50 bytes", + "properties": { + "unit": { + "description": "Name of the unit used to measure the value.", + "type": "string" + }, + "value": { + "description": "Numeric value.", + "type": "number", + "format": "float" + } + } + }, + "Error": { + "type": "object", + "properties": { + "kind": { + "description": "Indicates the type of this object. Will always be 'Error'", + "type": "string" + }, + "id": { + "description": "Numeric identifier of the error.", + "type": "integer", + "format": "int32" + }, + "href": { + "description": "Self link.", + "type": "string" + }, + "code": { + "description": "Globally unique code of the error, composed of the unique identifier of the API and the numeric identifier of the error. For example, for if the numeric identifier of the error is `93` and the identifier of the API is `clusters_mgmt` then the code will be `CLUSTERS-MGMT-93`.", + "type": "string" + }, + "reason": { + "description": "Human readable description of the error.", + "type": "string" + }, + "details": { + "description": "Extra information about the error.", + "type": "object", + "additionalProperties": true + } + } + } + }, + "securitySchemes": { + "bearer": { + "type": "http", + "scheme": "bearer", + "bearerFormat": "JWT" + } + } + }, + "security": [ + { + "bearer": [ + + ] + } + ] +} \ No newline at end of file diff --git a/osdfleetmgmt/v1/boolean_list_type_json.go b/osdfleetmgmt/v1/boolean_list_type_json.go index e95f5f7f8..0828e4f37 100644 --- a/osdfleetmgmt/v1/boolean_list_type_json.go +++ b/osdfleetmgmt/v1/boolean_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalBooleanList(list []bool, writer io.Writer) error { stream := helpers.NewStream(writer) - writeBooleanList(list, stream) + WriteBooleanList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalBooleanList(list []bool, writer io.Writer) error { return stream.Error } -// writeBooleanList writes a list of value of the 'boolean' type to +// WriteBooleanList writes a list of value of the 'boolean' type to // the given stream. -func writeBooleanList(list []bool, stream *jsoniter.Stream) { +func WriteBooleanList(list []bool, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalBooleanList(source interface{}) (items []bool, err error) { if err != nil { return } - items = readBooleanList(iterator) + items = ReadBooleanList(iterator) err = iterator.Error return } -// readBooleanList reads list of values of the ”boolean' type from +// ReadBooleanList reads list of values of the ”boolean' type from // the given iterator. -func readBooleanList(iterator *jsoniter.Iterator) []bool { +func ReadBooleanList(iterator *jsoniter.Iterator) []bool { list := []bool{} for iterator.ReadArray() { item := iterator.ReadBool() diff --git a/osdfleetmgmt/v1/cluster_management_reference_list_type_json.go b/osdfleetmgmt/v1/cluster_management_reference_list_type_json.go index 1d23af355..03a56ef66 100644 --- a/osdfleetmgmt/v1/cluster_management_reference_list_type_json.go +++ b/osdfleetmgmt/v1/cluster_management_reference_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterManagementReferenceList(list []*ClusterManagementReference, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterManagementReferenceList(list, stream) + WriteClusterManagementReferenceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalClusterManagementReferenceList(list []*ClusterManagementReference, w return stream.Error } -// writeClusterManagementReferenceList writes a list of value of the 'cluster_management_reference' type to +// WriteClusterManagementReferenceList writes a list of value of the 'cluster_management_reference' type to // the given stream. -func writeClusterManagementReferenceList(list []*ClusterManagementReference, stream *jsoniter.Stream) { +func WriteClusterManagementReferenceList(list []*ClusterManagementReference, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeClusterManagementReference(value, stream) + WriteClusterManagementReference(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalClusterManagementReferenceList(source interface{}) (items []*Clust if err != nil { return } - items = readClusterManagementReferenceList(iterator) + items = ReadClusterManagementReferenceList(iterator) err = iterator.Error return } -// readClusterManagementReferenceList reads list of values of the ”cluster_management_reference' type from +// ReadClusterManagementReferenceList reads list of values of the ”cluster_management_reference' type from // the given iterator. -func readClusterManagementReferenceList(iterator *jsoniter.Iterator) []*ClusterManagementReference { +func ReadClusterManagementReferenceList(iterator *jsoniter.Iterator) []*ClusterManagementReference { list := []*ClusterManagementReference{} for iterator.ReadArray() { - item := readClusterManagementReference(iterator) + item := ReadClusterManagementReference(iterator) list = append(list, item) } return list diff --git a/osdfleetmgmt/v1/cluster_management_reference_type.go b/osdfleetmgmt/v1/cluster_management_reference_type.go index 65e2ac131..225575f10 100644 --- a/osdfleetmgmt/v1/cluster_management_reference_type.go +++ b/osdfleetmgmt/v1/cluster_management_reference_type.go @@ -108,6 +108,29 @@ func (l *ClusterManagementReferenceList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ClusterManagementReferenceList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterManagementReferenceList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterManagementReferenceList) SetItems(items []*ClusterManagementReference) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterManagementReferenceList) Items() []*ClusterManagementReference { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ClusterManagementReferenceList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/osdfleetmgmt/v1/cluster_management_reference_type_json.go b/osdfleetmgmt/v1/cluster_management_reference_type_json.go index 7e21c437e..90ee3dd49 100644 --- a/osdfleetmgmt/v1/cluster_management_reference_type_json.go +++ b/osdfleetmgmt/v1/cluster_management_reference_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalClusterManagementReference writes a value of the 'cluster_management_reference' type to the given writer. func MarshalClusterManagementReference(object *ClusterManagementReference, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterManagementReference(object, stream) + WriteClusterManagementReference(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalClusterManagementReference(object *ClusterManagementReference, write return stream.Error } -// writeClusterManagementReference writes a value of the 'cluster_management_reference' type to the given stream. -func writeClusterManagementReference(object *ClusterManagementReference, stream *jsoniter.Stream) { +// WriteClusterManagementReference writes a value of the 'cluster_management_reference' type to the given stream. +func WriteClusterManagementReference(object *ClusterManagementReference, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalClusterManagementReference(source interface{}) (object *ClusterMan if err != nil { return } - object = readClusterManagementReference(iterator) + object = ReadClusterManagementReference(iterator) err = iterator.Error return } -// readClusterManagementReference reads a value of the 'cluster_management_reference' type from the given iterator. -func readClusterManagementReference(iterator *jsoniter.Iterator) *ClusterManagementReference { +// ReadClusterManagementReference reads a value of the 'cluster_management_reference' type from the given iterator. +func ReadClusterManagementReference(iterator *jsoniter.Iterator) *ClusterManagementReference { object := &ClusterManagementReference{} for { field := iterator.ReadObject() diff --git a/osdfleetmgmt/v1/date_list_type_json.go b/osdfleetmgmt/v1/date_list_type_json.go index 01ca23469..66b41947c 100644 --- a/osdfleetmgmt/v1/date_list_type_json.go +++ b/osdfleetmgmt/v1/date_list_type_json.go @@ -31,7 +31,7 @@ import ( // the given writer. func MarshalDateList(list []time.Time, writer io.Writer) error { stream := helpers.NewStream(writer) - writeDateList(list, stream) + WriteDateList(list, stream) err := stream.Flush() if err != nil { return err @@ -39,9 +39,9 @@ func MarshalDateList(list []time.Time, writer io.Writer) error { return stream.Error } -// writeDateList writes a list of value of the 'date' type to +// WriteDateList writes a list of value of the 'date' type to // the given stream. -func writeDateList(list []time.Time, stream *jsoniter.Stream) { +func WriteDateList(list []time.Time, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -59,14 +59,14 @@ func UnmarshalDateList(source interface{}) (items []time.Time, err error) { if err != nil { return } - items = readDateList(iterator) + items = ReadDateList(iterator) err = iterator.Error return } -// readDateList reads list of values of the ”date' type from +// ReadDateList reads list of values of the ”date' type from // the given iterator. -func readDateList(iterator *jsoniter.Iterator) []time.Time { +func ReadDateList(iterator *jsoniter.Iterator) []time.Time { list := []time.Time{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/osdfleetmgmt/v1/dns_list_type_json.go b/osdfleetmgmt/v1/dns_list_type_json.go index c1eff43be..362b2012c 100644 --- a/osdfleetmgmt/v1/dns_list_type_json.go +++ b/osdfleetmgmt/v1/dns_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalDNSList(list []*DNS, writer io.Writer) error { stream := helpers.NewStream(writer) - writeDNSList(list, stream) + WriteDNSList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalDNSList(list []*DNS, writer io.Writer) error { return stream.Error } -// writeDNSList writes a list of value of the 'DNS' type to +// WriteDNSList writes a list of value of the 'DNS' type to // the given stream. -func writeDNSList(list []*DNS, stream *jsoniter.Stream) { +func WriteDNSList(list []*DNS, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeDNS(value, stream) + WriteDNS(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalDNSList(source interface{}) (items []*DNS, err error) { if err != nil { return } - items = readDNSList(iterator) + items = ReadDNSList(iterator) err = iterator.Error return } -// readDNSList reads list of values of the ”DNS' type from +// ReadDNSList reads list of values of the ”DNS' type from // the given iterator. -func readDNSList(iterator *jsoniter.Iterator) []*DNS { +func ReadDNSList(iterator *jsoniter.Iterator) []*DNS { list := []*DNS{} for iterator.ReadArray() { - item := readDNS(iterator) + item := ReadDNS(iterator) list = append(list, item) } return list diff --git a/osdfleetmgmt/v1/dns_type.go b/osdfleetmgmt/v1/dns_type.go index 57a39b6f5..c28d44685 100644 --- a/osdfleetmgmt/v1/dns_type.go +++ b/osdfleetmgmt/v1/dns_type.go @@ -168,6 +168,29 @@ func (l *DNSList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *DNSList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *DNSList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *DNSList) SetItems(items []*DNS) { + l.items = items +} + +// Items returns the items of the list. +func (l *DNSList) Items() []*DNS { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *DNSList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/osdfleetmgmt/v1/dns_type_json.go b/osdfleetmgmt/v1/dns_type_json.go index 44e2c6bc7..ff2f15bf1 100644 --- a/osdfleetmgmt/v1/dns_type_json.go +++ b/osdfleetmgmt/v1/dns_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalDNS writes a value of the 'DNS' type to the given writer. func MarshalDNS(object *DNS, writer io.Writer) error { stream := helpers.NewStream(writer) - writeDNS(object, stream) + WriteDNS(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalDNS(object *DNS, writer io.Writer) error { return stream.Error } -// writeDNS writes a value of the 'DNS' type to the given stream. -func writeDNS(object *DNS, stream *jsoniter.Stream) { +// WriteDNS writes a value of the 'DNS' type to the given stream. +func WriteDNS(object *DNS, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalDNS(source interface{}) (object *DNS, err error) { if err != nil { return } - object = readDNS(iterator) + object = ReadDNS(iterator) err = iterator.Error return } -// readDNS reads a value of the 'DNS' type from the given iterator. -func readDNS(iterator *jsoniter.Iterator) *DNS { +// ReadDNS reads a value of the 'DNS' type from the given iterator. +func ReadDNS(iterator *jsoniter.Iterator) *DNS { object := &DNS{} for { field := iterator.ReadObject() diff --git a/osdfleetmgmt/v1/float_list_type_json.go b/osdfleetmgmt/v1/float_list_type_json.go index a5a25428a..938670d9d 100644 --- a/osdfleetmgmt/v1/float_list_type_json.go +++ b/osdfleetmgmt/v1/float_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalFloatList(list []float64, writer io.Writer) error { stream := helpers.NewStream(writer) - writeFloatList(list, stream) + WriteFloatList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalFloatList(list []float64, writer io.Writer) error { return stream.Error } -// writeFloatList writes a list of value of the 'float' type to +// WriteFloatList writes a list of value of the 'float' type to // the given stream. -func writeFloatList(list []float64, stream *jsoniter.Stream) { +func WriteFloatList(list []float64, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalFloatList(source interface{}) (items []float64, err error) { if err != nil { return } - items = readFloatList(iterator) + items = ReadFloatList(iterator) err = iterator.Error return } -// readFloatList reads list of values of the ”float' type from +// ReadFloatList reads list of values of the ”float' type from // the given iterator. -func readFloatList(iterator *jsoniter.Iterator) []float64 { +func ReadFloatList(iterator *jsoniter.Iterator) []float64 { list := []float64{} for iterator.ReadArray() { item := iterator.ReadFloat64() diff --git a/osdfleetmgmt/v1/integer_list_type_json.go b/osdfleetmgmt/v1/integer_list_type_json.go index f66f6d163..c0288483d 100644 --- a/osdfleetmgmt/v1/integer_list_type_json.go +++ b/osdfleetmgmt/v1/integer_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalIntegerList(list []int, writer io.Writer) error { stream := helpers.NewStream(writer) - writeIntegerList(list, stream) + WriteIntegerList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalIntegerList(list []int, writer io.Writer) error { return stream.Error } -// writeIntegerList writes a list of value of the 'integer' type to +// WriteIntegerList writes a list of value of the 'integer' type to // the given stream. -func writeIntegerList(list []int, stream *jsoniter.Stream) { +func WriteIntegerList(list []int, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalIntegerList(source interface{}) (items []int, err error) { if err != nil { return } - items = readIntegerList(iterator) + items = ReadIntegerList(iterator) err = iterator.Error return } -// readIntegerList reads list of values of the ”integer' type from +// ReadIntegerList reads list of values of the ”integer' type from // the given iterator. -func readIntegerList(iterator *jsoniter.Iterator) []int { +func ReadIntegerList(iterator *jsoniter.Iterator) []int { list := []int{} for iterator.ReadArray() { item := iterator.ReadInt() diff --git a/osdfleetmgmt/v1/interface_list_type_json.go b/osdfleetmgmt/v1/interface_list_type_json.go index 463c55cf1..dd988bd96 100644 --- a/osdfleetmgmt/v1/interface_list_type_json.go +++ b/osdfleetmgmt/v1/interface_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalInterfaceList(list []interface{}, writer io.Writer) error { stream := helpers.NewStream(writer) - writeInterfaceList(list, stream) + WriteInterfaceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalInterfaceList(list []interface{}, writer io.Writer) error { return stream.Error } -// writeInterfaceList writes a list of value of the 'interface' type to +// WriteInterfaceList writes a list of value of the 'interface' type to // the given stream. -func writeInterfaceList(list []interface{}, stream *jsoniter.Stream) { +func WriteInterfaceList(list []interface{}, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalInterfaceList(source interface{}) (items []interface{}, err error) if err != nil { return } - items = readInterfaceList(iterator) + items = ReadInterfaceList(iterator) err = iterator.Error return } -// readInterfaceList reads list of values of the ”interface' type from +// ReadInterfaceList reads list of values of the ”interface' type from // the given iterator. -func readInterfaceList(iterator *jsoniter.Iterator) []interface{} { +func ReadInterfaceList(iterator *jsoniter.Iterator) []interface{} { list := []interface{}{} for iterator.ReadArray() { var item interface{} diff --git a/osdfleetmgmt/v1/label_list_type_json.go b/osdfleetmgmt/v1/label_list_type_json.go index 4ca3c2b34..540afa53a 100644 --- a/osdfleetmgmt/v1/label_list_type_json.go +++ b/osdfleetmgmt/v1/label_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalLabelList(list []*Label, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLabelList(list, stream) + WriteLabelList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalLabelList(list []*Label, writer io.Writer) error { return stream.Error } -// writeLabelList writes a list of value of the 'label' type to +// WriteLabelList writes a list of value of the 'label' type to // the given stream. -func writeLabelList(list []*Label, stream *jsoniter.Stream) { +func WriteLabelList(list []*Label, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeLabel(value, stream) + WriteLabel(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalLabelList(source interface{}) (items []*Label, err error) { if err != nil { return } - items = readLabelList(iterator) + items = ReadLabelList(iterator) err = iterator.Error return } -// readLabelList reads list of values of the ”label' type from +// ReadLabelList reads list of values of the ”label' type from // the given iterator. -func readLabelList(iterator *jsoniter.Iterator) []*Label { +func ReadLabelList(iterator *jsoniter.Iterator) []*Label { list := []*Label{} for iterator.ReadArray() { - item := readLabel(iterator) + item := ReadLabel(iterator) list = append(list, item) } return list diff --git a/osdfleetmgmt/v1/label_reference_list_type_json.go b/osdfleetmgmt/v1/label_reference_list_type_json.go index f225e019e..8e33fba71 100644 --- a/osdfleetmgmt/v1/label_reference_list_type_json.go +++ b/osdfleetmgmt/v1/label_reference_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalLabelReferenceList(list []*LabelReference, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLabelReferenceList(list, stream) + WriteLabelReferenceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalLabelReferenceList(list []*LabelReference, writer io.Writer) error { return stream.Error } -// writeLabelReferenceList writes a list of value of the 'label_reference' type to +// WriteLabelReferenceList writes a list of value of the 'label_reference' type to // the given stream. -func writeLabelReferenceList(list []*LabelReference, stream *jsoniter.Stream) { +func WriteLabelReferenceList(list []*LabelReference, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeLabelReference(value, stream) + WriteLabelReference(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalLabelReferenceList(source interface{}) (items []*LabelReference, e if err != nil { return } - items = readLabelReferenceList(iterator) + items = ReadLabelReferenceList(iterator) err = iterator.Error return } -// readLabelReferenceList reads list of values of the ”label_reference' type from +// ReadLabelReferenceList reads list of values of the ”label_reference' type from // the given iterator. -func readLabelReferenceList(iterator *jsoniter.Iterator) []*LabelReference { +func ReadLabelReferenceList(iterator *jsoniter.Iterator) []*LabelReference { list := []*LabelReference{} for iterator.ReadArray() { - item := readLabelReference(iterator) + item := ReadLabelReference(iterator) list = append(list, item) } return list diff --git a/osdfleetmgmt/v1/label_reference_type.go b/osdfleetmgmt/v1/label_reference_type.go index 0aaa858cc..c6f71a306 100644 --- a/osdfleetmgmt/v1/label_reference_type.go +++ b/osdfleetmgmt/v1/label_reference_type.go @@ -106,6 +106,29 @@ func (l *LabelReferenceList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *LabelReferenceList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *LabelReferenceList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *LabelReferenceList) SetItems(items []*LabelReference) { + l.items = items +} + +// Items returns the items of the list. +func (l *LabelReferenceList) Items() []*LabelReference { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *LabelReferenceList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/osdfleetmgmt/v1/label_reference_type_json.go b/osdfleetmgmt/v1/label_reference_type_json.go index fe5a0da2a..e72f6f7c8 100644 --- a/osdfleetmgmt/v1/label_reference_type_json.go +++ b/osdfleetmgmt/v1/label_reference_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalLabelReference writes a value of the 'label_reference' type to the given writer. func MarshalLabelReference(object *LabelReference, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLabelReference(object, stream) + WriteLabelReference(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalLabelReference(object *LabelReference, writer io.Writer) error { return stream.Error } -// writeLabelReference writes a value of the 'label_reference' type to the given stream. -func writeLabelReference(object *LabelReference, stream *jsoniter.Stream) { +// WriteLabelReference writes a value of the 'label_reference' type to the given stream. +func WriteLabelReference(object *LabelReference, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalLabelReference(source interface{}) (object *LabelReference, err er if err != nil { return } - object = readLabelReference(iterator) + object = ReadLabelReference(iterator) err = iterator.Error return } -// readLabelReference reads a value of the 'label_reference' type from the given iterator. -func readLabelReference(iterator *jsoniter.Iterator) *LabelReference { +// ReadLabelReference reads a value of the 'label_reference' type from the given iterator. +func ReadLabelReference(iterator *jsoniter.Iterator) *LabelReference { object := &LabelReference{} for { field := iterator.ReadObject() diff --git a/osdfleetmgmt/v1/label_request_payload_list_type_json.go b/osdfleetmgmt/v1/label_request_payload_list_type_json.go index 8dad6fc52..ead1977a2 100644 --- a/osdfleetmgmt/v1/label_request_payload_list_type_json.go +++ b/osdfleetmgmt/v1/label_request_payload_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalLabelRequestPayloadList(list []*LabelRequestPayload, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLabelRequestPayloadList(list, stream) + WriteLabelRequestPayloadList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalLabelRequestPayloadList(list []*LabelRequestPayload, writer io.Write return stream.Error } -// writeLabelRequestPayloadList writes a list of value of the 'label_request_payload' type to +// WriteLabelRequestPayloadList writes a list of value of the 'label_request_payload' type to // the given stream. -func writeLabelRequestPayloadList(list []*LabelRequestPayload, stream *jsoniter.Stream) { +func WriteLabelRequestPayloadList(list []*LabelRequestPayload, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeLabelRequestPayload(value, stream) + WriteLabelRequestPayload(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalLabelRequestPayloadList(source interface{}) (items []*LabelRequest if err != nil { return } - items = readLabelRequestPayloadList(iterator) + items = ReadLabelRequestPayloadList(iterator) err = iterator.Error return } -// readLabelRequestPayloadList reads list of values of the ”label_request_payload' type from +// ReadLabelRequestPayloadList reads list of values of the ”label_request_payload' type from // the given iterator. -func readLabelRequestPayloadList(iterator *jsoniter.Iterator) []*LabelRequestPayload { +func ReadLabelRequestPayloadList(iterator *jsoniter.Iterator) []*LabelRequestPayload { list := []*LabelRequestPayload{} for iterator.ReadArray() { - item := readLabelRequestPayload(iterator) + item := ReadLabelRequestPayload(iterator) list = append(list, item) } return list diff --git a/osdfleetmgmt/v1/label_request_payload_type.go b/osdfleetmgmt/v1/label_request_payload_type.go index 5a7436031..a66b84f16 100644 --- a/osdfleetmgmt/v1/label_request_payload_type.go +++ b/osdfleetmgmt/v1/label_request_payload_type.go @@ -96,6 +96,29 @@ func (l *LabelRequestPayloadList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *LabelRequestPayloadList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *LabelRequestPayloadList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *LabelRequestPayloadList) SetItems(items []*LabelRequestPayload) { + l.items = items +} + +// Items returns the items of the list. +func (l *LabelRequestPayloadList) Items() []*LabelRequestPayload { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *LabelRequestPayloadList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/osdfleetmgmt/v1/label_request_payload_type_json.go b/osdfleetmgmt/v1/label_request_payload_type_json.go index 35fffcc3f..523d4b64b 100644 --- a/osdfleetmgmt/v1/label_request_payload_type_json.go +++ b/osdfleetmgmt/v1/label_request_payload_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalLabelRequestPayload writes a value of the 'label_request_payload' type to the given writer. func MarshalLabelRequestPayload(object *LabelRequestPayload, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLabelRequestPayload(object, stream) + WriteLabelRequestPayload(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalLabelRequestPayload(object *LabelRequestPayload, writer io.Writer) e return stream.Error } -// writeLabelRequestPayload writes a value of the 'label_request_payload' type to the given stream. -func writeLabelRequestPayload(object *LabelRequestPayload, stream *jsoniter.Stream) { +// WriteLabelRequestPayload writes a value of the 'label_request_payload' type to the given stream. +func WriteLabelRequestPayload(object *LabelRequestPayload, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalLabelRequestPayload(source interface{}) (object *LabelRequestPaylo if err != nil { return } - object = readLabelRequestPayload(iterator) + object = ReadLabelRequestPayload(iterator) err = iterator.Error return } -// readLabelRequestPayload reads a value of the 'label_request_payload' type from the given iterator. -func readLabelRequestPayload(iterator *jsoniter.Iterator) *LabelRequestPayload { +// ReadLabelRequestPayload reads a value of the 'label_request_payload' type from the given iterator. +func ReadLabelRequestPayload(iterator *jsoniter.Iterator) *LabelRequestPayload { object := &LabelRequestPayload{} for { field := iterator.ReadObject() diff --git a/osdfleetmgmt/v1/label_type.go b/osdfleetmgmt/v1/label_type.go index 5af70688e..7b7b0bbb4 100644 --- a/osdfleetmgmt/v1/label_type.go +++ b/osdfleetmgmt/v1/label_type.go @@ -53,7 +53,7 @@ func (o *Label) Kind() string { return LabelKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Label) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -206,6 +206,29 @@ func (l *LabelList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *LabelList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *LabelList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *LabelList) SetItems(items []*Label) { + l.items = items +} + +// Items returns the items of the list. +func (l *LabelList) Items() []*Label { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *LabelList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/osdfleetmgmt/v1/label_type_json.go b/osdfleetmgmt/v1/label_type_json.go index ede58f2e8..63025e8bf 100644 --- a/osdfleetmgmt/v1/label_type_json.go +++ b/osdfleetmgmt/v1/label_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalLabel writes a value of the 'label' type to the given writer. func MarshalLabel(object *Label, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLabel(object, stream) + WriteLabel(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalLabel(object *Label, writer io.Writer) error { return stream.Error } -// writeLabel writes a value of the 'label' type to the given stream. -func writeLabel(object *Label, stream *jsoniter.Stream) { +// WriteLabel writes a value of the 'label' type to the given stream. +func WriteLabel(object *Label, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -92,13 +92,13 @@ func UnmarshalLabel(source interface{}) (object *Label, err error) { if err != nil { return } - object = readLabel(iterator) + object = ReadLabel(iterator) err = iterator.Error return } -// readLabel reads a value of the 'label' type from the given iterator. -func readLabel(iterator *jsoniter.Iterator) *Label { +// ReadLabel reads a value of the 'label' type from the given iterator. +func ReadLabel(iterator *jsoniter.Iterator) *Label { object := &Label{} for { field := iterator.ReadObject() diff --git a/osdfleetmgmt/v1/labels_resource_json.go b/osdfleetmgmt/v1/labels_resource_json.go index 753965a2f..a393b20c7 100644 --- a/osdfleetmgmt/v1/labels_resource_json.go +++ b/osdfleetmgmt/v1/labels_resource_json.go @@ -49,7 +49,7 @@ func readLabelsListResponse(response *LabelsListResponse, reader io.Reader) erro value := iterator.ReadInt() response.total = &value case "items": - items := readLabelList(iterator) + items := ReadLabelList(iterator) response.items = &LabelList{ items: items, } diff --git a/osdfleetmgmt/v1/long_list_type_json.go b/osdfleetmgmt/v1/long_list_type_json.go index d1f866a9b..29f55159c 100644 --- a/osdfleetmgmt/v1/long_list_type_json.go +++ b/osdfleetmgmt/v1/long_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalLongList(list []int64, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLongList(list, stream) + WriteLongList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalLongList(list []int64, writer io.Writer) error { return stream.Error } -// writeLongList writes a list of value of the 'long' type to +// WriteLongList writes a list of value of the 'long' type to // the given stream. -func writeLongList(list []int64, stream *jsoniter.Stream) { +func WriteLongList(list []int64, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalLongList(source interface{}) (items []int64, err error) { if err != nil { return } - items = readLongList(iterator) + items = ReadLongList(iterator) err = iterator.Error return } -// readLongList reads list of values of the ”long' type from +// ReadLongList reads list of values of the ”long' type from // the given iterator. -func readLongList(iterator *jsoniter.Iterator) []int64 { +func ReadLongList(iterator *jsoniter.Iterator) []int64 { list := []int64{} for iterator.ReadArray() { item := iterator.ReadInt64() diff --git a/osdfleetmgmt/v1/management_cluster_list_type_json.go b/osdfleetmgmt/v1/management_cluster_list_type_json.go index 43d6505da..6f4e0c5a4 100644 --- a/osdfleetmgmt/v1/management_cluster_list_type_json.go +++ b/osdfleetmgmt/v1/management_cluster_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalManagementClusterList(list []*ManagementCluster, writer io.Writer) error { stream := helpers.NewStream(writer) - writeManagementClusterList(list, stream) + WriteManagementClusterList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalManagementClusterList(list []*ManagementCluster, writer io.Writer) e return stream.Error } -// writeManagementClusterList writes a list of value of the 'management_cluster' type to +// WriteManagementClusterList writes a list of value of the 'management_cluster' type to // the given stream. -func writeManagementClusterList(list []*ManagementCluster, stream *jsoniter.Stream) { +func WriteManagementClusterList(list []*ManagementCluster, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeManagementCluster(value, stream) + WriteManagementCluster(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalManagementClusterList(source interface{}) (items []*ManagementClus if err != nil { return } - items = readManagementClusterList(iterator) + items = ReadManagementClusterList(iterator) err = iterator.Error return } -// readManagementClusterList reads list of values of the ”management_cluster' type from +// ReadManagementClusterList reads list of values of the ”management_cluster' type from // the given iterator. -func readManagementClusterList(iterator *jsoniter.Iterator) []*ManagementCluster { +func ReadManagementClusterList(iterator *jsoniter.Iterator) []*ManagementCluster { list := []*ManagementCluster{} for iterator.ReadArray() { - item := readManagementCluster(iterator) + item := ReadManagementCluster(iterator) list = append(list, item) } return list diff --git a/osdfleetmgmt/v1/management_cluster_parent_list_type_json.go b/osdfleetmgmt/v1/management_cluster_parent_list_type_json.go index b1bd80e8d..adb5fc945 100644 --- a/osdfleetmgmt/v1/management_cluster_parent_list_type_json.go +++ b/osdfleetmgmt/v1/management_cluster_parent_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalManagementClusterParentList(list []*ManagementClusterParent, writer io.Writer) error { stream := helpers.NewStream(writer) - writeManagementClusterParentList(list, stream) + WriteManagementClusterParentList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalManagementClusterParentList(list []*ManagementClusterParent, writer return stream.Error } -// writeManagementClusterParentList writes a list of value of the 'management_cluster_parent' type to +// WriteManagementClusterParentList writes a list of value of the 'management_cluster_parent' type to // the given stream. -func writeManagementClusterParentList(list []*ManagementClusterParent, stream *jsoniter.Stream) { +func WriteManagementClusterParentList(list []*ManagementClusterParent, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeManagementClusterParent(value, stream) + WriteManagementClusterParent(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalManagementClusterParentList(source interface{}) (items []*Manageme if err != nil { return } - items = readManagementClusterParentList(iterator) + items = ReadManagementClusterParentList(iterator) err = iterator.Error return } -// readManagementClusterParentList reads list of values of the ”management_cluster_parent' type from +// ReadManagementClusterParentList reads list of values of the ”management_cluster_parent' type from // the given iterator. -func readManagementClusterParentList(iterator *jsoniter.Iterator) []*ManagementClusterParent { +func ReadManagementClusterParentList(iterator *jsoniter.Iterator) []*ManagementClusterParent { list := []*ManagementClusterParent{} for iterator.ReadArray() { - item := readManagementClusterParent(iterator) + item := ReadManagementClusterParent(iterator) list = append(list, item) } return list diff --git a/osdfleetmgmt/v1/management_cluster_parent_type.go b/osdfleetmgmt/v1/management_cluster_parent_type.go index cd3619752..09d0bcae9 100644 --- a/osdfleetmgmt/v1/management_cluster_parent_type.go +++ b/osdfleetmgmt/v1/management_cluster_parent_type.go @@ -154,6 +154,29 @@ func (l *ManagementClusterParentList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ManagementClusterParentList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ManagementClusterParentList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ManagementClusterParentList) SetItems(items []*ManagementClusterParent) { + l.items = items +} + +// Items returns the items of the list. +func (l *ManagementClusterParentList) Items() []*ManagementClusterParent { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ManagementClusterParentList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/osdfleetmgmt/v1/management_cluster_parent_type_json.go b/osdfleetmgmt/v1/management_cluster_parent_type_json.go index 473071111..8507a10e7 100644 --- a/osdfleetmgmt/v1/management_cluster_parent_type_json.go +++ b/osdfleetmgmt/v1/management_cluster_parent_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalManagementClusterParent writes a value of the 'management_cluster_parent' type to the given writer. func MarshalManagementClusterParent(object *ManagementClusterParent, writer io.Writer) error { stream := helpers.NewStream(writer) - writeManagementClusterParent(object, stream) + WriteManagementClusterParent(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalManagementClusterParent(object *ManagementClusterParent, writer io.W return stream.Error } -// writeManagementClusterParent writes a value of the 'management_cluster_parent' type to the given stream. -func writeManagementClusterParent(object *ManagementClusterParent, stream *jsoniter.Stream) { +// WriteManagementClusterParent writes a value of the 'management_cluster_parent' type to the given stream. +func WriteManagementClusterParent(object *ManagementClusterParent, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -87,13 +87,13 @@ func UnmarshalManagementClusterParent(source interface{}) (object *ManagementClu if err != nil { return } - object = readManagementClusterParent(iterator) + object = ReadManagementClusterParent(iterator) err = iterator.Error return } -// readManagementClusterParent reads a value of the 'management_cluster_parent' type from the given iterator. -func readManagementClusterParent(iterator *jsoniter.Iterator) *ManagementClusterParent { +// ReadManagementClusterParent reads a value of the 'management_cluster_parent' type from the given iterator. +func ReadManagementClusterParent(iterator *jsoniter.Iterator) *ManagementClusterParent { object := &ManagementClusterParent{} for { field := iterator.ReadObject() diff --git a/osdfleetmgmt/v1/management_cluster_request_payload_list_type_json.go b/osdfleetmgmt/v1/management_cluster_request_payload_list_type_json.go index 2bc56f065..9a889adc0 100644 --- a/osdfleetmgmt/v1/management_cluster_request_payload_list_type_json.go +++ b/osdfleetmgmt/v1/management_cluster_request_payload_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalManagementClusterRequestPayloadList(list []*ManagementClusterRequestPayload, writer io.Writer) error { stream := helpers.NewStream(writer) - writeManagementClusterRequestPayloadList(list, stream) + WriteManagementClusterRequestPayloadList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalManagementClusterRequestPayloadList(list []*ManagementClusterRequest return stream.Error } -// writeManagementClusterRequestPayloadList writes a list of value of the 'management_cluster_request_payload' type to +// WriteManagementClusterRequestPayloadList writes a list of value of the 'management_cluster_request_payload' type to // the given stream. -func writeManagementClusterRequestPayloadList(list []*ManagementClusterRequestPayload, stream *jsoniter.Stream) { +func WriteManagementClusterRequestPayloadList(list []*ManagementClusterRequestPayload, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeManagementClusterRequestPayload(value, stream) + WriteManagementClusterRequestPayload(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalManagementClusterRequestPayloadList(source interface{}) (items []* if err != nil { return } - items = readManagementClusterRequestPayloadList(iterator) + items = ReadManagementClusterRequestPayloadList(iterator) err = iterator.Error return } -// readManagementClusterRequestPayloadList reads list of values of the ”management_cluster_request_payload' type from +// ReadManagementClusterRequestPayloadList reads list of values of the ”management_cluster_request_payload' type from // the given iterator. -func readManagementClusterRequestPayloadList(iterator *jsoniter.Iterator) []*ManagementClusterRequestPayload { +func ReadManagementClusterRequestPayloadList(iterator *jsoniter.Iterator) []*ManagementClusterRequestPayload { list := []*ManagementClusterRequestPayload{} for iterator.ReadArray() { - item := readManagementClusterRequestPayload(iterator) + item := ReadManagementClusterRequestPayload(iterator) list = append(list, item) } return list diff --git a/osdfleetmgmt/v1/management_cluster_request_payload_type.go b/osdfleetmgmt/v1/management_cluster_request_payload_type.go index 53bd862b4..aef2985f3 100644 --- a/osdfleetmgmt/v1/management_cluster_request_payload_type.go +++ b/osdfleetmgmt/v1/management_cluster_request_payload_type.go @@ -76,6 +76,29 @@ func (l *ManagementClusterRequestPayloadList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ManagementClusterRequestPayloadList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ManagementClusterRequestPayloadList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ManagementClusterRequestPayloadList) SetItems(items []*ManagementClusterRequestPayload) { + l.items = items +} + +// Items returns the items of the list. +func (l *ManagementClusterRequestPayloadList) Items() []*ManagementClusterRequestPayload { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ManagementClusterRequestPayloadList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/osdfleetmgmt/v1/management_cluster_request_payload_type_json.go b/osdfleetmgmt/v1/management_cluster_request_payload_type_json.go index abe63e059..9c555ebdd 100644 --- a/osdfleetmgmt/v1/management_cluster_request_payload_type_json.go +++ b/osdfleetmgmt/v1/management_cluster_request_payload_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalManagementClusterRequestPayload writes a value of the 'management_cluster_request_payload' type to the given writer. func MarshalManagementClusterRequestPayload(object *ManagementClusterRequestPayload, writer io.Writer) error { stream := helpers.NewStream(writer) - writeManagementClusterRequestPayload(object, stream) + WriteManagementClusterRequestPayload(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalManagementClusterRequestPayload(object *ManagementClusterRequestPayl return stream.Error } -// writeManagementClusterRequestPayload writes a value of the 'management_cluster_request_payload' type to the given stream. -func writeManagementClusterRequestPayload(object *ManagementClusterRequestPayload, stream *jsoniter.Stream) { +// WriteManagementClusterRequestPayload writes a value of the 'management_cluster_request_payload' type to the given stream. +func WriteManagementClusterRequestPayload(object *ManagementClusterRequestPayload, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalManagementClusterRequestPayload(source interface{}) (object *Manag if err != nil { return } - object = readManagementClusterRequestPayload(iterator) + object = ReadManagementClusterRequestPayload(iterator) err = iterator.Error return } -// readManagementClusterRequestPayload reads a value of the 'management_cluster_request_payload' type from the given iterator. -func readManagementClusterRequestPayload(iterator *jsoniter.Iterator) *ManagementClusterRequestPayload { +// ReadManagementClusterRequestPayload reads a value of the 'management_cluster_request_payload' type from the given iterator. +func ReadManagementClusterRequestPayload(iterator *jsoniter.Iterator) *ManagementClusterRequestPayload { object := &ManagementClusterRequestPayload{} for { field := iterator.ReadObject() diff --git a/osdfleetmgmt/v1/management_cluster_type.go b/osdfleetmgmt/v1/management_cluster_type.go index 04e356737..4739b75e5 100644 --- a/osdfleetmgmt/v1/management_cluster_type.go +++ b/osdfleetmgmt/v1/management_cluster_type.go @@ -104,7 +104,7 @@ func (o *ManagementCluster) Kind() string { return ManagementClusterKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *ManagementCluster) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -464,6 +464,29 @@ func (l *ManagementClusterList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ManagementClusterList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ManagementClusterList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ManagementClusterList) SetItems(items []*ManagementCluster) { + l.items = items +} + +// Items returns the items of the list. +func (l *ManagementClusterList) Items() []*ManagementCluster { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ManagementClusterList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/osdfleetmgmt/v1/management_cluster_type_json.go b/osdfleetmgmt/v1/management_cluster_type_json.go index 5ae59ca81..0ecfbeaf3 100644 --- a/osdfleetmgmt/v1/management_cluster_type_json.go +++ b/osdfleetmgmt/v1/management_cluster_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalManagementCluster writes a value of the 'management_cluster' type to the given writer. func MarshalManagementCluster(object *ManagementCluster, writer io.Writer) error { stream := helpers.NewStream(writer) - writeManagementCluster(object, stream) + WriteManagementCluster(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalManagementCluster(object *ManagementCluster, writer io.Writer) error return stream.Error } -// writeManagementCluster writes a value of the 'management_cluster' type to the given stream. -func writeManagementCluster(object *ManagementCluster, stream *jsoniter.Stream) { +// WriteManagementCluster writes a value of the 'management_cluster' type to the given stream. +func WriteManagementCluster(object *ManagementCluster, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -72,7 +72,7 @@ func writeManagementCluster(object *ManagementCluster, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("dns") - writeDNS(object.dns, stream) + WriteDNS(object.dns, stream) count++ } present_ = object.bitmap_&16 != 0 @@ -90,7 +90,7 @@ func writeManagementCluster(object *ManagementCluster, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("cluster_management_reference") - writeClusterManagementReference(object.clusterManagementReference, stream) + WriteClusterManagementReference(object.clusterManagementReference, stream) count++ } present_ = object.bitmap_&64 != 0 @@ -108,7 +108,7 @@ func writeManagementCluster(object *ManagementCluster, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("labels") - writeLabelList(object.labels, stream) + WriteLabelList(object.labels, stream) count++ } present_ = object.bitmap_&256 != 0 @@ -126,7 +126,7 @@ func writeManagementCluster(object *ManagementCluster, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("parent") - writeManagementClusterParent(object.parent, stream) + WriteManagementClusterParent(object.parent, stream) count++ } present_ = object.bitmap_&1024 != 0 @@ -174,13 +174,13 @@ func UnmarshalManagementCluster(source interface{}) (object *ManagementCluster, if err != nil { return } - object = readManagementCluster(iterator) + object = ReadManagementCluster(iterator) err = iterator.Error return } -// readManagementCluster reads a value of the 'management_cluster' type from the given iterator. -func readManagementCluster(iterator *jsoniter.Iterator) *ManagementCluster { +// ReadManagementCluster reads a value of the 'management_cluster' type from the given iterator. +func ReadManagementCluster(iterator *jsoniter.Iterator) *ManagementCluster { object := &ManagementCluster{} for { field := iterator.ReadObject() @@ -200,7 +200,7 @@ func readManagementCluster(iterator *jsoniter.Iterator) *ManagementCluster { object.href = iterator.ReadString() object.bitmap_ |= 4 case "dns": - value := readDNS(iterator) + value := ReadDNS(iterator) object.dns = value object.bitmap_ |= 8 case "cloud_provider": @@ -208,7 +208,7 @@ func readManagementCluster(iterator *jsoniter.Iterator) *ManagementCluster { object.cloudProvider = value object.bitmap_ |= 16 case "cluster_management_reference": - value := readClusterManagementReference(iterator) + value := ReadClusterManagementReference(iterator) object.clusterManagementReference = value object.bitmap_ |= 32 case "creation_timestamp": @@ -220,7 +220,7 @@ func readManagementCluster(iterator *jsoniter.Iterator) *ManagementCluster { object.creationTimestamp = value object.bitmap_ |= 64 case "labels": - value := readLabelList(iterator) + value := ReadLabelList(iterator) object.labels = value object.bitmap_ |= 128 case "name": @@ -228,7 +228,7 @@ func readManagementCluster(iterator *jsoniter.Iterator) *ManagementCluster { object.name = value object.bitmap_ |= 256 case "parent": - value := readManagementClusterParent(iterator) + value := ReadManagementClusterParent(iterator) object.parent = value object.bitmap_ |= 512 case "region": diff --git a/osdfleetmgmt/v1/management_clusters_resource_json.go b/osdfleetmgmt/v1/management_clusters_resource_json.go index e5872f91c..09a23c608 100644 --- a/osdfleetmgmt/v1/management_clusters_resource_json.go +++ b/osdfleetmgmt/v1/management_clusters_resource_json.go @@ -49,7 +49,7 @@ func readManagementClustersListResponse(response *ManagementClustersListResponse value := iterator.ReadInt() response.total = &value case "items": - items := readManagementClusterList(iterator) + items := ReadManagementClusterList(iterator) response.items = &ManagementClusterList{ items: items, } diff --git a/osdfleetmgmt/v1/provision_shard_reference_list_type_json.go b/osdfleetmgmt/v1/provision_shard_reference_list_type_json.go index 85dc61a99..bdc2bf7b1 100644 --- a/osdfleetmgmt/v1/provision_shard_reference_list_type_json.go +++ b/osdfleetmgmt/v1/provision_shard_reference_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalProvisionShardReferenceList(list []*ProvisionShardReference, writer io.Writer) error { stream := helpers.NewStream(writer) - writeProvisionShardReferenceList(list, stream) + WriteProvisionShardReferenceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalProvisionShardReferenceList(list []*ProvisionShardReference, writer return stream.Error } -// writeProvisionShardReferenceList writes a list of value of the 'provision_shard_reference' type to +// WriteProvisionShardReferenceList writes a list of value of the 'provision_shard_reference' type to // the given stream. -func writeProvisionShardReferenceList(list []*ProvisionShardReference, stream *jsoniter.Stream) { +func WriteProvisionShardReferenceList(list []*ProvisionShardReference, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeProvisionShardReference(value, stream) + WriteProvisionShardReference(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalProvisionShardReferenceList(source interface{}) (items []*Provisio if err != nil { return } - items = readProvisionShardReferenceList(iterator) + items = ReadProvisionShardReferenceList(iterator) err = iterator.Error return } -// readProvisionShardReferenceList reads list of values of the ”provision_shard_reference' type from +// ReadProvisionShardReferenceList reads list of values of the ”provision_shard_reference' type from // the given iterator. -func readProvisionShardReferenceList(iterator *jsoniter.Iterator) []*ProvisionShardReference { +func ReadProvisionShardReferenceList(iterator *jsoniter.Iterator) []*ProvisionShardReference { list := []*ProvisionShardReference{} for iterator.ReadArray() { - item := readProvisionShardReference(iterator) + item := ReadProvisionShardReference(iterator) list = append(list, item) } return list diff --git a/osdfleetmgmt/v1/provision_shard_reference_type.go b/osdfleetmgmt/v1/provision_shard_reference_type.go index c8ea08f47..425e0cf6b 100644 --- a/osdfleetmgmt/v1/provision_shard_reference_type.go +++ b/osdfleetmgmt/v1/provision_shard_reference_type.go @@ -106,6 +106,29 @@ func (l *ProvisionShardReferenceList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ProvisionShardReferenceList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ProvisionShardReferenceList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ProvisionShardReferenceList) SetItems(items []*ProvisionShardReference) { + l.items = items +} + +// Items returns the items of the list. +func (l *ProvisionShardReferenceList) Items() []*ProvisionShardReference { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ProvisionShardReferenceList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/osdfleetmgmt/v1/provision_shard_reference_type_json.go b/osdfleetmgmt/v1/provision_shard_reference_type_json.go index 73dcbc251..34dbd5e24 100644 --- a/osdfleetmgmt/v1/provision_shard_reference_type_json.go +++ b/osdfleetmgmt/v1/provision_shard_reference_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalProvisionShardReference writes a value of the 'provision_shard_reference' type to the given writer. func MarshalProvisionShardReference(object *ProvisionShardReference, writer io.Writer) error { stream := helpers.NewStream(writer) - writeProvisionShardReference(object, stream) + WriteProvisionShardReference(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalProvisionShardReference(object *ProvisionShardReference, writer io.W return stream.Error } -// writeProvisionShardReference writes a value of the 'provision_shard_reference' type to the given stream. -func writeProvisionShardReference(object *ProvisionShardReference, stream *jsoniter.Stream) { +// WriteProvisionShardReference writes a value of the 'provision_shard_reference' type to the given stream. +func WriteProvisionShardReference(object *ProvisionShardReference, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalProvisionShardReference(source interface{}) (object *ProvisionShar if err != nil { return } - object = readProvisionShardReference(iterator) + object = ReadProvisionShardReference(iterator) err = iterator.Error return } -// readProvisionShardReference reads a value of the 'provision_shard_reference' type from the given iterator. -func readProvisionShardReference(iterator *jsoniter.Iterator) *ProvisionShardReference { +// ReadProvisionShardReference reads a value of the 'provision_shard_reference' type from the given iterator. +func ReadProvisionShardReference(iterator *jsoniter.Iterator) *ProvisionShardReference { object := &ProvisionShardReference{} for { field := iterator.ReadObject() diff --git a/osdfleetmgmt/v1/service_cluster_list_type_json.go b/osdfleetmgmt/v1/service_cluster_list_type_json.go index 995e87e63..bb369179e 100644 --- a/osdfleetmgmt/v1/service_cluster_list_type_json.go +++ b/osdfleetmgmt/v1/service_cluster_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalServiceClusterList(list []*ServiceCluster, writer io.Writer) error { stream := helpers.NewStream(writer) - writeServiceClusterList(list, stream) + WriteServiceClusterList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalServiceClusterList(list []*ServiceCluster, writer io.Writer) error { return stream.Error } -// writeServiceClusterList writes a list of value of the 'service_cluster' type to +// WriteServiceClusterList writes a list of value of the 'service_cluster' type to // the given stream. -func writeServiceClusterList(list []*ServiceCluster, stream *jsoniter.Stream) { +func WriteServiceClusterList(list []*ServiceCluster, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeServiceCluster(value, stream) + WriteServiceCluster(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalServiceClusterList(source interface{}) (items []*ServiceCluster, e if err != nil { return } - items = readServiceClusterList(iterator) + items = ReadServiceClusterList(iterator) err = iterator.Error return } -// readServiceClusterList reads list of values of the ”service_cluster' type from +// ReadServiceClusterList reads list of values of the ”service_cluster' type from // the given iterator. -func readServiceClusterList(iterator *jsoniter.Iterator) []*ServiceCluster { +func ReadServiceClusterList(iterator *jsoniter.Iterator) []*ServiceCluster { list := []*ServiceCluster{} for iterator.ReadArray() { - item := readServiceCluster(iterator) + item := ReadServiceCluster(iterator) list = append(list, item) } return list diff --git a/osdfleetmgmt/v1/service_cluster_request_payload_list_type_json.go b/osdfleetmgmt/v1/service_cluster_request_payload_list_type_json.go index b710c54c9..588e5bf10 100644 --- a/osdfleetmgmt/v1/service_cluster_request_payload_list_type_json.go +++ b/osdfleetmgmt/v1/service_cluster_request_payload_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalServiceClusterRequestPayloadList(list []*ServiceClusterRequestPayload, writer io.Writer) error { stream := helpers.NewStream(writer) - writeServiceClusterRequestPayloadList(list, stream) + WriteServiceClusterRequestPayloadList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalServiceClusterRequestPayloadList(list []*ServiceClusterRequestPayloa return stream.Error } -// writeServiceClusterRequestPayloadList writes a list of value of the 'service_cluster_request_payload' type to +// WriteServiceClusterRequestPayloadList writes a list of value of the 'service_cluster_request_payload' type to // the given stream. -func writeServiceClusterRequestPayloadList(list []*ServiceClusterRequestPayload, stream *jsoniter.Stream) { +func WriteServiceClusterRequestPayloadList(list []*ServiceClusterRequestPayload, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeServiceClusterRequestPayload(value, stream) + WriteServiceClusterRequestPayload(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalServiceClusterRequestPayloadList(source interface{}) (items []*Ser if err != nil { return } - items = readServiceClusterRequestPayloadList(iterator) + items = ReadServiceClusterRequestPayloadList(iterator) err = iterator.Error return } -// readServiceClusterRequestPayloadList reads list of values of the ”service_cluster_request_payload' type from +// ReadServiceClusterRequestPayloadList reads list of values of the ”service_cluster_request_payload' type from // the given iterator. -func readServiceClusterRequestPayloadList(iterator *jsoniter.Iterator) []*ServiceClusterRequestPayload { +func ReadServiceClusterRequestPayloadList(iterator *jsoniter.Iterator) []*ServiceClusterRequestPayload { list := []*ServiceClusterRequestPayload{} for iterator.ReadArray() { - item := readServiceClusterRequestPayload(iterator) + item := ReadServiceClusterRequestPayload(iterator) list = append(list, item) } return list diff --git a/osdfleetmgmt/v1/service_cluster_request_payload_type.go b/osdfleetmgmt/v1/service_cluster_request_payload_type.go index 8c6d550ce..e41edaf9f 100644 --- a/osdfleetmgmt/v1/service_cluster_request_payload_type.go +++ b/osdfleetmgmt/v1/service_cluster_request_payload_type.go @@ -116,6 +116,29 @@ func (l *ServiceClusterRequestPayloadList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ServiceClusterRequestPayloadList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ServiceClusterRequestPayloadList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ServiceClusterRequestPayloadList) SetItems(items []*ServiceClusterRequestPayload) { + l.items = items +} + +// Items returns the items of the list. +func (l *ServiceClusterRequestPayloadList) Items() []*ServiceClusterRequestPayload { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ServiceClusterRequestPayloadList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/osdfleetmgmt/v1/service_cluster_request_payload_type_json.go b/osdfleetmgmt/v1/service_cluster_request_payload_type_json.go index b47faade9..74e4f3fc5 100644 --- a/osdfleetmgmt/v1/service_cluster_request_payload_type_json.go +++ b/osdfleetmgmt/v1/service_cluster_request_payload_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalServiceClusterRequestPayload writes a value of the 'service_cluster_request_payload' type to the given writer. func MarshalServiceClusterRequestPayload(object *ServiceClusterRequestPayload, writer io.Writer) error { stream := helpers.NewStream(writer) - writeServiceClusterRequestPayload(object, stream) + WriteServiceClusterRequestPayload(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalServiceClusterRequestPayload(object *ServiceClusterRequestPayload, w return stream.Error } -// writeServiceClusterRequestPayload writes a value of the 'service_cluster_request_payload' type to the given stream. -func writeServiceClusterRequestPayload(object *ServiceClusterRequestPayload, stream *jsoniter.Stream) { +// WriteServiceClusterRequestPayload writes a value of the 'service_cluster_request_payload' type to the given stream. +func WriteServiceClusterRequestPayload(object *ServiceClusterRequestPayload, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -57,7 +57,7 @@ func writeServiceClusterRequestPayload(object *ServiceClusterRequestPayload, str stream.WriteMore() } stream.WriteObjectField("labels") - writeLabelRequestPayloadList(object.labels, stream) + WriteLabelRequestPayloadList(object.labels, stream) count++ } present_ = object.bitmap_&4 != 0 @@ -78,13 +78,13 @@ func UnmarshalServiceClusterRequestPayload(source interface{}) (object *ServiceC if err != nil { return } - object = readServiceClusterRequestPayload(iterator) + object = ReadServiceClusterRequestPayload(iterator) err = iterator.Error return } -// readServiceClusterRequestPayload reads a value of the 'service_cluster_request_payload' type from the given iterator. -func readServiceClusterRequestPayload(iterator *jsoniter.Iterator) *ServiceClusterRequestPayload { +// ReadServiceClusterRequestPayload reads a value of the 'service_cluster_request_payload' type from the given iterator. +func ReadServiceClusterRequestPayload(iterator *jsoniter.Iterator) *ServiceClusterRequestPayload { object := &ServiceClusterRequestPayload{} for { field := iterator.ReadObject() @@ -97,7 +97,7 @@ func readServiceClusterRequestPayload(iterator *jsoniter.Iterator) *ServiceClust object.cloudProvider = value object.bitmap_ |= 1 case "labels": - value := readLabelRequestPayloadList(iterator) + value := ReadLabelRequestPayloadList(iterator) object.labels = value object.bitmap_ |= 2 case "region": diff --git a/osdfleetmgmt/v1/service_cluster_type.go b/osdfleetmgmt/v1/service_cluster_type.go index 71c590926..88bfbfbd4 100644 --- a/osdfleetmgmt/v1/service_cluster_type.go +++ b/osdfleetmgmt/v1/service_cluster_type.go @@ -98,7 +98,7 @@ func (o *ServiceCluster) Kind() string { return ServiceClusterKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *ServiceCluster) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -412,6 +412,29 @@ func (l *ServiceClusterList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ServiceClusterList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ServiceClusterList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ServiceClusterList) SetItems(items []*ServiceCluster) { + l.items = items +} + +// Items returns the items of the list. +func (l *ServiceClusterList) Items() []*ServiceCluster { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ServiceClusterList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/osdfleetmgmt/v1/service_cluster_type_json.go b/osdfleetmgmt/v1/service_cluster_type_json.go index bdb1eb2ca..c68fb32c0 100644 --- a/osdfleetmgmt/v1/service_cluster_type_json.go +++ b/osdfleetmgmt/v1/service_cluster_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalServiceCluster writes a value of the 'service_cluster' type to the given writer. func MarshalServiceCluster(object *ServiceCluster, writer io.Writer) error { stream := helpers.NewStream(writer) - writeServiceCluster(object, stream) + WriteServiceCluster(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalServiceCluster(object *ServiceCluster, writer io.Writer) error { return stream.Error } -// writeServiceCluster writes a value of the 'service_cluster' type to the given stream. -func writeServiceCluster(object *ServiceCluster, stream *jsoniter.Stream) { +// WriteServiceCluster writes a value of the 'service_cluster' type to the given stream. +func WriteServiceCluster(object *ServiceCluster, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -71,7 +71,7 @@ func writeServiceCluster(object *ServiceCluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("dns") - writeDNS(object.dns, stream) + WriteDNS(object.dns, stream) count++ } present_ = object.bitmap_&16 != 0 @@ -89,7 +89,7 @@ func writeServiceCluster(object *ServiceCluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("cluster_management_reference") - writeClusterManagementReference(object.clusterManagementReference, stream) + WriteClusterManagementReference(object.clusterManagementReference, stream) count++ } present_ = object.bitmap_&64 != 0 && object.labels != nil @@ -98,7 +98,7 @@ func writeServiceCluster(object *ServiceCluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("labels") - writeLabelList(object.labels, stream) + WriteLabelList(object.labels, stream) count++ } present_ = object.bitmap_&128 != 0 @@ -116,7 +116,7 @@ func writeServiceCluster(object *ServiceCluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("provision_shard_reference") - writeProvisionShardReference(object.provisionShardReference, stream) + WriteProvisionShardReference(object.provisionShardReference, stream) count++ } present_ = object.bitmap_&512 != 0 @@ -155,13 +155,13 @@ func UnmarshalServiceCluster(source interface{}) (object *ServiceCluster, err er if err != nil { return } - object = readServiceCluster(iterator) + object = ReadServiceCluster(iterator) err = iterator.Error return } -// readServiceCluster reads a value of the 'service_cluster' type from the given iterator. -func readServiceCluster(iterator *jsoniter.Iterator) *ServiceCluster { +// ReadServiceCluster reads a value of the 'service_cluster' type from the given iterator. +func ReadServiceCluster(iterator *jsoniter.Iterator) *ServiceCluster { object := &ServiceCluster{} for { field := iterator.ReadObject() @@ -181,7 +181,7 @@ func readServiceCluster(iterator *jsoniter.Iterator) *ServiceCluster { object.href = iterator.ReadString() object.bitmap_ |= 4 case "dns": - value := readDNS(iterator) + value := ReadDNS(iterator) object.dns = value object.bitmap_ |= 8 case "cloud_provider": @@ -189,11 +189,11 @@ func readServiceCluster(iterator *jsoniter.Iterator) *ServiceCluster { object.cloudProvider = value object.bitmap_ |= 16 case "cluster_management_reference": - value := readClusterManagementReference(iterator) + value := ReadClusterManagementReference(iterator) object.clusterManagementReference = value object.bitmap_ |= 32 case "labels": - value := readLabelList(iterator) + value := ReadLabelList(iterator) object.labels = value object.bitmap_ |= 64 case "name": @@ -201,7 +201,7 @@ func readServiceCluster(iterator *jsoniter.Iterator) *ServiceCluster { object.name = value object.bitmap_ |= 128 case "provision_shard_reference": - value := readProvisionShardReference(iterator) + value := ReadProvisionShardReference(iterator) object.provisionShardReference = value object.bitmap_ |= 256 case "region": diff --git a/osdfleetmgmt/v1/service_clusters_resource_json.go b/osdfleetmgmt/v1/service_clusters_resource_json.go index 347d46939..d5613a7cb 100644 --- a/osdfleetmgmt/v1/service_clusters_resource_json.go +++ b/osdfleetmgmt/v1/service_clusters_resource_json.go @@ -49,7 +49,7 @@ func readServiceClustersListResponse(response *ServiceClustersListResponse, read value := iterator.ReadInt() response.total = &value case "items": - items := readServiceClusterList(iterator) + items := ReadServiceClusterList(iterator) response.items = &ServiceClusterList{ items: items, } diff --git a/osdfleetmgmt/v1/string_list_type_json.go b/osdfleetmgmt/v1/string_list_type_json.go index cf356804c..043afe222 100644 --- a/osdfleetmgmt/v1/string_list_type_json.go +++ b/osdfleetmgmt/v1/string_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalStringList(list []string, writer io.Writer) error { stream := helpers.NewStream(writer) - writeStringList(list, stream) + WriteStringList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalStringList(list []string, writer io.Writer) error { return stream.Error } -// writeStringList writes a list of value of the 'string' type to +// WriteStringList writes a list of value of the 'string' type to // the given stream. -func writeStringList(list []string, stream *jsoniter.Stream) { +func WriteStringList(list []string, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalStringList(source interface{}) (items []string, err error) { if err != nil { return } - items = readStringList(iterator) + items = ReadStringList(iterator) err = iterator.Error return } -// readStringList reads list of values of the ”string' type from +// ReadStringList reads list of values of the ”string' type from // the given iterator. -func readStringList(iterator *jsoniter.Iterator) []string { +func ReadStringList(iterator *jsoniter.Iterator) []string { list := []string{} for iterator.ReadArray() { item := iterator.ReadString() diff --git a/servicelogs/v1/boolean_list_type_json.go b/servicelogs/v1/boolean_list_type_json.go index 63d4a4047..b6dad15de 100644 --- a/servicelogs/v1/boolean_list_type_json.go +++ b/servicelogs/v1/boolean_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalBooleanList(list []bool, writer io.Writer) error { stream := helpers.NewStream(writer) - writeBooleanList(list, stream) + WriteBooleanList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalBooleanList(list []bool, writer io.Writer) error { return stream.Error } -// writeBooleanList writes a list of value of the 'boolean' type to +// WriteBooleanList writes a list of value of the 'boolean' type to // the given stream. -func writeBooleanList(list []bool, stream *jsoniter.Stream) { +func WriteBooleanList(list []bool, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalBooleanList(source interface{}) (items []bool, err error) { if err != nil { return } - items = readBooleanList(iterator) + items = ReadBooleanList(iterator) err = iterator.Error return } -// readBooleanList reads list of values of the ”boolean' type from +// ReadBooleanList reads list of values of the ”boolean' type from // the given iterator. -func readBooleanList(iterator *jsoniter.Iterator) []bool { +func ReadBooleanList(iterator *jsoniter.Iterator) []bool { list := []bool{} for iterator.ReadArray() { item := iterator.ReadBool() diff --git a/servicelogs/v1/cluster_logs_resource_json.go b/servicelogs/v1/cluster_logs_resource_json.go index d3844e4a3..5538e42b0 100644 --- a/servicelogs/v1/cluster_logs_resource_json.go +++ b/servicelogs/v1/cluster_logs_resource_json.go @@ -57,7 +57,7 @@ func readClusterLogsListResponse(response *ClusterLogsListResponse, reader io.Re value := iterator.ReadInt() response.total = &value case "items": - items := readLogEntryList(iterator) + items := ReadLogEntryList(iterator) response.items = &LogEntryList{ items: items, } diff --git a/servicelogs/v1/cluster_logs_uuid_resource_json.go b/servicelogs/v1/cluster_logs_uuid_resource_json.go index 32a0052a3..d7e1a53d8 100644 --- a/servicelogs/v1/cluster_logs_uuid_resource_json.go +++ b/servicelogs/v1/cluster_logs_uuid_resource_json.go @@ -49,7 +49,7 @@ func readClusterLogsUUIDListResponse(response *ClusterLogsUUIDListResponse, read value := iterator.ReadInt() response.total = &value case "items": - items := readLogEntryList(iterator) + items := ReadLogEntryList(iterator) response.items = &LogEntryList{ items: items, } diff --git a/servicelogs/v1/clusters_cluster_logs_resource_json.go b/servicelogs/v1/clusters_cluster_logs_resource_json.go index 9a776b293..456425970 100644 --- a/servicelogs/v1/clusters_cluster_logs_resource_json.go +++ b/servicelogs/v1/clusters_cluster_logs_resource_json.go @@ -49,7 +49,7 @@ func readClustersClusterLogsListResponse(response *ClustersClusterLogsListRespon value := iterator.ReadInt() response.total = &value case "items": - items := readLogEntryList(iterator) + items := ReadLogEntryList(iterator) response.items = &LogEntryList{ items: items, } diff --git a/servicelogs/v1/date_list_type_json.go b/servicelogs/v1/date_list_type_json.go index ed2f0c2cd..7e98ed3f7 100644 --- a/servicelogs/v1/date_list_type_json.go +++ b/servicelogs/v1/date_list_type_json.go @@ -31,7 +31,7 @@ import ( // the given writer. func MarshalDateList(list []time.Time, writer io.Writer) error { stream := helpers.NewStream(writer) - writeDateList(list, stream) + WriteDateList(list, stream) err := stream.Flush() if err != nil { return err @@ -39,9 +39,9 @@ func MarshalDateList(list []time.Time, writer io.Writer) error { return stream.Error } -// writeDateList writes a list of value of the 'date' type to +// WriteDateList writes a list of value of the 'date' type to // the given stream. -func writeDateList(list []time.Time, stream *jsoniter.Stream) { +func WriteDateList(list []time.Time, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -59,14 +59,14 @@ func UnmarshalDateList(source interface{}) (items []time.Time, err error) { if err != nil { return } - items = readDateList(iterator) + items = ReadDateList(iterator) err = iterator.Error return } -// readDateList reads list of values of the ”date' type from +// ReadDateList reads list of values of the ”date' type from // the given iterator. -func readDateList(iterator *jsoniter.Iterator) []time.Time { +func ReadDateList(iterator *jsoniter.Iterator) []time.Time { list := []time.Time{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/servicelogs/v1/float_list_type_json.go b/servicelogs/v1/float_list_type_json.go index 9e84178c7..684db0a2e 100644 --- a/servicelogs/v1/float_list_type_json.go +++ b/servicelogs/v1/float_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalFloatList(list []float64, writer io.Writer) error { stream := helpers.NewStream(writer) - writeFloatList(list, stream) + WriteFloatList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalFloatList(list []float64, writer io.Writer) error { return stream.Error } -// writeFloatList writes a list of value of the 'float' type to +// WriteFloatList writes a list of value of the 'float' type to // the given stream. -func writeFloatList(list []float64, stream *jsoniter.Stream) { +func WriteFloatList(list []float64, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalFloatList(source interface{}) (items []float64, err error) { if err != nil { return } - items = readFloatList(iterator) + items = ReadFloatList(iterator) err = iterator.Error return } -// readFloatList reads list of values of the ”float' type from +// ReadFloatList reads list of values of the ”float' type from // the given iterator. -func readFloatList(iterator *jsoniter.Iterator) []float64 { +func ReadFloatList(iterator *jsoniter.Iterator) []float64 { list := []float64{} for iterator.ReadArray() { item := iterator.ReadFloat64() diff --git a/servicelogs/v1/integer_list_type_json.go b/servicelogs/v1/integer_list_type_json.go index bb0aca8d7..83bc4dfd2 100644 --- a/servicelogs/v1/integer_list_type_json.go +++ b/servicelogs/v1/integer_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalIntegerList(list []int, writer io.Writer) error { stream := helpers.NewStream(writer) - writeIntegerList(list, stream) + WriteIntegerList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalIntegerList(list []int, writer io.Writer) error { return stream.Error } -// writeIntegerList writes a list of value of the 'integer' type to +// WriteIntegerList writes a list of value of the 'integer' type to // the given stream. -func writeIntegerList(list []int, stream *jsoniter.Stream) { +func WriteIntegerList(list []int, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalIntegerList(source interface{}) (items []int, err error) { if err != nil { return } - items = readIntegerList(iterator) + items = ReadIntegerList(iterator) err = iterator.Error return } -// readIntegerList reads list of values of the ”integer' type from +// ReadIntegerList reads list of values of the ”integer' type from // the given iterator. -func readIntegerList(iterator *jsoniter.Iterator) []int { +func ReadIntegerList(iterator *jsoniter.Iterator) []int { list := []int{} for iterator.ReadArray() { item := iterator.ReadInt() diff --git a/servicelogs/v1/interface_list_type_json.go b/servicelogs/v1/interface_list_type_json.go index e75660314..8f93f6391 100644 --- a/servicelogs/v1/interface_list_type_json.go +++ b/servicelogs/v1/interface_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalInterfaceList(list []interface{}, writer io.Writer) error { stream := helpers.NewStream(writer) - writeInterfaceList(list, stream) + WriteInterfaceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalInterfaceList(list []interface{}, writer io.Writer) error { return stream.Error } -// writeInterfaceList writes a list of value of the 'interface' type to +// WriteInterfaceList writes a list of value of the 'interface' type to // the given stream. -func writeInterfaceList(list []interface{}, stream *jsoniter.Stream) { +func WriteInterfaceList(list []interface{}, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalInterfaceList(source interface{}) (items []interface{}, err error) if err != nil { return } - items = readInterfaceList(iterator) + items = ReadInterfaceList(iterator) err = iterator.Error return } -// readInterfaceList reads list of values of the ”interface' type from +// ReadInterfaceList reads list of values of the ”interface' type from // the given iterator. -func readInterfaceList(iterator *jsoniter.Iterator) []interface{} { +func ReadInterfaceList(iterator *jsoniter.Iterator) []interface{} { list := []interface{}{} for iterator.ReadArray() { var item interface{} diff --git a/servicelogs/v1/log_entry_list_type_json.go b/servicelogs/v1/log_entry_list_type_json.go index 88c229275..207ef1fcf 100644 --- a/servicelogs/v1/log_entry_list_type_json.go +++ b/servicelogs/v1/log_entry_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalLogEntryList(list []*LogEntry, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLogEntryList(list, stream) + WriteLogEntryList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalLogEntryList(list []*LogEntry, writer io.Writer) error { return stream.Error } -// writeLogEntryList writes a list of value of the 'log_entry' type to +// WriteLogEntryList writes a list of value of the 'log_entry' type to // the given stream. -func writeLogEntryList(list []*LogEntry, stream *jsoniter.Stream) { +func WriteLogEntryList(list []*LogEntry, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeLogEntry(value, stream) + WriteLogEntry(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalLogEntryList(source interface{}) (items []*LogEntry, err error) { if err != nil { return } - items = readLogEntryList(iterator) + items = ReadLogEntryList(iterator) err = iterator.Error return } -// readLogEntryList reads list of values of the ”log_entry' type from +// ReadLogEntryList reads list of values of the ”log_entry' type from // the given iterator. -func readLogEntryList(iterator *jsoniter.Iterator) []*LogEntry { +func ReadLogEntryList(iterator *jsoniter.Iterator) []*LogEntry { list := []*LogEntry{} for iterator.ReadArray() { - item := readLogEntry(iterator) + item := ReadLogEntry(iterator) list = append(list, item) } return list diff --git a/servicelogs/v1/log_entry_type.go b/servicelogs/v1/log_entry_type.go index 35509a808..d2ecf4937 100644 --- a/servicelogs/v1/log_entry_type.go +++ b/servicelogs/v1/log_entry_type.go @@ -68,7 +68,7 @@ func (o *LogEntry) Kind() string { return LogEntryKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *LogEntry) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -516,6 +516,29 @@ func (l *LogEntryList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *LogEntryList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *LogEntryList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *LogEntryList) SetItems(items []*LogEntry) { + l.items = items +} + +// Items returns the items of the list. +func (l *LogEntryList) Items() []*LogEntry { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *LogEntryList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/servicelogs/v1/log_entry_type_json.go b/servicelogs/v1/log_entry_type_json.go index 2fdcccd40..acde84f35 100644 --- a/servicelogs/v1/log_entry_type_json.go +++ b/servicelogs/v1/log_entry_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalLogEntry writes a value of the 'log_entry' type to the given writer. func MarshalLogEntry(object *LogEntry, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLogEntry(object, stream) + WriteLogEntry(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalLogEntry(object *LogEntry, writer io.Writer) error { return stream.Error } -// writeLogEntry writes a value of the 'log_entry' type to the given stream. -func writeLogEntry(object *LogEntry, stream *jsoniter.Stream) { +// WriteLogEntry writes a value of the 'log_entry' type to the given stream. +func WriteLogEntry(object *LogEntry, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -117,7 +117,7 @@ func writeLogEntry(object *LogEntry, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("doc_references") - writeStringList(object.docReferences, stream) + WriteStringList(object.docReferences, stream) count++ } present_ = object.bitmap_&512 != 0 @@ -210,13 +210,13 @@ func UnmarshalLogEntry(source interface{}) (object *LogEntry, err error) { if err != nil { return } - object = readLogEntry(iterator) + object = ReadLogEntry(iterator) err = iterator.Error return } -// readLogEntry reads a value of the 'log_entry' type from the given iterator. -func readLogEntry(iterator *jsoniter.Iterator) *LogEntry { +// ReadLogEntry reads a value of the 'log_entry' type from the given iterator. +func ReadLogEntry(iterator *jsoniter.Iterator) *LogEntry { object := &LogEntry{} for { field := iterator.ReadObject() @@ -260,7 +260,7 @@ func readLogEntry(iterator *jsoniter.Iterator) *LogEntry { object.description = value object.bitmap_ |= 128 case "doc_references": - value := readStringList(iterator) + value := ReadStringList(iterator) object.docReferences = value object.bitmap_ |= 256 case "event_stream_id": diff --git a/servicelogs/v1/log_type_list_type_json.go b/servicelogs/v1/log_type_list_type_json.go index 73b72b993..1a452114f 100644 --- a/servicelogs/v1/log_type_list_type_json.go +++ b/servicelogs/v1/log_type_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalLogTypeList(list []LogType, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLogTypeList(list, stream) + WriteLogTypeList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalLogTypeList(list []LogType, writer io.Writer) error { return stream.Error } -// writeLogTypeList writes a list of value of the 'log_type' type to +// WriteLogTypeList writes a list of value of the 'log_type' type to // the given stream. -func writeLogTypeList(list []LogType, stream *jsoniter.Stream) { +func WriteLogTypeList(list []LogType, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalLogTypeList(source interface{}) (items []LogType, err error) { if err != nil { return } - items = readLogTypeList(iterator) + items = ReadLogTypeList(iterator) err = iterator.Error return } -// readLogTypeList reads list of values of the ”log_type' type from +// ReadLogTypeList reads list of values of the ”log_type' type from // the given iterator. -func readLogTypeList(iterator *jsoniter.Iterator) []LogType { +func ReadLogTypeList(iterator *jsoniter.Iterator) []LogType { list := []LogType{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/servicelogs/v1/long_list_type_json.go b/servicelogs/v1/long_list_type_json.go index 371434140..161aaada7 100644 --- a/servicelogs/v1/long_list_type_json.go +++ b/servicelogs/v1/long_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalLongList(list []int64, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLongList(list, stream) + WriteLongList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalLongList(list []int64, writer io.Writer) error { return stream.Error } -// writeLongList writes a list of value of the 'long' type to +// WriteLongList writes a list of value of the 'long' type to // the given stream. -func writeLongList(list []int64, stream *jsoniter.Stream) { +func WriteLongList(list []int64, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalLongList(source interface{}) (items []int64, err error) { if err != nil { return } - items = readLongList(iterator) + items = ReadLongList(iterator) err = iterator.Error return } -// readLongList reads list of values of the ”long' type from +// ReadLongList reads list of values of the ”long' type from // the given iterator. -func readLongList(iterator *jsoniter.Iterator) []int64 { +func ReadLongList(iterator *jsoniter.Iterator) []int64 { list := []int64{} for iterator.ReadArray() { item := iterator.ReadInt64() diff --git a/servicelogs/v1/severity_list_type_json.go b/servicelogs/v1/severity_list_type_json.go index 335b2f95e..6965b86ba 100644 --- a/servicelogs/v1/severity_list_type_json.go +++ b/servicelogs/v1/severity_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSeverityList(list []Severity, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSeverityList(list, stream) + WriteSeverityList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalSeverityList(list []Severity, writer io.Writer) error { return stream.Error } -// writeSeverityList writes a list of value of the 'severity' type to +// WriteSeverityList writes a list of value of the 'severity' type to // the given stream. -func writeSeverityList(list []Severity, stream *jsoniter.Stream) { +func WriteSeverityList(list []Severity, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalSeverityList(source interface{}) (items []Severity, err error) { if err != nil { return } - items = readSeverityList(iterator) + items = ReadSeverityList(iterator) err = iterator.Error return } -// readSeverityList reads list of values of the ”severity' type from +// ReadSeverityList reads list of values of the ”severity' type from // the given iterator. -func readSeverityList(iterator *jsoniter.Iterator) []Severity { +func ReadSeverityList(iterator *jsoniter.Iterator) []Severity { list := []Severity{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/servicelogs/v1/string_list_type_json.go b/servicelogs/v1/string_list_type_json.go index c76852f24..b62247907 100644 --- a/servicelogs/v1/string_list_type_json.go +++ b/servicelogs/v1/string_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalStringList(list []string, writer io.Writer) error { stream := helpers.NewStream(writer) - writeStringList(list, stream) + WriteStringList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalStringList(list []string, writer io.Writer) error { return stream.Error } -// writeStringList writes a list of value of the 'string' type to +// WriteStringList writes a list of value of the 'string' type to // the given stream. -func writeStringList(list []string, stream *jsoniter.Stream) { +func WriteStringList(list []string, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalStringList(source interface{}) (items []string, err error) { if err != nil { return } - items = readStringList(iterator) + items = ReadStringList(iterator) err = iterator.Error return } -// readStringList reads list of values of the ”string' type from +// ReadStringList reads list of values of the ”string' type from // the given iterator. -func readStringList(iterator *jsoniter.Iterator) []string { +func ReadStringList(iterator *jsoniter.Iterator) []string { list := []string{} for iterator.ReadArray() { item := iterator.ReadString() diff --git a/servicemgmt/v1/aws_list_type_json.go b/servicemgmt/v1/aws_list_type_json.go index a17702629..9826de458 100644 --- a/servicemgmt/v1/aws_list_type_json.go +++ b/servicemgmt/v1/aws_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAWSList(list []*AWS, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAWSList(list, stream) + WriteAWSList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAWSList(list []*AWS, writer io.Writer) error { return stream.Error } -// writeAWSList writes a list of value of the 'AWS' type to +// WriteAWSList writes a list of value of the 'AWS' type to // the given stream. -func writeAWSList(list []*AWS, stream *jsoniter.Stream) { +func WriteAWSList(list []*AWS, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAWS(value, stream) + WriteAWS(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAWSList(source interface{}) (items []*AWS, err error) { if err != nil { return } - items = readAWSList(iterator) + items = ReadAWSList(iterator) err = iterator.Error return } -// readAWSList reads list of values of the ”AWS' type from +// ReadAWSList reads list of values of the ”AWS' type from // the given iterator. -func readAWSList(iterator *jsoniter.Iterator) []*AWS { +func ReadAWSList(iterator *jsoniter.Iterator) []*AWS { list := []*AWS{} for iterator.ReadArray() { - item := readAWS(iterator) + item := ReadAWS(iterator) list = append(list, item) } return list diff --git a/servicemgmt/v1/aws_type.go b/servicemgmt/v1/aws_type.go index de08183ec..180d903bc 100644 --- a/servicemgmt/v1/aws_type.go +++ b/servicemgmt/v1/aws_type.go @@ -226,6 +226,29 @@ func (l *AWSList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AWSList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AWSList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AWSList) SetItems(items []*AWS) { + l.items = items +} + +// Items returns the items of the list. +func (l *AWSList) Items() []*AWS { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AWSList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/servicemgmt/v1/aws_type_json.go b/servicemgmt/v1/aws_type_json.go index 6b5cce633..50f02dd4c 100644 --- a/servicemgmt/v1/aws_type_json.go +++ b/servicemgmt/v1/aws_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalAWS writes a value of the 'AWS' type to the given writer. func MarshalAWS(object *AWS, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAWS(object, stream) + WriteAWS(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalAWS(object *AWS, writer io.Writer) error { return stream.Error } -// writeAWS writes a value of the 'AWS' type to the given stream. -func writeAWS(object *AWS, stream *jsoniter.Stream) { +// WriteAWS writes a value of the 'AWS' type to the given stream. +func WriteAWS(object *AWS, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -49,7 +49,7 @@ func writeAWS(object *AWS, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("sts") - writeSTS(object.sts, stream) + WriteSTS(object.sts, stream) count++ } present_ = object.bitmap_&2 != 0 @@ -94,7 +94,7 @@ func writeAWS(object *AWS, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("subnet_ids") - writeStringList(object.subnetIDs, stream) + WriteStringList(object.subnetIDs, stream) count++ } present_ = object.bitmap_&64 != 0 && object.tags != nil @@ -135,13 +135,13 @@ func UnmarshalAWS(source interface{}) (object *AWS, err error) { if err != nil { return } - object = readAWS(iterator) + object = ReadAWS(iterator) err = iterator.Error return } -// readAWS reads a value of the 'AWS' type from the given iterator. -func readAWS(iterator *jsoniter.Iterator) *AWS { +// ReadAWS reads a value of the 'AWS' type from the given iterator. +func ReadAWS(iterator *jsoniter.Iterator) *AWS { object := &AWS{} for { field := iterator.ReadObject() @@ -150,7 +150,7 @@ func readAWS(iterator *jsoniter.Iterator) *AWS { } switch field { case "sts": - value := readSTS(iterator) + value := ReadSTS(iterator) object.sts = value object.bitmap_ |= 1 case "access_key_id": @@ -170,7 +170,7 @@ func readAWS(iterator *jsoniter.Iterator) *AWS { object.secretAccessKey = value object.bitmap_ |= 16 case "subnet_ids": - value := readStringList(iterator) + value := ReadStringList(iterator) object.subnetIDs = value object.bitmap_ |= 32 case "tags": diff --git a/servicemgmt/v1/boolean_list_type_json.go b/servicemgmt/v1/boolean_list_type_json.go index 683726fcf..f1174a76c 100644 --- a/servicemgmt/v1/boolean_list_type_json.go +++ b/servicemgmt/v1/boolean_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalBooleanList(list []bool, writer io.Writer) error { stream := helpers.NewStream(writer) - writeBooleanList(list, stream) + WriteBooleanList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalBooleanList(list []bool, writer io.Writer) error { return stream.Error } -// writeBooleanList writes a list of value of the 'boolean' type to +// WriteBooleanList writes a list of value of the 'boolean' type to // the given stream. -func writeBooleanList(list []bool, stream *jsoniter.Stream) { +func WriteBooleanList(list []bool, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalBooleanList(source interface{}) (items []bool, err error) { if err != nil { return } - items = readBooleanList(iterator) + items = ReadBooleanList(iterator) err = iterator.Error return } -// readBooleanList reads list of values of the ”boolean' type from +// ReadBooleanList reads list of values of the ”boolean' type from // the given iterator. -func readBooleanList(iterator *jsoniter.Iterator) []bool { +func ReadBooleanList(iterator *jsoniter.Iterator) []bool { list := []bool{} for iterator.ReadArray() { item := iterator.ReadBool() diff --git a/servicemgmt/v1/cloud_region_list_type_json.go b/servicemgmt/v1/cloud_region_list_type_json.go index f7b56f891..20f95906e 100644 --- a/servicemgmt/v1/cloud_region_list_type_json.go +++ b/servicemgmt/v1/cloud_region_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalCloudRegionList(list []*CloudRegion, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCloudRegionList(list, stream) + WriteCloudRegionList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalCloudRegionList(list []*CloudRegion, writer io.Writer) error { return stream.Error } -// writeCloudRegionList writes a list of value of the 'cloud_region' type to +// WriteCloudRegionList writes a list of value of the 'cloud_region' type to // the given stream. -func writeCloudRegionList(list []*CloudRegion, stream *jsoniter.Stream) { +func WriteCloudRegionList(list []*CloudRegion, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeCloudRegion(value, stream) + WriteCloudRegion(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalCloudRegionList(source interface{}) (items []*CloudRegion, err err if err != nil { return } - items = readCloudRegionList(iterator) + items = ReadCloudRegionList(iterator) err = iterator.Error return } -// readCloudRegionList reads list of values of the ”cloud_region' type from +// ReadCloudRegionList reads list of values of the ”cloud_region' type from // the given iterator. -func readCloudRegionList(iterator *jsoniter.Iterator) []*CloudRegion { +func ReadCloudRegionList(iterator *jsoniter.Iterator) []*CloudRegion { list := []*CloudRegion{} for iterator.ReadArray() { - item := readCloudRegion(iterator) + item := ReadCloudRegion(iterator) list = append(list, item) } return list diff --git a/servicemgmt/v1/cloud_region_type.go b/servicemgmt/v1/cloud_region_type.go index a72c25e88..ad30c322d 100644 --- a/servicemgmt/v1/cloud_region_type.go +++ b/servicemgmt/v1/cloud_region_type.go @@ -82,6 +82,29 @@ func (l *CloudRegionList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *CloudRegionList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *CloudRegionList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *CloudRegionList) SetItems(items []*CloudRegion) { + l.items = items +} + +// Items returns the items of the list. +func (l *CloudRegionList) Items() []*CloudRegion { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *CloudRegionList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/servicemgmt/v1/cloud_region_type_json.go b/servicemgmt/v1/cloud_region_type_json.go index ba299bf6a..ed44acc63 100644 --- a/servicemgmt/v1/cloud_region_type_json.go +++ b/servicemgmt/v1/cloud_region_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalCloudRegion writes a value of the 'cloud_region' type to the given writer. func MarshalCloudRegion(object *CloudRegion, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCloudRegion(object, stream) + WriteCloudRegion(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalCloudRegion(object *CloudRegion, writer io.Writer) error { return stream.Error } -// writeCloudRegion writes a value of the 'cloud_region' type to the given stream. -func writeCloudRegion(object *CloudRegion, stream *jsoniter.Stream) { +// WriteCloudRegion writes a value of the 'cloud_region' type to the given stream. +func WriteCloudRegion(object *CloudRegion, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalCloudRegion(source interface{}) (object *CloudRegion, err error) { if err != nil { return } - object = readCloudRegion(iterator) + object = ReadCloudRegion(iterator) err = iterator.Error return } -// readCloudRegion reads a value of the 'cloud_region' type from the given iterator. -func readCloudRegion(iterator *jsoniter.Iterator) *CloudRegion { +// ReadCloudRegion reads a value of the 'cloud_region' type from the given iterator. +func ReadCloudRegion(iterator *jsoniter.Iterator) *CloudRegion { object := &CloudRegion{} for { field := iterator.ReadObject() diff --git a/servicemgmt/v1/cluster_api_list_type_json.go b/servicemgmt/v1/cluster_api_list_type_json.go index 2409f0a31..19f26748c 100644 --- a/servicemgmt/v1/cluster_api_list_type_json.go +++ b/servicemgmt/v1/cluster_api_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterAPIList(list []*ClusterAPI, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterAPIList(list, stream) + WriteClusterAPIList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalClusterAPIList(list []*ClusterAPI, writer io.Writer) error { return stream.Error } -// writeClusterAPIList writes a list of value of the 'cluster_API' type to +// WriteClusterAPIList writes a list of value of the 'cluster_API' type to // the given stream. -func writeClusterAPIList(list []*ClusterAPI, stream *jsoniter.Stream) { +func WriteClusterAPIList(list []*ClusterAPI, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeClusterAPI(value, stream) + WriteClusterAPI(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalClusterAPIList(source interface{}) (items []*ClusterAPI, err error if err != nil { return } - items = readClusterAPIList(iterator) + items = ReadClusterAPIList(iterator) err = iterator.Error return } -// readClusterAPIList reads list of values of the ”cluster_API' type from +// ReadClusterAPIList reads list of values of the ”cluster_API' type from // the given iterator. -func readClusterAPIList(iterator *jsoniter.Iterator) []*ClusterAPI { +func ReadClusterAPIList(iterator *jsoniter.Iterator) []*ClusterAPI { list := []*ClusterAPI{} for iterator.ReadArray() { - item := readClusterAPI(iterator) + item := ReadClusterAPI(iterator) list = append(list, item) } return list diff --git a/servicemgmt/v1/cluster_api_type.go b/servicemgmt/v1/cluster_api_type.go index e48506715..3bec14246 100644 --- a/servicemgmt/v1/cluster_api_type.go +++ b/servicemgmt/v1/cluster_api_type.go @@ -82,6 +82,29 @@ func (l *ClusterAPIList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ClusterAPIList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterAPIList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterAPIList) SetItems(items []*ClusterAPI) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterAPIList) Items() []*ClusterAPI { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ClusterAPIList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/servicemgmt/v1/cluster_api_type_json.go b/servicemgmt/v1/cluster_api_type_json.go index 362974fa6..2f28f0116 100644 --- a/servicemgmt/v1/cluster_api_type_json.go +++ b/servicemgmt/v1/cluster_api_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalClusterAPI writes a value of the 'cluster_API' type to the given writer. func MarshalClusterAPI(object *ClusterAPI, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterAPI(object, stream) + WriteClusterAPI(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalClusterAPI(object *ClusterAPI, writer io.Writer) error { return stream.Error } -// writeClusterAPI writes a value of the 'cluster_API' type to the given stream. -func writeClusterAPI(object *ClusterAPI, stream *jsoniter.Stream) { +// WriteClusterAPI writes a value of the 'cluster_API' type to the given stream. +func WriteClusterAPI(object *ClusterAPI, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalClusterAPI(source interface{}) (object *ClusterAPI, err error) { if err != nil { return } - object = readClusterAPI(iterator) + object = ReadClusterAPI(iterator) err = iterator.Error return } -// readClusterAPI reads a value of the 'cluster_API' type from the given iterator. -func readClusterAPI(iterator *jsoniter.Iterator) *ClusterAPI { +// ReadClusterAPI reads a value of the 'cluster_API' type from the given iterator. +func ReadClusterAPI(iterator *jsoniter.Iterator) *ClusterAPI { object := &ClusterAPI{} for { field := iterator.ReadObject() diff --git a/servicemgmt/v1/cluster_list_type_json.go b/servicemgmt/v1/cluster_list_type_json.go index 0790015b8..f71fefc1f 100644 --- a/servicemgmt/v1/cluster_list_type_json.go +++ b/servicemgmt/v1/cluster_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterList(list []*Cluster, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterList(list, stream) + WriteClusterList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalClusterList(list []*Cluster, writer io.Writer) error { return stream.Error } -// writeClusterList writes a list of value of the 'cluster' type to +// WriteClusterList writes a list of value of the 'cluster' type to // the given stream. -func writeClusterList(list []*Cluster, stream *jsoniter.Stream) { +func WriteClusterList(list []*Cluster, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeCluster(value, stream) + WriteCluster(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalClusterList(source interface{}) (items []*Cluster, err error) { if err != nil { return } - items = readClusterList(iterator) + items = ReadClusterList(iterator) err = iterator.Error return } -// readClusterList reads list of values of the ”cluster' type from +// ReadClusterList reads list of values of the ”cluster' type from // the given iterator. -func readClusterList(iterator *jsoniter.Iterator) []*Cluster { +func ReadClusterList(iterator *jsoniter.Iterator) []*Cluster { list := []*Cluster{} for iterator.ReadArray() { - item := readCluster(iterator) + item := ReadCluster(iterator) list = append(list, item) } return list diff --git a/servicemgmt/v1/cluster_nodes_list_type_json.go b/servicemgmt/v1/cluster_nodes_list_type_json.go index fa412be4f..e29ea0982 100644 --- a/servicemgmt/v1/cluster_nodes_list_type_json.go +++ b/servicemgmt/v1/cluster_nodes_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalClusterNodesList(list []*ClusterNodes, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterNodesList(list, stream) + WriteClusterNodesList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalClusterNodesList(list []*ClusterNodes, writer io.Writer) error { return stream.Error } -// writeClusterNodesList writes a list of value of the 'cluster_nodes' type to +// WriteClusterNodesList writes a list of value of the 'cluster_nodes' type to // the given stream. -func writeClusterNodesList(list []*ClusterNodes, stream *jsoniter.Stream) { +func WriteClusterNodesList(list []*ClusterNodes, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeClusterNodes(value, stream) + WriteClusterNodes(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalClusterNodesList(source interface{}) (items []*ClusterNodes, err e if err != nil { return } - items = readClusterNodesList(iterator) + items = ReadClusterNodesList(iterator) err = iterator.Error return } -// readClusterNodesList reads list of values of the ”cluster_nodes' type from +// ReadClusterNodesList reads list of values of the ”cluster_nodes' type from // the given iterator. -func readClusterNodesList(iterator *jsoniter.Iterator) []*ClusterNodes { +func ReadClusterNodesList(iterator *jsoniter.Iterator) []*ClusterNodes { list := []*ClusterNodes{} for iterator.ReadArray() { - item := readClusterNodes(iterator) + item := ReadClusterNodes(iterator) list = append(list, item) } return list diff --git a/servicemgmt/v1/cluster_nodes_type.go b/servicemgmt/v1/cluster_nodes_type.go index 3a4ab1cf8..550a936e3 100644 --- a/servicemgmt/v1/cluster_nodes_type.go +++ b/servicemgmt/v1/cluster_nodes_type.go @@ -76,6 +76,29 @@ func (l *ClusterNodesList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ClusterNodesList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterNodesList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterNodesList) SetItems(items []*ClusterNodes) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterNodesList) Items() []*ClusterNodes { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ClusterNodesList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/servicemgmt/v1/cluster_nodes_type_json.go b/servicemgmt/v1/cluster_nodes_type_json.go index 6de636f3f..dd219a069 100644 --- a/servicemgmt/v1/cluster_nodes_type_json.go +++ b/servicemgmt/v1/cluster_nodes_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalClusterNodes writes a value of the 'cluster_nodes' type to the given writer. func MarshalClusterNodes(object *ClusterNodes, writer io.Writer) error { stream := helpers.NewStream(writer) - writeClusterNodes(object, stream) + WriteClusterNodes(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalClusterNodes(object *ClusterNodes, writer io.Writer) error { return stream.Error } -// writeClusterNodes writes a value of the 'cluster_nodes' type to the given stream. -func writeClusterNodes(object *ClusterNodes, stream *jsoniter.Stream) { +// WriteClusterNodes writes a value of the 'cluster_nodes' type to the given stream. +func WriteClusterNodes(object *ClusterNodes, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -48,7 +48,7 @@ func writeClusterNodes(object *ClusterNodes, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("availability_zones") - writeStringList(object.availabilityZones, stream) + WriteStringList(object.availabilityZones, stream) } stream.WriteObjectEnd() } @@ -60,13 +60,13 @@ func UnmarshalClusterNodes(source interface{}) (object *ClusterNodes, err error) if err != nil { return } - object = readClusterNodes(iterator) + object = ReadClusterNodes(iterator) err = iterator.Error return } -// readClusterNodes reads a value of the 'cluster_nodes' type from the given iterator. -func readClusterNodes(iterator *jsoniter.Iterator) *ClusterNodes { +// ReadClusterNodes reads a value of the 'cluster_nodes' type from the given iterator. +func ReadClusterNodes(iterator *jsoniter.Iterator) *ClusterNodes { object := &ClusterNodes{} for { field := iterator.ReadObject() @@ -75,7 +75,7 @@ func readClusterNodes(iterator *jsoniter.Iterator) *ClusterNodes { } switch field { case "availability_zones": - value := readStringList(iterator) + value := ReadStringList(iterator) object.availabilityZones = value object.bitmap_ |= 1 default: diff --git a/servicemgmt/v1/cluster_type.go b/servicemgmt/v1/cluster_type.go index 48f2bb5a8..c9aca8711 100644 --- a/servicemgmt/v1/cluster_type.go +++ b/servicemgmt/v1/cluster_type.go @@ -312,6 +312,29 @@ func (l *ClusterList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ClusterList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ClusterList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ClusterList) SetItems(items []*Cluster) { + l.items = items +} + +// Items returns the items of the list. +func (l *ClusterList) Items() []*Cluster { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ClusterList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/servicemgmt/v1/cluster_type_json.go b/servicemgmt/v1/cluster_type_json.go index ddfd4c330..a5562a39f 100644 --- a/servicemgmt/v1/cluster_type_json.go +++ b/servicemgmt/v1/cluster_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalCluster writes a value of the 'cluster' type to the given writer. func MarshalCluster(object *Cluster, writer io.Writer) error { stream := helpers.NewStream(writer) - writeCluster(object, stream) + WriteCluster(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalCluster(object *Cluster, writer io.Writer) error { return stream.Error } -// writeCluster writes a value of the 'cluster' type to the given stream. -func writeCluster(object *Cluster, stream *jsoniter.Stream) { +// WriteCluster writes a value of the 'cluster' type to the given stream. +func WriteCluster(object *Cluster, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -49,7 +49,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("api") - writeClusterAPI(object.api, stream) + WriteClusterAPI(object.api, stream) count++ } present_ = object.bitmap_&2 != 0 && object.aws != nil @@ -58,7 +58,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("aws") - writeAWS(object.aws, stream) + WriteAWS(object.aws, stream) count++ } present_ = object.bitmap_&4 != 0 @@ -112,7 +112,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("network") - writeNetwork(object.network, stream) + WriteNetwork(object.network, stream) count++ } present_ = object.bitmap_&256 != 0 && object.nodes != nil @@ -121,7 +121,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("nodes") - writeClusterNodes(object.nodes, stream) + WriteClusterNodes(object.nodes, stream) count++ } present_ = object.bitmap_&512 != 0 && object.properties != nil @@ -159,7 +159,7 @@ func writeCluster(object *Cluster, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("region") - writeCloudRegion(object.region, stream) + WriteCloudRegion(object.region, stream) count++ } present_ = object.bitmap_&2048 != 0 @@ -180,13 +180,13 @@ func UnmarshalCluster(source interface{}) (object *Cluster, err error) { if err != nil { return } - object = readCluster(iterator) + object = ReadCluster(iterator) err = iterator.Error return } -// readCluster reads a value of the 'cluster' type from the given iterator. -func readCluster(iterator *jsoniter.Iterator) *Cluster { +// ReadCluster reads a value of the 'cluster' type from the given iterator. +func ReadCluster(iterator *jsoniter.Iterator) *Cluster { object := &Cluster{} for { field := iterator.ReadObject() @@ -195,11 +195,11 @@ func readCluster(iterator *jsoniter.Iterator) *Cluster { } switch field { case "api": - value := readClusterAPI(iterator) + value := ReadClusterAPI(iterator) object.api = value object.bitmap_ |= 1 case "aws": - value := readAWS(iterator) + value := ReadAWS(iterator) object.aws = value object.bitmap_ |= 2 case "display_name": @@ -223,11 +223,11 @@ func readCluster(iterator *jsoniter.Iterator) *Cluster { object.name = value object.bitmap_ |= 64 case "network": - value := readNetwork(iterator) + value := ReadNetwork(iterator) object.network = value object.bitmap_ |= 128 case "nodes": - value := readClusterNodes(iterator) + value := ReadClusterNodes(iterator) object.nodes = value object.bitmap_ |= 256 case "properties": @@ -243,7 +243,7 @@ func readCluster(iterator *jsoniter.Iterator) *Cluster { object.properties = value object.bitmap_ |= 512 case "region": - value := readCloudRegion(iterator) + value := ReadCloudRegion(iterator) object.region = value object.bitmap_ |= 1024 case "state": diff --git a/servicemgmt/v1/date_list_type_json.go b/servicemgmt/v1/date_list_type_json.go index 62cb32b36..00ef9bd22 100644 --- a/servicemgmt/v1/date_list_type_json.go +++ b/servicemgmt/v1/date_list_type_json.go @@ -31,7 +31,7 @@ import ( // the given writer. func MarshalDateList(list []time.Time, writer io.Writer) error { stream := helpers.NewStream(writer) - writeDateList(list, stream) + WriteDateList(list, stream) err := stream.Flush() if err != nil { return err @@ -39,9 +39,9 @@ func MarshalDateList(list []time.Time, writer io.Writer) error { return stream.Error } -// writeDateList writes a list of value of the 'date' type to +// WriteDateList writes a list of value of the 'date' type to // the given stream. -func writeDateList(list []time.Time, stream *jsoniter.Stream) { +func WriteDateList(list []time.Time, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -59,14 +59,14 @@ func UnmarshalDateList(source interface{}) (items []time.Time, err error) { if err != nil { return } - items = readDateList(iterator) + items = ReadDateList(iterator) err = iterator.Error return } -// readDateList reads list of values of the ”date' type from +// ReadDateList reads list of values of the ”date' type from // the given iterator. -func readDateList(iterator *jsoniter.Iterator) []time.Time { +func ReadDateList(iterator *jsoniter.Iterator) []time.Time { list := []time.Time{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/servicemgmt/v1/float_list_type_json.go b/servicemgmt/v1/float_list_type_json.go index 2809b68f1..87202b5a9 100644 --- a/servicemgmt/v1/float_list_type_json.go +++ b/servicemgmt/v1/float_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalFloatList(list []float64, writer io.Writer) error { stream := helpers.NewStream(writer) - writeFloatList(list, stream) + WriteFloatList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalFloatList(list []float64, writer io.Writer) error { return stream.Error } -// writeFloatList writes a list of value of the 'float' type to +// WriteFloatList writes a list of value of the 'float' type to // the given stream. -func writeFloatList(list []float64, stream *jsoniter.Stream) { +func WriteFloatList(list []float64, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalFloatList(source interface{}) (items []float64, err error) { if err != nil { return } - items = readFloatList(iterator) + items = ReadFloatList(iterator) err = iterator.Error return } -// readFloatList reads list of values of the ”float' type from +// ReadFloatList reads list of values of the ”float' type from // the given iterator. -func readFloatList(iterator *jsoniter.Iterator) []float64 { +func ReadFloatList(iterator *jsoniter.Iterator) []float64 { list := []float64{} for iterator.ReadArray() { item := iterator.ReadFloat64() diff --git a/servicemgmt/v1/instance_iam_roles_list_type_json.go b/servicemgmt/v1/instance_iam_roles_list_type_json.go index b9d6ab601..17e9cf92b 100644 --- a/servicemgmt/v1/instance_iam_roles_list_type_json.go +++ b/servicemgmt/v1/instance_iam_roles_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalInstanceIAMRolesList(list []*InstanceIAMRoles, writer io.Writer) error { stream := helpers.NewStream(writer) - writeInstanceIAMRolesList(list, stream) + WriteInstanceIAMRolesList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalInstanceIAMRolesList(list []*InstanceIAMRoles, writer io.Writer) err return stream.Error } -// writeInstanceIAMRolesList writes a list of value of the 'instance_IAM_roles' type to +// WriteInstanceIAMRolesList writes a list of value of the 'instance_IAM_roles' type to // the given stream. -func writeInstanceIAMRolesList(list []*InstanceIAMRoles, stream *jsoniter.Stream) { +func WriteInstanceIAMRolesList(list []*InstanceIAMRoles, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeInstanceIAMRoles(value, stream) + WriteInstanceIAMRoles(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalInstanceIAMRolesList(source interface{}) (items []*InstanceIAMRole if err != nil { return } - items = readInstanceIAMRolesList(iterator) + items = ReadInstanceIAMRolesList(iterator) err = iterator.Error return } -// readInstanceIAMRolesList reads list of values of the ”instance_IAM_roles' type from +// ReadInstanceIAMRolesList reads list of values of the ”instance_IAM_roles' type from // the given iterator. -func readInstanceIAMRolesList(iterator *jsoniter.Iterator) []*InstanceIAMRoles { +func ReadInstanceIAMRolesList(iterator *jsoniter.Iterator) []*InstanceIAMRoles { list := []*InstanceIAMRoles{} for iterator.ReadArray() { - item := readInstanceIAMRoles(iterator) + item := ReadInstanceIAMRoles(iterator) list = append(list, item) } return list diff --git a/servicemgmt/v1/instance_iam_roles_type.go b/servicemgmt/v1/instance_iam_roles_type.go index 34570b5f5..b99dfb175 100644 --- a/servicemgmt/v1/instance_iam_roles_type.go +++ b/servicemgmt/v1/instance_iam_roles_type.go @@ -106,6 +106,29 @@ func (l *InstanceIAMRolesList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *InstanceIAMRolesList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *InstanceIAMRolesList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *InstanceIAMRolesList) SetItems(items []*InstanceIAMRoles) { + l.items = items +} + +// Items returns the items of the list. +func (l *InstanceIAMRolesList) Items() []*InstanceIAMRoles { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *InstanceIAMRolesList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/servicemgmt/v1/instance_iam_roles_type_json.go b/servicemgmt/v1/instance_iam_roles_type_json.go index a1a1cc5a3..a50fb77d1 100644 --- a/servicemgmt/v1/instance_iam_roles_type_json.go +++ b/servicemgmt/v1/instance_iam_roles_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalInstanceIAMRoles writes a value of the 'instance_IAM_roles' type to the given writer. func MarshalInstanceIAMRoles(object *InstanceIAMRoles, writer io.Writer) error { stream := helpers.NewStream(writer) - writeInstanceIAMRoles(object, stream) + WriteInstanceIAMRoles(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalInstanceIAMRoles(object *InstanceIAMRoles, writer io.Writer) error { return stream.Error } -// writeInstanceIAMRoles writes a value of the 'instance_IAM_roles' type to the given stream. -func writeInstanceIAMRoles(object *InstanceIAMRoles, stream *jsoniter.Stream) { +// WriteInstanceIAMRoles writes a value of the 'instance_IAM_roles' type to the given stream. +func WriteInstanceIAMRoles(object *InstanceIAMRoles, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalInstanceIAMRoles(source interface{}) (object *InstanceIAMRoles, er if err != nil { return } - object = readInstanceIAMRoles(iterator) + object = ReadInstanceIAMRoles(iterator) err = iterator.Error return } -// readInstanceIAMRoles reads a value of the 'instance_IAM_roles' type from the given iterator. -func readInstanceIAMRoles(iterator *jsoniter.Iterator) *InstanceIAMRoles { +// ReadInstanceIAMRoles reads a value of the 'instance_IAM_roles' type from the given iterator. +func ReadInstanceIAMRoles(iterator *jsoniter.Iterator) *InstanceIAMRoles { object := &InstanceIAMRoles{} for { field := iterator.ReadObject() diff --git a/servicemgmt/v1/integer_list_type_json.go b/servicemgmt/v1/integer_list_type_json.go index cc3a3b68b..e550cc937 100644 --- a/servicemgmt/v1/integer_list_type_json.go +++ b/servicemgmt/v1/integer_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalIntegerList(list []int, writer io.Writer) error { stream := helpers.NewStream(writer) - writeIntegerList(list, stream) + WriteIntegerList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalIntegerList(list []int, writer io.Writer) error { return stream.Error } -// writeIntegerList writes a list of value of the 'integer' type to +// WriteIntegerList writes a list of value of the 'integer' type to // the given stream. -func writeIntegerList(list []int, stream *jsoniter.Stream) { +func WriteIntegerList(list []int, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalIntegerList(source interface{}) (items []int, err error) { if err != nil { return } - items = readIntegerList(iterator) + items = ReadIntegerList(iterator) err = iterator.Error return } -// readIntegerList reads list of values of the ”integer' type from +// ReadIntegerList reads list of values of the ”integer' type from // the given iterator. -func readIntegerList(iterator *jsoniter.Iterator) []int { +func ReadIntegerList(iterator *jsoniter.Iterator) []int { list := []int{} for iterator.ReadArray() { item := iterator.ReadInt() diff --git a/servicemgmt/v1/interface_list_type_json.go b/servicemgmt/v1/interface_list_type_json.go index 416651250..5d4447bd8 100644 --- a/servicemgmt/v1/interface_list_type_json.go +++ b/servicemgmt/v1/interface_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalInterfaceList(list []interface{}, writer io.Writer) error { stream := helpers.NewStream(writer) - writeInterfaceList(list, stream) + WriteInterfaceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalInterfaceList(list []interface{}, writer io.Writer) error { return stream.Error } -// writeInterfaceList writes a list of value of the 'interface' type to +// WriteInterfaceList writes a list of value of the 'interface' type to // the given stream. -func writeInterfaceList(list []interface{}, stream *jsoniter.Stream) { +func WriteInterfaceList(list []interface{}, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalInterfaceList(source interface{}) (items []interface{}, err error) if err != nil { return } - items = readInterfaceList(iterator) + items = ReadInterfaceList(iterator) err = iterator.Error return } -// readInterfaceList reads list of values of the ”interface' type from +// ReadInterfaceList reads list of values of the ”interface' type from // the given iterator. -func readInterfaceList(iterator *jsoniter.Iterator) []interface{} { +func ReadInterfaceList(iterator *jsoniter.Iterator) []interface{} { list := []interface{}{} for iterator.ReadArray() { var item interface{} diff --git a/servicemgmt/v1/listening_method_list_type_json.go b/servicemgmt/v1/listening_method_list_type_json.go index 40bda0f2e..b7ed5bbc4 100644 --- a/servicemgmt/v1/listening_method_list_type_json.go +++ b/servicemgmt/v1/listening_method_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalListeningMethodList(list []ListeningMethod, writer io.Writer) error { stream := helpers.NewStream(writer) - writeListeningMethodList(list, stream) + WriteListeningMethodList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalListeningMethodList(list []ListeningMethod, writer io.Writer) error return stream.Error } -// writeListeningMethodList writes a list of value of the 'listening_method' type to +// WriteListeningMethodList writes a list of value of the 'listening_method' type to // the given stream. -func writeListeningMethodList(list []ListeningMethod, stream *jsoniter.Stream) { +func WriteListeningMethodList(list []ListeningMethod, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalListeningMethodList(source interface{}) (items []ListeningMethod, if err != nil { return } - items = readListeningMethodList(iterator) + items = ReadListeningMethodList(iterator) err = iterator.Error return } -// readListeningMethodList reads list of values of the ”listening_method' type from +// ReadListeningMethodList reads list of values of the ”listening_method' type from // the given iterator. -func readListeningMethodList(iterator *jsoniter.Iterator) []ListeningMethod { +func ReadListeningMethodList(iterator *jsoniter.Iterator) []ListeningMethod { list := []ListeningMethod{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/servicemgmt/v1/long_list_type_json.go b/servicemgmt/v1/long_list_type_json.go index a70ca7fa9..c1ace9c63 100644 --- a/servicemgmt/v1/long_list_type_json.go +++ b/servicemgmt/v1/long_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalLongList(list []int64, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLongList(list, stream) + WriteLongList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalLongList(list []int64, writer io.Writer) error { return stream.Error } -// writeLongList writes a list of value of the 'long' type to +// WriteLongList writes a list of value of the 'long' type to // the given stream. -func writeLongList(list []int64, stream *jsoniter.Stream) { +func WriteLongList(list []int64, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalLongList(source interface{}) (items []int64, err error) { if err != nil { return } - items = readLongList(iterator) + items = ReadLongList(iterator) err = iterator.Error return } -// readLongList reads list of values of the ”long' type from +// ReadLongList reads list of values of the ”long' type from // the given iterator. -func readLongList(iterator *jsoniter.Iterator) []int64 { +func ReadLongList(iterator *jsoniter.Iterator) []int64 { list := []int64{} for iterator.ReadArray() { item := iterator.ReadInt64() diff --git a/servicemgmt/v1/managed_service_list_type_json.go b/servicemgmt/v1/managed_service_list_type_json.go index efd6f491d..9bf12f618 100644 --- a/servicemgmt/v1/managed_service_list_type_json.go +++ b/servicemgmt/v1/managed_service_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalManagedServiceList(list []*ManagedService, writer io.Writer) error { stream := helpers.NewStream(writer) - writeManagedServiceList(list, stream) + WriteManagedServiceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalManagedServiceList(list []*ManagedService, writer io.Writer) error { return stream.Error } -// writeManagedServiceList writes a list of value of the 'managed_service' type to +// WriteManagedServiceList writes a list of value of the 'managed_service' type to // the given stream. -func writeManagedServiceList(list []*ManagedService, stream *jsoniter.Stream) { +func WriteManagedServiceList(list []*ManagedService, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeManagedService(value, stream) + WriteManagedService(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalManagedServiceList(source interface{}) (items []*ManagedService, e if err != nil { return } - items = readManagedServiceList(iterator) + items = ReadManagedServiceList(iterator) err = iterator.Error return } -// readManagedServiceList reads list of values of the ”managed_service' type from +// ReadManagedServiceList reads list of values of the ”managed_service' type from // the given iterator. -func readManagedServiceList(iterator *jsoniter.Iterator) []*ManagedService { +func ReadManagedServiceList(iterator *jsoniter.Iterator) []*ManagedService { list := []*ManagedService{} for iterator.ReadArray() { - item := readManagedService(iterator) + item := ReadManagedService(iterator) list = append(list, item) } return list diff --git a/servicemgmt/v1/managed_service_type.go b/servicemgmt/v1/managed_service_type.go index c782a5a7e..ce874f473 100644 --- a/servicemgmt/v1/managed_service_type.go +++ b/servicemgmt/v1/managed_service_type.go @@ -64,7 +64,7 @@ func (o *ManagedService) Kind() string { return ManagedServiceKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *ManagedService) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -342,6 +342,29 @@ func (l *ManagedServiceList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ManagedServiceList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ManagedServiceList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ManagedServiceList) SetItems(items []*ManagedService) { + l.items = items +} + +// Items returns the items of the list. +func (l *ManagedServiceList) Items() []*ManagedService { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ManagedServiceList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/servicemgmt/v1/managed_service_type_json.go b/servicemgmt/v1/managed_service_type_json.go index dea234869..a4370d1b2 100644 --- a/servicemgmt/v1/managed_service_type_json.go +++ b/servicemgmt/v1/managed_service_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalManagedService writes a value of the 'managed_service' type to the given writer. func MarshalManagedService(object *ManagedService, writer io.Writer) error { stream := helpers.NewStream(writer) - writeManagedService(object, stream) + WriteManagedService(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalManagedService(object *ManagedService, writer io.Writer) error { return stream.Error } -// writeManagedService writes a value of the 'managed_service' type to the given stream. -func writeManagedService(object *ManagedService, stream *jsoniter.Stream) { +// WriteManagedService writes a value of the 'managed_service' type to the given stream. +func WriteManagedService(object *ManagedService, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -72,7 +72,7 @@ func writeManagedService(object *ManagedService, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("addon") - writeStatefulObject(object.addon, stream) + WriteStatefulObject(object.addon, stream) count++ } present_ = object.bitmap_&16 != 0 && object.cluster != nil @@ -81,7 +81,7 @@ func writeManagedService(object *ManagedService, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("cluster") - writeCluster(object.cluster, stream) + WriteCluster(object.cluster, stream) count++ } present_ = object.bitmap_&32 != 0 @@ -108,7 +108,7 @@ func writeManagedService(object *ManagedService, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("parameters") - writeServiceParameterList(object.parameters, stream) + WriteServiceParameterList(object.parameters, stream) count++ } present_ = object.bitmap_&256 != 0 && object.resources != nil @@ -117,7 +117,7 @@ func writeManagedService(object *ManagedService, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("resources") - writeStatefulObjectList(object.resources, stream) + WriteStatefulObjectList(object.resources, stream) count++ } present_ = object.bitmap_&512 != 0 @@ -156,13 +156,13 @@ func UnmarshalManagedService(source interface{}) (object *ManagedService, err er if err != nil { return } - object = readManagedService(iterator) + object = ReadManagedService(iterator) err = iterator.Error return } -// readManagedService reads a value of the 'managed_service' type from the given iterator. -func readManagedService(iterator *jsoniter.Iterator) *ManagedService { +// ReadManagedService reads a value of the 'managed_service' type from the given iterator. +func ReadManagedService(iterator *jsoniter.Iterator) *ManagedService { object := &ManagedService{} for { field := iterator.ReadObject() @@ -182,11 +182,11 @@ func readManagedService(iterator *jsoniter.Iterator) *ManagedService { object.href = iterator.ReadString() object.bitmap_ |= 4 case "addon": - value := readStatefulObject(iterator) + value := ReadStatefulObject(iterator) object.addon = value object.bitmap_ |= 8 case "cluster": - value := readCluster(iterator) + value := ReadCluster(iterator) object.cluster = value object.bitmap_ |= 16 case "created_at": @@ -206,11 +206,11 @@ func readManagedService(iterator *jsoniter.Iterator) *ManagedService { object.expiredAt = value object.bitmap_ |= 64 case "parameters": - value := readServiceParameterList(iterator) + value := ReadServiceParameterList(iterator) object.parameters = value object.bitmap_ |= 128 case "resources": - value := readStatefulObjectList(iterator) + value := ReadStatefulObjectList(iterator) object.resources = value object.bitmap_ |= 256 case "service": diff --git a/servicemgmt/v1/network_list_type_json.go b/servicemgmt/v1/network_list_type_json.go index fc83c41a0..103c6a38a 100644 --- a/servicemgmt/v1/network_list_type_json.go +++ b/servicemgmt/v1/network_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalNetworkList(list []*Network, writer io.Writer) error { stream := helpers.NewStream(writer) - writeNetworkList(list, stream) + WriteNetworkList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalNetworkList(list []*Network, writer io.Writer) error { return stream.Error } -// writeNetworkList writes a list of value of the 'network' type to +// WriteNetworkList writes a list of value of the 'network' type to // the given stream. -func writeNetworkList(list []*Network, stream *jsoniter.Stream) { +func WriteNetworkList(list []*Network, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeNetwork(value, stream) + WriteNetwork(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalNetworkList(source interface{}) (items []*Network, err error) { if err != nil { return } - items = readNetworkList(iterator) + items = ReadNetworkList(iterator) err = iterator.Error return } -// readNetworkList reads list of values of the ”network' type from +// ReadNetworkList reads list of values of the ”network' type from // the given iterator. -func readNetworkList(iterator *jsoniter.Iterator) []*Network { +func ReadNetworkList(iterator *jsoniter.Iterator) []*Network { list := []*Network{} for iterator.ReadArray() { - item := readNetwork(iterator) + item := ReadNetwork(iterator) list = append(list, item) } return list diff --git a/servicemgmt/v1/network_type.go b/servicemgmt/v1/network_type.go index 70880e0f0..7063f56a6 100644 --- a/servicemgmt/v1/network_type.go +++ b/servicemgmt/v1/network_type.go @@ -178,6 +178,29 @@ func (l *NetworkList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *NetworkList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *NetworkList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *NetworkList) SetItems(items []*Network) { + l.items = items +} + +// Items returns the items of the list. +func (l *NetworkList) Items() []*Network { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *NetworkList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/servicemgmt/v1/network_type_json.go b/servicemgmt/v1/network_type_json.go index 0c9599b70..98dbcaf44 100644 --- a/servicemgmt/v1/network_type_json.go +++ b/servicemgmt/v1/network_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalNetwork writes a value of the 'network' type to the given writer. func MarshalNetwork(object *Network, writer io.Writer) error { stream := helpers.NewStream(writer) - writeNetwork(object, stream) + WriteNetwork(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalNetwork(object *Network, writer io.Writer) error { return stream.Error } -// writeNetwork writes a value of the 'network' type to the given stream. -func writeNetwork(object *Network, stream *jsoniter.Stream) { +// WriteNetwork writes a value of the 'network' type to the given stream. +func WriteNetwork(object *Network, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -96,13 +96,13 @@ func UnmarshalNetwork(source interface{}) (object *Network, err error) { if err != nil { return } - object = readNetwork(iterator) + object = ReadNetwork(iterator) err = iterator.Error return } -// readNetwork reads a value of the 'network' type from the given iterator. -func readNetwork(iterator *jsoniter.Iterator) *Network { +// ReadNetwork reads a value of the 'network' type from the given iterator. +func ReadNetwork(iterator *jsoniter.Iterator) *Network { object := &Network{} for { field := iterator.ReadObject() diff --git a/servicemgmt/v1/operator_iam_role_list_type_json.go b/servicemgmt/v1/operator_iam_role_list_type_json.go index 553f534bc..b0137cd25 100644 --- a/servicemgmt/v1/operator_iam_role_list_type_json.go +++ b/servicemgmt/v1/operator_iam_role_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalOperatorIAMRoleList(list []*OperatorIAMRole, writer io.Writer) error { stream := helpers.NewStream(writer) - writeOperatorIAMRoleList(list, stream) + WriteOperatorIAMRoleList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalOperatorIAMRoleList(list []*OperatorIAMRole, writer io.Writer) error return stream.Error } -// writeOperatorIAMRoleList writes a list of value of the 'operator_IAM_role' type to +// WriteOperatorIAMRoleList writes a list of value of the 'operator_IAM_role' type to // the given stream. -func writeOperatorIAMRoleList(list []*OperatorIAMRole, stream *jsoniter.Stream) { +func WriteOperatorIAMRoleList(list []*OperatorIAMRole, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeOperatorIAMRole(value, stream) + WriteOperatorIAMRole(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalOperatorIAMRoleList(source interface{}) (items []*OperatorIAMRole, if err != nil { return } - items = readOperatorIAMRoleList(iterator) + items = ReadOperatorIAMRoleList(iterator) err = iterator.Error return } -// readOperatorIAMRoleList reads list of values of the ”operator_IAM_role' type from +// ReadOperatorIAMRoleList reads list of values of the ”operator_IAM_role' type from // the given iterator. -func readOperatorIAMRoleList(iterator *jsoniter.Iterator) []*OperatorIAMRole { +func ReadOperatorIAMRoleList(iterator *jsoniter.Iterator) []*OperatorIAMRole { list := []*OperatorIAMRole{} for iterator.ReadArray() { - item := readOperatorIAMRole(iterator) + item := ReadOperatorIAMRole(iterator) list = append(list, item) } return list diff --git a/servicemgmt/v1/operator_iam_role_type.go b/servicemgmt/v1/operator_iam_role_type.go index df340f296..6663b37df 100644 --- a/servicemgmt/v1/operator_iam_role_type.go +++ b/servicemgmt/v1/operator_iam_role_type.go @@ -130,6 +130,29 @@ func (l *OperatorIAMRoleList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *OperatorIAMRoleList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *OperatorIAMRoleList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *OperatorIAMRoleList) SetItems(items []*OperatorIAMRole) { + l.items = items +} + +// Items returns the items of the list. +func (l *OperatorIAMRoleList) Items() []*OperatorIAMRole { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *OperatorIAMRoleList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/servicemgmt/v1/operator_iam_role_type_json.go b/servicemgmt/v1/operator_iam_role_type_json.go index 887758c1a..c75d9d7f1 100644 --- a/servicemgmt/v1/operator_iam_role_type_json.go +++ b/servicemgmt/v1/operator_iam_role_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalOperatorIAMRole writes a value of the 'operator_IAM_role' type to the given writer. func MarshalOperatorIAMRole(object *OperatorIAMRole, writer io.Writer) error { stream := helpers.NewStream(writer) - writeOperatorIAMRole(object, stream) + WriteOperatorIAMRole(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalOperatorIAMRole(object *OperatorIAMRole, writer io.Writer) error { return stream.Error } -// writeOperatorIAMRole writes a value of the 'operator_IAM_role' type to the given stream. -func writeOperatorIAMRole(object *OperatorIAMRole, stream *jsoniter.Stream) { +// WriteOperatorIAMRole writes a value of the 'operator_IAM_role' type to the given stream. +func WriteOperatorIAMRole(object *OperatorIAMRole, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -78,13 +78,13 @@ func UnmarshalOperatorIAMRole(source interface{}) (object *OperatorIAMRole, err if err != nil { return } - object = readOperatorIAMRole(iterator) + object = ReadOperatorIAMRole(iterator) err = iterator.Error return } -// readOperatorIAMRole reads a value of the 'operator_IAM_role' type from the given iterator. -func readOperatorIAMRole(iterator *jsoniter.Iterator) *OperatorIAMRole { +// ReadOperatorIAMRole reads a value of the 'operator_IAM_role' type from the given iterator. +func ReadOperatorIAMRole(iterator *jsoniter.Iterator) *OperatorIAMRole { object := &OperatorIAMRole{} for { field := iterator.ReadObject() diff --git a/servicemgmt/v1/service_parameter_list_type_json.go b/servicemgmt/v1/service_parameter_list_type_json.go index 53a0d6fa9..cf1f6364b 100644 --- a/servicemgmt/v1/service_parameter_list_type_json.go +++ b/servicemgmt/v1/service_parameter_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalServiceParameterList(list []*ServiceParameter, writer io.Writer) error { stream := helpers.NewStream(writer) - writeServiceParameterList(list, stream) + WriteServiceParameterList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalServiceParameterList(list []*ServiceParameter, writer io.Writer) err return stream.Error } -// writeServiceParameterList writes a list of value of the 'service_parameter' type to +// WriteServiceParameterList writes a list of value of the 'service_parameter' type to // the given stream. -func writeServiceParameterList(list []*ServiceParameter, stream *jsoniter.Stream) { +func WriteServiceParameterList(list []*ServiceParameter, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeServiceParameter(value, stream) + WriteServiceParameter(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalServiceParameterList(source interface{}) (items []*ServiceParamete if err != nil { return } - items = readServiceParameterList(iterator) + items = ReadServiceParameterList(iterator) err = iterator.Error return } -// readServiceParameterList reads list of values of the ”service_parameter' type from +// ReadServiceParameterList reads list of values of the ”service_parameter' type from // the given iterator. -func readServiceParameterList(iterator *jsoniter.Iterator) []*ServiceParameter { +func ReadServiceParameterList(iterator *jsoniter.Iterator) []*ServiceParameter { list := []*ServiceParameter{} for iterator.ReadArray() { - item := readServiceParameter(iterator) + item := ReadServiceParameter(iterator) list = append(list, item) } return list diff --git a/servicemgmt/v1/service_parameter_type.go b/servicemgmt/v1/service_parameter_type.go index ea278e6bc..614ab36dd 100644 --- a/servicemgmt/v1/service_parameter_type.go +++ b/servicemgmt/v1/service_parameter_type.go @@ -104,6 +104,29 @@ func (l *ServiceParameterList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ServiceParameterList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ServiceParameterList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ServiceParameterList) SetItems(items []*ServiceParameter) { + l.items = items +} + +// Items returns the items of the list. +func (l *ServiceParameterList) Items() []*ServiceParameter { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ServiceParameterList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/servicemgmt/v1/service_parameter_type_json.go b/servicemgmt/v1/service_parameter_type_json.go index c13aac654..8b4296ee6 100644 --- a/servicemgmt/v1/service_parameter_type_json.go +++ b/servicemgmt/v1/service_parameter_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalServiceParameter writes a value of the 'service_parameter' type to the given writer. func MarshalServiceParameter(object *ServiceParameter, writer io.Writer) error { stream := helpers.NewStream(writer) - writeServiceParameter(object, stream) + WriteServiceParameter(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalServiceParameter(object *ServiceParameter, writer io.Writer) error { return stream.Error } -// writeServiceParameter writes a value of the 'service_parameter' type to the given stream. -func writeServiceParameter(object *ServiceParameter, stream *jsoniter.Stream) { +// WriteServiceParameter writes a value of the 'service_parameter' type to the given stream. +func WriteServiceParameter(object *ServiceParameter, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalServiceParameter(source interface{}) (object *ServiceParameter, er if err != nil { return } - object = readServiceParameter(iterator) + object = ReadServiceParameter(iterator) err = iterator.Error return } -// readServiceParameter reads a value of the 'service_parameter' type from the given iterator. -func readServiceParameter(iterator *jsoniter.Iterator) *ServiceParameter { +// ReadServiceParameter reads a value of the 'service_parameter' type from the given iterator. +func ReadServiceParameter(iterator *jsoniter.Iterator) *ServiceParameter { object := &ServiceParameter{} for { field := iterator.ReadObject() diff --git a/servicemgmt/v1/services_resource_json.go b/servicemgmt/v1/services_resource_json.go index 714a40c29..da8f56221 100644 --- a/servicemgmt/v1/services_resource_json.go +++ b/servicemgmt/v1/services_resource_json.go @@ -57,7 +57,7 @@ func readServicesListResponse(response *ServicesListResponse, reader io.Reader) value := iterator.ReadInt() response.total = &value case "items": - items := readManagedServiceList(iterator) + items := ReadManagedServiceList(iterator) response.items = &ManagedServiceList{ items: items, } diff --git a/servicemgmt/v1/stateful_object_list_type_json.go b/servicemgmt/v1/stateful_object_list_type_json.go index cf9e36899..9e40a1cd3 100644 --- a/servicemgmt/v1/stateful_object_list_type_json.go +++ b/servicemgmt/v1/stateful_object_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalStatefulObjectList(list []*StatefulObject, writer io.Writer) error { stream := helpers.NewStream(writer) - writeStatefulObjectList(list, stream) + WriteStatefulObjectList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalStatefulObjectList(list []*StatefulObject, writer io.Writer) error { return stream.Error } -// writeStatefulObjectList writes a list of value of the 'stateful_object' type to +// WriteStatefulObjectList writes a list of value of the 'stateful_object' type to // the given stream. -func writeStatefulObjectList(list []*StatefulObject, stream *jsoniter.Stream) { +func WriteStatefulObjectList(list []*StatefulObject, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeStatefulObject(value, stream) + WriteStatefulObject(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalStatefulObjectList(source interface{}) (items []*StatefulObject, e if err != nil { return } - items = readStatefulObjectList(iterator) + items = ReadStatefulObjectList(iterator) err = iterator.Error return } -// readStatefulObjectList reads list of values of the ”stateful_object' type from +// ReadStatefulObjectList reads list of values of the ”stateful_object' type from // the given iterator. -func readStatefulObjectList(iterator *jsoniter.Iterator) []*StatefulObject { +func ReadStatefulObjectList(iterator *jsoniter.Iterator) []*StatefulObject { list := []*StatefulObject{} for iterator.ReadArray() { - item := readStatefulObject(iterator) + item := ReadStatefulObject(iterator) list = append(list, item) } return list diff --git a/servicemgmt/v1/stateful_object_type.go b/servicemgmt/v1/stateful_object_type.go index 30aa46ca0..444a21f0d 100644 --- a/servicemgmt/v1/stateful_object_type.go +++ b/servicemgmt/v1/stateful_object_type.go @@ -136,6 +136,29 @@ func (l *StatefulObjectList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *StatefulObjectList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *StatefulObjectList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *StatefulObjectList) SetItems(items []*StatefulObject) { + l.items = items +} + +// Items returns the items of the list. +func (l *StatefulObjectList) Items() []*StatefulObject { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *StatefulObjectList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/servicemgmt/v1/stateful_object_type_json.go b/servicemgmt/v1/stateful_object_type_json.go index ee8864875..010b7cda6 100644 --- a/servicemgmt/v1/stateful_object_type_json.go +++ b/servicemgmt/v1/stateful_object_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalStatefulObject writes a value of the 'stateful_object' type to the given writer. func MarshalStatefulObject(object *StatefulObject, writer io.Writer) error { stream := helpers.NewStream(writer) - writeStatefulObject(object, stream) + WriteStatefulObject(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalStatefulObject(object *StatefulObject, writer io.Writer) error { return stream.Error } -// writeStatefulObject writes a value of the 'stateful_object' type to the given stream. -func writeStatefulObject(object *StatefulObject, stream *jsoniter.Stream) { +// WriteStatefulObject writes a value of the 'stateful_object' type to the given stream. +func WriteStatefulObject(object *StatefulObject, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -87,13 +87,13 @@ func UnmarshalStatefulObject(source interface{}) (object *StatefulObject, err er if err != nil { return } - object = readStatefulObject(iterator) + object = ReadStatefulObject(iterator) err = iterator.Error return } -// readStatefulObject reads a value of the 'stateful_object' type from the given iterator. -func readStatefulObject(iterator *jsoniter.Iterator) *StatefulObject { +// ReadStatefulObject reads a value of the 'stateful_object' type from the given iterator. +func ReadStatefulObject(iterator *jsoniter.Iterator) *StatefulObject { object := &StatefulObject{} for { field := iterator.ReadObject() diff --git a/servicemgmt/v1/string_list_type_json.go b/servicemgmt/v1/string_list_type_json.go index ceaa62a69..650ec48eb 100644 --- a/servicemgmt/v1/string_list_type_json.go +++ b/servicemgmt/v1/string_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalStringList(list []string, writer io.Writer) error { stream := helpers.NewStream(writer) - writeStringList(list, stream) + WriteStringList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalStringList(list []string, writer io.Writer) error { return stream.Error } -// writeStringList writes a list of value of the 'string' type to +// WriteStringList writes a list of value of the 'string' type to // the given stream. -func writeStringList(list []string, stream *jsoniter.Stream) { +func WriteStringList(list []string, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalStringList(source interface{}) (items []string, err error) { if err != nil { return } - items = readStringList(iterator) + items = ReadStringList(iterator) err = iterator.Error return } -// readStringList reads list of values of the ”string' type from +// ReadStringList reads list of values of the ”string' type from // the given iterator. -func readStringList(iterator *jsoniter.Iterator) []string { +func ReadStringList(iterator *jsoniter.Iterator) []string { list := []string{} for iterator.ReadArray() { item := iterator.ReadString() diff --git a/servicemgmt/v1/sts_list_type_json.go b/servicemgmt/v1/sts_list_type_json.go index eecc6457b..babd9b961 100644 --- a/servicemgmt/v1/sts_list_type_json.go +++ b/servicemgmt/v1/sts_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalSTSList(list []*STS, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSTSList(list, stream) + WriteSTSList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalSTSList(list []*STS, writer io.Writer) error { return stream.Error } -// writeSTSList writes a list of value of the 'STS' type to +// WriteSTSList writes a list of value of the 'STS' type to // the given stream. -func writeSTSList(list []*STS, stream *jsoniter.Stream) { +func WriteSTSList(list []*STS, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeSTS(value, stream) + WriteSTS(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalSTSList(source interface{}) (items []*STS, err error) { if err != nil { return } - items = readSTSList(iterator) + items = ReadSTSList(iterator) err = iterator.Error return } -// readSTSList reads list of values of the ”STS' type from +// ReadSTSList reads list of values of the ”STS' type from // the given iterator. -func readSTSList(iterator *jsoniter.Iterator) []*STS { +func ReadSTSList(iterator *jsoniter.Iterator) []*STS { list := []*STS{} for iterator.ReadArray() { - item := readSTS(iterator) + item := ReadSTS(iterator) list = append(list, item) } return list diff --git a/servicemgmt/v1/sts_type.go b/servicemgmt/v1/sts_type.go index 62661354a..bf0748e10 100644 --- a/servicemgmt/v1/sts_type.go +++ b/servicemgmt/v1/sts_type.go @@ -198,6 +198,29 @@ func (l *STSList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *STSList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *STSList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *STSList) SetItems(items []*STS) { + l.items = items +} + +// Items returns the items of the list. +func (l *STSList) Items() []*STS { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *STSList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/servicemgmt/v1/sts_type_json.go b/servicemgmt/v1/sts_type_json.go index a9c106f39..d45d6c21f 100644 --- a/servicemgmt/v1/sts_type_json.go +++ b/servicemgmt/v1/sts_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalSTS writes a value of the 'STS' type to the given writer. func MarshalSTS(object *STS, writer io.Writer) error { stream := helpers.NewStream(writer) - writeSTS(object, stream) + WriteSTS(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalSTS(object *STS, writer io.Writer) error { return stream.Error } -// writeSTS writes a value of the 'STS' type to the given stream. -func writeSTS(object *STS, stream *jsoniter.Stream) { +// WriteSTS writes a value of the 'STS' type to the given stream. +func WriteSTS(object *STS, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -57,7 +57,7 @@ func writeSTS(object *STS, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("instance_iam_roles") - writeInstanceIAMRoles(object.instanceIAMRoles, stream) + WriteInstanceIAMRoles(object.instanceIAMRoles, stream) count++ } present_ = object.bitmap_&4 != 0 && object.operatorIAMRoles != nil @@ -66,7 +66,7 @@ func writeSTS(object *STS, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("operator_iam_roles") - writeOperatorIAMRoleList(object.operatorIAMRoles, stream) + WriteOperatorIAMRoleList(object.operatorIAMRoles, stream) count++ } present_ = object.bitmap_&8 != 0 @@ -105,13 +105,13 @@ func UnmarshalSTS(source interface{}) (object *STS, err error) { if err != nil { return } - object = readSTS(iterator) + object = ReadSTS(iterator) err = iterator.Error return } -// readSTS reads a value of the 'STS' type from the given iterator. -func readSTS(iterator *jsoniter.Iterator) *STS { +// ReadSTS reads a value of the 'STS' type from the given iterator. +func ReadSTS(iterator *jsoniter.Iterator) *STS { object := &STS{} for { field := iterator.ReadObject() @@ -124,11 +124,11 @@ func readSTS(iterator *jsoniter.Iterator) *STS { object.oidcEndpointURL = value object.bitmap_ |= 1 case "instance_iam_roles": - value := readInstanceIAMRoles(iterator) + value := ReadInstanceIAMRoles(iterator) object.instanceIAMRoles = value object.bitmap_ |= 2 case "operator_iam_roles": - value := readOperatorIAMRoleList(iterator) + value := ReadOperatorIAMRoleList(iterator) object.operatorIAMRoles = value object.bitmap_ |= 4 case "operator_role_prefix": diff --git a/servicemgmt/v1/version_inquiry_request_list_type_json.go b/servicemgmt/v1/version_inquiry_request_list_type_json.go index ce0253632..254788867 100644 --- a/servicemgmt/v1/version_inquiry_request_list_type_json.go +++ b/servicemgmt/v1/version_inquiry_request_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalVersionInquiryRequestList(list []*VersionInquiryRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeVersionInquiryRequestList(list, stream) + WriteVersionInquiryRequestList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalVersionInquiryRequestList(list []*VersionInquiryRequest, writer io.W return stream.Error } -// writeVersionInquiryRequestList writes a list of value of the 'version_inquiry_request' type to +// WriteVersionInquiryRequestList writes a list of value of the 'version_inquiry_request' type to // the given stream. -func writeVersionInquiryRequestList(list []*VersionInquiryRequest, stream *jsoniter.Stream) { +func WriteVersionInquiryRequestList(list []*VersionInquiryRequest, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeVersionInquiryRequest(value, stream) + WriteVersionInquiryRequest(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalVersionInquiryRequestList(source interface{}) (items []*VersionInq if err != nil { return } - items = readVersionInquiryRequestList(iterator) + items = ReadVersionInquiryRequestList(iterator) err = iterator.Error return } -// readVersionInquiryRequestList reads list of values of the ”version_inquiry_request' type from +// ReadVersionInquiryRequestList reads list of values of the ”version_inquiry_request' type from // the given iterator. -func readVersionInquiryRequestList(iterator *jsoniter.Iterator) []*VersionInquiryRequest { +func ReadVersionInquiryRequestList(iterator *jsoniter.Iterator) []*VersionInquiryRequest { list := []*VersionInquiryRequest{} for iterator.ReadArray() { - item := readVersionInquiryRequest(iterator) + item := ReadVersionInquiryRequest(iterator) list = append(list, item) } return list diff --git a/servicemgmt/v1/version_inquiry_request_type.go b/servicemgmt/v1/version_inquiry_request_type.go index 1470de49d..7ea92bc81 100644 --- a/servicemgmt/v1/version_inquiry_request_type.go +++ b/servicemgmt/v1/version_inquiry_request_type.go @@ -76,6 +76,29 @@ func (l *VersionInquiryRequestList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *VersionInquiryRequestList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *VersionInquiryRequestList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *VersionInquiryRequestList) SetItems(items []*VersionInquiryRequest) { + l.items = items +} + +// Items returns the items of the list. +func (l *VersionInquiryRequestList) Items() []*VersionInquiryRequest { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *VersionInquiryRequestList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/servicemgmt/v1/version_inquiry_request_type_json.go b/servicemgmt/v1/version_inquiry_request_type_json.go index 0be7653b7..19a967dd0 100644 --- a/servicemgmt/v1/version_inquiry_request_type_json.go +++ b/servicemgmt/v1/version_inquiry_request_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalVersionInquiryRequest writes a value of the 'version_inquiry_request' type to the given writer. func MarshalVersionInquiryRequest(object *VersionInquiryRequest, writer io.Writer) error { stream := helpers.NewStream(writer) - writeVersionInquiryRequest(object, stream) + WriteVersionInquiryRequest(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalVersionInquiryRequest(object *VersionInquiryRequest, writer io.Write return stream.Error } -// writeVersionInquiryRequest writes a value of the 'version_inquiry_request' type to the given stream. -func writeVersionInquiryRequest(object *VersionInquiryRequest, stream *jsoniter.Stream) { +// WriteVersionInquiryRequest writes a value of the 'version_inquiry_request' type to the given stream. +func WriteVersionInquiryRequest(object *VersionInquiryRequest, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalVersionInquiryRequest(source interface{}) (object *VersionInquiryR if err != nil { return } - object = readVersionInquiryRequest(iterator) + object = ReadVersionInquiryRequest(iterator) err = iterator.Error return } -// readVersionInquiryRequest reads a value of the 'version_inquiry_request' type from the given iterator. -func readVersionInquiryRequest(iterator *jsoniter.Iterator) *VersionInquiryRequest { +// ReadVersionInquiryRequest reads a value of the 'version_inquiry_request' type from the given iterator. +func ReadVersionInquiryRequest(iterator *jsoniter.Iterator) *VersionInquiryRequest { object := &VersionInquiryRequest{} for { field := iterator.ReadObject() diff --git a/servicemgmt/v1/version_inquiry_response_list_type_json.go b/servicemgmt/v1/version_inquiry_response_list_type_json.go index 381c07f71..b62a23740 100644 --- a/servicemgmt/v1/version_inquiry_response_list_type_json.go +++ b/servicemgmt/v1/version_inquiry_response_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalVersionInquiryResponseList(list []*VersionInquiryResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeVersionInquiryResponseList(list, stream) + WriteVersionInquiryResponseList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalVersionInquiryResponseList(list []*VersionInquiryResponse, writer io return stream.Error } -// writeVersionInquiryResponseList writes a list of value of the 'version_inquiry_response' type to +// WriteVersionInquiryResponseList writes a list of value of the 'version_inquiry_response' type to // the given stream. -func writeVersionInquiryResponseList(list []*VersionInquiryResponse, stream *jsoniter.Stream) { +func WriteVersionInquiryResponseList(list []*VersionInquiryResponse, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeVersionInquiryResponse(value, stream) + WriteVersionInquiryResponse(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalVersionInquiryResponseList(source interface{}) (items []*VersionIn if err != nil { return } - items = readVersionInquiryResponseList(iterator) + items = ReadVersionInquiryResponseList(iterator) err = iterator.Error return } -// readVersionInquiryResponseList reads list of values of the ”version_inquiry_response' type from +// ReadVersionInquiryResponseList reads list of values of the ”version_inquiry_response' type from // the given iterator. -func readVersionInquiryResponseList(iterator *jsoniter.Iterator) []*VersionInquiryResponse { +func ReadVersionInquiryResponseList(iterator *jsoniter.Iterator) []*VersionInquiryResponse { list := []*VersionInquiryResponse{} for iterator.ReadArray() { - item := readVersionInquiryResponse(iterator) + item := ReadVersionInquiryResponse(iterator) list = append(list, item) } return list diff --git a/servicemgmt/v1/version_inquiry_response_type.go b/servicemgmt/v1/version_inquiry_response_type.go index 271d551e9..08957530f 100644 --- a/servicemgmt/v1/version_inquiry_response_type.go +++ b/servicemgmt/v1/version_inquiry_response_type.go @@ -76,6 +76,29 @@ func (l *VersionInquiryResponseList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *VersionInquiryResponseList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *VersionInquiryResponseList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *VersionInquiryResponseList) SetItems(items []*VersionInquiryResponse) { + l.items = items +} + +// Items returns the items of the list. +func (l *VersionInquiryResponseList) Items() []*VersionInquiryResponse { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *VersionInquiryResponseList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/servicemgmt/v1/version_inquiry_response_type_json.go b/servicemgmt/v1/version_inquiry_response_type_json.go index 20f0f948b..85428e12d 100644 --- a/servicemgmt/v1/version_inquiry_response_type_json.go +++ b/servicemgmt/v1/version_inquiry_response_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalVersionInquiryResponse writes a value of the 'version_inquiry_response' type to the given writer. func MarshalVersionInquiryResponse(object *VersionInquiryResponse, writer io.Writer) error { stream := helpers.NewStream(writer) - writeVersionInquiryResponse(object, stream) + WriteVersionInquiryResponse(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalVersionInquiryResponse(object *VersionInquiryResponse, writer io.Wri return stream.Error } -// writeVersionInquiryResponse writes a value of the 'version_inquiry_response' type to the given stream. -func writeVersionInquiryResponse(object *VersionInquiryResponse, stream *jsoniter.Stream) { +// WriteVersionInquiryResponse writes a value of the 'version_inquiry_response' type to the given stream. +func WriteVersionInquiryResponse(object *VersionInquiryResponse, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -60,13 +60,13 @@ func UnmarshalVersionInquiryResponse(source interface{}) (object *VersionInquiry if err != nil { return } - object = readVersionInquiryResponse(iterator) + object = ReadVersionInquiryResponse(iterator) err = iterator.Error return } -// readVersionInquiryResponse reads a value of the 'version_inquiry_response' type from the given iterator. -func readVersionInquiryResponse(iterator *jsoniter.Iterator) *VersionInquiryResponse { +// ReadVersionInquiryResponse reads a value of the 'version_inquiry_response' type from the given iterator. +func ReadVersionInquiryResponse(iterator *jsoniter.Iterator) *VersionInquiryResponse { object := &VersionInquiryResponse{} for { field := iterator.ReadObject() diff --git a/statusboard/v1/application_dependencies_resource_json.go b/statusboard/v1/application_dependencies_resource_json.go index 9f92379c3..ec8c6273a 100644 --- a/statusboard/v1/application_dependencies_resource_json.go +++ b/statusboard/v1/application_dependencies_resource_json.go @@ -57,7 +57,7 @@ func readApplicationDependenciesListResponse(response *ApplicationDependenciesLi value := iterator.ReadInt() response.total = &value case "items": - items := readApplicationDependencyList(iterator) + items := ReadApplicationDependencyList(iterator) response.items = &ApplicationDependencyList{ items: items, } diff --git a/statusboard/v1/application_dependency_list_type_json.go b/statusboard/v1/application_dependency_list_type_json.go index c54d75b84..383b3d084 100644 --- a/statusboard/v1/application_dependency_list_type_json.go +++ b/statusboard/v1/application_dependency_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalApplicationDependencyList(list []*ApplicationDependency, writer io.Writer) error { stream := helpers.NewStream(writer) - writeApplicationDependencyList(list, stream) + WriteApplicationDependencyList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalApplicationDependencyList(list []*ApplicationDependency, writer io.W return stream.Error } -// writeApplicationDependencyList writes a list of value of the 'application_dependency' type to +// WriteApplicationDependencyList writes a list of value of the 'application_dependency' type to // the given stream. -func writeApplicationDependencyList(list []*ApplicationDependency, stream *jsoniter.Stream) { +func WriteApplicationDependencyList(list []*ApplicationDependency, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeApplicationDependency(value, stream) + WriteApplicationDependency(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalApplicationDependencyList(source interface{}) (items []*Applicatio if err != nil { return } - items = readApplicationDependencyList(iterator) + items = ReadApplicationDependencyList(iterator) err = iterator.Error return } -// readApplicationDependencyList reads list of values of the ”application_dependency' type from +// ReadApplicationDependencyList reads list of values of the ”application_dependency' type from // the given iterator. -func readApplicationDependencyList(iterator *jsoniter.Iterator) []*ApplicationDependency { +func ReadApplicationDependencyList(iterator *jsoniter.Iterator) []*ApplicationDependency { list := []*ApplicationDependency{} for iterator.ReadArray() { - item := readApplicationDependency(iterator) + item := ReadApplicationDependency(iterator) list = append(list, item) } return list diff --git a/statusboard/v1/application_dependency_type.go b/statusboard/v1/application_dependency_type.go index c21d30b00..5e893b780 100644 --- a/statusboard/v1/application_dependency_type.go +++ b/statusboard/v1/application_dependency_type.go @@ -63,7 +63,7 @@ func (o *ApplicationDependency) Kind() string { return ApplicationDependencyKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *ApplicationDependency) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -354,6 +354,29 @@ func (l *ApplicationDependencyList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ApplicationDependencyList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ApplicationDependencyList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ApplicationDependencyList) SetItems(items []*ApplicationDependency) { + l.items = items +} + +// Items returns the items of the list. +func (l *ApplicationDependencyList) Items() []*ApplicationDependency { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ApplicationDependencyList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/statusboard/v1/application_dependency_type_json.go b/statusboard/v1/application_dependency_type_json.go index accd4fb9b..ef5fcd585 100644 --- a/statusboard/v1/application_dependency_type_json.go +++ b/statusboard/v1/application_dependency_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalApplicationDependency writes a value of the 'application_dependency' type to the given writer. func MarshalApplicationDependency(object *ApplicationDependency, writer io.Writer) error { stream := helpers.NewStream(writer) - writeApplicationDependency(object, stream) + WriteApplicationDependency(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalApplicationDependency(object *ApplicationDependency, writer io.Write return stream.Error } -// writeApplicationDependency writes a value of the 'application_dependency' type to the given stream. -func writeApplicationDependency(object *ApplicationDependency, stream *jsoniter.Stream) { +// WriteApplicationDependency writes a value of the 'application_dependency' type to the given stream. +func WriteApplicationDependency(object *ApplicationDependency, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -72,7 +72,7 @@ func writeApplicationDependency(object *ApplicationDependency, stream *jsoniter. stream.WriteMore() } stream.WriteObjectField("application") - writeApplication(object.application, stream) + WriteApplication(object.application, stream) count++ } present_ = object.bitmap_&16 != 0 @@ -108,7 +108,7 @@ func writeApplicationDependency(object *ApplicationDependency, stream *jsoniter. stream.WriteMore() } stream.WriteObjectField("owners") - writeOwnerList(object.owners, stream) + WriteOwnerList(object.owners, stream) count++ } present_ = object.bitmap_&256 != 0 && object.service != nil @@ -117,7 +117,7 @@ func writeApplicationDependency(object *ApplicationDependency, stream *jsoniter. stream.WriteMore() } stream.WriteObjectField("service") - writeService(object.service, stream) + WriteService(object.service, stream) count++ } present_ = object.bitmap_&512 != 0 @@ -147,13 +147,13 @@ func UnmarshalApplicationDependency(source interface{}) (object *ApplicationDepe if err != nil { return } - object = readApplicationDependency(iterator) + object = ReadApplicationDependency(iterator) err = iterator.Error return } -// readApplicationDependency reads a value of the 'application_dependency' type from the given iterator. -func readApplicationDependency(iterator *jsoniter.Iterator) *ApplicationDependency { +// ReadApplicationDependency reads a value of the 'application_dependency' type from the given iterator. +func ReadApplicationDependency(iterator *jsoniter.Iterator) *ApplicationDependency { object := &ApplicationDependency{} for { field := iterator.ReadObject() @@ -173,7 +173,7 @@ func readApplicationDependency(iterator *jsoniter.Iterator) *ApplicationDependen object.href = iterator.ReadString() object.bitmap_ |= 4 case "application": - value := readApplication(iterator) + value := ReadApplication(iterator) object.application = value object.bitmap_ |= 8 case "created_at": @@ -194,11 +194,11 @@ func readApplicationDependency(iterator *jsoniter.Iterator) *ApplicationDependen object.name = value object.bitmap_ |= 64 case "owners": - value := readOwnerList(iterator) + value := ReadOwnerList(iterator) object.owners = value object.bitmap_ |= 128 case "service": - value := readService(iterator) + value := ReadService(iterator) object.service = value object.bitmap_ |= 256 case "type": diff --git a/statusboard/v1/application_list_type_json.go b/statusboard/v1/application_list_type_json.go index f20c124aa..932dd9519 100644 --- a/statusboard/v1/application_list_type_json.go +++ b/statusboard/v1/application_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalApplicationList(list []*Application, writer io.Writer) error { stream := helpers.NewStream(writer) - writeApplicationList(list, stream) + WriteApplicationList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalApplicationList(list []*Application, writer io.Writer) error { return stream.Error } -// writeApplicationList writes a list of value of the 'application' type to +// WriteApplicationList writes a list of value of the 'application' type to // the given stream. -func writeApplicationList(list []*Application, stream *jsoniter.Stream) { +func WriteApplicationList(list []*Application, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeApplication(value, stream) + WriteApplication(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalApplicationList(source interface{}) (items []*Application, err err if err != nil { return } - items = readApplicationList(iterator) + items = ReadApplicationList(iterator) err = iterator.Error return } -// readApplicationList reads list of values of the ”application' type from +// ReadApplicationList reads list of values of the ”application' type from // the given iterator. -func readApplicationList(iterator *jsoniter.Iterator) []*Application { +func ReadApplicationList(iterator *jsoniter.Iterator) []*Application { list := []*Application{} for iterator.ReadArray() { - item := readApplication(iterator) + item := ReadApplication(iterator) list = append(list, item) } return list diff --git a/statusboard/v1/application_type.go b/statusboard/v1/application_type.go index 51ad367a8..65af70d18 100644 --- a/statusboard/v1/application_type.go +++ b/statusboard/v1/application_type.go @@ -62,7 +62,7 @@ func (o *Application) Kind() string { return ApplicationKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Application) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -330,6 +330,29 @@ func (l *ApplicationList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ApplicationList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ApplicationList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ApplicationList) SetItems(items []*Application) { + l.items = items +} + +// Items returns the items of the list. +func (l *ApplicationList) Items() []*Application { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ApplicationList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/statusboard/v1/application_type_json.go b/statusboard/v1/application_type_json.go index 3ced8b4a7..8e2e7f4a7 100644 --- a/statusboard/v1/application_type_json.go +++ b/statusboard/v1/application_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalApplication writes a value of the 'application' type to the given writer. func MarshalApplication(object *Application, writer io.Writer) error { stream := helpers.NewStream(writer) - writeApplication(object, stream) + WriteApplication(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalApplication(object *Application, writer io.Writer) error { return stream.Error } -// writeApplication writes a value of the 'application' type to the given stream. -func writeApplication(object *Application, stream *jsoniter.Stream) { +// WriteApplication writes a value of the 'application' type to the given stream. +func WriteApplication(object *Application, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -108,7 +108,7 @@ func writeApplication(object *Application, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("owners") - writeOwnerList(object.owners, stream) + WriteOwnerList(object.owners, stream) count++ } present_ = object.bitmap_&256 != 0 && object.product != nil @@ -117,7 +117,7 @@ func writeApplication(object *Application, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("product") - writeProduct(object.product, stream) + WriteProduct(object.product, stream) count++ } present_ = object.bitmap_&512 != 0 @@ -138,13 +138,13 @@ func UnmarshalApplication(source interface{}) (object *Application, err error) { if err != nil { return } - object = readApplication(iterator) + object = ReadApplication(iterator) err = iterator.Error return } -// readApplication reads a value of the 'application' type from the given iterator. -func readApplication(iterator *jsoniter.Iterator) *Application { +// ReadApplication reads a value of the 'application' type from the given iterator. +func ReadApplication(iterator *jsoniter.Iterator) *Application { object := &Application{} for { field := iterator.ReadObject() @@ -185,11 +185,11 @@ func readApplication(iterator *jsoniter.Iterator) *Application { object.name = value object.bitmap_ |= 64 case "owners": - value := readOwnerList(iterator) + value := ReadOwnerList(iterator) object.owners = value object.bitmap_ |= 128 case "product": - value := readProduct(iterator) + value := ReadProduct(iterator) object.product = value object.bitmap_ |= 256 case "updated_at": diff --git a/statusboard/v1/applications_resource_json.go b/statusboard/v1/applications_resource_json.go index 18a78ac15..c8590ec55 100644 --- a/statusboard/v1/applications_resource_json.go +++ b/statusboard/v1/applications_resource_json.go @@ -57,7 +57,7 @@ func readApplicationsListResponse(response *ApplicationsListResponse, reader io. value := iterator.ReadInt() response.total = &value case "items": - items := readApplicationList(iterator) + items := ReadApplicationList(iterator) response.items = &ApplicationList{ items: items, } diff --git a/statusboard/v1/boolean_list_type_json.go b/statusboard/v1/boolean_list_type_json.go index cd86f8278..7280d2f7c 100644 --- a/statusboard/v1/boolean_list_type_json.go +++ b/statusboard/v1/boolean_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalBooleanList(list []bool, writer io.Writer) error { stream := helpers.NewStream(writer) - writeBooleanList(list, stream) + WriteBooleanList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalBooleanList(list []bool, writer io.Writer) error { return stream.Error } -// writeBooleanList writes a list of value of the 'boolean' type to +// WriteBooleanList writes a list of value of the 'boolean' type to // the given stream. -func writeBooleanList(list []bool, stream *jsoniter.Stream) { +func WriteBooleanList(list []bool, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalBooleanList(source interface{}) (items []bool, err error) { if err != nil { return } - items = readBooleanList(iterator) + items = ReadBooleanList(iterator) err = iterator.Error return } -// readBooleanList reads list of values of the ”boolean' type from +// ReadBooleanList reads list of values of the ”boolean' type from // the given iterator. -func readBooleanList(iterator *jsoniter.Iterator) []bool { +func ReadBooleanList(iterator *jsoniter.Iterator) []bool { list := []bool{} for iterator.ReadArray() { item := iterator.ReadBool() diff --git a/statusboard/v1/date_list_type_json.go b/statusboard/v1/date_list_type_json.go index ace8310b8..e1d95fcea 100644 --- a/statusboard/v1/date_list_type_json.go +++ b/statusboard/v1/date_list_type_json.go @@ -31,7 +31,7 @@ import ( // the given writer. func MarshalDateList(list []time.Time, writer io.Writer) error { stream := helpers.NewStream(writer) - writeDateList(list, stream) + WriteDateList(list, stream) err := stream.Flush() if err != nil { return err @@ -39,9 +39,9 @@ func MarshalDateList(list []time.Time, writer io.Writer) error { return stream.Error } -// writeDateList writes a list of value of the 'date' type to +// WriteDateList writes a list of value of the 'date' type to // the given stream. -func writeDateList(list []time.Time, stream *jsoniter.Stream) { +func WriteDateList(list []time.Time, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -59,14 +59,14 @@ func UnmarshalDateList(source interface{}) (items []time.Time, err error) { if err != nil { return } - items = readDateList(iterator) + items = ReadDateList(iterator) err = iterator.Error return } -// readDateList reads list of values of the ”date' type from +// ReadDateList reads list of values of the ”date' type from // the given iterator. -func readDateList(iterator *jsoniter.Iterator) []time.Time { +func ReadDateList(iterator *jsoniter.Iterator) []time.Time { list := []time.Time{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/statusboard/v1/error_list_type_json.go b/statusboard/v1/error_list_type_json.go index ec2195547..afb825552 100644 --- a/statusboard/v1/error_list_type_json.go +++ b/statusboard/v1/error_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalErrorList(list []*Error, writer io.Writer) error { stream := helpers.NewStream(writer) - writeErrorList(list, stream) + WriteErrorList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalErrorList(list []*Error, writer io.Writer) error { return stream.Error } -// writeErrorList writes a list of value of the 'error' type to +// WriteErrorList writes a list of value of the 'error' type to // the given stream. -func writeErrorList(list []*Error, stream *jsoniter.Stream) { +func WriteErrorList(list []*Error, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeError(value, stream) + WriteError(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalErrorList(source interface{}) (items []*Error, err error) { if err != nil { return } - items = readErrorList(iterator) + items = ReadErrorList(iterator) err = iterator.Error return } -// readErrorList reads list of values of the ”error' type from +// ReadErrorList reads list of values of the ”error' type from // the given iterator. -func readErrorList(iterator *jsoniter.Iterator) []*Error { +func ReadErrorList(iterator *jsoniter.Iterator) []*Error { list := []*Error{} for iterator.ReadArray() { - item := readError(iterator) + item := ReadError(iterator) list = append(list, item) } return list diff --git a/statusboard/v1/error_type.go b/statusboard/v1/error_type.go index 4809474dd..2ad1c0c21 100644 --- a/statusboard/v1/error_type.go +++ b/statusboard/v1/error_type.go @@ -53,7 +53,7 @@ func (o *Error) Kind() string { return ErrorKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Error) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -198,6 +198,29 @@ func (l *ErrorList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ErrorList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ErrorList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ErrorList) SetItems(items []*Error) { + l.items = items +} + +// Items returns the items of the list. +func (l *ErrorList) Items() []*Error { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ErrorList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/statusboard/v1/error_type_json.go b/statusboard/v1/error_type_json.go index 010eb2ffd..a2a2dc91e 100644 --- a/statusboard/v1/error_type_json.go +++ b/statusboard/v1/error_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalError writes a value of the 'error' type to the given writer. func MarshalError(object *Error, writer io.Writer) error { stream := helpers.NewStream(writer) - writeError(object, stream) + WriteError(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalError(object *Error, writer io.Writer) error { return stream.Error } -// writeError writes a value of the 'error' type to the given stream. -func writeError(object *Error, stream *jsoniter.Stream) { +// WriteError writes a value of the 'error' type to the given stream. +func WriteError(object *Error, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -92,13 +92,13 @@ func UnmarshalError(source interface{}) (object *Error, err error) { if err != nil { return } - object = readError(iterator) + object = ReadError(iterator) err = iterator.Error return } -// readError reads a value of the 'error' type from the given iterator. -func readError(iterator *jsoniter.Iterator) *Error { +// ReadError reads a value of the 'error' type from the given iterator. +func ReadError(iterator *jsoniter.Iterator) *Error { object := &Error{} for { field := iterator.ReadObject() diff --git a/statusboard/v1/errors_resource_json.go b/statusboard/v1/errors_resource_json.go index 3e4d01fa8..634aefae9 100644 --- a/statusboard/v1/errors_resource_json.go +++ b/statusboard/v1/errors_resource_json.go @@ -49,7 +49,7 @@ func readErrorsListResponse(response *ErrorsListResponse, reader io.Reader) erro value := iterator.ReadInt() response.total = &value case "items": - items := readErrorList(iterator) + items := ReadErrorList(iterator) response.items = &ErrorList{ items: items, } diff --git a/statusboard/v1/float_list_type_json.go b/statusboard/v1/float_list_type_json.go index a2d71b1e4..21ddbe356 100644 --- a/statusboard/v1/float_list_type_json.go +++ b/statusboard/v1/float_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalFloatList(list []float64, writer io.Writer) error { stream := helpers.NewStream(writer) - writeFloatList(list, stream) + WriteFloatList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalFloatList(list []float64, writer io.Writer) error { return stream.Error } -// writeFloatList writes a list of value of the 'float' type to +// WriteFloatList writes a list of value of the 'float' type to // the given stream. -func writeFloatList(list []float64, stream *jsoniter.Stream) { +func WriteFloatList(list []float64, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalFloatList(source interface{}) (items []float64, err error) { if err != nil { return } - items = readFloatList(iterator) + items = ReadFloatList(iterator) err = iterator.Error return } -// readFloatList reads list of values of the ”float' type from +// ReadFloatList reads list of values of the ”float' type from // the given iterator. -func readFloatList(iterator *jsoniter.Iterator) []float64 { +func ReadFloatList(iterator *jsoniter.Iterator) []float64 { list := []float64{} for iterator.ReadArray() { item := iterator.ReadFloat64() diff --git a/statusboard/v1/integer_list_type_json.go b/statusboard/v1/integer_list_type_json.go index 1d49b91ca..ae32e7cfc 100644 --- a/statusboard/v1/integer_list_type_json.go +++ b/statusboard/v1/integer_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalIntegerList(list []int, writer io.Writer) error { stream := helpers.NewStream(writer) - writeIntegerList(list, stream) + WriteIntegerList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalIntegerList(list []int, writer io.Writer) error { return stream.Error } -// writeIntegerList writes a list of value of the 'integer' type to +// WriteIntegerList writes a list of value of the 'integer' type to // the given stream. -func writeIntegerList(list []int, stream *jsoniter.Stream) { +func WriteIntegerList(list []int, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalIntegerList(source interface{}) (items []int, err error) { if err != nil { return } - items = readIntegerList(iterator) + items = ReadIntegerList(iterator) err = iterator.Error return } -// readIntegerList reads list of values of the ”integer' type from +// ReadIntegerList reads list of values of the ”integer' type from // the given iterator. -func readIntegerList(iterator *jsoniter.Iterator) []int { +func ReadIntegerList(iterator *jsoniter.Iterator) []int { list := []int{} for iterator.ReadArray() { item := iterator.ReadInt() diff --git a/statusboard/v1/interface_list_type_json.go b/statusboard/v1/interface_list_type_json.go index 238aad9d1..f811ec4f6 100644 --- a/statusboard/v1/interface_list_type_json.go +++ b/statusboard/v1/interface_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalInterfaceList(list []interface{}, writer io.Writer) error { stream := helpers.NewStream(writer) - writeInterfaceList(list, stream) + WriteInterfaceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalInterfaceList(list []interface{}, writer io.Writer) error { return stream.Error } -// writeInterfaceList writes a list of value of the 'interface' type to +// WriteInterfaceList writes a list of value of the 'interface' type to // the given stream. -func writeInterfaceList(list []interface{}, stream *jsoniter.Stream) { +func WriteInterfaceList(list []interface{}, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalInterfaceList(source interface{}) (items []interface{}, err error) if err != nil { return } - items = readInterfaceList(iterator) + items = ReadInterfaceList(iterator) err = iterator.Error return } -// readInterfaceList reads list of values of the ”interface' type from +// ReadInterfaceList reads list of values of the ”interface' type from // the given iterator. -func readInterfaceList(iterator *jsoniter.Iterator) []interface{} { +func ReadInterfaceList(iterator *jsoniter.Iterator) []interface{} { list := []interface{}{} for iterator.ReadArray() { var item interface{} diff --git a/statusboard/v1/long_list_type_json.go b/statusboard/v1/long_list_type_json.go index b69ea79a6..e5a6967c3 100644 --- a/statusboard/v1/long_list_type_json.go +++ b/statusboard/v1/long_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalLongList(list []int64, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLongList(list, stream) + WriteLongList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalLongList(list []int64, writer io.Writer) error { return stream.Error } -// writeLongList writes a list of value of the 'long' type to +// WriteLongList writes a list of value of the 'long' type to // the given stream. -func writeLongList(list []int64, stream *jsoniter.Stream) { +func WriteLongList(list []int64, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalLongList(source interface{}) (items []int64, err error) { if err != nil { return } - items = readLongList(iterator) + items = ReadLongList(iterator) err = iterator.Error return } -// readLongList reads list of values of the ”long' type from +// ReadLongList reads list of values of the ”long' type from // the given iterator. -func readLongList(iterator *jsoniter.Iterator) []int64 { +func ReadLongList(iterator *jsoniter.Iterator) []int64 { list := []int64{} for iterator.ReadArray() { item := iterator.ReadInt64() diff --git a/statusboard/v1/owner_list_type_json.go b/statusboard/v1/owner_list_type_json.go index 342ca9753..8062e894b 100644 --- a/statusboard/v1/owner_list_type_json.go +++ b/statusboard/v1/owner_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalOwnerList(list []*Owner, writer io.Writer) error { stream := helpers.NewStream(writer) - writeOwnerList(list, stream) + WriteOwnerList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalOwnerList(list []*Owner, writer io.Writer) error { return stream.Error } -// writeOwnerList writes a list of value of the 'owner' type to +// WriteOwnerList writes a list of value of the 'owner' type to // the given stream. -func writeOwnerList(list []*Owner, stream *jsoniter.Stream) { +func WriteOwnerList(list []*Owner, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeOwner(value, stream) + WriteOwner(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalOwnerList(source interface{}) (items []*Owner, err error) { if err != nil { return } - items = readOwnerList(iterator) + items = ReadOwnerList(iterator) err = iterator.Error return } -// readOwnerList reads list of values of the ”owner' type from +// ReadOwnerList reads list of values of the ”owner' type from // the given iterator. -func readOwnerList(iterator *jsoniter.Iterator) []*Owner { +func ReadOwnerList(iterator *jsoniter.Iterator) []*Owner { list := []*Owner{} for iterator.ReadArray() { - item := readOwner(iterator) + item := ReadOwner(iterator) list = append(list, item) } return list diff --git a/statusboard/v1/owner_type.go b/statusboard/v1/owner_type.go index 4ca6e933f..e08d74b29 100644 --- a/statusboard/v1/owner_type.go +++ b/statusboard/v1/owner_type.go @@ -53,7 +53,7 @@ func (o *Owner) Kind() string { return OwnerKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Owner) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -206,6 +206,29 @@ func (l *OwnerList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *OwnerList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *OwnerList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *OwnerList) SetItems(items []*Owner) { + l.items = items +} + +// Items returns the items of the list. +func (l *OwnerList) Items() []*Owner { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *OwnerList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/statusboard/v1/owner_type_json.go b/statusboard/v1/owner_type_json.go index c179ad65c..f17b147b1 100644 --- a/statusboard/v1/owner_type_json.go +++ b/statusboard/v1/owner_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalOwner writes a value of the 'owner' type to the given writer. func MarshalOwner(object *Owner, writer io.Writer) error { stream := helpers.NewStream(writer) - writeOwner(object, stream) + WriteOwner(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalOwner(object *Owner, writer io.Writer) error { return stream.Error } -// writeOwner writes a value of the 'owner' type to the given stream. -func writeOwner(object *Owner, stream *jsoniter.Stream) { +// WriteOwner writes a value of the 'owner' type to the given stream. +func WriteOwner(object *Owner, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -92,13 +92,13 @@ func UnmarshalOwner(source interface{}) (object *Owner, err error) { if err != nil { return } - object = readOwner(iterator) + object = ReadOwner(iterator) err = iterator.Error return } -// readOwner reads a value of the 'owner' type from the given iterator. -func readOwner(iterator *jsoniter.Iterator) *Owner { +// ReadOwner reads a value of the 'owner' type from the given iterator. +func ReadOwner(iterator *jsoniter.Iterator) *Owner { object := &Owner{} for { field := iterator.ReadObject() diff --git a/statusboard/v1/peer_dependencies_resource_json.go b/statusboard/v1/peer_dependencies_resource_json.go index ec8a13955..eb88ec677 100644 --- a/statusboard/v1/peer_dependencies_resource_json.go +++ b/statusboard/v1/peer_dependencies_resource_json.go @@ -57,7 +57,7 @@ func readPeerDependenciesListResponse(response *PeerDependenciesListResponse, re value := iterator.ReadInt() response.total = &value case "items": - items := readPeerDependencyList(iterator) + items := ReadPeerDependencyList(iterator) response.items = &PeerDependencyList{ items: items, } diff --git a/statusboard/v1/peer_dependency_list_type_json.go b/statusboard/v1/peer_dependency_list_type_json.go index 7a653fc77..3910e7fca 100644 --- a/statusboard/v1/peer_dependency_list_type_json.go +++ b/statusboard/v1/peer_dependency_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalPeerDependencyList(list []*PeerDependency, writer io.Writer) error { stream := helpers.NewStream(writer) - writePeerDependencyList(list, stream) + WritePeerDependencyList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalPeerDependencyList(list []*PeerDependency, writer io.Writer) error { return stream.Error } -// writePeerDependencyList writes a list of value of the 'peer_dependency' type to +// WritePeerDependencyList writes a list of value of the 'peer_dependency' type to // the given stream. -func writePeerDependencyList(list []*PeerDependency, stream *jsoniter.Stream) { +func WritePeerDependencyList(list []*PeerDependency, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writePeerDependency(value, stream) + WritePeerDependency(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalPeerDependencyList(source interface{}) (items []*PeerDependency, e if err != nil { return } - items = readPeerDependencyList(iterator) + items = ReadPeerDependencyList(iterator) err = iterator.Error return } -// readPeerDependencyList reads list of values of the ”peer_dependency' type from +// ReadPeerDependencyList reads list of values of the ”peer_dependency' type from // the given iterator. -func readPeerDependencyList(iterator *jsoniter.Iterator) []*PeerDependency { +func ReadPeerDependencyList(iterator *jsoniter.Iterator) []*PeerDependency { list := []*PeerDependency{} for iterator.ReadArray() { - item := readPeerDependency(iterator) + item := ReadPeerDependency(iterator) list = append(list, item) } return list diff --git a/statusboard/v1/peer_dependency_type.go b/statusboard/v1/peer_dependency_type.go index fbad6478a..0b1a7c8e9 100644 --- a/statusboard/v1/peer_dependency_type.go +++ b/statusboard/v1/peer_dependency_type.go @@ -61,7 +61,7 @@ func (o *PeerDependency) Kind() string { return PeerDependencyKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *PeerDependency) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -306,6 +306,29 @@ func (l *PeerDependencyList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *PeerDependencyList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *PeerDependencyList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *PeerDependencyList) SetItems(items []*PeerDependency) { + l.items = items +} + +// Items returns the items of the list. +func (l *PeerDependencyList) Items() []*PeerDependency { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *PeerDependencyList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/statusboard/v1/peer_dependency_type_json.go b/statusboard/v1/peer_dependency_type_json.go index ac237d9db..b3e500037 100644 --- a/statusboard/v1/peer_dependency_type_json.go +++ b/statusboard/v1/peer_dependency_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalPeerDependency writes a value of the 'peer_dependency' type to the given writer. func MarshalPeerDependency(object *PeerDependency, writer io.Writer) error { stream := helpers.NewStream(writer) - writePeerDependency(object, stream) + WritePeerDependency(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalPeerDependency(object *PeerDependency, writer io.Writer) error { return stream.Error } -// writePeerDependency writes a value of the 'peer_dependency' type to the given stream. -func writePeerDependency(object *PeerDependency, stream *jsoniter.Stream) { +// WritePeerDependency writes a value of the 'peer_dependency' type to the given stream. +func WritePeerDependency(object *PeerDependency, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -99,7 +99,7 @@ func writePeerDependency(object *PeerDependency, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("owners") - writeOwnerList(object.owners, stream) + WriteOwnerList(object.owners, stream) count++ } present_ = object.bitmap_&128 != 0 && object.services != nil @@ -108,7 +108,7 @@ func writePeerDependency(object *PeerDependency, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("services") - writeServiceList(object.services, stream) + WriteServiceList(object.services, stream) count++ } present_ = object.bitmap_&256 != 0 @@ -129,13 +129,13 @@ func UnmarshalPeerDependency(source interface{}) (object *PeerDependency, err er if err != nil { return } - object = readPeerDependency(iterator) + object = ReadPeerDependency(iterator) err = iterator.Error return } -// readPeerDependency reads a value of the 'peer_dependency' type from the given iterator. -func readPeerDependency(iterator *jsoniter.Iterator) *PeerDependency { +// ReadPeerDependency reads a value of the 'peer_dependency' type from the given iterator. +func ReadPeerDependency(iterator *jsoniter.Iterator) *PeerDependency { object := &PeerDependency{} for { field := iterator.ReadObject() @@ -172,11 +172,11 @@ func readPeerDependency(iterator *jsoniter.Iterator) *PeerDependency { object.name = value object.bitmap_ |= 32 case "owners": - value := readOwnerList(iterator) + value := ReadOwnerList(iterator) object.owners = value object.bitmap_ |= 64 case "services": - value := readServiceList(iterator) + value := ReadServiceList(iterator) object.services = value object.bitmap_ |= 128 case "updated_at": diff --git a/statusboard/v1/product_list_type_json.go b/statusboard/v1/product_list_type_json.go index 81e886b5d..3163075e1 100644 --- a/statusboard/v1/product_list_type_json.go +++ b/statusboard/v1/product_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalProductList(list []*Product, writer io.Writer) error { stream := helpers.NewStream(writer) - writeProductList(list, stream) + WriteProductList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalProductList(list []*Product, writer io.Writer) error { return stream.Error } -// writeProductList writes a list of value of the 'product' type to +// WriteProductList writes a list of value of the 'product' type to // the given stream. -func writeProductList(list []*Product, stream *jsoniter.Stream) { +func WriteProductList(list []*Product, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeProduct(value, stream) + WriteProduct(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalProductList(source interface{}) (items []*Product, err error) { if err != nil { return } - items = readProductList(iterator) + items = ReadProductList(iterator) err = iterator.Error return } -// readProductList reads list of values of the ”product' type from +// ReadProductList reads list of values of the ”product' type from // the given iterator. -func readProductList(iterator *jsoniter.Iterator) []*Product { +func ReadProductList(iterator *jsoniter.Iterator) []*Product { list := []*Product{} for iterator.ReadArray() { - item := readProduct(iterator) + item := ReadProduct(iterator) list = append(list, item) } return list diff --git a/statusboard/v1/product_type.go b/statusboard/v1/product_type.go index a17a2441b..a49d47ef1 100644 --- a/statusboard/v1/product_type.go +++ b/statusboard/v1/product_type.go @@ -61,7 +61,7 @@ func (o *Product) Kind() string { return ProductKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Product) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -306,6 +306,29 @@ func (l *ProductList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ProductList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ProductList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ProductList) SetItems(items []*Product) { + l.items = items +} + +// Items returns the items of the list. +func (l *ProductList) Items() []*Product { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ProductList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/statusboard/v1/product_type_json.go b/statusboard/v1/product_type_json.go index bfd9dd454..9216053c5 100644 --- a/statusboard/v1/product_type_json.go +++ b/statusboard/v1/product_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalProduct writes a value of the 'product' type to the given writer. func MarshalProduct(object *Product, writer io.Writer) error { stream := helpers.NewStream(writer) - writeProduct(object, stream) + WriteProduct(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalProduct(object *Product, writer io.Writer) error { return stream.Error } -// writeProduct writes a value of the 'product' type to the given stream. -func writeProduct(object *Product, stream *jsoniter.Stream) { +// WriteProduct writes a value of the 'product' type to the given stream. +func WriteProduct(object *Product, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -108,7 +108,7 @@ func writeProduct(object *Product, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("owners") - writeOwnerList(object.owners, stream) + WriteOwnerList(object.owners, stream) count++ } present_ = object.bitmap_&256 != 0 @@ -129,13 +129,13 @@ func UnmarshalProduct(source interface{}) (object *Product, err error) { if err != nil { return } - object = readProduct(iterator) + object = ReadProduct(iterator) err = iterator.Error return } -// readProduct reads a value of the 'product' type from the given iterator. -func readProduct(iterator *jsoniter.Iterator) *Product { +// ReadProduct reads a value of the 'product' type from the given iterator. +func ReadProduct(iterator *jsoniter.Iterator) *Product { object := &Product{} for { field := iterator.ReadObject() @@ -176,7 +176,7 @@ func readProduct(iterator *jsoniter.Iterator) *Product { object.name = value object.bitmap_ |= 64 case "owners": - value := readOwnerList(iterator) + value := ReadOwnerList(iterator) object.owners = value object.bitmap_ |= 128 case "updated_at": diff --git a/statusboard/v1/products_resource_json.go b/statusboard/v1/products_resource_json.go index 608f854a1..664706112 100644 --- a/statusboard/v1/products_resource_json.go +++ b/statusboard/v1/products_resource_json.go @@ -57,7 +57,7 @@ func readProductsListResponse(response *ProductsListResponse, reader io.Reader) value := iterator.ReadInt() response.total = &value case "items": - items := readProductList(iterator) + items := ReadProductList(iterator) response.items = &ProductList{ items: items, } diff --git a/statusboard/v1/service_dependencies_resource_json.go b/statusboard/v1/service_dependencies_resource_json.go index 85cc339ee..682cfc393 100644 --- a/statusboard/v1/service_dependencies_resource_json.go +++ b/statusboard/v1/service_dependencies_resource_json.go @@ -57,7 +57,7 @@ func readServiceDependenciesListResponse(response *ServiceDependenciesListRespon value := iterator.ReadInt() response.total = &value case "items": - items := readServiceDependencyList(iterator) + items := ReadServiceDependencyList(iterator) response.items = &ServiceDependencyList{ items: items, } diff --git a/statusboard/v1/service_dependency_list_type_json.go b/statusboard/v1/service_dependency_list_type_json.go index 75b3ff9ff..ede8c4839 100644 --- a/statusboard/v1/service_dependency_list_type_json.go +++ b/statusboard/v1/service_dependency_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalServiceDependencyList(list []*ServiceDependency, writer io.Writer) error { stream := helpers.NewStream(writer) - writeServiceDependencyList(list, stream) + WriteServiceDependencyList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalServiceDependencyList(list []*ServiceDependency, writer io.Writer) e return stream.Error } -// writeServiceDependencyList writes a list of value of the 'service_dependency' type to +// WriteServiceDependencyList writes a list of value of the 'service_dependency' type to // the given stream. -func writeServiceDependencyList(list []*ServiceDependency, stream *jsoniter.Stream) { +func WriteServiceDependencyList(list []*ServiceDependency, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeServiceDependency(value, stream) + WriteServiceDependency(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalServiceDependencyList(source interface{}) (items []*ServiceDepende if err != nil { return } - items = readServiceDependencyList(iterator) + items = ReadServiceDependencyList(iterator) err = iterator.Error return } -// readServiceDependencyList reads list of values of the ”service_dependency' type from +// ReadServiceDependencyList reads list of values of the ”service_dependency' type from // the given iterator. -func readServiceDependencyList(iterator *jsoniter.Iterator) []*ServiceDependency { +func ReadServiceDependencyList(iterator *jsoniter.Iterator) []*ServiceDependency { list := []*ServiceDependency{} for iterator.ReadArray() { - item := readServiceDependency(iterator) + item := ReadServiceDependency(iterator) list = append(list, item) } return list diff --git a/statusboard/v1/service_dependency_type.go b/statusboard/v1/service_dependency_type.go index 4d94c97e4..b927d907d 100644 --- a/statusboard/v1/service_dependency_type.go +++ b/statusboard/v1/service_dependency_type.go @@ -63,7 +63,7 @@ func (o *ServiceDependency) Kind() string { return ServiceDependencyKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *ServiceDependency) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -354,6 +354,29 @@ func (l *ServiceDependencyList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ServiceDependencyList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ServiceDependencyList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ServiceDependencyList) SetItems(items []*ServiceDependency) { + l.items = items +} + +// Items returns the items of the list. +func (l *ServiceDependencyList) Items() []*ServiceDependency { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ServiceDependencyList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/statusboard/v1/service_dependency_type_json.go b/statusboard/v1/service_dependency_type_json.go index 3f6449fa2..3ac93d1a3 100644 --- a/statusboard/v1/service_dependency_type_json.go +++ b/statusboard/v1/service_dependency_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalServiceDependency writes a value of the 'service_dependency' type to the given writer. func MarshalServiceDependency(object *ServiceDependency, writer io.Writer) error { stream := helpers.NewStream(writer) - writeServiceDependency(object, stream) + WriteServiceDependency(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalServiceDependency(object *ServiceDependency, writer io.Writer) error return stream.Error } -// writeServiceDependency writes a value of the 'service_dependency' type to the given stream. -func writeServiceDependency(object *ServiceDependency, stream *jsoniter.Stream) { +// WriteServiceDependency writes a value of the 'service_dependency' type to the given stream. +func WriteServiceDependency(object *ServiceDependency, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -72,7 +72,7 @@ func writeServiceDependency(object *ServiceDependency, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("child_service") - writeService(object.childService, stream) + WriteService(object.childService, stream) count++ } present_ = object.bitmap_&16 != 0 @@ -108,7 +108,7 @@ func writeServiceDependency(object *ServiceDependency, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("owners") - writeOwnerList(object.owners, stream) + WriteOwnerList(object.owners, stream) count++ } present_ = object.bitmap_&256 != 0 && object.parentService != nil @@ -117,7 +117,7 @@ func writeServiceDependency(object *ServiceDependency, stream *jsoniter.Stream) stream.WriteMore() } stream.WriteObjectField("parent_service") - writeService(object.parentService, stream) + WriteService(object.parentService, stream) count++ } present_ = object.bitmap_&512 != 0 @@ -147,13 +147,13 @@ func UnmarshalServiceDependency(source interface{}) (object *ServiceDependency, if err != nil { return } - object = readServiceDependency(iterator) + object = ReadServiceDependency(iterator) err = iterator.Error return } -// readServiceDependency reads a value of the 'service_dependency' type from the given iterator. -func readServiceDependency(iterator *jsoniter.Iterator) *ServiceDependency { +// ReadServiceDependency reads a value of the 'service_dependency' type from the given iterator. +func ReadServiceDependency(iterator *jsoniter.Iterator) *ServiceDependency { object := &ServiceDependency{} for { field := iterator.ReadObject() @@ -173,7 +173,7 @@ func readServiceDependency(iterator *jsoniter.Iterator) *ServiceDependency { object.href = iterator.ReadString() object.bitmap_ |= 4 case "child_service": - value := readService(iterator) + value := ReadService(iterator) object.childService = value object.bitmap_ |= 8 case "created_at": @@ -194,11 +194,11 @@ func readServiceDependency(iterator *jsoniter.Iterator) *ServiceDependency { object.name = value object.bitmap_ |= 64 case "owners": - value := readOwnerList(iterator) + value := ReadOwnerList(iterator) object.owners = value object.bitmap_ |= 128 case "parent_service": - value := readService(iterator) + value := ReadService(iterator) object.parentService = value object.bitmap_ |= 256 case "type": diff --git a/statusboard/v1/service_info_list_type_json.go b/statusboard/v1/service_info_list_type_json.go index 78b4a7664..cda640a1a 100644 --- a/statusboard/v1/service_info_list_type_json.go +++ b/statusboard/v1/service_info_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalServiceInfoList(list []*ServiceInfo, writer io.Writer) error { stream := helpers.NewStream(writer) - writeServiceInfoList(list, stream) + WriteServiceInfoList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalServiceInfoList(list []*ServiceInfo, writer io.Writer) error { return stream.Error } -// writeServiceInfoList writes a list of value of the 'service_info' type to +// WriteServiceInfoList writes a list of value of the 'service_info' type to // the given stream. -func writeServiceInfoList(list []*ServiceInfo, stream *jsoniter.Stream) { +func WriteServiceInfoList(list []*ServiceInfo, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeServiceInfo(value, stream) + WriteServiceInfo(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalServiceInfoList(source interface{}) (items []*ServiceInfo, err err if err != nil { return } - items = readServiceInfoList(iterator) + items = ReadServiceInfoList(iterator) err = iterator.Error return } -// readServiceInfoList reads list of values of the ”service_info' type from +// ReadServiceInfoList reads list of values of the ”service_info' type from // the given iterator. -func readServiceInfoList(iterator *jsoniter.Iterator) []*ServiceInfo { +func ReadServiceInfoList(iterator *jsoniter.Iterator) []*ServiceInfo { list := []*ServiceInfo{} for iterator.ReadArray() { - item := readServiceInfo(iterator) + item := ReadServiceInfo(iterator) list = append(list, item) } return list diff --git a/statusboard/v1/service_info_type.go b/statusboard/v1/service_info_type.go index 80033bf6e..2af535237 100644 --- a/statusboard/v1/service_info_type.go +++ b/statusboard/v1/service_info_type.go @@ -106,6 +106,29 @@ func (l *ServiceInfoList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ServiceInfoList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ServiceInfoList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ServiceInfoList) SetItems(items []*ServiceInfo) { + l.items = items +} + +// Items returns the items of the list. +func (l *ServiceInfoList) Items() []*ServiceInfo { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ServiceInfoList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/statusboard/v1/service_info_type_json.go b/statusboard/v1/service_info_type_json.go index e4bbaf42d..ffafdef50 100644 --- a/statusboard/v1/service_info_type_json.go +++ b/statusboard/v1/service_info_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalServiceInfo writes a value of the 'service_info' type to the given writer. func MarshalServiceInfo(object *ServiceInfo, writer io.Writer) error { stream := helpers.NewStream(writer) - writeServiceInfo(object, stream) + WriteServiceInfo(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalServiceInfo(object *ServiceInfo, writer io.Writer) error { return stream.Error } -// writeServiceInfo writes a value of the 'service_info' type to the given stream. -func writeServiceInfo(object *ServiceInfo, stream *jsoniter.Stream) { +// WriteServiceInfo writes a value of the 'service_info' type to the given stream. +func WriteServiceInfo(object *ServiceInfo, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() var present_ bool @@ -69,13 +69,13 @@ func UnmarshalServiceInfo(source interface{}) (object *ServiceInfo, err error) { if err != nil { return } - object = readServiceInfo(iterator) + object = ReadServiceInfo(iterator) err = iterator.Error return } -// readServiceInfo reads a value of the 'service_info' type from the given iterator. -func readServiceInfo(iterator *jsoniter.Iterator) *ServiceInfo { +// ReadServiceInfo reads a value of the 'service_info' type from the given iterator. +func ReadServiceInfo(iterator *jsoniter.Iterator) *ServiceInfo { object := &ServiceInfo{} for { field := iterator.ReadObject() diff --git a/statusboard/v1/service_list_type_json.go b/statusboard/v1/service_list_type_json.go index 4838fd72c..0ebdf5f4d 100644 --- a/statusboard/v1/service_list_type_json.go +++ b/statusboard/v1/service_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalServiceList(list []*Service, writer io.Writer) error { stream := helpers.NewStream(writer) - writeServiceList(list, stream) + WriteServiceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalServiceList(list []*Service, writer io.Writer) error { return stream.Error } -// writeServiceList writes a list of value of the 'service' type to +// WriteServiceList writes a list of value of the 'service' type to // the given stream. -func writeServiceList(list []*Service, stream *jsoniter.Stream) { +func WriteServiceList(list []*Service, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeService(value, stream) + WriteService(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalServiceList(source interface{}) (items []*Service, err error) { if err != nil { return } - items = readServiceList(iterator) + items = ReadServiceList(iterator) err = iterator.Error return } -// readServiceList reads list of values of the ”service' type from +// ReadServiceList reads list of values of the ”service' type from // the given iterator. -func readServiceList(iterator *jsoniter.Iterator) []*Service { +func ReadServiceList(iterator *jsoniter.Iterator) []*Service { list := []*Service{} for iterator.ReadArray() { - item := readService(iterator) + item := ReadService(iterator) list = append(list, item) } return list diff --git a/statusboard/v1/service_type.go b/statusboard/v1/service_type.go index a5fd60ed6..13b62f825 100644 --- a/statusboard/v1/service_type.go +++ b/statusboard/v1/service_type.go @@ -69,7 +69,7 @@ func (o *Service) Kind() string { return ServiceKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Service) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -458,6 +458,29 @@ func (l *ServiceList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ServiceList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ServiceList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ServiceList) SetItems(items []*Service) { + l.items = items +} + +// Items returns the items of the list. +func (l *ServiceList) Items() []*Service { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ServiceList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/statusboard/v1/service_type_json.go b/statusboard/v1/service_type_json.go index 708871bd9..89db1792e 100644 --- a/statusboard/v1/service_type_json.go +++ b/statusboard/v1/service_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalService writes a value of the 'service' type to the given writer. func MarshalService(object *Service, writer io.Writer) error { stream := helpers.NewStream(writer) - writeService(object, stream) + WriteService(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalService(object *Service, writer io.Writer) error { return stream.Error } -// writeService writes a value of the 'service' type to the given stream. -func writeService(object *Service, stream *jsoniter.Stream) { +// WriteService writes a value of the 'service' type to the given stream. +func WriteService(object *Service, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -72,7 +72,7 @@ func writeService(object *Service, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("application") - writeApplication(object.application, stream) + WriteApplication(object.application, stream) count++ } present_ = object.bitmap_&16 != 0 @@ -135,7 +135,7 @@ func writeService(object *Service, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("owners") - writeOwnerList(object.owners, stream) + WriteOwnerList(object.owners, stream) count++ } present_ = object.bitmap_&2048 != 0 @@ -201,13 +201,13 @@ func UnmarshalService(source interface{}) (object *Service, err error) { if err != nil { return } - object = readService(iterator) + object = ReadService(iterator) err = iterator.Error return } -// readService reads a value of the 'service' type from the given iterator. -func readService(iterator *jsoniter.Iterator) *Service { +// ReadService reads a value of the 'service' type from the given iterator. +func ReadService(iterator *jsoniter.Iterator) *Service { object := &Service{} for { field := iterator.ReadObject() @@ -227,7 +227,7 @@ func readService(iterator *jsoniter.Iterator) *Service { object.href = iterator.ReadString() object.bitmap_ |= 4 case "application": - value := readApplication(iterator) + value := ReadApplication(iterator) object.application = value object.bitmap_ |= 8 case "created_at": @@ -264,7 +264,7 @@ func readService(iterator *jsoniter.Iterator) *Service { object.name = value object.bitmap_ |= 512 case "owners": - value := readOwnerList(iterator) + value := ReadOwnerList(iterator) object.owners = value object.bitmap_ |= 1024 case "private": diff --git a/statusboard/v1/services_resource_json.go b/statusboard/v1/services_resource_json.go index 83c58dcbf..58ff2a7ad 100644 --- a/statusboard/v1/services_resource_json.go +++ b/statusboard/v1/services_resource_json.go @@ -57,7 +57,7 @@ func readServicesListResponse(response *ServicesListResponse, reader io.Reader) value := iterator.ReadInt() response.total = &value case "items": - items := readServiceList(iterator) + items := ReadServiceList(iterator) response.items = &ServiceList{ items: items, } diff --git a/statusboard/v1/status_list_type_json.go b/statusboard/v1/status_list_type_json.go index a1418edd6..f014860d4 100644 --- a/statusboard/v1/status_list_type_json.go +++ b/statusboard/v1/status_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalStatusList(list []*Status, writer io.Writer) error { stream := helpers.NewStream(writer) - writeStatusList(list, stream) + WriteStatusList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalStatusList(list []*Status, writer io.Writer) error { return stream.Error } -// writeStatusList writes a list of value of the 'status' type to +// WriteStatusList writes a list of value of the 'status' type to // the given stream. -func writeStatusList(list []*Status, stream *jsoniter.Stream) { +func WriteStatusList(list []*Status, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeStatus(value, stream) + WriteStatus(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalStatusList(source interface{}) (items []*Status, err error) { if err != nil { return } - items = readStatusList(iterator) + items = ReadStatusList(iterator) err = iterator.Error return } -// readStatusList reads list of values of the ”status' type from +// ReadStatusList reads list of values of the ”status' type from // the given iterator. -func readStatusList(iterator *jsoniter.Iterator) []*Status { +func ReadStatusList(iterator *jsoniter.Iterator) []*Status { list := []*Status{} for iterator.ReadArray() { - item := readStatus(iterator) + item := ReadStatus(iterator) list = append(list, item) } return list diff --git a/statusboard/v1/status_type.go b/statusboard/v1/status_type.go index 782dd12ab..72812dd28 100644 --- a/statusboard/v1/status_type.go +++ b/statusboard/v1/status_type.go @@ -61,7 +61,7 @@ func (o *Status) Kind() string { return StatusKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Status) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -306,6 +306,29 @@ func (l *StatusList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *StatusList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *StatusList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *StatusList) SetItems(items []*Status) { + l.items = items +} + +// Items returns the items of the list. +func (l *StatusList) Items() []*Status { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *StatusList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/statusboard/v1/status_type_json.go b/statusboard/v1/status_type_json.go index 864d0dab1..af700290e 100644 --- a/statusboard/v1/status_type_json.go +++ b/statusboard/v1/status_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalStatus writes a value of the 'status' type to the given writer. func MarshalStatus(object *Status, writer io.Writer) error { stream := helpers.NewStream(writer) - writeStatus(object, stream) + WriteStatus(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalStatus(object *Status, writer io.Writer) error { return stream.Error } -// writeStatus writes a value of the 'status' type to the given stream. -func writeStatus(object *Status, stream *jsoniter.Stream) { +// WriteStatus writes a value of the 'status' type to the given stream. +func WriteStatus(object *Status, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -90,7 +90,7 @@ func writeStatus(object *Status, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("service") - writeService(object.service, stream) + WriteService(object.service, stream) count++ } present_ = object.bitmap_&64 != 0 && object.serviceInfo != nil @@ -99,7 +99,7 @@ func writeStatus(object *Status, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("service_info") - writeServiceInfo(object.serviceInfo, stream) + WriteServiceInfo(object.serviceInfo, stream) count++ } present_ = object.bitmap_&128 != 0 @@ -129,13 +129,13 @@ func UnmarshalStatus(source interface{}) (object *Status, err error) { if err != nil { return } - object = readStatus(iterator) + object = ReadStatus(iterator) err = iterator.Error return } -// readStatus reads a value of the 'status' type from the given iterator. -func readStatus(iterator *jsoniter.Iterator) *Status { +// ReadStatus reads a value of the 'status' type from the given iterator. +func ReadStatus(iterator *jsoniter.Iterator) *Status { object := &Status{} for { field := iterator.ReadObject() @@ -168,11 +168,11 @@ func readStatus(iterator *jsoniter.Iterator) *Status { object.metadata = value object.bitmap_ |= 16 case "service": - value := readService(iterator) + value := ReadService(iterator) object.service = value object.bitmap_ |= 32 case "service_info": - value := readServiceInfo(iterator) + value := ReadServiceInfo(iterator) object.serviceInfo = value object.bitmap_ |= 64 case "status": diff --git a/statusboard/v1/status_update_list_type_json.go b/statusboard/v1/status_update_list_type_json.go index 9c13aa42b..5ee2c3b1c 100644 --- a/statusboard/v1/status_update_list_type_json.go +++ b/statusboard/v1/status_update_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalStatusUpdateList(list []*StatusUpdate, writer io.Writer) error { stream := helpers.NewStream(writer) - writeStatusUpdateList(list, stream) + WriteStatusUpdateList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalStatusUpdateList(list []*StatusUpdate, writer io.Writer) error { return stream.Error } -// writeStatusUpdateList writes a list of value of the 'status_update' type to +// WriteStatusUpdateList writes a list of value of the 'status_update' type to // the given stream. -func writeStatusUpdateList(list []*StatusUpdate, stream *jsoniter.Stream) { +func WriteStatusUpdateList(list []*StatusUpdate, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeStatusUpdate(value, stream) + WriteStatusUpdate(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalStatusUpdateList(source interface{}) (items []*StatusUpdate, err e if err != nil { return } - items = readStatusUpdateList(iterator) + items = ReadStatusUpdateList(iterator) err = iterator.Error return } -// readStatusUpdateList reads list of values of the ”status_update' type from +// ReadStatusUpdateList reads list of values of the ”status_update' type from // the given iterator. -func readStatusUpdateList(iterator *jsoniter.Iterator) []*StatusUpdate { +func ReadStatusUpdateList(iterator *jsoniter.Iterator) []*StatusUpdate { list := []*StatusUpdate{} for iterator.ReadArray() { - item := readStatusUpdate(iterator) + item := ReadStatusUpdate(iterator) list = append(list, item) } return list diff --git a/statusboard/v1/status_update_type.go b/statusboard/v1/status_update_type.go index db161df8e..c1cdc64ba 100644 --- a/statusboard/v1/status_update_type.go +++ b/statusboard/v1/status_update_type.go @@ -59,7 +59,7 @@ func (o *StatusUpdate) Kind() string { return StatusUpdateKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *StatusUpdate) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -304,6 +304,29 @@ func (l *StatusUpdateList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *StatusUpdateList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *StatusUpdateList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *StatusUpdateList) SetItems(items []*StatusUpdate) { + l.items = items +} + +// Items returns the items of the list. +func (l *StatusUpdateList) Items() []*StatusUpdate { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *StatusUpdateList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/statusboard/v1/status_update_type_json.go b/statusboard/v1/status_update_type_json.go index d719ff45d..cbfb0e403 100644 --- a/statusboard/v1/status_update_type_json.go +++ b/statusboard/v1/status_update_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalStatusUpdate writes a value of the 'status_update' type to the given writer. func MarshalStatusUpdate(object *StatusUpdate, writer io.Writer) error { stream := helpers.NewStream(writer) - writeStatusUpdate(object, stream) + WriteStatusUpdate(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalStatusUpdate(object *StatusUpdate, writer io.Writer) error { return stream.Error } -// writeStatusUpdate writes a value of the 'status_update' type to the given stream. -func writeStatusUpdate(object *StatusUpdate, stream *jsoniter.Stream) { +// WriteStatusUpdate writes a value of the 'status_update' type to the given stream. +func WriteStatusUpdate(object *StatusUpdate, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -90,7 +90,7 @@ func writeStatusUpdate(object *StatusUpdate, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("service") - writeService(object.service, stream) + WriteService(object.service, stream) count++ } present_ = object.bitmap_&64 != 0 && object.serviceInfo != nil @@ -99,7 +99,7 @@ func writeStatusUpdate(object *StatusUpdate, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("service_info") - writeServiceInfo(object.serviceInfo, stream) + WriteServiceInfo(object.serviceInfo, stream) count++ } present_ = object.bitmap_&128 != 0 @@ -129,13 +129,13 @@ func UnmarshalStatusUpdate(source interface{}) (object *StatusUpdate, err error) if err != nil { return } - object = readStatusUpdate(iterator) + object = ReadStatusUpdate(iterator) err = iterator.Error return } -// readStatusUpdate reads a value of the 'status_update' type from the given iterator. -func readStatusUpdate(iterator *jsoniter.Iterator) *StatusUpdate { +// ReadStatusUpdate reads a value of the 'status_update' type from the given iterator. +func ReadStatusUpdate(iterator *jsoniter.Iterator) *StatusUpdate { object := &StatusUpdate{} for { field := iterator.ReadObject() @@ -168,11 +168,11 @@ func readStatusUpdate(iterator *jsoniter.Iterator) *StatusUpdate { object.metadata = value object.bitmap_ |= 16 case "service": - value := readService(iterator) + value := ReadService(iterator) object.service = value object.bitmap_ |= 32 case "service_info": - value := readServiceInfo(iterator) + value := ReadServiceInfo(iterator) object.serviceInfo = value object.bitmap_ |= 64 case "status": diff --git a/statusboard/v1/status_updates_resource_json.go b/statusboard/v1/status_updates_resource_json.go index 010ed3db2..13ebfd325 100644 --- a/statusboard/v1/status_updates_resource_json.go +++ b/statusboard/v1/status_updates_resource_json.go @@ -57,7 +57,7 @@ func readStatusUpdatesListResponse(response *StatusUpdatesListResponse, reader i value := iterator.ReadInt() response.total = &value case "items": - items := readStatusList(iterator) + items := ReadStatusList(iterator) response.items = &StatusList{ items: items, } diff --git a/statusboard/v1/statuses_resource_json.go b/statusboard/v1/statuses_resource_json.go index 8d9d2dfd8..b1c109b81 100644 --- a/statusboard/v1/statuses_resource_json.go +++ b/statusboard/v1/statuses_resource_json.go @@ -57,7 +57,7 @@ func readStatusesListResponse(response *StatusesListResponse, reader io.Reader) value := iterator.ReadInt() response.total = &value case "items": - items := readStatusList(iterator) + items := ReadStatusList(iterator) response.items = &StatusList{ items: items, } diff --git a/statusboard/v1/string_list_type_json.go b/statusboard/v1/string_list_type_json.go index dec5b3ca4..a7c9ff82c 100644 --- a/statusboard/v1/string_list_type_json.go +++ b/statusboard/v1/string_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalStringList(list []string, writer io.Writer) error { stream := helpers.NewStream(writer) - writeStringList(list, stream) + WriteStringList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalStringList(list []string, writer io.Writer) error { return stream.Error } -// writeStringList writes a list of value of the 'string' type to +// WriteStringList writes a list of value of the 'string' type to // the given stream. -func writeStringList(list []string, stream *jsoniter.Stream) { +func WriteStringList(list []string, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalStringList(source interface{}) (items []string, err error) { if err != nil { return } - items = readStringList(iterator) + items = ReadStringList(iterator) err = iterator.Error return } -// readStringList reads list of values of the ”string' type from +// ReadStringList reads list of values of the ”string' type from // the given iterator. -func readStringList(iterator *jsoniter.Iterator) []string { +func ReadStringList(iterator *jsoniter.Iterator) []string { list := []string{} for iterator.ReadArray() { item := iterator.ReadString() diff --git a/version.go b/version.go index a6de21169..db0b4a471 100644 --- a/version.go +++ b/version.go @@ -18,4 +18,4 @@ limitations under the License. package sdk -const Version = "0.1.451" +const Version = "0.1.452" diff --git a/webrca/v1/attachment_list_type_json.go b/webrca/v1/attachment_list_type_json.go index 1132afa6d..5c5a3b21d 100644 --- a/webrca/v1/attachment_list_type_json.go +++ b/webrca/v1/attachment_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalAttachmentList(list []*Attachment, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAttachmentList(list, stream) + WriteAttachmentList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalAttachmentList(list []*Attachment, writer io.Writer) error { return stream.Error } -// writeAttachmentList writes a list of value of the 'attachment' type to +// WriteAttachmentList writes a list of value of the 'attachment' type to // the given stream. -func writeAttachmentList(list []*Attachment, stream *jsoniter.Stream) { +func WriteAttachmentList(list []*Attachment, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeAttachment(value, stream) + WriteAttachment(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalAttachmentList(source interface{}) (items []*Attachment, err error if err != nil { return } - items = readAttachmentList(iterator) + items = ReadAttachmentList(iterator) err = iterator.Error return } -// readAttachmentList reads list of values of the ”attachment' type from +// ReadAttachmentList reads list of values of the ”attachment' type from // the given iterator. -func readAttachmentList(iterator *jsoniter.Iterator) []*Attachment { +func ReadAttachmentList(iterator *jsoniter.Iterator) []*Attachment { list := []*Attachment{} for iterator.ReadArray() { - item := readAttachment(iterator) + item := ReadAttachment(iterator) list = append(list, item) } return list diff --git a/webrca/v1/attachment_type.go b/webrca/v1/attachment_type.go index 19c20d79e..19cf67a52 100644 --- a/webrca/v1/attachment_type.go +++ b/webrca/v1/attachment_type.go @@ -63,7 +63,7 @@ func (o *Attachment) Kind() string { return AttachmentKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Attachment) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -334,6 +334,29 @@ func (l *AttachmentList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *AttachmentList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *AttachmentList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *AttachmentList) SetItems(items []*Attachment) { + l.items = items +} + +// Items returns the items of the list. +func (l *AttachmentList) Items() []*Attachment { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *AttachmentList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/webrca/v1/attachment_type_json.go b/webrca/v1/attachment_type_json.go index 820789d3f..87c6e6171 100644 --- a/webrca/v1/attachment_type_json.go +++ b/webrca/v1/attachment_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalAttachment writes a value of the 'attachment' type to the given writer. func MarshalAttachment(object *Attachment, writer io.Writer) error { stream := helpers.NewStream(writer) - writeAttachment(object, stream) + WriteAttachment(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalAttachment(object *Attachment, writer io.Writer) error { return stream.Error } -// writeAttachment writes a value of the 'attachment' type to the given stream. -func writeAttachment(object *Attachment, stream *jsoniter.Stream) { +// WriteAttachment writes a value of the 'attachment' type to the given stream. +func WriteAttachment(object *Attachment, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -90,7 +90,7 @@ func writeAttachment(object *Attachment, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("creator") - writeUser(object.creator, stream) + WriteUser(object.creator, stream) count++ } present_ = object.bitmap_&64 != 0 @@ -108,7 +108,7 @@ func writeAttachment(object *Attachment, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("event") - writeEvent(object.event, stream) + WriteEvent(object.event, stream) count++ } present_ = object.bitmap_&256 != 0 @@ -147,13 +147,13 @@ func UnmarshalAttachment(source interface{}) (object *Attachment, err error) { if err != nil { return } - object = readAttachment(iterator) + object = ReadAttachment(iterator) err = iterator.Error return } -// readAttachment reads a value of the 'attachment' type from the given iterator. -func readAttachment(iterator *jsoniter.Iterator) *Attachment { +// ReadAttachment reads a value of the 'attachment' type from the given iterator. +func ReadAttachment(iterator *jsoniter.Iterator) *Attachment { object := &Attachment{} for { field := iterator.ReadObject() @@ -185,7 +185,7 @@ func readAttachment(iterator *jsoniter.Iterator) *Attachment { object.createdAt = value object.bitmap_ |= 16 case "creator": - value := readUser(iterator) + value := ReadUser(iterator) object.creator = value object.bitmap_ |= 32 case "deleted_at": @@ -197,7 +197,7 @@ func readAttachment(iterator *jsoniter.Iterator) *Attachment { object.deletedAt = value object.bitmap_ |= 64 case "event": - value := readEvent(iterator) + value := ReadEvent(iterator) object.event = value object.bitmap_ |= 128 case "file_size": diff --git a/webrca/v1/attachments_resource_json.go b/webrca/v1/attachments_resource_json.go index 68e87c535..a2585c544 100644 --- a/webrca/v1/attachments_resource_json.go +++ b/webrca/v1/attachments_resource_json.go @@ -49,7 +49,7 @@ func readAttachmentsListResponse(response *AttachmentsListResponse, reader io.Re value := iterator.ReadInt() response.total = &value case "items": - items := readAttachmentList(iterator) + items := ReadAttachmentList(iterator) response.items = &AttachmentList{ items: items, } diff --git a/webrca/v1/boolean_list_type_json.go b/webrca/v1/boolean_list_type_json.go index 5a9310d83..fc923acc1 100644 --- a/webrca/v1/boolean_list_type_json.go +++ b/webrca/v1/boolean_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalBooleanList(list []bool, writer io.Writer) error { stream := helpers.NewStream(writer) - writeBooleanList(list, stream) + WriteBooleanList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalBooleanList(list []bool, writer io.Writer) error { return stream.Error } -// writeBooleanList writes a list of value of the 'boolean' type to +// WriteBooleanList writes a list of value of the 'boolean' type to // the given stream. -func writeBooleanList(list []bool, stream *jsoniter.Stream) { +func WriteBooleanList(list []bool, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalBooleanList(source interface{}) (items []bool, err error) { if err != nil { return } - items = readBooleanList(iterator) + items = ReadBooleanList(iterator) err = iterator.Error return } -// readBooleanList reads list of values of the ”boolean' type from +// ReadBooleanList reads list of values of the ”boolean' type from // the given iterator. -func readBooleanList(iterator *jsoniter.Iterator) []bool { +func ReadBooleanList(iterator *jsoniter.Iterator) []bool { list := []bool{} for iterator.ReadArray() { item := iterator.ReadBool() diff --git a/webrca/v1/date_list_type_json.go b/webrca/v1/date_list_type_json.go index 3ae0d4d70..82f5b8530 100644 --- a/webrca/v1/date_list_type_json.go +++ b/webrca/v1/date_list_type_json.go @@ -31,7 +31,7 @@ import ( // the given writer. func MarshalDateList(list []time.Time, writer io.Writer) error { stream := helpers.NewStream(writer) - writeDateList(list, stream) + WriteDateList(list, stream) err := stream.Flush() if err != nil { return err @@ -39,9 +39,9 @@ func MarshalDateList(list []time.Time, writer io.Writer) error { return stream.Error } -// writeDateList writes a list of value of the 'date' type to +// WriteDateList writes a list of value of the 'date' type to // the given stream. -func writeDateList(list []time.Time, stream *jsoniter.Stream) { +func WriteDateList(list []time.Time, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -59,14 +59,14 @@ func UnmarshalDateList(source interface{}) (items []time.Time, err error) { if err != nil { return } - items = readDateList(iterator) + items = ReadDateList(iterator) err = iterator.Error return } -// readDateList reads list of values of the ”date' type from +// ReadDateList reads list of values of the ”date' type from // the given iterator. -func readDateList(iterator *jsoniter.Iterator) []time.Time { +func ReadDateList(iterator *jsoniter.Iterator) []time.Time { list := []time.Time{} for iterator.ReadArray() { text := iterator.ReadString() diff --git a/webrca/v1/error_list_type_json.go b/webrca/v1/error_list_type_json.go index b0017ab5b..ef5243b79 100644 --- a/webrca/v1/error_list_type_json.go +++ b/webrca/v1/error_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalErrorList(list []*Error, writer io.Writer) error { stream := helpers.NewStream(writer) - writeErrorList(list, stream) + WriteErrorList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalErrorList(list []*Error, writer io.Writer) error { return stream.Error } -// writeErrorList writes a list of value of the 'error' type to +// WriteErrorList writes a list of value of the 'error' type to // the given stream. -func writeErrorList(list []*Error, stream *jsoniter.Stream) { +func WriteErrorList(list []*Error, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeError(value, stream) + WriteError(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalErrorList(source interface{}) (items []*Error, err error) { if err != nil { return } - items = readErrorList(iterator) + items = ReadErrorList(iterator) err = iterator.Error return } -// readErrorList reads list of values of the ”error' type from +// ReadErrorList reads list of values of the ”error' type from // the given iterator. -func readErrorList(iterator *jsoniter.Iterator) []*Error { +func ReadErrorList(iterator *jsoniter.Iterator) []*Error { list := []*Error{} for iterator.ReadArray() { - item := readError(iterator) + item := ReadError(iterator) list = append(list, item) } return list diff --git a/webrca/v1/error_type.go b/webrca/v1/error_type.go index 93cb37f92..8a4a5cf98 100644 --- a/webrca/v1/error_type.go +++ b/webrca/v1/error_type.go @@ -53,7 +53,7 @@ func (o *Error) Kind() string { return ErrorKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Error) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -198,6 +198,29 @@ func (l *ErrorList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ErrorList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ErrorList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ErrorList) SetItems(items []*Error) { + l.items = items +} + +// Items returns the items of the list. +func (l *ErrorList) Items() []*Error { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ErrorList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/webrca/v1/error_type_json.go b/webrca/v1/error_type_json.go index 4b2b272f8..f4c7e4b28 100644 --- a/webrca/v1/error_type_json.go +++ b/webrca/v1/error_type_json.go @@ -29,7 +29,7 @@ import ( // MarshalError writes a value of the 'error' type to the given writer. func MarshalError(object *Error, writer io.Writer) error { stream := helpers.NewStream(writer) - writeError(object, stream) + WriteError(object, stream) err := stream.Flush() if err != nil { return err @@ -37,8 +37,8 @@ func MarshalError(object *Error, writer io.Writer) error { return stream.Error } -// writeError writes a value of the 'error' type to the given stream. -func writeError(object *Error, stream *jsoniter.Stream) { +// WriteError writes a value of the 'error' type to the given stream. +func WriteError(object *Error, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -92,13 +92,13 @@ func UnmarshalError(source interface{}) (object *Error, err error) { if err != nil { return } - object = readError(iterator) + object = ReadError(iterator) err = iterator.Error return } -// readError reads a value of the 'error' type from the given iterator. -func readError(iterator *jsoniter.Iterator) *Error { +// ReadError reads a value of the 'error' type from the given iterator. +func ReadError(iterator *jsoniter.Iterator) *Error { object := &Error{} for { field := iterator.ReadObject() diff --git a/webrca/v1/errors_resource_json.go b/webrca/v1/errors_resource_json.go index 169de3bba..9507ae43b 100644 --- a/webrca/v1/errors_resource_json.go +++ b/webrca/v1/errors_resource_json.go @@ -49,7 +49,7 @@ func readErrorsListResponse(response *ErrorsListResponse, reader io.Reader) erro value := iterator.ReadInt() response.total = &value case "items": - items := readErrorList(iterator) + items := ReadErrorList(iterator) response.items = &ErrorList{ items: items, } diff --git a/webrca/v1/escalation_list_type_json.go b/webrca/v1/escalation_list_type_json.go index 2a7f79a11..ca3b8b6ca 100644 --- a/webrca/v1/escalation_list_type_json.go +++ b/webrca/v1/escalation_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalEscalationList(list []*Escalation, writer io.Writer) error { stream := helpers.NewStream(writer) - writeEscalationList(list, stream) + WriteEscalationList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalEscalationList(list []*Escalation, writer io.Writer) error { return stream.Error } -// writeEscalationList writes a list of value of the 'escalation' type to +// WriteEscalationList writes a list of value of the 'escalation' type to // the given stream. -func writeEscalationList(list []*Escalation, stream *jsoniter.Stream) { +func WriteEscalationList(list []*Escalation, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeEscalation(value, stream) + WriteEscalation(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalEscalationList(source interface{}) (items []*Escalation, err error if err != nil { return } - items = readEscalationList(iterator) + items = ReadEscalationList(iterator) err = iterator.Error return } -// readEscalationList reads list of values of the ”escalation' type from +// ReadEscalationList reads list of values of the ”escalation' type from // the given iterator. -func readEscalationList(iterator *jsoniter.Iterator) []*Escalation { +func ReadEscalationList(iterator *jsoniter.Iterator) []*Escalation { list := []*Escalation{} for iterator.ReadArray() { - item := readEscalation(iterator) + item := ReadEscalation(iterator) list = append(list, item) } return list diff --git a/webrca/v1/escalation_type.go b/webrca/v1/escalation_type.go index 82d2c8197..fa5e3e973 100644 --- a/webrca/v1/escalation_type.go +++ b/webrca/v1/escalation_type.go @@ -59,7 +59,7 @@ func (o *Escalation) Kind() string { return EscalationKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Escalation) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -254,6 +254,29 @@ func (l *EscalationList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *EscalationList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *EscalationList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *EscalationList) SetItems(items []*Escalation) { + l.items = items +} + +// Items returns the items of the list. +func (l *EscalationList) Items() []*Escalation { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *EscalationList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/webrca/v1/escalation_type_json.go b/webrca/v1/escalation_type_json.go index 5ae13ae27..330463dd1 100644 --- a/webrca/v1/escalation_type_json.go +++ b/webrca/v1/escalation_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalEscalation writes a value of the 'escalation' type to the given writer. func MarshalEscalation(object *Escalation, writer io.Writer) error { stream := helpers.NewStream(writer) - writeEscalation(object, stream) + WriteEscalation(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalEscalation(object *Escalation, writer io.Writer) error { return stream.Error } -// writeEscalation writes a value of the 'escalation' type to the given stream. -func writeEscalation(object *Escalation, stream *jsoniter.Stream) { +// WriteEscalation writes a value of the 'escalation' type to the given stream. +func WriteEscalation(object *Escalation, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -99,7 +99,7 @@ func writeEscalation(object *Escalation, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("user") - writeUser(object.user, stream) + WriteUser(object.user, stream) } stream.WriteObjectEnd() } @@ -111,13 +111,13 @@ func UnmarshalEscalation(source interface{}) (object *Escalation, err error) { if err != nil { return } - object = readEscalation(iterator) + object = ReadEscalation(iterator) err = iterator.Error return } -// readEscalation reads a value of the 'escalation' type from the given iterator. -func readEscalation(iterator *jsoniter.Iterator) *Escalation { +// ReadEscalation reads a value of the 'escalation' type from the given iterator. +func ReadEscalation(iterator *jsoniter.Iterator) *Escalation { object := &Escalation{} for { field := iterator.ReadObject() @@ -161,7 +161,7 @@ func readEscalation(iterator *jsoniter.Iterator) *Escalation { object.updatedAt = value object.bitmap_ |= 32 case "user": - value := readUser(iterator) + value := ReadUser(iterator) object.user = value object.bitmap_ |= 64 default: diff --git a/webrca/v1/event_list_type_json.go b/webrca/v1/event_list_type_json.go index 43e3c65a6..35becc62a 100644 --- a/webrca/v1/event_list_type_json.go +++ b/webrca/v1/event_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalEventList(list []*Event, writer io.Writer) error { stream := helpers.NewStream(writer) - writeEventList(list, stream) + WriteEventList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalEventList(list []*Event, writer io.Writer) error { return stream.Error } -// writeEventList writes a list of value of the 'event' type to +// WriteEventList writes a list of value of the 'event' type to // the given stream. -func writeEventList(list []*Event, stream *jsoniter.Stream) { +func WriteEventList(list []*Event, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeEvent(value, stream) + WriteEvent(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalEventList(source interface{}) (items []*Event, err error) { if err != nil { return } - items = readEventList(iterator) + items = ReadEventList(iterator) err = iterator.Error return } -// readEventList reads list of values of the ”event' type from +// ReadEventList reads list of values of the ”event' type from // the given iterator. -func readEventList(iterator *jsoniter.Iterator) []*Event { +func ReadEventList(iterator *jsoniter.Iterator) []*Event { list := []*Event{} for iterator.ReadArray() { - item := readEvent(iterator) + item := ReadEvent(iterator) list = append(list, item) } return list diff --git a/webrca/v1/event_type.go b/webrca/v1/event_type.go index 8a40dbb83..c2c72ca30 100644 --- a/webrca/v1/event_type.go +++ b/webrca/v1/event_type.go @@ -68,7 +68,7 @@ func (o *Event) Kind() string { return EventKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Event) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -434,6 +434,29 @@ func (l *EventList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *EventList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *EventList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *EventList) SetItems(items []*Event) { + l.items = items +} + +// Items returns the items of the list. +func (l *EventList) Items() []*Event { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *EventList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/webrca/v1/event_type_json.go b/webrca/v1/event_type_json.go index 5470eebfb..5a0f1f8c1 100644 --- a/webrca/v1/event_type_json.go +++ b/webrca/v1/event_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalEvent writes a value of the 'event' type to the given writer. func MarshalEvent(object *Event, writer io.Writer) error { stream := helpers.NewStream(writer) - writeEvent(object, stream) + WriteEvent(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalEvent(object *Event, writer io.Writer) error { return stream.Error } -// writeEvent writes a value of the 'event' type to the given stream. -func writeEvent(object *Event, stream *jsoniter.Stream) { +// WriteEvent writes a value of the 'event' type to the given stream. +func WriteEvent(object *Event, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -81,7 +81,7 @@ func writeEvent(object *Event, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("creator") - writeUser(object.creator, stream) + WriteUser(object.creator, stream) count++ } present_ = object.bitmap_&32 != 0 @@ -99,7 +99,7 @@ func writeEvent(object *Event, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("escalation") - writeEscalation(object.escalation, stream) + WriteEscalation(object.escalation, stream) count++ } present_ = object.bitmap_&128 != 0 @@ -126,7 +126,7 @@ func writeEvent(object *Event, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("follow_up") - writeFollowUp(object.followUp, stream) + WriteFollowUp(object.followUp, stream) count++ } present_ = object.bitmap_&1024 != 0 && object.followUpChange != nil @@ -135,7 +135,7 @@ func writeEvent(object *Event, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("follow_up_change") - writeFollowUpChange(object.followUpChange, stream) + WriteFollowUpChange(object.followUpChange, stream) count++ } present_ = object.bitmap_&2048 != 0 && object.handoff != nil @@ -144,7 +144,7 @@ func writeEvent(object *Event, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("handoff") - writeHandoff(object.handoff, stream) + WriteHandoff(object.handoff, stream) count++ } present_ = object.bitmap_&4096 != 0 && object.incident != nil @@ -153,7 +153,7 @@ func writeEvent(object *Event, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("incident") - writeIncident(object.incident, stream) + WriteIncident(object.incident, stream) count++ } present_ = object.bitmap_&8192 != 0 @@ -171,7 +171,7 @@ func writeEvent(object *Event, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("status_change") - writeStatusChange(object.statusChange, stream) + WriteStatusChange(object.statusChange, stream) count++ } present_ = object.bitmap_&32768 != 0 @@ -192,13 +192,13 @@ func UnmarshalEvent(source interface{}) (object *Event, err error) { if err != nil { return } - object = readEvent(iterator) + object = ReadEvent(iterator) err = iterator.Error return } -// readEvent reads a value of the 'event' type from the given iterator. -func readEvent(iterator *jsoniter.Iterator) *Event { +// ReadEvent reads a value of the 'event' type from the given iterator. +func ReadEvent(iterator *jsoniter.Iterator) *Event { object := &Event{} for { field := iterator.ReadObject() @@ -226,7 +226,7 @@ func readEvent(iterator *jsoniter.Iterator) *Event { object.createdAt = value object.bitmap_ |= 8 case "creator": - value := readUser(iterator) + value := ReadUser(iterator) object.creator = value object.bitmap_ |= 16 case "deleted_at": @@ -238,7 +238,7 @@ func readEvent(iterator *jsoniter.Iterator) *Event { object.deletedAt = value object.bitmap_ |= 32 case "escalation": - value := readEscalation(iterator) + value := ReadEscalation(iterator) object.escalation = value object.bitmap_ |= 64 case "event_type": @@ -250,19 +250,19 @@ func readEvent(iterator *jsoniter.Iterator) *Event { object.externalReferenceUrl = value object.bitmap_ |= 256 case "follow_up": - value := readFollowUp(iterator) + value := ReadFollowUp(iterator) object.followUp = value object.bitmap_ |= 512 case "follow_up_change": - value := readFollowUpChange(iterator) + value := ReadFollowUpChange(iterator) object.followUpChange = value object.bitmap_ |= 1024 case "handoff": - value := readHandoff(iterator) + value := ReadHandoff(iterator) object.handoff = value object.bitmap_ |= 2048 case "incident": - value := readIncident(iterator) + value := ReadIncident(iterator) object.incident = value object.bitmap_ |= 4096 case "note": @@ -270,7 +270,7 @@ func readEvent(iterator *jsoniter.Iterator) *Event { object.note = value object.bitmap_ |= 8192 case "status_change": - value := readStatusChange(iterator) + value := ReadStatusChange(iterator) object.statusChange = value object.bitmap_ |= 16384 case "updated_at": diff --git a/webrca/v1/events_resource_json.go b/webrca/v1/events_resource_json.go index 155c72dfd..b89b14029 100644 --- a/webrca/v1/events_resource_json.go +++ b/webrca/v1/events_resource_json.go @@ -49,7 +49,7 @@ func readEventsListResponse(response *EventsListResponse, reader io.Reader) erro value := iterator.ReadInt() response.total = &value case "items": - items := readEventList(iterator) + items := ReadEventList(iterator) response.items = &EventList{ items: items, } diff --git a/webrca/v1/float_list_type_json.go b/webrca/v1/float_list_type_json.go index ff6f52263..ca426dc40 100644 --- a/webrca/v1/float_list_type_json.go +++ b/webrca/v1/float_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalFloatList(list []float64, writer io.Writer) error { stream := helpers.NewStream(writer) - writeFloatList(list, stream) + WriteFloatList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalFloatList(list []float64, writer io.Writer) error { return stream.Error } -// writeFloatList writes a list of value of the 'float' type to +// WriteFloatList writes a list of value of the 'float' type to // the given stream. -func writeFloatList(list []float64, stream *jsoniter.Stream) { +func WriteFloatList(list []float64, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalFloatList(source interface{}) (items []float64, err error) { if err != nil { return } - items = readFloatList(iterator) + items = ReadFloatList(iterator) err = iterator.Error return } -// readFloatList reads list of values of the ”float' type from +// ReadFloatList reads list of values of the ”float' type from // the given iterator. -func readFloatList(iterator *jsoniter.Iterator) []float64 { +func ReadFloatList(iterator *jsoniter.Iterator) []float64 { list := []float64{} for iterator.ReadArray() { item := iterator.ReadFloat64() diff --git a/webrca/v1/follow_up_change_list_type_json.go b/webrca/v1/follow_up_change_list_type_json.go index abf9074b3..21d6b7d46 100644 --- a/webrca/v1/follow_up_change_list_type_json.go +++ b/webrca/v1/follow_up_change_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalFollowUpChangeList(list []*FollowUpChange, writer io.Writer) error { stream := helpers.NewStream(writer) - writeFollowUpChangeList(list, stream) + WriteFollowUpChangeList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalFollowUpChangeList(list []*FollowUpChange, writer io.Writer) error { return stream.Error } -// writeFollowUpChangeList writes a list of value of the 'follow_up_change' type to +// WriteFollowUpChangeList writes a list of value of the 'follow_up_change' type to // the given stream. -func writeFollowUpChangeList(list []*FollowUpChange, stream *jsoniter.Stream) { +func WriteFollowUpChangeList(list []*FollowUpChange, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeFollowUpChange(value, stream) + WriteFollowUpChange(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalFollowUpChangeList(source interface{}) (items []*FollowUpChange, e if err != nil { return } - items = readFollowUpChangeList(iterator) + items = ReadFollowUpChangeList(iterator) err = iterator.Error return } -// readFollowUpChangeList reads list of values of the ”follow_up_change' type from +// ReadFollowUpChangeList reads list of values of the ”follow_up_change' type from // the given iterator. -func readFollowUpChangeList(iterator *jsoniter.Iterator) []*FollowUpChange { +func ReadFollowUpChangeList(iterator *jsoniter.Iterator) []*FollowUpChange { list := []*FollowUpChange{} for iterator.ReadArray() { - item := readFollowUpChange(iterator) + item := ReadFollowUpChange(iterator) list = append(list, item) } return list diff --git a/webrca/v1/follow_up_change_type.go b/webrca/v1/follow_up_change_type.go index ab3b87bd5..4a9be4da0 100644 --- a/webrca/v1/follow_up_change_type.go +++ b/webrca/v1/follow_up_change_type.go @@ -60,7 +60,7 @@ func (o *FollowUpChange) Kind() string { return FollowUpChangeKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *FollowUpChange) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -274,6 +274,29 @@ func (l *FollowUpChangeList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *FollowUpChangeList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *FollowUpChangeList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *FollowUpChangeList) SetItems(items []*FollowUpChange) { + l.items = items +} + +// Items returns the items of the list. +func (l *FollowUpChangeList) Items() []*FollowUpChange { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *FollowUpChangeList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/webrca/v1/follow_up_change_type_json.go b/webrca/v1/follow_up_change_type_json.go index 7ee501d34..02a27a3bb 100644 --- a/webrca/v1/follow_up_change_type_json.go +++ b/webrca/v1/follow_up_change_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalFollowUpChange writes a value of the 'follow_up_change' type to the given writer. func MarshalFollowUpChange(object *FollowUpChange, writer io.Writer) error { stream := helpers.NewStream(writer) - writeFollowUpChange(object, stream) + WriteFollowUpChange(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalFollowUpChange(object *FollowUpChange, writer io.Writer) error { return stream.Error } -// writeFollowUpChange writes a value of the 'follow_up_change' type to the given stream. -func writeFollowUpChange(object *FollowUpChange, stream *jsoniter.Stream) { +// WriteFollowUpChange writes a value of the 'follow_up_change' type to the given stream. +func WriteFollowUpChange(object *FollowUpChange, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -90,7 +90,7 @@ func writeFollowUpChange(object *FollowUpChange, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("follow_up") - writeFollowUp(object.followUp, stream) + WriteFollowUp(object.followUp, stream) count++ } present_ = object.bitmap_&64 != 0 @@ -120,13 +120,13 @@ func UnmarshalFollowUpChange(source interface{}) (object *FollowUpChange, err er if err != nil { return } - object = readFollowUpChange(iterator) + object = ReadFollowUpChange(iterator) err = iterator.Error return } -// readFollowUpChange reads a value of the 'follow_up_change' type from the given iterator. -func readFollowUpChange(iterator *jsoniter.Iterator) *FollowUpChange { +// ReadFollowUpChange reads a value of the 'follow_up_change' type from the given iterator. +func ReadFollowUpChange(iterator *jsoniter.Iterator) *FollowUpChange { object := &FollowUpChange{} for { field := iterator.ReadObject() @@ -162,7 +162,7 @@ func readFollowUpChange(iterator *jsoniter.Iterator) *FollowUpChange { object.deletedAt = value object.bitmap_ |= 16 case "follow_up": - value := readFollowUp(iterator) + value := ReadFollowUp(iterator) object.followUp = value object.bitmap_ |= 32 case "status": diff --git a/webrca/v1/follow_up_list_type_json.go b/webrca/v1/follow_up_list_type_json.go index 31175c7ec..98f7449e5 100644 --- a/webrca/v1/follow_up_list_type_json.go +++ b/webrca/v1/follow_up_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalFollowUpList(list []*FollowUp, writer io.Writer) error { stream := helpers.NewStream(writer) - writeFollowUpList(list, stream) + WriteFollowUpList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalFollowUpList(list []*FollowUp, writer io.Writer) error { return stream.Error } -// writeFollowUpList writes a list of value of the 'follow_up' type to +// WriteFollowUpList writes a list of value of the 'follow_up' type to // the given stream. -func writeFollowUpList(list []*FollowUp, stream *jsoniter.Stream) { +func WriteFollowUpList(list []*FollowUp, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeFollowUp(value, stream) + WriteFollowUp(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalFollowUpList(source interface{}) (items []*FollowUp, err error) { if err != nil { return } - items = readFollowUpList(iterator) + items = ReadFollowUpList(iterator) err = iterator.Error return } -// readFollowUpList reads list of values of the ”follow_up' type from +// ReadFollowUpList reads list of values of the ”follow_up' type from // the given iterator. -func readFollowUpList(iterator *jsoniter.Iterator) []*FollowUp { +func ReadFollowUpList(iterator *jsoniter.Iterator) []*FollowUp { list := []*FollowUp{} for iterator.ReadArray() { - item := readFollowUp(iterator) + item := ReadFollowUp(iterator) list = append(list, item) } return list diff --git a/webrca/v1/follow_up_type.go b/webrca/v1/follow_up_type.go index 5cc512554..e1b23cf47 100644 --- a/webrca/v1/follow_up_type.go +++ b/webrca/v1/follow_up_type.go @@ -68,7 +68,7 @@ func (o *FollowUp) Kind() string { return FollowUpKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *FollowUp) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -434,6 +434,29 @@ func (l *FollowUpList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *FollowUpList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *FollowUpList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *FollowUpList) SetItems(items []*FollowUp) { + l.items = items +} + +// Items returns the items of the list. +func (l *FollowUpList) Items() []*FollowUp { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *FollowUpList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/webrca/v1/follow_up_type_json.go b/webrca/v1/follow_up_type_json.go index 4e7bff2ab..50f62c93d 100644 --- a/webrca/v1/follow_up_type_json.go +++ b/webrca/v1/follow_up_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalFollowUp writes a value of the 'follow_up' type to the given writer. func MarshalFollowUp(object *FollowUp, writer io.Writer) error { stream := helpers.NewStream(writer) - writeFollowUp(object, stream) + WriteFollowUp(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalFollowUp(object *FollowUp, writer io.Writer) error { return stream.Error } -// writeFollowUp writes a value of the 'follow_up' type to the given stream. -func writeFollowUp(object *FollowUp, stream *jsoniter.Stream) { +// WriteFollowUp writes a value of the 'follow_up' type to the given stream. +func WriteFollowUp(object *FollowUp, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -117,7 +117,7 @@ func writeFollowUp(object *FollowUp, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("incident") - writeIncident(object.incident, stream) + WriteIncident(object.incident, stream) count++ } present_ = object.bitmap_&512 != 0 @@ -192,13 +192,13 @@ func UnmarshalFollowUp(source interface{}) (object *FollowUp, err error) { if err != nil { return } - object = readFollowUp(iterator) + object = ReadFollowUp(iterator) err = iterator.Error return } -// readFollowUp reads a value of the 'follow_up' type from the given iterator. -func readFollowUp(iterator *jsoniter.Iterator) *FollowUp { +// ReadFollowUp reads a value of the 'follow_up' type from the given iterator. +func ReadFollowUp(iterator *jsoniter.Iterator) *FollowUp { object := &FollowUp{} for { field := iterator.ReadObject() @@ -246,7 +246,7 @@ func readFollowUp(iterator *jsoniter.Iterator) *FollowUp { object.followUpType = value object.bitmap_ |= 128 case "incident": - value := readIncident(iterator) + value := ReadIncident(iterator) object.incident = value object.bitmap_ |= 256 case "owner": diff --git a/webrca/v1/follow_ups_resource_json.go b/webrca/v1/follow_ups_resource_json.go index 07adc2819..1c5ebc9f0 100644 --- a/webrca/v1/follow_ups_resource_json.go +++ b/webrca/v1/follow_ups_resource_json.go @@ -49,7 +49,7 @@ func readFollowUpsListResponse(response *FollowUpsListResponse, reader io.Reader value := iterator.ReadInt() response.total = &value case "items": - items := readFollowUpList(iterator) + items := ReadFollowUpList(iterator) response.items = &FollowUpList{ items: items, } diff --git a/webrca/v1/handoff_list_type_json.go b/webrca/v1/handoff_list_type_json.go index 9832d30e6..16757588c 100644 --- a/webrca/v1/handoff_list_type_json.go +++ b/webrca/v1/handoff_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalHandoffList(list []*Handoff, writer io.Writer) error { stream := helpers.NewStream(writer) - writeHandoffList(list, stream) + WriteHandoffList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalHandoffList(list []*Handoff, writer io.Writer) error { return stream.Error } -// writeHandoffList writes a list of value of the 'handoff' type to +// WriteHandoffList writes a list of value of the 'handoff' type to // the given stream. -func writeHandoffList(list []*Handoff, stream *jsoniter.Stream) { +func WriteHandoffList(list []*Handoff, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeHandoff(value, stream) + WriteHandoff(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalHandoffList(source interface{}) (items []*Handoff, err error) { if err != nil { return } - items = readHandoffList(iterator) + items = ReadHandoffList(iterator) err = iterator.Error return } -// readHandoffList reads list of values of the ”handoff' type from +// ReadHandoffList reads list of values of the ”handoff' type from // the given iterator. -func readHandoffList(iterator *jsoniter.Iterator) []*Handoff { +func ReadHandoffList(iterator *jsoniter.Iterator) []*Handoff { list := []*Handoff{} for iterator.ReadArray() { - item := readHandoff(iterator) + item := ReadHandoff(iterator) list = append(list, item) } return list diff --git a/webrca/v1/handoff_type.go b/webrca/v1/handoff_type.go index 5f0fb5837..56642e608 100644 --- a/webrca/v1/handoff_type.go +++ b/webrca/v1/handoff_type.go @@ -61,7 +61,7 @@ func (o *Handoff) Kind() string { return HandoffKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Handoff) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -294,6 +294,29 @@ func (l *HandoffList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *HandoffList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *HandoffList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *HandoffList) SetItems(items []*Handoff) { + l.items = items +} + +// Items returns the items of the list. +func (l *HandoffList) Items() []*Handoff { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *HandoffList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/webrca/v1/handoff_type_json.go b/webrca/v1/handoff_type_json.go index 68f27cf20..c44e33062 100644 --- a/webrca/v1/handoff_type_json.go +++ b/webrca/v1/handoff_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalHandoff writes a value of the 'handoff' type to the given writer. func MarshalHandoff(object *Handoff, writer io.Writer) error { stream := helpers.NewStream(writer) - writeHandoff(object, stream) + WriteHandoff(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalHandoff(object *Handoff, writer io.Writer) error { return stream.Error } -// writeHandoff writes a value of the 'handoff' type to the given stream. -func writeHandoff(object *Handoff, stream *jsoniter.Stream) { +// WriteHandoff writes a value of the 'handoff' type to the given stream. +func WriteHandoff(object *Handoff, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -90,7 +90,7 @@ func writeHandoff(object *Handoff, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("handoff_from") - writeUser(object.handoffFrom, stream) + WriteUser(object.handoffFrom, stream) count++ } present_ = object.bitmap_&64 != 0 && object.handoffTo != nil @@ -99,7 +99,7 @@ func writeHandoff(object *Handoff, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("handoff_to") - writeUser(object.handoffTo, stream) + WriteUser(object.handoffTo, stream) count++ } present_ = object.bitmap_&128 != 0 @@ -129,13 +129,13 @@ func UnmarshalHandoff(source interface{}) (object *Handoff, err error) { if err != nil { return } - object = readHandoff(iterator) + object = ReadHandoff(iterator) err = iterator.Error return } -// readHandoff reads a value of the 'handoff' type from the given iterator. -func readHandoff(iterator *jsoniter.Iterator) *Handoff { +// ReadHandoff reads a value of the 'handoff' type from the given iterator. +func ReadHandoff(iterator *jsoniter.Iterator) *Handoff { object := &Handoff{} for { field := iterator.ReadObject() @@ -171,11 +171,11 @@ func readHandoff(iterator *jsoniter.Iterator) *Handoff { object.deletedAt = value object.bitmap_ |= 16 case "handoff_from": - value := readUser(iterator) + value := ReadUser(iterator) object.handoffFrom = value object.bitmap_ |= 32 case "handoff_to": - value := readUser(iterator) + value := ReadUser(iterator) object.handoffTo = value object.bitmap_ |= 64 case "handoff_type": diff --git a/webrca/v1/incident_list_type_json.go b/webrca/v1/incident_list_type_json.go index 0eff790f4..b60ae9573 100644 --- a/webrca/v1/incident_list_type_json.go +++ b/webrca/v1/incident_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalIncidentList(list []*Incident, writer io.Writer) error { stream := helpers.NewStream(writer) - writeIncidentList(list, stream) + WriteIncidentList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalIncidentList(list []*Incident, writer io.Writer) error { return stream.Error } -// writeIncidentList writes a list of value of the 'incident' type to +// WriteIncidentList writes a list of value of the 'incident' type to // the given stream. -func writeIncidentList(list []*Incident, stream *jsoniter.Stream) { +func WriteIncidentList(list []*Incident, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeIncident(value, stream) + WriteIncident(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalIncidentList(source interface{}) (items []*Incident, err error) { if err != nil { return } - items = readIncidentList(iterator) + items = ReadIncidentList(iterator) err = iterator.Error return } -// readIncidentList reads list of values of the ”incident' type from +// ReadIncidentList reads list of values of the ”incident' type from // the given iterator. -func readIncidentList(iterator *jsoniter.Iterator) []*Incident { +func ReadIncidentList(iterator *jsoniter.Iterator) []*Incident { list := []*Incident{} for iterator.ReadArray() { - item := readIncident(iterator) + item := ReadIncident(iterator) list = append(list, item) } return list diff --git a/webrca/v1/incident_type.go b/webrca/v1/incident_type.go index 2821a52e9..86437bfd8 100644 --- a/webrca/v1/incident_type.go +++ b/webrca/v1/incident_type.go @@ -69,7 +69,7 @@ func (o *Incident) Kind() string { return IncidentKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Incident) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -454,6 +454,29 @@ func (l *IncidentList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *IncidentList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *IncidentList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *IncidentList) SetItems(items []*Incident) { + l.items = items +} + +// Items returns the items of the list. +func (l *IncidentList) Items() []*Incident { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *IncidentList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/webrca/v1/incident_type_json.go b/webrca/v1/incident_type_json.go index 6afce90a6..e3f907c5f 100644 --- a/webrca/v1/incident_type_json.go +++ b/webrca/v1/incident_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalIncident writes a value of the 'incident' type to the given writer. func MarshalIncident(object *Incident, writer io.Writer) error { stream := helpers.NewStream(writer) - writeIncident(object, stream) + WriteIncident(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalIncident(object *Incident, writer io.Writer) error { return stream.Error } -// writeIncident writes a value of the 'incident' type to the given stream. -func writeIncident(object *Incident, stream *jsoniter.Stream) { +// WriteIncident writes a value of the 'incident' type to the given stream. +func WriteIncident(object *Incident, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -108,7 +108,7 @@ func writeIncident(object *Incident, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("external_coordination") - writeStringList(object.externalCoordination, stream) + WriteStringList(object.externalCoordination, stream) count++ } present_ = object.bitmap_&256 != 0 @@ -201,13 +201,13 @@ func UnmarshalIncident(source interface{}) (object *Incident, err error) { if err != nil { return } - object = readIncident(iterator) + object = ReadIncident(iterator) err = iterator.Error return } -// readIncident reads a value of the 'incident' type from the given iterator. -func readIncident(iterator *jsoniter.Iterator) *Incident { +// ReadIncident reads a value of the 'incident' type from the given iterator. +func ReadIncident(iterator *jsoniter.Iterator) *Incident { object := &Incident{} for { field := iterator.ReadObject() @@ -251,7 +251,7 @@ func readIncident(iterator *jsoniter.Iterator) *Incident { object.description = value object.bitmap_ |= 64 case "external_coordination": - value := readStringList(iterator) + value := ReadStringList(iterator) object.externalCoordination = value object.bitmap_ |= 128 case "incident_id": diff --git a/webrca/v1/incidents_resource_json.go b/webrca/v1/incidents_resource_json.go index accb464d5..aa408cc29 100644 --- a/webrca/v1/incidents_resource_json.go +++ b/webrca/v1/incidents_resource_json.go @@ -57,7 +57,7 @@ func readIncidentsListResponse(response *IncidentsListResponse, reader io.Reader value := iterator.ReadInt() response.total = &value case "items": - items := readIncidentList(iterator) + items := ReadIncidentList(iterator) response.items = &IncidentList{ items: items, } diff --git a/webrca/v1/integer_list_type_json.go b/webrca/v1/integer_list_type_json.go index 70ec33b3d..7a5cdf1b4 100644 --- a/webrca/v1/integer_list_type_json.go +++ b/webrca/v1/integer_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalIntegerList(list []int, writer io.Writer) error { stream := helpers.NewStream(writer) - writeIntegerList(list, stream) + WriteIntegerList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalIntegerList(list []int, writer io.Writer) error { return stream.Error } -// writeIntegerList writes a list of value of the 'integer' type to +// WriteIntegerList writes a list of value of the 'integer' type to // the given stream. -func writeIntegerList(list []int, stream *jsoniter.Stream) { +func WriteIntegerList(list []int, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalIntegerList(source interface{}) (items []int, err error) { if err != nil { return } - items = readIntegerList(iterator) + items = ReadIntegerList(iterator) err = iterator.Error return } -// readIntegerList reads list of values of the ”integer' type from +// ReadIntegerList reads list of values of the ”integer' type from // the given iterator. -func readIntegerList(iterator *jsoniter.Iterator) []int { +func ReadIntegerList(iterator *jsoniter.Iterator) []int { list := []int{} for iterator.ReadArray() { item := iterator.ReadInt() diff --git a/webrca/v1/interface_list_type_json.go b/webrca/v1/interface_list_type_json.go index 7ddf55cb6..e76cc4fb4 100644 --- a/webrca/v1/interface_list_type_json.go +++ b/webrca/v1/interface_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalInterfaceList(list []interface{}, writer io.Writer) error { stream := helpers.NewStream(writer) - writeInterfaceList(list, stream) + WriteInterfaceList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalInterfaceList(list []interface{}, writer io.Writer) error { return stream.Error } -// writeInterfaceList writes a list of value of the 'interface' type to +// WriteInterfaceList writes a list of value of the 'interface' type to // the given stream. -func writeInterfaceList(list []interface{}, stream *jsoniter.Stream) { +func WriteInterfaceList(list []interface{}, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalInterfaceList(source interface{}) (items []interface{}, err error) if err != nil { return } - items = readInterfaceList(iterator) + items = ReadInterfaceList(iterator) err = iterator.Error return } -// readInterfaceList reads list of values of the ”interface' type from +// ReadInterfaceList reads list of values of the ”interface' type from // the given iterator. -func readInterfaceList(iterator *jsoniter.Iterator) []interface{} { +func ReadInterfaceList(iterator *jsoniter.Iterator) []interface{} { list := []interface{}{} for iterator.ReadArray() { var item interface{} diff --git a/webrca/v1/long_list_type_json.go b/webrca/v1/long_list_type_json.go index 3c3510922..12ad9d32d 100644 --- a/webrca/v1/long_list_type_json.go +++ b/webrca/v1/long_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalLongList(list []int64, writer io.Writer) error { stream := helpers.NewStream(writer) - writeLongList(list, stream) + WriteLongList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalLongList(list []int64, writer io.Writer) error { return stream.Error } -// writeLongList writes a list of value of the 'long' type to +// WriteLongList writes a list of value of the 'long' type to // the given stream. -func writeLongList(list []int64, stream *jsoniter.Stream) { +func WriteLongList(list []int64, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalLongList(source interface{}) (items []int64, err error) { if err != nil { return } - items = readLongList(iterator) + items = ReadLongList(iterator) err = iterator.Error return } -// readLongList reads list of values of the ”long' type from +// ReadLongList reads list of values of the ”long' type from // the given iterator. -func readLongList(iterator *jsoniter.Iterator) []int64 { +func ReadLongList(iterator *jsoniter.Iterator) []int64 { list := []int64{} for iterator.ReadArray() { item := iterator.ReadInt64() diff --git a/webrca/v1/notification_list_type_json.go b/webrca/v1/notification_list_type_json.go index bccba066e..8a4209959 100644 --- a/webrca/v1/notification_list_type_json.go +++ b/webrca/v1/notification_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalNotificationList(list []*Notification, writer io.Writer) error { stream := helpers.NewStream(writer) - writeNotificationList(list, stream) + WriteNotificationList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalNotificationList(list []*Notification, writer io.Writer) error { return stream.Error } -// writeNotificationList writes a list of value of the 'notification' type to +// WriteNotificationList writes a list of value of the 'notification' type to // the given stream. -func writeNotificationList(list []*Notification, stream *jsoniter.Stream) { +func WriteNotificationList(list []*Notification, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeNotification(value, stream) + WriteNotification(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalNotificationList(source interface{}) (items []*Notification, err e if err != nil { return } - items = readNotificationList(iterator) + items = ReadNotificationList(iterator) err = iterator.Error return } -// readNotificationList reads list of values of the ”notification' type from +// ReadNotificationList reads list of values of the ”notification' type from // the given iterator. -func readNotificationList(iterator *jsoniter.Iterator) []*Notification { +func ReadNotificationList(iterator *jsoniter.Iterator) []*Notification { list := []*Notification{} for iterator.ReadArray() { - item := readNotification(iterator) + item := ReadNotification(iterator) list = append(list, item) } return list diff --git a/webrca/v1/notification_type.go b/webrca/v1/notification_type.go index 5884d7535..c9484c2c2 100644 --- a/webrca/v1/notification_type.go +++ b/webrca/v1/notification_type.go @@ -62,7 +62,7 @@ func (o *Notification) Kind() string { return NotificationKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Notification) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -314,6 +314,29 @@ func (l *NotificationList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *NotificationList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *NotificationList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *NotificationList) SetItems(items []*Notification) { + l.items = items +} + +// Items returns the items of the list. +func (l *NotificationList) Items() []*Notification { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *NotificationList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/webrca/v1/notification_type_json.go b/webrca/v1/notification_type_json.go index de938a419..31e6d102e 100644 --- a/webrca/v1/notification_type_json.go +++ b/webrca/v1/notification_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalNotification writes a value of the 'notification' type to the given writer. func MarshalNotification(object *Notification, writer io.Writer) error { stream := helpers.NewStream(writer) - writeNotification(object, stream) + WriteNotification(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalNotification(object *Notification, writer io.Writer) error { return stream.Error } -// writeNotification writes a value of the 'notification' type to the given stream. -func writeNotification(object *Notification, stream *jsoniter.Stream) { +// WriteNotification writes a value of the 'notification' type to the given stream. +func WriteNotification(object *Notification, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -99,7 +99,7 @@ func writeNotification(object *Notification, stream *jsoniter.Stream) { stream.WriteMore() } stream.WriteObjectField("incident") - writeIncident(object.incident, stream) + WriteIncident(object.incident, stream) count++ } present_ = object.bitmap_&128 != 0 @@ -138,13 +138,13 @@ func UnmarshalNotification(source interface{}) (object *Notification, err error) if err != nil { return } - object = readNotification(iterator) + object = ReadNotification(iterator) err = iterator.Error return } -// readNotification reads a value of the 'notification' type from the given iterator. -func readNotification(iterator *jsoniter.Iterator) *Notification { +// ReadNotification reads a value of the 'notification' type from the given iterator. +func ReadNotification(iterator *jsoniter.Iterator) *Notification { object := &Notification{} for { field := iterator.ReadObject() @@ -184,7 +184,7 @@ func readNotification(iterator *jsoniter.Iterator) *Notification { object.deletedAt = value object.bitmap_ |= 32 case "incident": - value := readIncident(iterator) + value := ReadIncident(iterator) object.incident = value object.bitmap_ |= 64 case "name": diff --git a/webrca/v1/notifications_resource_json.go b/webrca/v1/notifications_resource_json.go index 8ab52bf38..c528e45b0 100644 --- a/webrca/v1/notifications_resource_json.go +++ b/webrca/v1/notifications_resource_json.go @@ -49,7 +49,7 @@ func readNotificationsListResponse(response *NotificationsListResponse, reader i value := iterator.ReadInt() response.total = &value case "items": - items := readNotificationList(iterator) + items := ReadNotificationList(iterator) response.items = &NotificationList{ items: items, } diff --git a/webrca/v1/product_list_type_json.go b/webrca/v1/product_list_type_json.go index 86b465bbb..79d4cdb61 100644 --- a/webrca/v1/product_list_type_json.go +++ b/webrca/v1/product_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalProductList(list []*Product, writer io.Writer) error { stream := helpers.NewStream(writer) - writeProductList(list, stream) + WriteProductList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalProductList(list []*Product, writer io.Writer) error { return stream.Error } -// writeProductList writes a list of value of the 'product' type to +// WriteProductList writes a list of value of the 'product' type to // the given stream. -func writeProductList(list []*Product, stream *jsoniter.Stream) { +func WriteProductList(list []*Product, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeProduct(value, stream) + WriteProduct(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalProductList(source interface{}) (items []*Product, err error) { if err != nil { return } - items = readProductList(iterator) + items = ReadProductList(iterator) err = iterator.Error return } -// readProductList reads list of values of the ”product' type from +// ReadProductList reads list of values of the ”product' type from // the given iterator. -func readProductList(iterator *jsoniter.Iterator) []*Product { +func ReadProductList(iterator *jsoniter.Iterator) []*Product { list := []*Product{} for iterator.ReadArray() { - item := readProduct(iterator) + item := ReadProduct(iterator) list = append(list, item) } return list diff --git a/webrca/v1/product_type.go b/webrca/v1/product_type.go index 95f44e410..d86e4735b 100644 --- a/webrca/v1/product_type.go +++ b/webrca/v1/product_type.go @@ -60,7 +60,7 @@ func (o *Product) Kind() string { return ProductKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *Product) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -282,6 +282,29 @@ func (l *ProductList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *ProductList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *ProductList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *ProductList) SetItems(items []*Product) { + l.items = items +} + +// Items returns the items of the list. +func (l *ProductList) Items() []*Product { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *ProductList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/webrca/v1/product_type_json.go b/webrca/v1/product_type_json.go index b8d2fce88..31fd2fb21 100644 --- a/webrca/v1/product_type_json.go +++ b/webrca/v1/product_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalProduct writes a value of the 'product' type to the given writer. func MarshalProduct(object *Product, writer io.Writer) error { stream := helpers.NewStream(writer) - writeProduct(object, stream) + WriteProduct(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalProduct(object *Product, writer io.Writer) error { return stream.Error } -// writeProduct writes a value of the 'product' type to the given stream. -func writeProduct(object *Product, stream *jsoniter.Stream) { +// WriteProduct writes a value of the 'product' type to the given stream. +func WriteProduct(object *Product, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -120,13 +120,13 @@ func UnmarshalProduct(source interface{}) (object *Product, err error) { if err != nil { return } - object = readProduct(iterator) + object = ReadProduct(iterator) err = iterator.Error return } -// readProduct reads a value of the 'product' type from the given iterator. -func readProduct(iterator *jsoniter.Iterator) *Product { +// ReadProduct reads a value of the 'product' type from the given iterator. +func ReadProduct(iterator *jsoniter.Iterator) *Product { object := &Product{} for { field := iterator.ReadObject() diff --git a/webrca/v1/status_change_list_type_json.go b/webrca/v1/status_change_list_type_json.go index 84e210b45..6dc99b633 100644 --- a/webrca/v1/status_change_list_type_json.go +++ b/webrca/v1/status_change_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalStatusChangeList(list []*StatusChange, writer io.Writer) error { stream := helpers.NewStream(writer) - writeStatusChangeList(list, stream) + WriteStatusChangeList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalStatusChangeList(list []*StatusChange, writer io.Writer) error { return stream.Error } -// writeStatusChangeList writes a list of value of the 'status_change' type to +// WriteStatusChangeList writes a list of value of the 'status_change' type to // the given stream. -func writeStatusChangeList(list []*StatusChange, stream *jsoniter.Stream) { +func WriteStatusChangeList(list []*StatusChange, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeStatusChange(value, stream) + WriteStatusChange(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalStatusChangeList(source interface{}) (items []*StatusChange, err e if err != nil { return } - items = readStatusChangeList(iterator) + items = ReadStatusChangeList(iterator) err = iterator.Error return } -// readStatusChangeList reads list of values of the ”status_change' type from +// ReadStatusChangeList reads list of values of the ”status_change' type from // the given iterator. -func readStatusChangeList(iterator *jsoniter.Iterator) []*StatusChange { +func ReadStatusChangeList(iterator *jsoniter.Iterator) []*StatusChange { list := []*StatusChange{} for iterator.ReadArray() { - item := readStatusChange(iterator) + item := ReadStatusChange(iterator) list = append(list, item) } return list diff --git a/webrca/v1/status_change_type.go b/webrca/v1/status_change_type.go index 821ba4b35..6b172f5f6 100644 --- a/webrca/v1/status_change_type.go +++ b/webrca/v1/status_change_type.go @@ -60,7 +60,7 @@ func (o *StatusChange) Kind() string { return StatusChangeKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *StatusChange) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -274,6 +274,29 @@ func (l *StatusChangeList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *StatusChangeList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *StatusChangeList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *StatusChangeList) SetItems(items []*StatusChange) { + l.items = items +} + +// Items returns the items of the list. +func (l *StatusChangeList) Items() []*StatusChange { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *StatusChangeList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/webrca/v1/status_change_type_json.go b/webrca/v1/status_change_type_json.go index f20e0a285..d7d04037e 100644 --- a/webrca/v1/status_change_type_json.go +++ b/webrca/v1/status_change_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalStatusChange writes a value of the 'status_change' type to the given writer. func MarshalStatusChange(object *StatusChange, writer io.Writer) error { stream := helpers.NewStream(writer) - writeStatusChange(object, stream) + WriteStatusChange(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalStatusChange(object *StatusChange, writer io.Writer) error { return stream.Error } -// writeStatusChange writes a value of the 'status_change' type to the given stream. -func writeStatusChange(object *StatusChange, stream *jsoniter.Stream) { +// WriteStatusChange writes a value of the 'status_change' type to the given stream. +func WriteStatusChange(object *StatusChange, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -120,13 +120,13 @@ func UnmarshalStatusChange(source interface{}) (object *StatusChange, err error) if err != nil { return } - object = readStatusChange(iterator) + object = ReadStatusChange(iterator) err = iterator.Error return } -// readStatusChange reads a value of the 'status_change' type from the given iterator. -func readStatusChange(iterator *jsoniter.Iterator) *StatusChange { +// ReadStatusChange reads a value of the 'status_change' type from the given iterator. +func ReadStatusChange(iterator *jsoniter.Iterator) *StatusChange { object := &StatusChange{} for { field := iterator.ReadObject() diff --git a/webrca/v1/string_list_type_json.go b/webrca/v1/string_list_type_json.go index e86e7291d..91366f023 100644 --- a/webrca/v1/string_list_type_json.go +++ b/webrca/v1/string_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalStringList(list []string, writer io.Writer) error { stream := helpers.NewStream(writer) - writeStringList(list, stream) + WriteStringList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,9 +38,9 @@ func MarshalStringList(list []string, writer io.Writer) error { return stream.Error } -// writeStringList writes a list of value of the 'string' type to +// WriteStringList writes a list of value of the 'string' type to // the given stream. -func writeStringList(list []string, stream *jsoniter.Stream) { +func WriteStringList(list []string, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { @@ -58,14 +58,14 @@ func UnmarshalStringList(source interface{}) (items []string, err error) { if err != nil { return } - items = readStringList(iterator) + items = ReadStringList(iterator) err = iterator.Error return } -// readStringList reads list of values of the ”string' type from +// ReadStringList reads list of values of the ”string' type from // the given iterator. -func readStringList(iterator *jsoniter.Iterator) []string { +func ReadStringList(iterator *jsoniter.Iterator) []string { list := []string{} for iterator.ReadArray() { item := iterator.ReadString() diff --git a/webrca/v1/user_list_type_json.go b/webrca/v1/user_list_type_json.go index 4bf516528..1d4a75bd8 100644 --- a/webrca/v1/user_list_type_json.go +++ b/webrca/v1/user_list_type_json.go @@ -30,7 +30,7 @@ import ( // the given writer. func MarshalUserList(list []*User, writer io.Writer) error { stream := helpers.NewStream(writer) - writeUserList(list, stream) + WriteUserList(list, stream) err := stream.Flush() if err != nil { return err @@ -38,15 +38,15 @@ func MarshalUserList(list []*User, writer io.Writer) error { return stream.Error } -// writeUserList writes a list of value of the 'user' type to +// WriteUserList writes a list of value of the 'user' type to // the given stream. -func writeUserList(list []*User, stream *jsoniter.Stream) { +func WriteUserList(list []*User, stream *jsoniter.Stream) { stream.WriteArrayStart() for i, value := range list { if i > 0 { stream.WriteMore() } - writeUser(value, stream) + WriteUser(value, stream) } stream.WriteArrayEnd() } @@ -58,17 +58,17 @@ func UnmarshalUserList(source interface{}) (items []*User, err error) { if err != nil { return } - items = readUserList(iterator) + items = ReadUserList(iterator) err = iterator.Error return } -// readUserList reads list of values of the ”user' type from +// ReadUserList reads list of values of the ”user' type from // the given iterator. -func readUserList(iterator *jsoniter.Iterator) []*User { +func ReadUserList(iterator *jsoniter.Iterator) []*User { list := []*User{} for iterator.ReadArray() { - item := readUser(iterator) + item := ReadUser(iterator) list = append(list, item) } return list diff --git a/webrca/v1/user_type.go b/webrca/v1/user_type.go index 37fbf3167..adb90bfb7 100644 --- a/webrca/v1/user_type.go +++ b/webrca/v1/user_type.go @@ -62,7 +62,7 @@ func (o *User) Kind() string { return UserKind } -// Link returns true iif this is a link. +// Link returns true if this is a link. func (o *User) Link() bool { return o != nil && o.bitmap_&1 != 0 } @@ -314,6 +314,29 @@ func (l *UserList) Len() int { return len(l.items) } +// Items sets the items of the list. +func (l *UserList) SetLink(link bool) { + l.link = link +} + +// Items sets the items of the list. +func (l *UserList) SetHREF(href string) { + l.href = href +} + +// Items sets the items of the list. +func (l *UserList) SetItems(items []*User) { + l.items = items +} + +// Items returns the items of the list. +func (l *UserList) Items() []*User { + if l == nil { + return nil + } + return l.items +} + // Empty returns true if the list is empty. func (l *UserList) Empty() bool { return l == nil || len(l.items) == 0 diff --git a/webrca/v1/user_type_json.go b/webrca/v1/user_type_json.go index 5acc7dc25..06fa049c2 100644 --- a/webrca/v1/user_type_json.go +++ b/webrca/v1/user_type_json.go @@ -30,7 +30,7 @@ import ( // MarshalUser writes a value of the 'user' type to the given writer. func MarshalUser(object *User, writer io.Writer) error { stream := helpers.NewStream(writer) - writeUser(object, stream) + WriteUser(object, stream) err := stream.Flush() if err != nil { return err @@ -38,8 +38,8 @@ func MarshalUser(object *User, writer io.Writer) error { return stream.Error } -// writeUser writes a value of the 'user' type to the given stream. -func writeUser(object *User, stream *jsoniter.Stream) { +// WriteUser writes a value of the 'user' type to the given stream. +func WriteUser(object *User, stream *jsoniter.Stream) { count := 0 stream.WriteObjectStart() stream.WriteObjectField("kind") @@ -138,13 +138,13 @@ func UnmarshalUser(source interface{}) (object *User, err error) { if err != nil { return } - object = readUser(iterator) + object = ReadUser(iterator) err = iterator.Error return } -// readUser reads a value of the 'user' type from the given iterator. -func readUser(iterator *jsoniter.Iterator) *User { +// ReadUser reads a value of the 'user' type from the given iterator. +func ReadUser(iterator *jsoniter.Iterator) *User { object := &User{} for { field := iterator.ReadObject() diff --git a/webrca/v1/users_resource_json.go b/webrca/v1/users_resource_json.go index a8a60e684..39789b720 100644 --- a/webrca/v1/users_resource_json.go +++ b/webrca/v1/users_resource_json.go @@ -49,7 +49,7 @@ func readUsersListResponse(response *UsersListResponse, reader io.Reader) error value := iterator.ReadInt() response.total = &value case "items": - items := readUserList(iterator) + items := ReadUserList(iterator) response.items = &UserList{ items: items, }