def _DoFilter(context, http, api_client_default, args): """Set up paramter defaults and endpoints.""" if args.endpoint: log.warn('The --endpoint flag is deprecated and will be removed. ' 'Set the api_endpoint_overrides/compute property instead. ' 'e.g. gcloud config set api_client_overrides/compute beta') utils.SetResourceParamDefaults() utils.UpdateContextEndpointEntries(context, http, api_client_default)
def _DoFilter(context, http, api_client_default, args): """Set up paramter defaults and endpoints.""" if args.endpoint: log.warn('The --endpoint flag is deprecated and will be removed. ' 'Set the api_endpoint_overrides/compute property instead. ' '\n\n' 'You can do this persistently with, e.g., ' '`gcloud config set api_endpoint_overrides/compute ' 'https://www.googleapis.com/compute/staging_v1`.' '\n\n' 'Or you can do this on a one-off basis by setting the ' 'CLOUDSDK_API_CLIENT_OVERRIDES_COMPUTE environment variable.') utils.SetResourceParamDefaults() utils.UpdateContextEndpointEntries(context, http, api_client_default)
def _DoFilter(context, http, api_client_default, args): """Set up paramter defaults and endpoints.""" utils.SetResourceParamDefaults() utils.UpdateContextEndpointEntries(context, http, api_client_default)