Git VMware {code} Samples and Flings

February 16, 2022

Welcome back to the Git Commit(ted) to </Dev> Resources series! Today, we will explore the VMware {code} Sample Exchange, EUC-samples GitHub repository, as well as VMware Flings. This blog is all about finding code samples to leverage in your day-to-day job to ease and automate tasks within EUC. We will feature a select few samples and Flings at the end of the month, but for today, let’s jump right in and learn how to access these samples! Start to explore these samples to see how others have leveraged the EUC APIs. Feel free to also steal (although it’s not really stealing when it’s open-source) code samples to use as templates. This is the best and fastest way to get started and learn how to leverage these APIs.

What is VMware {code}?

VMware {code} is a free developer program that provides access to a growing community of developers and experts. If you are an existing Developer Center user or partner program member, you can join the new VMware {code} program using your MyVMware account. If you do not have one, register here to access SDKs and participate in developer forums.

Graphical user interface, website</p>
<p>Description automatically generated

VMware {code} Sample Exchange

VMware {code} is your one-stop-shop for access to VMware’s APIs, samples, sessions, events, and more. Today we will be focusing on the Sample Exchange to find EUC coding samples that you can start to use today. The Sample Exchange allows you to browse and download code samples from Vmware, as well as code samples contributed by the VMware community. Log in to Sample Exchange using your MyVMware credentials to submit requests for new samples, contribute your own samples, as well as propose a sample as a solution for open requests. This is one way you can contribute to the community. However, we will discuss how you can also leverage the GitHub reposistory to sync samples from GitHub to the Sample Exchange.

Disclaimer: All sample content and code in Sample Exchange is licensed to you by the sample's author. VMware does not guarantee the samples; they are provided "AS IS". Use of this site is subject to the VMware Community Terms of Use.

Graphical user interface, text, application</p>
<p>Description automatically generated

Ways to Add Samples

There are several different ways to contribute a sample to the Sample Exchange. You can upload your sample as a ZIP archive or simply cut and paste a code snippet into the submission form. If you are a GitHub user, you can also connect your account with VMware {code} to import gists and repositories (or individual files and folders within a repo) directly from GitHub. When linking to GitHub, the samples in the Sample Exchange are automatically refreshed with any changes made in GitHub. This allows you and others to leverage GitHub for source control, while allowing the sample to be searchable and easily found in the Sample Exchange.

See Sample Exchange Guide for more information and a step-by-step guide of adding samples.

Graphical user interface, text, application, email</p>
<p>Description automatically generated

EUC Samples on GitHub

The euc-samples GitHub repository is where you can take what you learned to contribute back to the community. VMware engineers post new code samples for new features to help customers get started, but this is where we need people like you to use those samples and improve upon them. All samples in the euc-samples repo are open-source and are not supported by Vmware, but this is a great place to start to get ideas or code templates for use in your use-case.

The general layout of the repository is product / resource type / samples. This directory structure should allow you quickly find samples you care about. Be sure to review the for more information about this repository.

A screenshot of a computer</p>
<p>Description automatically generated with medium confidence

Contributing to EUC-samples

We welcome contributions from the community. Before you start working with EUC-samples, please read our Developer Certificate of Origin. All contributions to this repository must be signed as described on that page. Your signature certifies that you wrote the patch or have the right to pass it on as an open-source patch. This step is often missed by contributors.

For details on how to contribute, we have created two guides: Contributing to EUC Samples from GitHub Desktop for macOS and Contributing to EUC Samples via Git CLI.

VMware Flings

Flings are executable, experimental tools, or scripts that are developed by VMware's internal community and released on our external site for VMware's ecosystem to use. Flings are free to download and are "unsupported" by VMware's official products. Some Flings do end up implemented in VMware products. Later this month, we will have some Flings featured, but be sure to check out the various Flings. I developed my first Fling last year, but now use a handful of Flings daily. Unlike the VMware {code} Sample Exchange and the EUC-Sample Repo, Flings tend to be more thorough, larger effort tools/applications that our engineers develop to address customer needs. Please understand that Fling developers do this on their spare time so please be kind with feedback and when reporting bugs.

Graphical user interface, application</p>
<p>Description automatically generated


Today we reviewed the various places to find code samples and contribute back to the community. We also checked out VMware Flings and learned that these are not officially supported but are pretty amazing tools that VMware engineers develop on their free time. I hope you find samples and Flings that you can start using today, and in the future please consider contributing to samples and repositories.

Be sure to subscribe to the Digital Workspace Tech Zone Blog RSS or check back daily to see what we release. By the end of this month, we hope that you are comfortable leveraging code samples, VMware Flings, scripting/coding, and leveraging the EUC APIs to automate your workspace!

You can also follow us on Twitter @EUCTechZone to stay updated on the latest EUC content!


Make sure to check out the other blog posts in our 28-day series:


Filter Tags

Workspace ONE Workspace ONE Access Workspace ONE Intelligence Workspace ONE UEM Blog Technical Overview Intermediate Optimize