def create_client(http=None): credentials = oauth2client.GoogleCredentials.get_application_default() if credentials.create_scoped_required(): credentials = credentials.create_scoped(CRM_SCOPES) if not http: http = httplib2.Http() credentials.authorize(http) return discovery.build(CRM_SERVICE_NAME, CRM_VERSION, http=http)
Organization_id = str(YOUR-ORG_NUMERIC_ID)proj_prefix = "your-proj-prefix-" # must be lower case!proj_id = proj_prefix+"-"+str(random_with_N_digits(6))#************************
def List_projects(org_id): crm = create_client() project_filter = 'parent.type:organization parent.id:%s' % org_id print(project_filter) projects = crm.projects().list(filter=project_filter).execute() #while projects is not None: print(projects)
def create_project(proj_id): crm = create_client() print "org id in function is :\n" print(organization_id) new_project = crm.projects().create( body={ 'project_id': proj_id, 'name': proj_id, 'parent': { 'type': 'organization', 'id': organization_id } }).execute()
cd, dir, copy, del,
cat
GoogleCloud
cd
gs:\
dir
Set-Location and Get-ChildItem
mkdir
Set-Content
gs:\gootoso-test-bucket\folder
Get-GcsBucket
New-GcsObject
Copy-GcsObject
We use Google Cloud Platform, including Google Cloud Storage and Compute Engine along with Fastly, for storing and delivering all popular and infrequently accessed content and to handle our peak transcode loads.
- Naren Venkataraman, Senior Director of Engineering, Vimeo
Fastly customers need low-latency, high-throughput storage and fast, flexible, secure content delivery at the edge. The combined power of Google Cloud Storage and Fastly’s Cloud Accelerator allows customers like Vimeo to fully optimize content storage and delivery, controlling costs and improving global performance.
- Lee Chen, Head of Strategic Partnerships, Fastly
Spotify uses Google Cloud Storage for storing and serving music. Using Regional storage class allowed us to run audio transcoding in Google Compute Engine close to production storage. Google also offers great networking with open and explicit peering setup, as well as interconnect and partnerships with all of our CDN providers
- Jyrki Pulliainen, Software Engineer, Spotify
runtime: python27api_version: 1threadsafe: yeshandlers:- url: .* script: main.applibraries:- name: webapp2 version: "2.5.2"
#!/usr/bin/env pythonimport webapp2class MainHandler(webapp2.RequestHandler): def get(self): self.response.write('Hello world!')app = webapp2.WSGIApplication([ ('/', MainHandler)], debug=True)
kubectl
gcloud
Use promo code NEXT1720 to save $300 off general admission