Make if mode idiomatic and make secret version retrieval optional
Make if mode idiomatic and make secret version retrieval optional

GoogleCloudPlatform/gce-automated-ad-join,GoogleCloudPlatform/gce-automated-ad-join