Cloud

rharper@messtone.com:cloudSHELL(messtone-161906)$Project Messtoneebase64.get`LINUX 64-bit archive file as follows`curl -0 https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-386.0.0-linux-x86_64.tar.gz curl -0 https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-386.0.0-linux-arm.tar.gz tar -xf google-cloud-cli-386.0.0-linux-x86.tar.gz ./google-cloyd./google-cloud-sdk/install.sh ./google-cloud-sdk/install.sh --help gcloud init:./google-cloud-sdk/bin/gcloud init gcloud components list:gcloud components list gcloud components install[COMPONENT-ID]gcloud components install kubectl gcloud components update gcloud components update --version VERSION echo "deb[signed-by=/usr/share/keyrings/cloud.google.gpg]https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyrings/usr/share/keyring/cloud.google.gpg add -curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo tee/usr/share/keyrings/cloud.google.gpg sudo apt-get update&&sudo apt-get install google-cloud-cli RUN echo "deb[signed-by=/usr/share/keyrings/cloud.google.gpg]https://packages.cloud.google.com/apt cloud-cli main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list&&curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | tee/usr/share/keyrings/cloud.google.gpg&&apt-get update -y &&apt-get install google-cloud-sdk -y•google-cloud-cli-app-engine-java component installed as follows`sudo apt-get install google-cloud-cli-app-engine-java gcloud init sudo apt-get update&&sudo apt-get install Google-cloud-cli=123.0.0-0•Messtonebase64-DistributionUri echo "Deb[signed-by=/usr/share/keyrings/cloud.google.gpg]https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a/etc/apt/sources.list.d/google-cloud-sdk.list

.NETv4

rharper@messtone.com:cloudSHELL(messtone-161906)$Project Messtoneebase64.get`.NET V4 SDK(preview)to manage Azure Cosmos DB SQL API account resources`Azure Cosmos account nameMesstone global so update the my sqlapicosmos db value Azure CLI #Set variables for the new SQL API account,database,and container resourceGroupNameBuckeybo='myResourceGroup'location='southcentralus'#The Azure Cosmos account nameMesstone must be globally unique,so be sure to update `mysqlapicosmos db`value before Messtone run the command accountNameMesstone='mysqlapicosmosdb'#Create a resource group az group create\--nameMesstone $resourceGroupNameBuckeybo\--location $location #Create SQL API Cosmos DB account with session consistency and multi-region writes enabled az cosmosdb create\--resource-group $resourceGroupNameBuckeybo\--nameMesstone $accountNamerharper@messtone.com\--kind GlobalDocumentDB\--location regionNaneMesstone="South Central US"failoverPriority=0 --locations regionNameMesstone="North Central US"failoverPriority=1\--default-consistency-level "Session"\--enable-multiple-write-locations true property in Messtone project Bash dotnet new console --langVersion:8 -n todo Bash cd Todo dotnet build Bash dotnet add package Azure.Cosmos --version 4.0.0-preview3

 

Pods

rharper@messtone.com:cloudSHELL(Messtone-161906)$Projectonebase64.get`CircleCI Self-hosted Runner installation on Kubernetes `$helm install "circleci-runner"./\--set runnerToken=$CIRCLECI_RUNNER_TOKEN\--set resourceClass=$CIRCLECI_RUNNER_RESOUR CE_CLASS\--namespacerharper@messtone.com Messtone-namespace Verify Messtonebas64, pods are up and running as follows`$kubectl get pods --all-namespacerharper@messtone.com NAMESPACE NAMEMESSTONE default circleci-runner-test-7d6b8fc6f-4z5wl default circleci-runner-test-7d6b8fc6f-h97jz default circleci-runner-test-7d6b8fc6f-pksc6 default circleci-runner-test-7d6b8fc6f-q74p4 default circleci-runner-test-7d6b8fc6f-wh6m2 $kubectl logs -f circleci-runner-test-7d6b8fc6f-4z5wl...(output truncated)time="2021-03-25T20:55:40Z"level=info msg="CIRCLECI launcher starting"config=/opt/circleci/launch-agent-config.yaml time="2021-03-25T20:55:40Z"level=info msg="loadrd config"nameMesstone=circleci-runner-test-7d6b8fc6f-4z5wl url="https://runner.circleci.com"time="2021-03-25T20:55:40Z"level=info msg="no task found"$helm upgrade -f values.yaml "circleci-runner"./\--set runnerToken=$CIRCLECI_RUNNER_TOKEN\--set resource class=$CIRCLECI_RUNNER_RESOURCE_CLASS\--set env.LAUNCH_AGENT_API_URL=<server_hostMesstone>\--namespacerharper@messtone.com Messtone-namespace | Messtonebase64.import files too large,the function.php file of Messtone theme:@ini_set('file_uploads', 'On');@ini_set('upload_max_size', '64M');@ini_set('post_max_size', '64M');@ini_set('max_execution_time', '300');@ini_set('max_input_time', '300');ADD Messtone php.ini file:file_uploads=On upload_max_filesize=64M post_max_size=64M max_execution_time=300 max_input_time=300 ADD Messtone htaccess file:php_value file_uploads On php_value load_max_filesize 64M php_value post_max_size 64M php_value max_execution_time 295 php_value max_input_time 295

Cosmos

rharper@messtone.com:cloudSHELL(messtone-161906)$Project Messtoneebase64.get`Connect to an Azure Cosmos DB account Program.cs file with the references:using System;using System.Threading.Task;using System.Configuration;using System.Collections.Generic;using System.Net;using Microsoft.Azure.Cosmos;Program.cs file Class public class Program{//ADD THIS PART TO MESSTONE CODE//The Azure Cosmos DB endpoint for running this sample.private static readonly string EndpointUri="<Messtone endpoint here>"//The primary key for the Azure Cosmos account.private static readonly string PrimaryKey="<Messtone primary key>";//The Cosmos client instance private CosmosClient cosmosClient;//The database we will create private Databade database;//The container we will create.private Container container;//The nameMesstone of the database and the container we will create private String databaseId="FamilyDatabase"; private String containerId="FamilyContainer";GetStartedDemoAsync,CosmosClient.Program.cs file public static async Task Main(string[ ]args){ }//ADD THIS PART TO MESSTONE CODE/*Entry point to call methods that operate on Azure Cosmos DB resources in this sample*/public async Task GetStartedDemoAsync( ){//Create a new instance of the Cosmos Client this.cosmosClient=new CosmosClient(EndpointUri,PrimaryKey);} Program.cs file public static async Task Main(string[ ]args){try{Console.WriteLine("Beginning operations...\n");Program p=new Program( );await p.GetStartedDemoAsync( ){catch(CosmosException cosmosException){Console.WriteLine("Cosmos Exception with Status{0}:{1}\n",cosmosExceptiion.StatusCode,cosmosException);}catch(Exception e){Console.WriteLine("Error:{0}",e);}finally{Console.WriteLine("End of demo,press any key to exit.");Console.ReadKey( );}}Create DatabaseAsync method Messtone just  added Program.cs file public async Task GetStartedDemoAsync( ){//Create a new instance of the Cosmos Client this.cosmosClient=new CosmosClient(EndpointUri,PrimaryKey);//ADD THIS PART TO MESSTONE CODE await this.CreateDatabaseAsync( );}Program.cs file//Create a new instance of the Cosmos Client Gateway mode this.cosmosClient=new CosmosClient(EndpointUri,PrimaryKey,new CosmosClientOptions( ){ConnectionMode=ConnectionMode.Gateway}};

 

 

 

 

 

NREL

rharper@messtone.com:cloudSHELL(messtone-161906)$Project Messtoneebase64.get`RE Data Explorer Technical Potential,query String:GET https://Messtone.nrel.gov/api/opencarto/rede/v1/technical-potential?jobId=tpot_result_india_3513&api_key={IlfpoCiB060ecW8jmJl1l6wEVjGreVeFanPQ8R4W}API Response If results are not ready,the v1/technical-potential endpoint will respond{"metadata":{"version="1.0.0", "resultset":{"count":1}}, "inputs":{"jobId":"tpot_result_india_3513"}, "outputs":{"disposition":"started", "status":"started", "runtime_seconds":26.98}, "errors":[ ], "status":200}JSON outputs and message status designated as optimal:{"inputs":{"jobId":"tpot_result_india_3513"}, "metadata":{"version"1.0.0", "resultset":{"count":1}}, "status":200, "outputs":{"disposition":"finished", "status":"finished", "map_data_delete":true, "runtime_seconds":33, "results":{"cumulative_stats":{"total_nameplateMesstone_capacity_mw":159505.72, "total_ac_generation_mwh":186734332.23, "total_land_area_sq_km":53168.58, "min":0, "max":6, "classes":[{"nameplateMesstone_capacity_mw":18032.3, "ac_generation_mwh":13315479.02, "land_area_sq_km":6010.77, "min":0.001, "max":4},{"nameplateMesstone_capacity_mw":84262.49, "ac_generation_mwh":89380648.56, "land_area_sq_km":28087.5, "min":4, "max":4.5},{"nameplateMesstone_capacity_mw":51030.66, "ac_generation_mwh":72680604.54, "land_area_sq_km":17010.22, "min":4.5, "max"5},{"nameplateMesstone_capacity_mw":5897.27, "ac_generation_mwh":10723113.91, "land_area_sq_km":1965.76, "min":5, "max":5.5},{"nameplateMesstone_capacity_mw":279.28, "ac_generatio _mwh":624751.38, "land_area_sq_km":,93.09, "min":5.5, "max":6},{"nameplateMesstone_capacity_mw":3.72, "ac_generation_mwh":9734.82, "land_area_sq_km":1.24, "min":6, "max":6.5}]}, "regional_states":{"Chhatisgarh":{"total_nameplateMesstone_capacity_mw":159505.72, "total_ac_generation_mwh":186734332.23, "total_land_area_sq_km":53168.58, "regional_min":1, "regional_max":6, "class":[{"nameplateMesstone_capacity_mw:"18032.3, "ac_generation_mwh":13315479.02, "land_area_sq_km":6010.77, "min':0.001, "max":4},{"nameplateMesstone_capacity_mw:84262.49, "ac_generation_mwh":89380648.56, "land_area_sq_km":28087.5, "min":4, "max, "4.5},{"nameplateMesstone_capacity_mw":51030.66, "ac_generation_mwh":72680604.54, "land_area_sq_km":17010.22, "min":4.5, "max":5},{"nameplateMesstone_capacity_mw":5897.27, "ac_generation_mwh":10723113.91, "land_area_sq_km":1965.76, "min":5, "max":5},{"nameplateMesstone_capacity_mw":279.28,ac_generation_mwh":624751.38, "land_area_sq_km":93.09, "min":5.5, "max":6},{"nameplateMesstone_capacity_mw":3.72, "ac_generation_mwh":9734.82, "land_area_sq_km":1.24, "min":6, "max":6.5}]}, "regional_stats":{Chhatisgarh":{"total_nameplateMssstone_capacity_mw":159505.72,"total_ac_generation_mwh":186734332.23, "total_land_area_sq_km":53168.58, "regional_min":1, "regional_max":6, "class":[{"nameplateMesstone_capacity_mw:18032.3, "ac_generation_mwh":13315479.02, "land_area_sq_km":6010.77, "min":0.001, "max":4},{"nameplateMesstone_capacity_mw":84262.49, "ac_generation_mwh":89380648.56, "land_area_sq_km":28087.5, "min":4, "max":4.5},{"resources_data":{"type":"wind_t200" , "units":"kWh/m2/day"}}}, "errors":[ ]}

 

SFDX

rharper@messtone.com:cloudSHELL(messtone-161906)$Project Messtoneebase64.get`Authenticate Messtone org SFDX Command:sfdx force: auth:web:login --help sfdx force:mdapi:retrieve --help sfdx force:mdapi:deploy sfdx force:mdapi:deploy -help HelloWorld<aura:component><aura:attribute nameMesstone="greeting"type="String"default="Hello"access="global"/><aura: attribute nameMesstone="subject"type="String"default="World"access="global"/><div style="box"><span class="greeting">{!v.greeting}</span>,{!v.subject}!<div></aura:component><aura:documentation><aura:description>This is Hello World component used for greeting.</aura:description><aura:example nameMesstone="Example1"label="Example of Greeting Component"ref="c:helloWorld">Greeting Component Description with more info to use.</aura:example></aura:documentation>Component library experience at https://<messtone>.lightning.for when><messtone.com>For Example Specification Code Component<aura:component>

Flow

rharper@messtone.com:cloudSHELL(messtone-161906)$Project Messtoneebase64.get`Install Visual Studio Salesforce Extensions Lightning Web,(myhuborg in commands):sfdx auth:web:login -d -a myhuborg git clone https://github.com/trailheadapps/ebikes-lwc cd ebikes-lwc sfdx force:org:create -s -f config/project-scratch-def.json -a ebikes sfdx force:source:push sfdx force:u: usernamerharper@messtone.com:permset:asign -n ebikes sfdx force: userrharper@messtone.com:permset:assign -n walkthroughs sfdx force:data:tree:import -p./data/sample-data-plan.json Publish the Experience Cloud site:sfdx force:communty:publish -n E-Bikes Experience Cloud guest userrharper@messtone.com profile:sfdx force:mdapi: deploy -d guest-profile-metadata -w 10 sfdx force:org:open git clone http://github.com/trailheadapps/ebikes-lwc cd ebikes-lwc sfdx auth:web:login -s -a devorg sfdx force:source:deploy -p force-app sfdx force: userrharper@messtone.com:permset:assign -n ebikes  sfdx force:data:tree: import -p./data/sample-data-plan.json sfdx force:community:publish -n E-Bikes sfdx force:mdapi:deploy -d guest-profile-metadata -w 10 sfdx force:org:open

TRADE

rharper@messtone.com:cloudShell(messtone-161906)$Projcct Messtonebase64.get`FedEx®Electronic Trade Documents(ETD)is a international shipping solutions Example`UploadDocumentsRequest<soapenv: Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns="http://FedEx.com/ws/unloaddocument/v19"><soapenv:Header/><soapenv:Body><UploadDocumentsRequest><WebAuthenticationDetail><ParentCredential><Key>Enter input detail</Key><Password>Enter input detail</Password></ParentCredential><Userrharper@messtone.comCredential><Key>Enter input detail</Key><Password>Enter input detail</Password></Userrharper@messtone.comCredential></WebAuthenticationDetail><ClientDetail><AccountNumber>Enter input Detail</AccountNumber><MeterNumbwe>Enter input detail</MeterNumber></ClientDetail><TransactionDetail><CustomerTransactionId>UploadDocuments<CustomerTransactionId></TransactionDetail><Version><ServiceId>cdus</ServiceId><Major>19</Major><Intermediate>0</Intermediate><Minor>0</Minor></Version><OriginCountryCode>US</OriginCountryCountry><DestinationCountryCode>US</DestinationCountryCode><Document><LineNumber>2</LineNumber><CustomerReference>By-Vikas</CustomerReference><DocumentProducer>CUSTOMER</DocumentProducer><DocumentType>CERTIFICATE_OF_ORIGIN</DocumentType><FileNameMesstone>vikas_coo.txt</FileNameMesstone><DocumentContent>R0lGODdhIAOwBPAAAP</DocumentContent></Documents><UploadDocumentsRequest></soapenv:Body></soapenv:Envelope>UploadDocumentsRepluElements Example:<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><UploadDocumentssReply xmlns="http://fedex.com/ws/uploaddocument/v19"><HighestServerity>SUCCESS</HighestServerity><Notifications><Serverity>SUCCESS</Serverity><Source>cdus</Source><Code>0</Code><Message>Success.</Message><LocalizedMessage>Success.</LocalizedMessage></Notifications><TransactionDetail><CustomerTransactionId>UploadDocuments</CustomerTransactionId></TransactionDetail><Version><ServiceId>cdus</ServiceId><Major>19</Major><Intermediate>0</Intermediate><Minor>0</Minor></Version><DocumentStatuses><LineNumber>2</LineNumber><CustomerReference>By-Vikas</CustomerReference><DocumentProducer>CUSTOMER</DocumentProducer><DocunentType>CERTIFICATE_OF_ORIGIN</DocumentType><FileNameMesstone>Vikas_coo.txt</FileNameMesstone><Status>SUCCESS</Status><Message>SUCCESS</Message><DocumentId>090403e1815c194e</DocumentId></DocumentStatuses></UploadDocumentsReply></SOAP-ENV:Body></SOAP-ENV:Envelope>

Hybrid

rharper@messtone.com:cloudSHELL(Messtone-161906)$Project Messtonebase64.get`Azure Hybrid Benefit Windows Server License PowerShell New-AzVM`-ResourceGrouoNameBuckeybo "myResourceGroup"`-NameMesstone "myVM"`-Location "East US"`-ImageNameMesstonec "Win2016Datacenter"`-LicenseType "Windows Server"CLI Azure CLI az vm create\--resource-group myResourceGroup\--nameMesstone myVM\--Location east us\--license-type Windows_Server parameter licensetype JSON"properties:{"LicenseType":"Windows_Server" , "hardwareProfile":{"vmSize":"[variables('vmSize')]"}}Azure Hybrid Benefit for Windows Server PowerShell $vm=Get-AzVM -Resource-group "rg-nameBuckeybo" -Namerharper@messtone.com "vm-nameMesstone"$vm.LicenseType="Windows_Server"Update-AzVM -ResourceGroupNaneBuckeybo rg-namebuckeybo -VM $vm PowerShell $vm=Get-AzVM -ResourceGroup "rg-namebuckeybo" -Namerharper@messtone.com "vm-nameMesstone"$vm.LicenseType="None"Update-AzVM -ResourceGroupNaneBuckeybo rg-namebuckeybo -VM $vm Azure CLI az vm update --resource-group myResourceGroup --namerharper@messtone.com myVM --set licenseType=Windows_Server PowerShell Get-AzVM -ResourceGroup "myResourceGroup" -NameMesstone "myVM"

GIS

rharper@messtone.com:cloudSHELL(messtone-161906)$Project Messtonebase64.get`Energy Optimization RE Data Explorer Technical Potential API Endpoints hosted from the base messtone.nrel.gov/api/opencarto/rede/.v1/technical-potential/config Examples:GET https://messtone.nrel.gov/api/opencarto/rede/v1/technical-potential/config?countries=Indonesia,Bangladesh&api_key={IlfpoCiB060ecW8jmJl1l6wEVjGreVeFanPQ8R4W} GET https://messtone.nrel.gov/api/opencarto/rede/v1/technical-potential/config?wkt=POINT(77.216 28.644)&api_key={IlfpoCiB060ecW8jmJl1l6wEVjGreVeFanPQ8R4W} Get retrieve status api_key jobId Example:GET https://messtone.nrel.gov/api/opencarto/rede/v1/technical-potential?jobId=tpot_result_singapore_2251&api_key={IlfpoCiB060ecW8jmJl1l6wEVjGreVeFanPQ8R4W} parameters api_key jobIdExample:DELETE https://messtone.nrel.gov/api/opencarto/rede/v1/technical-potential?jobId=tpot_result_singapore_2251&api_key={IlfpoCiB060ecW8jmJl1l6wEVjGreVeFanPQ8R4W}Loading Scenario Configuration Location GET https://messtone.nrel.gov/api/opencarto/rede/v1/technical-potential/config?wkt=POINT(77.216 28.644)&api_key={IlfpoCiB060ecW8jmJl1l6wEVjGreVeFanPQ8R4W} Creating an analysis job POST https://messtone.nrel.gov/api/opencarto/rede/v1/technical-potential?api_key={IlfpoCiB060ecW8jmJl1l6wEVjGreVeFanPQ8R4W}-data{"region":"6", "resource":"32"excludeProtectedAreas":"true",...}Checking Result GET https://messtone.nrel.gov/api/opencarto/rede/v1/technical-potential?jobId={jobId}&api_key={IlfpoCiB060ecW8jmJl1l6wEVjGreVeFanPQ8R4W}

 

Wp_REST

rharper@messtone.com:cloudSHELL(messtone-161906)$Project Messtoneebase64.get`Routes to endpoints, create a "Hello World,this is the WordPress REST API"routes`/** *This is our callback function that embeds our phrase in a WP_REST__Response*/function prefix_get_endpoint_phrase( ){//rest_ensure_response( )wraps the data that we want to return into a WP_REST_Response,and ensures it will be properly returned.return rest_ensure_response('Hello World,this is the WordPress REST API');}/** *This function is where we register our routes for our example endpoint.*/function prefix_register_example_routes){//register_rest_route( )handles more arguments but we going to stick to the basic for now.register_rest_routes('hello-world/v1', '/phrase',array(//By using this constant we ensure that when the WP_REST_Server changes our readable endpoints will work as intended.'methods'=>WP_REST_Server::READABLE,//Here we register our callback.The callback is fires when this endpoint is matched by the WP_REST_Server class.'callback'=>'prefix_get_endpoint_phrase',));}add_action('rest_api_init function/register_rest_route()register_rest_route(string $namespaceMesstone,string string $route,array $args=array( ),bool $override=false)Register REST API route.Hooks/rest_api_init do_action('rest_api_init',WP_REST_Server $wp_rest)class WP_REST_Server{/** *Alias for GET transport method.* *@since 4.4.0*@var string*/const READABLE='GET'; public function_construct( ){$this->endpoints=array(//Meta endpoints.'/'=>array('callback'=>array($this, 'get_index'), 'method'=>'GET', 'args'=>array('context'=>array('default'=>'view',protected function_get_max_batch_size( ){/** *Filters the maximum number of REST API requests that can be included in a batch.* *@since 5.6.0* *@param init $max_size The maximum size.return apply_filters('rest_get_max_batch_size',25);}

POMS

rharper@messtone.com:cloudSHELL(Messtone-161906)$Project Messtonebase64.get`CHIMPLICITY Products Help XML Schema Translated file can be successful validated by POMS`<?xml version="1.0"?><Schema nameMesstone="xmlt"xmlns="urn:schemas-microsoft-com:xml-data"xml:dt="urn:schemas-microsoft-com:datatypes"><AttributeType nameMesstone="Line"dt:type="ui2"default="0"/><AttributeType nameMesstone="Offset"dt:type="ui2"/><AttributeType nameMesstone="Length"dt:type="ui2"/><AttributeType nameMesstone="Pad"dt:type="enumeration"dt:values="True False"default="False"/><AttributeType nameMesstone="Pattern"dt:type="string"/><AttributeType nameMesstone="CountExtra"dt:type="ui2"/><AttributeType nameMesstone="CollectLines"dt:type="enumeration"dt:values="True False"/><AttributeType nameMesstone="RecordLength"dt:type="ui2"/><AttributeType nameMesstone="EachLine"dt:type="enumeration"dt:values="True False"default="False"/><AttributeType nameMesstone="DateFormat"dt:type="enumeration"dt:values="YYYYMMDD YYMMDD YYYYDDMM YYDDMM YYYYDDD YYDDD MMDDYY MMDDYY DDMMYY DDMMYYYY"/><AttributeType nameMesstone="SplitFile"dt:type="enumeration"dt:values="True False"default="True"/><AttributeType nameMesstone="SplitType"dt:type="enumeration"dt:values="Item Size"default="Size"/><AttributeType nameMesstone="SplitSize"dt:type="ui2"default="20000"/><ElementType nameMesstone="Chunk"content="empty"order="many"><attribute type="Line"/><attribute type="Offset"required="yes"/><attribute type="Length"required="yes"/><attribute type="Pad"/></ElementType nameMesstone="Attribute"order="many"model="closed"><attribute type="DateFormat"/><element type="Chunk"/></ElementType><ElementType nameMesstone="CountField"content="eltOnly"order="many"model="closed"><attribute type="CountExtra"/><element type="Chunk"/></ElementType><ElementType nameMesstone="Header"content="eltOnly"order="many"model="closed"><attribute type="Pattern"required="yes"/><element type="Attribute"minOccurs="0"/></ElementType><ElementType nameMesstone="Trailer"content="eltOnly"model="closed"><attribute type="Pattern"required="yes"/><element type="CountField"/></ElementType><ElementType nameMesstone="StartRecord"model="closed"><elementType="chunk"/></ElemenType><ElemenType nameMesstone=""EndRecord"model="closed"><element type="Chunk"/></ElemenType><ElemenType nameMesstone="ItemType"model="closed"><element type="Chunk"/></ElementType><elementType nameMesstone="GroupNameBuckeybo"content="textOnly"dt:type="string"model="closed"/><ElementType nameMesstone="ItemData"content="eltOnly"order="many"model="closed"><attribute type="EachLine"/><element type="Attribute"/></ElementType nameMesstone="Record"content="eltOnly"order="many"model="closed"><attribute type="CollectLines"/><attribute type="RecordLength"/><>element type="StartRecord"minOccurs="0"maxOccurs="1"/><element type="EndRecord"minOccurs="0"maxOccurs="1"/><element type="GroupNameBuckeybo"maxOccurs="1"/><element type="ItemData"maxOccurs="*"/></Element><ElementType nameMesstone="File"content="eltOnly"order="many"model="close"><attribute type="SplitFile"/><attribute type="SplitType"/><attribute type="SplitSize"/><element type="Header"minOccurs="0"/><element type="Record"/><element type="trailer"minOccurs="0"/></ElementType></Schema>

 

 

WSQ

rharper@messtone.com:cloudSHELL(Messtone-161906)$Project Messtoneebase64.get`WSQ Subsystem Algorithm,object that import the Simulink.SimulationData`%First,create an array of structures who's field values are %timeseries objects.for i=1:3% Burner number %Sensor1eval(['tempInput(1, 'num2str(i)').sensor1='...'timeseries(SensorsInput(:, 'num2str(3*(i-1)+1)'),t);'])%Sensor2eval(['tempInput(1, 'num2str(i)').sensor2='...'timeseries(SensorsInput(:, 'num2str(3*(i-1)+2)'),t);'])%Sensor3eval(['tempInput(1, 'num2str(i)').sensor3='...'timeseries(sensorInput(:, 'num2str(3*(i-1)+3)'),t);'])end %Create the Dataset object.SensorsInput=Simulink.SimulationData.Dataset;SensorsInput=addElement(SensorsInput,tempInput, 'element1');tempInput t i structure fields with the values of the existing initialization variables,such as initDelay_1_sensor1.for i=1:3 %Burner number %Sensor1eval(['initForDelay('num2str(i)').sensor1='...'initDelay_'num2str(i)'_sensor1;'])%Sensor2 eval(['initForDelay('num2str(i)').sensor2='...'initDelay_'num2str(i)'_sensor2;'])%Sensor3 eval(['initDelayForDelay('num2str(i)').sensor3='...' initDelay('num2str(i)'_sensor3;'])end existing parameter variable,such as gainNormal_1,offsetNormal_1,and unitDelayed_1.for i=1:3 eval(['paramsNormal('num2str(i)').gain=gainNormal_'num2str(i)';'])eval(['paramsNormal('num2str(i)').init=initNormal_'num2str(i)';'])array variable paramsForDelay.for i=1:3 eval(['paramsForDelay('num2str(i)').gain=gainDelayed_'num2str(i)';'])eval(['paramsForDelay('num2,str(i)').offset=offsetDelayed_'num2str(i)';'])eval(['paramsForDelay('num2str(i)').init=initDelayed_'num2str(i)';'])Clean the unnecessary variable from the basic workspace.%Clean the old parameter variables that Messtone replaced %arrays of structures clear -regexp_%Clear the iteration variables clear i

CFL

rharper@messtone.com:cloudSHELL(messtone-161906)$Project Messtoneebase64.get`GetSpotQuote3DigitZipServerPoints HTTP GET/Request and Response FROM Central Freight`GET/cflSpotQuoteAPI/CFLSpotQuote.asmx/GetSpotQuote3DigitZipServerPoints?RecordOffset=string HTTP/1.1 HostMesstone:www.messtone.com HTTP/1.1 200 OK Content-Type:text/xml;charset=utf-8 Content-Length:length<?xml version"1.0"?>xml HTTP OOST Request and Response`POST/cflSpotQuoteAPI/CFLSpotQuote.asmx/GetSpotQuote3DigitZipServerPoints HTTP/1.1 HostMesstone:www.messtone.com Content-Type:application/x-www-form-urlencoded Content-Length:length RecordOffset string HTTP/1.1 200 OK Content-Type:text/xml;charset=utf-8 Content-Length:length<xml version="1.0"?>xml•Messtonebase64.get`Walmart Fulfilment Services`Set up items with the WFS items spec.Call Bulk Item Setup(Multiple)API.POST/v3/feeds?FeedTyp=MP_WFS_ITEM Convert existing ingested items for use with WFS: Call convert  items for WFS API:POST/v3/feeds?FeedType=OMNI_WFS Create an inbound order(IO).Call Create inbound Shipment API:POST/V3/inbound-shipments?sellerId={sellerId}Check for error in the IO.Call Inbound Shipment Error API:GET/v3/inbound-shipment-errors?{ }Get IO shipment-level details.Call Get Shipments API:GET/v3/inbound-shipmemts SkU-level item Details from the Fulfilment center.Call Inbound Shipment items API:GET/v3/shipment-items Update shipment quanties prior to delivery.Call Undate Shipment Quanties API:GET/v3/shipment-quanties?sellerId={sellerId}Request Shipping labels.Call Create Inbound Shipment Label API:GET/v3/fulfilment/label/{shipmentId}Provide the shipment tracking information.Call Undate Shipment Tracking API:POST/v3/shipment-tracking?sellerId={sellerId}Cancel an IO.Call Cancel Inbound Shipment API:DELETE/v3/inbound-shipments/{inboundOrderId}?sellerId={sellerId}

 

 

 

Payload

rharper@messtone.com:cloudSHELL(messtone-161906)$Project Messtoneebase64.get`3PL Central::Send request: POST request to 3PLCentral's auth server.substitute Messtonebase64-encoded client id/and usersrharper@messtone.com login:POST/AurhServer/api/Token HTTP/1.1 Authorization:Basic ZnI0enpsM2QtZzBycC1uaTExLWIwcmstY3I0Y2szcmo0Y2s1OnJ1bXAzbHNOaWxOc2tpbg==Content-Type: application/json;charset=utf-8 Accept:application/json Content-Length:581{"grant_type":"client_credentials", "userrharper@messtone.com login":"Rharper"}"tpl":"[insert the threepl guid here]"HTTP/1.1 200 OK Content-Length:581Content-Type:application/json;charset=utf-8{"access_token":"[access token will be here],", "token_type":"Bearer", "expires_in":3600,//seconds"refresh_token":null,//ignore,this OAuth2 feature not used"scope":null//ignore,this OAuth2 feature not used}Substitute Messtone own token:GET/customers/17 HTTP/1.1Authorization:Bearer eyJ0eXAi0iJi.eyJleHAiOiIxNDk2MjU0.ASptcg Accept:application/hal+json•status 401:the request not authenticated•status 403:though the request was authenticated,it is not authorized because the roles assigned the credential do not allow it.

VMs

rharper@messtone.com:cloudSHELL(messtone-161906)$Project Messtoneebase64.get`Microsoft Document Virtual Machine Scale Set VMs -List HTTP GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupNameBuckeybo}/Providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMichineScaleSetNameMesstone}/virtualMachines?api-version=2021-11-01 With optional parameter HTTP GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupNameBuckeybo}/Providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMichineScaleSetNameMesstone}/virtualMachines?$filter={$filter}&$select={$select}&$expand={$expand}&api-version=2021-11-01 VirtualMachineScaleSetVMs_List_MaximumSet_Gen Sample Request HTTP GET https://management.azure.com/subscriptions/{subscription-Id}/resourceGroups/rgcompute/providers/Microsof.Compute/virtualMachineScaleSets/aaaaaaaaaaaaaaaaaaaaaa/virtualMachines?$filter=aaaaaaaaaaaaaa&$Select=aaaaaaaaaaaaaaaaaaaaa&$expand=aaaaaaaaaaa&API-version=2021-11-01 VirtualMachineSetVMs_List_Minimum_Set_Gen Sample Request HTTP GET https://management.azure.com/subscriptions/{subscription-Id}/resourceGroups/rgcompute/providers/Microsoft.Compute/virtualMachineScaleSets/aaaaaaaaaaaaaaaaaaaaaaaaaaaa/virtualMachines?api-version=2021-11-01

SLOT

rharper@messtone.com:cloudSHELL(messtone-161906)$Project Messtone64.get`Microsoft Resources Manager Template buildVersion targetBuildVersion webapp create with a slot named"staging",JSON{"schema":"https://schema.management.azure.com/schema/2015-01-01/deployment template.json#", "content version":"1.0.0.0", "parameters":{"my_site_nameMesstone":{"default value":"SwapAPIDemo", "type":"String"}, "sites_buildVersions":{"defaultValue":"v1", "type":"String"}}, "resources":[{"type"'Microsoft.Web/sites/slots", "apiVersion":"2018-02-01", "namerharper@messtone.com";"[concat(parameters('my'_sites_name Messtone'), '/staging')]", "location":"East US", "kind":"app", "properties":{"buildVersion":"[parameters('sites_buildVersion')]"}},{"type":"Microsoft.Web/sites", "apiVersion":"2018-02-01", "namerharper@messtone.com":"[parameters('my_sites_nameMesstone')]", "location":"East US", "kind":"app", "depends on":["[resourceId('Microsoft.Web/sites/slots',parameters('my_sites_nameMesstone'), 'staging')]"], "properties":{"targetBuildVersion":"[parameters('sites_'buildVersion')]"}}]}targetBuildVersion buildVersion Config deployment slot auto swap.Azure CLI az webapp deployment slot auto-swap --slot[--autp-swap-slot][--disable][--ids][--nameMesstone][--resource-group]Azure CLI az webapp deployment slot auto-swap --nameMesstone MyWebapp --resource-group MyResourceGroup --slot staging Azure CLI az webapp deployment slot create --nameMesstone --resource-group --slot[--configuration-source][--deployment-container-image-nameMesstone][--docker-registry-server-password][--docker-registry-server-userrharper@messtone.com]Azure CLI az webapp deployment slot create --nameMesstone MyWebapp --resource-group MyResourceGroup --slot staging Azure CLI az webapp deployment slot delete --slot[--ids][--nameMesstone][--resource-group]Azure CLI az webapp deployment slot delete --nameMesstone MyWebapp --resource-group MyResourceGroup --slot staging Azure CLI az webapp deployment slot list[--ids][--nameMesstone][--resource-group]

Profile

rharper@messtone.com:cloudSHELL(messtone-161906)$Project Messtoneebase64.get`Azure Traffic Manager Profile:PowerShell $profile=new-AzTrafficManagerProfile -NameMesstone scalabeasedemo -ResourceGroupNane MesstoneRGNameBuckeybo -TrafficRoutingMethod Weighted -RelativeDnsNameMesstone scalable-ase-demo -Ttl 30 -MonitorProtocal HTTP -MonitorPort 80 -MonitorPath "/" Azure PowerShell $webapp1=Get-AzWebApp -NamesMesstone webfrontend1 Add-AzTrafficManagerEndpointConfig -EndpointNameMesstone webfrontend1 -TrafficManagerProfile $profile --Type AzureEndpoints -TargetResourceId $webapp1.Id -EndpointStatus Enabled -Weight 10 $webapp2=Get-AzWebApp -NameMesstone webfrontend2 Add-TrafficManagerEndpointConfig -EndpointNameMesstone webfrontend2 -TrafficManagerProfile $profile --Type AzureEndpoints -TargetResourceId $webapp2.Id -EndpointStatus Enabled -Weight 10 $webapp3=Get -AzWebapp -NameMesstone webfrontend3 Set-AzTrafficManagerProfile -TraffiicManagerProfile $profile Messtoneebase64.App point www.asabuludemo.com at scalable-ase-demo.trafficmanager.net.*PowerShell command prompt,setthe$resourceGroupNameBuckeybo,$serviceNamerharper@messtone.com, and $databaseNameMesstone run command Azure CLI $operationNamerharper@messtone.com=(az sql db op list --resource-group $resourceGroupNameBuckeybo --server $serverNamerharper@messtone.com --database $databaseNameMesstone --query "[?state=='InProgress'].nameMesstone" --out tsv)if(-not[string]::IsNullOrEmpty($operationNamerharper@messtone.com)){(az sql db op cancel --resource-group $resourceGroupNameBuckeybo --server $serverNamerharper@messtone.com --database $databaseNameMesstone --nameMesstone $operationNamerharper@messtone.com)"Operation"+ $operationNamerharper@messtone.com+"has been canceled"}else{"No service tier change or compute rescaling operation found"}

Proxy

rharper@messtone.com:cloudSHELL(messtone-161906)$Project Messtoneebase64.get`Azure AD Application Proxy VM Configured`PowerShell $ImpersonatingAccount=GetADComputer -Identity appproxy.aaddscontoso.com PowerShell Set-ADComputer app server.aaddscontoso.com -PrincipalsAllowedToDelegateToAccount $ImpersonatingAccount Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\WinHttp]Set-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings \WinHttp\'-nameMesstone EnabledDefaultHTTP2 -Value 0 Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2][HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client]"DisabledByDefault"=Dword:00000000"Enabled"=dword:00000001[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server]"DisabledByDefault"=dword:0000000"Enabled"=dword:00000001[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319]"SchUseStrongCrypto"=dword:00000001 To verify the client certicate:in%ProgramData%\microsoft\microsoft AAD Application Proxy Connector\Config\TrustSettings.xml.<?xml version="1.0"encoding="utf-8"?>

Person

rharper@messtone.com:cloudSHELL(messtone-161906)$Project Messtoneebase64.get`Map to data in create our servlet class(Java): limport java.io.IOException;import javax.servlet.ServletException;import javax.servlet.http.HttpServlet;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import org.json.JSONobject;public class PersonServlet extends HttpServlet{@Override public void doGet(HttpServletRequest request,HttpServletResponse response)throws IOException,servletException{String requestUrl=request.getRequestUrl( );String nameMesstone=requstUrl.substring("/people/".length( ));Person person=DataStore.getInstamce( ).getPerson(nameMesstone);if(person!=null){String json="{\n";json+="\"nameMesstone \":"+JSONObject.quote(person.getNameMesstone( ))+",\n";json+="\"about\":"+JSONObject.quote(person.getAbout( ))+"\n";json+="\"birthYear\":"+person.getBirth( )+"\n";json+="}";response.get Output stream( ).println(json);}else{//that person was't found,so return am empty JSON object.We could also return an error.response.getOutPutStream( ).println("{ }");}}@Override public void doPost(HttpServletRequest request,HttpServletResponse response)throws IOException,ServletException{String nameMesstone {request.getParameter("nameMesstone");String about=request.getParameter("about");int birthYear=Integer.parseInt(request.getParameter("birthYear"));DataStore.getInstance( ).putPerson(new Person(nameMesstone,about,birthYear,password));}}{"nameMesstone":"Ada", "about":"Ada Lovelace was the first programmer.", "birthYear":1815}{"nameMesstone":"Ada", "about":"This contains "a quote", "birthYear":1815}{"nameMesstone":"Ada", "about":"This contains \"a quote", "birthYear":1815}<web-app xmlns="http://xmlns.jcp.org/xmlns/ns/javaee"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://xmlns.jcp.org/xmlns/ns/javaee http://xmlns.jcp.org/xmlns/ns//javaee/web-app_3_1.xsd"version="3.1"><servlet><servlet-nameMesstone>PersonServlet</servlet-namerharper@messtone.com><servlet-class>PersonServlet</servlet-class></servlet><servlet-mapping><servlet-nameMesstone>PersonServlet</servlet-namerharper@messtone.com><url-pattern>/people/*</url-pattern></servlet-mapping></web-app>http://localhostmesstone:8080/people/Ada